22 #ifndef PAGEITEM_LATEXFRAME_H
23 #define PAGEITEM_LATEXFRAME_H
31 #include "scribusapi.h"
33 #include "pageitem_imageframe.h"
56 virtual void applicableActions(QStringList& actionList);
57 virtual QString infoDescription();
72 bool setFormula(QString formula,
bool undoable=
true);
74 QString
formula()
const {
return formulaText; }
78 void runApplication();
80 void rerunApplication(
bool updateDisplay=
false);
82 QString configFile()
const;
83 void setConfigFile(QString newConfig,
bool relative=
false);
84 QString application()
const;
85 bool usePreamble()
const {
return m_usePreamble; }
86 int dpi()
const {
return m_dpi; }
89 const QString output()
const {
return appStdout; }
90 QProcess::ProcessState state()
const {
return latex->state(); }
91 int error()
const {
return err; }
93 QMap<QString,QString> editorProperties;
95 virtual void DrawObj_Item(
ScPainter *p, QRectF e);
96 double lastWidth, lastHeight;
100 void writeFileContents(QFile *tempfile);
101 void deleteImageFile();
106 QString imageFile, tempFileBase;
108 QString configFilename;
111 LatexEditor *internalEditor;
117 void formulaAutoUpdate(QString oldText, QString newText);
118 void latexFinished();
119 void stateChanged(QProcess::ProcessState state);
120 void applicationChanged();
122 void updateImage(
int exitCode, QProcess::ExitStatus exitStatus);
123 void latexError(QProcess::ProcessError error);
126 void setDpi(
int dpi);
127 void setUsePreamble(
bool);
virtual PageItem_LatexFrame * asLatexFrame()
Return self if Render frame item, otherwise null.
Definition: pageitem_latexframe.h:51
Displays all kinds of content generated by external programs. Named LatexFrame because it initally on...
Definition: pageitem_latexframe.h:43
Definition: pageitem_imageframe.h:34
UndoState describes an undoable state (action).
Definition: undostate.h:59
virtual void layout()
creates valid layout information
Definition: pageitem.h:383
the Document Class
Definition: scribusdoc.h:90
void restore(UndoState *state, bool isUndo)
Required by the UndoObject.
Definition: pageitem.cpp:5224
Definition: scpainter.h:33
virtual ItemType realItemType() const
Get the subclass item type.
Definition: pageitem_latexframe.h:55
Definition: latexhelpers.h:62
ItemType
Item Type.
Definition: pageitem.h:174
virtual void clearContents()
Clear the contents of a frame. WARNING: Currently they do not check if the user wants this...
Definition: pageitem_imageframe.cpp:210
virtual bool isLatexFrame() const
Return true if Render frame item, otherwise false.
Definition: pageitem_latexframe.h:52
QString formula() const
Get current source.
Definition: pageitem_latexframe.h:74