kpresenter
KPrDocument Class Reference
List of all members.Detailed Description
Definition at line 102 of file KPrDocument.h.
Public Types | |
enum | SaveFlag { SaveAll, SaveSelected, SavePage } |
enum | { STYLE_BACKGROUNDPAGE = 20, STYLE_BACKGROUNDPAGEAUTO, STYLE_GRADIENT, STYLE_OBJECTANIMATION, STYLE_STROKE, STYLE_MARKER, STYLE_PICTURE, STYLE_PRESENTATIONSTICKYOBJECT } |
Public Slots | |
void | movePage (int from, int to) |
void | copyPage (int from) |
void | selectPage (int pgNum, bool select) |
void | clipboardDataChanged () |
void | slotRepaintChanged (KPrTextObject *) |
static void | writeAutomaticStyles (KoXmlWriter &contentWriter, KoGenStyles &mainStyles, KoSavingContext &context, bool stylesDotXml) |
void | slotGuideLinesChanged (KoView *view) |
virtual void | initEmpty () |
Signals | |
void | enablePaste (bool) |
void | sig_refreshMenuCustomVariable () |
void | pageNumChanged () |
void | sig_updateRuler () |
void | sig_terminateEditing (KPrTextObject *) |
void | sig_updateMenuBar () |
Public Member Functions | |
KPrDocument (QWidget *parentWidget=0, const char *widgetName=0, QObject *doc=0, const char *name=0, bool singleViewMode=false) | |
~KPrDocument () | |
virtual void | paintContent (QPainter &painter, const QRect &rect, bool transparent=false, double zoomX=1.0, double zoomY=1.0) |
virtual QDomDocument | saveXML () |
virtual bool | completeSaving (KoStore *_store) |
virtual bool | saveOasis (KoStore *store, KoXmlWriter *manifestWriter) |
void | saveOasisDocumentStyles (KoStore *store, KoGenStyles &mainStyles, QFile *masterStyles, KoSavingContext &savingContext, SaveFlag saveFlag=SaveAll) const |
virtual bool | loadOasis (const QDomDocument &doc, KoOasisStyles &styles, const QDomDocument &, KoStore *store) |
void | loadOasisObject (KPrPage *page, QDomNode &drawPage, KoOasisContext &context, KPrGroupObject *groupObject=0L) |
virtual bool | loadXML (const QDomDocument &doc) |
virtual bool | loadXML (QIODevice *, const QDomDocument &doc) |
virtual bool | loadChildren (KoStore *_store) |
virtual int | supportedSpecialFormats () const |
virtual bool | initDoc (InitDocFlags flags, QWidget *parentWidget=0) |
virtual void | setEmpty () |
virtual void | addView (KoView *_view) |
virtual void | removeView (KoView *_view) |
void | setPageLayout (const KoPageLayout &) |
virtual QPixmap | generatePreview (const QSize &size) |
virtual void | addShell (KoMainWindow *shell) |
void | createHeaderFooter () |
void | updateHeaderFooterPosition () |
const QPtrList< KPrPage > & | getPageList () const |
KPrPage * | masterPage () const |
KPrPage * | activePage () const |
QPtrList< KPrPage > & | pageList () |
void | insertPixmapKey (KoPictureKey key) |
void | insertObjectInPage (double offset, KPrObject *_obj, int pos=-1) |
void | setGridValue (double rx, double ry, bool _replace=true) |
QColor | txtBackCol () const |
void | setTxtBackCol (const QColor &c) |
unsigned int | getRndX () const |
unsigned int | getRndY () const |
bool | spInfiniteLoop () const |
bool | spShowEndOfPresentationSlide () const |
bool | spManualSwitch () const |
bool | presentationDuration () const |
void | setInfiniteLoop (bool il) |
void | setShowEndOfPresentationSlide (bool shw) |
void | setManualSwitch (bool ms) |
void | setPresentationDuration (bool pd) |
QRect | getPageRect (bool decBorders=true) const |
void | insertObject (KPrChild *ch) |
void | savePage (const QString &file, int pgnum, bool ignore=false) |
void | pastePage (const QMimeSource *data, int pgnum) |
QString | templateFileName (bool chooseTemplate, const QString &theFile) |
int | insertNewPage (const QString &cmdName, int _page, InsertPos _insPos, bool chooseTemplate, const QString &theFile) |
void | insertPage (KPrPage *page, int currentPageNum, int insertPageNum) |
void | takePage (KPrPage *page, int pageNum) |
void | deletePage (int _page) |
void | copyPageToClipboard (int pgnum) |
void | repaint (bool) |
void | repaint (const QRect &) |
void | repaint (KPrObject *) |
QValueList< int > | getPageEffectSteps (unsigned int) |
QPen | presPen () const |
void | setPresPen (QPen p) |
void | restoreBackground (KPrPage *) |
KCommand * | loadPastedObjs (const QString &in, KPrPage *_page) |
void | deSelectAllObj () |
void | deSelectObj (KPrObject *obj) |
void | updateHeaderFooterButton () |
KoPictureCollection * | pictureCollection () |
KPrGradientCollection * | gradientCollection () |
KoAutoFormat * | getAutoFormat () const |
void | replaceObjs (bool createUndoRedo=true) |
int | getLeftBorder () const |
int | getTopBorder () const |
int | getBottomBorder () const |
int | getRightBorder () const |
void | enableEmbeddedParts (bool f) |
KPrTextObject * | header () const |
KPrTextObject * | footer () const |
void | setHeader (bool b) |
void | setFooter (bool b) |
void | setDisplayObjectMasterPage (bool b) |
void | setDisplayBackground (bool b) |
bool | isHeader (const KPrObject *obj) const |
bool | isFooter (const KPrObject *obj) const |
bool | isHeaderFooter (const KPrObject *obj) const |
bool | isSlideSelected (int pgNum) |
QValueList< int > | selectedSlides () |
QString | selectedForPrinting () |
virtual DCOPObject * | dcopObject () |
void | initConfig () |
void | saveConfig () |
KoStyleCollection * | styleCollection () const |
void | updateAllStyleLists () |
void | applyStyleChange (KoStyleChangeDefMap changed) |
void | updateStyleListOrder (const QStringList &list) |
void | addCommand (KCommand *cmd) |
KoTextZoomHandler * | zoomHandler () const |
QFont | defaultFont () const |
void | setDefaultFont (const QFont &newFont) |
bool | showStatusBar () const |
void | setShowStatusBar (bool _status) |
bool | showGrid () const |
void | setShowGrid (bool _grid) |
double | tabStopValue () const |
void | setTabStopValue (double _tabStop) |
double | getIndentValue () const |
void | setIndentValue (double _ind) |
int | maxRecentFiles () const |
KoVariableFormatCollection * | variableFormatCollection () const |
void | recalcVariables (int type) |
void | recalcPageNum () |
KPrVariableCollection * | getVariableCollection () const |
void | refreshMenuCustomVariable () |
void | setShowRuler (bool _ruler) |
bool | showRuler () const |
void | reorganizeGUI () |
int | undoRedoLimit () const |
void | setUndoRedoLimit (int _val) |
void | updateRuler () |
void | updateRulerPageLayout () |
unsigned int | getPageNums () const |
void | terminateEditing (KPrTextObject *textObj) |
KPrPage * | initialActivePage () const |
KPrView * | firstView () const |
void | displayActivePage (KPrPage *_page) |
void | updateZoomRuler () |
void | newZoomAndResolution (bool updateViews, bool forPrint) |
void | movePageTo (int oldPos, int newPos) |
void | updateSideBarItem (KPrPage *page) |
KPrPage * | findPage (KPrObject *object) |
KPrPage * | findPage (QPtrList< KPrObject > &objects) |
void | refreshAllNoteBar (int page, const QString &text, KPrView *exceptView) |
void | refreshAllNoteBarMasterPage (const QString &text, KPrView *exceptView) |
bool | backgroundSpellCheckEnabled () const |
void | enableBackgroundSpellCheck (bool b) |
void | startBackgroundSpellCheck () |
void | reactivateBgSpellChecking (bool refreshTextObj=false) |
QPtrList< KoTextObject > | allTextObjects () const |
QValueList< KoTextObject * > | visibleTextObjects () const |
virtual QValueList< KoTextDocument * > | allTextDocuments () const |
bool | allowAutoFormat () const |
void | setAllowAutoFormat (bool _b) |
bool | viewFormattingChars () const |
void | setViewFormattingChars (bool _b) |
bool | showGuideLines () const |
void | setShowGuideLines (bool b) |
QValueList< double > & | horizontalGuideLines () |
QValueList< double > & | verticalGuideLines () |
void | horizontalGuideLines (const QValueList< double > &lines) |
void | verticalGuideLines (const QValueList< double > &lines) |
void | addGuideLine (Qt::Orientation o, double pos) |
void | updateGuideLineButton () |
void | updateGridButton () |
double | getGridX () const |
void | setGridX (double _x) |
double | getGridY () const |
void | setGridY (double _y) |
bool | snapToGrid () const |
void | setSnapToGrid (bool _b) |
QColor | gridColor () const |
void | setGridColor (const QColor &_col) |
QStringList | spellCheckIgnoreList () const |
void | setSpellCheckIgnoreList (const QStringList &lst) |
void | addSpellCheckIgnoreWord (const QString &) |
KoCommandHistory * | commandHistory () const |
void | updateObjectStatusBarItem () |
void | updateObjectSelected () |
void | layout (KPrObject *kpobject) |
void | layout () |
void | changeBgSpellCheckingState (bool b) |
bool | cursorInProtectedArea () const |
void | setCursorInProtectedArea (bool b) |
void | insertFile (const QString &file) |
void | spellCheckParagraphDeleted (KoTextParag *_parag, KPrTextObject *frm) |
void | loadPictureMap (const QDomElement &domElement) |
void | updateRulerInProtectContentMode () |
void | updatePresentationButton () |
void | refreshGroupButton () |
QString | picturePath () const |
void | setPicturePath (const QString &_path) |
bool | insertDirectCursor () const |
void | setInsertDirectCursor (bool _b) |
void | updateDirectCursorButton () |
QString | globalLanguage () const |
void | setGlobalLanguage (const QString &_lang) |
bool | globalHyphenation () const |
void | setGlobalHyphenation (bool _hyphen) |
void | addWordToDictionary (const QString &word) |
void | loadImagesFromStore (KoStore *_store) |
void | saveEmbeddedObject (KPrPage *page, const QPtrList< KoDocumentChild > &childList, QDomDocument &doc, QDomElement &presenter) |
void | insertEmbedded (KoStore *store, QDomElement elem, KMacroCommand *macroCmd, KPrPage *page, int pos) |
KPrBgSpellCheck * | backSpeller () const |
void | setCustomSlideShows (const CustomSlideShowMap &customSlideShows) |
QValueList< KPrPage * > | customListPage (const QStringList &lst, bool loadOasis=false) |
QString | presentationName () const |
void | setPresentationName (const QString &_name) |
QStringList | presentationList () |
QValueList< int > | displaySelectedSlides () |
QValueList< int > | listOfDisplaySelectedSlides (const QValueList< KPrPage * > &lst) |
void | testCustomSlideShow (const QValueList< KPrPage * > &pages, KPrView *view) |
void | clearTestCustomSlideShow () |
const CustomSlideShowMap & | customSlideShows () |
Protected Slots | |
void | slotDocumentRestored () |
void | slotCommandExecuted () |
void | slotDocumentInfoModifed () |
virtual void | openExistingFile (const QString &file) |
virtual void | openTemplate (const QString &file) |
Protected Member Functions | |
KoView * | createViewInstance (QWidget *parent, const char *name) |
void | testAndCloseAllTextObjectProtectedContent () |
virtual bool | saveChildren (KoStore *_store) |
void | loadStyleTemplates (const QDomElement &styles) |
void | saveStyle (KoParagStyle *sty, QDomElement parentElem) |
QDomDocumentFragment | saveBackground (QDomDocument &) |
QDomElement | saveObjects (QDomDocument &doc) |
QDomElement | saveTitle (QDomDocument &doc) |
QDomElement | saveNote (QDomDocument &doc) |
QDomElement | saveAttribute (QDomDocument &doc) |
QDomElement | saveUsedSoundFileToXML (QDomDocument &_doc, QStringList _list) |
void | loadTextStyle (const QDomElement &domElement) |
void | saveEmbeddedObject (KPrPage *page, KoDocumentChild *chl, QDomDocument &doc, QDomElement &presenter, double offset) |
void | saveGuideLines (QDomDocument &doc, QDomElement &element) |
void | loadBackground (const QDomElement &element) |
void | loadGuideLines (const QDomElement &element) |
KCommand * | loadObjects (const QDomElement &element, bool paste=false) |
void | loadTitle (const QDomElement &element) |
void | loadNote (const QDomElement &element) |
void | loadUsedSoundFileFromXML (const QDomElement &element) |
virtual bool | completeLoading (KoStore *) |
void | makeUsedPixmapList () |
void | makeUsedSoundFileList () |
void | saveUsedSoundFileToStore (KoStore *_store, QStringList _list) |
void | loadUsedSoundFileFromStore (KoStore *_store, QStringList _list) |
void | fillStyleStack (const QDomElement &object, KoOasisContext &context, const char *family) |
int | createPresentationAnimation (const QDomElement &element, int order=0, bool increaseOrder=true) |
void | saveOasisPresentationSettings (KoXmlWriter &contentTmpWriter, QMap< int, QString > &page2name) |
void | loadOasisPresentationSettings (QDomNode &settingsDoc) |
void | saveOasisPresentationCustomSlideShow (KoXmlWriter &contentTmpWriter, QMap< int, QString > &page2name) |
void | loadOasisPresentationCustomSlideShow (QDomNode &settingsDoc) |
void | loadOasisHeaderFooter (QDomNode &drawPage, KoOasisContext &context) |
void | saveOasisSettings (KoXmlWriter &contentTmpWriter) |
void | loadOasisSettings (const QDomDocument &settingsDoc) |
void | saveOasisCustomFied (KoXmlWriter &writer) const |
void | loadOasisIgnoreList (const KoOasisSettings &settings) |
void | compatibilityFromOldFileFormat () |
void | parseOasisGuideLines (const QString &str) |
void | pageOrderChanged () |
Protected Attributes | |
bool | _spInfiniteLoop |
bool | _spShowEndOfPresentationSlide |
bool | _spManualSwitch |
bool | _showPresentationDuration |
int | _xRnd |
int | _yRnd |
QColor | _txtBackCol |
QColor | _otxtBackCol |
bool | _clean |
int | objStartY |
int | objStartNum |
QPen | _presPen |
KoPictureCollection | m_pictureCollection |
KPrGradientCollection | _gradientCollection |
KPrTextObject * | _header |
KPrTextObject * | _footer |
QMap< KoPictureKey, QString > | m_pictureMap |
CustomSlideShowMap | m_customListSlideShow |
KoPageLayout | __pgLayout |
int | lastObj |
QString | urlIntern |
QValueList< KoPictureKey > | usedPictures |
QStringList | usedSoundFile |
QStringList | haveNotOwnDiskSoundFile |
QPtrList< KTempFile > | tmpSoundFileList |
DCOPObject * | dcop |
int | saveOnlyPage |
QString | m_tempFileInClipboard |
bool | ignoreSticky |
KoCommandHistory * | m_commandHistory |
KoTextZoomHandler * | m_zoomHandler |
QFont | m_defaultFont |
KoAutoFormat * | m_autoFormat |
bool | m_bShowRuler |
bool | m_bShowStatusBar |
bool | m_bAllowAutoFormat |
bool | m_bShowGuideLines |
bool | m_bViewFormattingChars |
bool | m_bShowGrid |
bool | m_bSnapToGrid |
double | m_indent |
double | m_tabStop |
int | m_maxRecentFiles |
bool | m_cursorInProtectectedArea |
KoVariableFormatCollection * | m_varFormatCollection |
KPrVariableCollection * | m_varColl |
QColor | m_gridColor |
bool | _duplicatePage |
Properties | |
int | maxRecentFiles [] |
int | undoRedoLimit [] |
double | indentValue [] |
int | getLeftBorder [] |
int | getTopBorder [] |
int | getBottomBorder [] |
int | getRightBorder [] |
bool | cursorInProtectedArea [] |
bool | insertDirectCursor [] |
QString | picturePath [] |
QString | globalLanguage [] |
bool | globalHyphenation [] |
double | tabStopValue [] |
bool | snapToGrid [] |
bool | backgroundSpellCheckEnabled [] |
bool | spInfiniteLoop [] |
bool | spShowEndOfPresentationSlide [] |
bool | spManualSwitch [] |
bool | presentationDuration [] |
QColor | gridColor [] |
QColor | txtBackCol [] |
Constructor & Destructor Documentation
KPrDocument::KPrDocument | ( | QWidget * | parentWidget = 0 , |
|
const char * | widgetName = 0 , |
|||
QObject * | doc = 0 , |
|||
const char * | name = 0 , |
|||
bool | singleViewMode = false | |||
) |
Definition at line 139 of file KPrDocument.cpp.
Member Function Documentation
bool KPrDocument::loadOasis | ( | const QDomDocument & | doc, | |
KoOasisStyles & | styles, | |||
const QDomDocument & | , | |||
KoStore * | store | |||
) | [virtual] |
Definition at line 1565 of file KPrDocument.cpp.
void KPrDocument::insertObjectInPage | ( | double | offset, | |
KPrObject * | _obj, | |||
int | pos = -1 | |||
) |
Definition at line 4221 of file KPrDocument.cpp.
void KPrDocument::insertPage | ( | KPrPage * | page, | |
int | currentPageNum, | |||
int | insertPageNum | |||
) |
insert page page and go to page insertPageNum on all views which have currentPageNum as active page
Definition at line 3505 of file KPrDocument.cpp.
void KPrDocument::takePage | ( | KPrPage * | page, | |
int | pageNum | |||
) |
remove page page and go to page pageNum on all view which had page as active page
Definition at line 3534 of file KPrDocument.cpp.
QValueList< int > KPrDocument::getPageEffectSteps | ( | unsigned | int | ) |
return the list of steps for the selected page where objects appear/disappear.
Definition at line 3447 of file KPrDocument.cpp.
bool KPrDocument::showStatusBar | ( | ) | const [inline] |
QValueList< KoTextDocument * > KPrDocument::allTextDocuments | ( | ) | const [virtual] |
QValueList<double>& KPrDocument::horizontalGuideLines | ( | ) | [inline] |
Get the positions of the horizontal guide lines.
- Returns:
- list of positions of the horizontal guide lines
Definition at line 409 of file KPrDocument.h.
QValueList<double>& KPrDocument::verticalGuideLines | ( | ) | [inline] |
Get the positions of the vertical guide lines.
- Returns:
- list of positions of the vertical guide lines
Definition at line 416 of file KPrDocument.h.
void KPrDocument::horizontalGuideLines | ( | const QValueList< double > & | lines | ) |
Set the positions of the horizontal guide lines.
- Parameters:
-
lines a list of positions of the horizontal guide lines
Definition at line 4512 of file KPrDocument.cpp.
void KPrDocument::verticalGuideLines | ( | const QValueList< double > & | lines | ) |
Set the positions of the vertical guide lines.
- Parameters:
-
lines a list of positions of the vertical guide lines
Definition at line 4517 of file KPrDocument.cpp.
void KPrDocument::addGuideLine | ( | Qt::Orientation | o, | |
double | pos | |||
) |
Add a guide line.
- Parameters:
-
p the orientation of the guide line p the position of the guide line
Definition at line 4523 of file KPrDocument.cpp.
bool KPrDocument::saveChildren | ( | KoStore * | _store | ) | [protected, virtual] |
Overloaded function from Document_impl.
Saves all children.
Definition at line 443 of file KPrDocument.cpp.
bool KPrDocument::completeLoading | ( | KoStore * | ) | [protected, virtual] |
Definition at line 3164 of file KPrDocument.cpp.
void KPrDocument::pageOrderChanged | ( | ) | [protected] |
recalc the variables update statusbar and sidebar menu
Definition at line 3562 of file KPrDocument.cpp.
The documentation for this class was generated from the following files: