18 #include <QDomElement>
19 #include "pluginapi.h"
20 #include "loadsaveplugin.h"
21 #include "tableborder.h"
47 virtual bool run(
ScribusDoc* doc=0, QString filename = QString::null);
50 virtual void deleteAboutData(
const AboutData* about)
const;
55 extern "C" PLUGIN_API
int xpsexplugin_getPluginAPIVersion();
56 extern "C" PLUGIN_API
ScPlugin* xpsexplugin_getPlugin();
57 extern "C" PLUGIN_API
void xpsexplugin_freePlugin(
ScPlugin* plugin);
72 bool doExport(QString fName);
75 void writePages(QDomElement &root);
76 void writePage(QDomElement &doc_root, QDomElement &rel_root,
ScPage *Page);
77 void writePageLayer(QDomElement &doc_root, QDomElement &rel_root,
ScPage *page,
ScLayer& layer);
78 void writeItemOnPage(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
79 void handleImageFallBack(
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
80 void processPolyItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
81 void processLineItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
82 void processImageItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
83 void processTextItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
84 void processPathTextItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
85 void processSymbolItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
86 void processTableItem(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
87 void paintBorder(
const TableBorder &border,
const QPointF &start,
const QPointF &end,
const QPointF &startOffsetFactors,
const QPointF &endOffsetFactors, QDomElement &ob);
88 void processHatchFill(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
89 void processSymbolStroke(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
90 void processArrows(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root);
91 void drawArrow(
double xOffset,
double yOffset,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root,
FPointArray &arrow);
92 QString embedFont(
const ScFace *font, QDomElement &rel_root);
93 void GetMultiStroke(
struct SingleLine *sl, QDomElement &parentElem);
94 void getStrokeStyle(
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root,
double xOffset,
double yOffset,
bool forArrow =
false);
95 void getFillStyle(
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root,
double xOffset,
double yOffset,
bool withTransparency =
true);
96 void handleMask(
int type,
PageItem *Item, QDomElement &parentElem, QDomElement &rel_root,
double xOffset,
double yOffset);
97 QString SetColor(QString farbe,
int shad,
double transparency);
98 void SetClipAttr(QDomElement &elem,
FPointArray *ite,
bool fillRule);
102 void writeContentType();
104 QString FToStr(
double c);
105 QString IToStr(
int c);
106 QString MatrixToStr(QTransform &mat);
107 int hex2int(
char hex);
108 bool checkForFallback(
PageItem *Item);
116 double conversionFactor;
119 QMap<QString, QString> xps_fontMap;
A plug-in that performs a single action.
Definition: scplugin.h:248
Definition: charstyle.h:78
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: xpsexplugin.h:52
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
Definition: scribusstructs.h:120
Abstract super class for all Scribus plug-ins.
Definition: scplugin.h:90
Definition: sctextstruct.h:109
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual bool run(ScribusDoc *doc, QString target=QString::null)=0
Run the plug-in's main action.
Definition: tableborder.h:86
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
the Document Class
Definition: scribusdoc.h:90
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
Definition: xpsexplugin.h:33
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
Definition: pageitem.h:92
Definition: scribus_zip.h:28
Definition: fpointarray.h:42
Definition: xpsexplugin.h:59
Definition: sctextstruct.h:54
XPSExPlug(ScribusDoc *doc, int output_res)
Create the XPS exporter window.
Definition: xpsexplugin.cpp:202