kivio

KivioDoc Class Reference

List of all members.

Detailed Description

Definition at line 65 of file kivio_doc.h.


Public Slots

void updateView (KivioPage *)
void slotDeleteStencilSet (DragBarButton *, QWidget *, KivioStackBar *)
void slotSelectionChanged ()
void setDefaultFont (const QFont &f)
void updateGuideLines (KoView *sender)
void updateGuideLines (KivioPage *page)
virtual void initEmpty ()

Signals

void sig_selectionChanged ()
void sig_addPage (KivioPage *)
void sig_addSpawnerSet (KivioStencilSpawnerSet *)
void sig_updateView (KivioPage *)
void sig_pageNameChanged (KivioPage *, const QString &)
void sig_deleteStencilSet (DragBarButton *, QWidget *, KivioStackBar *)
void sig_updateGrid ()
void initProgress ()
void progress (int)
void endProgress ()
void loadingFinished ()

Public Member Functions

 KivioDoc (QWidget *parentWidget=0, const char *widgetName=0, QObject *parent=0, const char *name=0, bool singleViewMode=false)
 ~KivioDoc ()
virtual DCOPObject * dcopObject ()
virtual QDomDocument saveXML ()
virtual bool saveOasis (KoStore *store, KoXmlWriter *manifestWriter)
virtual bool loadXML (QIODevice *, const QDomDocument &doc)
virtual bool loadOasis (const QDomDocument &doc, KoOasisStyles &oasisStyles, const QDomDocument &settings, KoStore *)
virtual bool initDoc (InitDocFlags flags, QWidget *parentWidget=0)
virtual QCString mimeType () const
KivioPagecreatePage ()
void addPage (KivioPage *page)
void addSpawnerSet (const QString &)
void addSpawnerSetDuringLoad (const QString &dirName, bool hidden)
bool removeSpawnerSet (KivioStencilSpawnerSet *)
QPtrList< KivioStencilSpawnerSet > * spawnerSets () const
KivioStencilSpawnerfindStencilSpawner (const QString &setId, const QString &stencilId)
KivioStencilSpawnerfindInternalStencilSpawner (const QString &title)
void addInternalStencilSpawner (KivioStencilSpawner *spawner)
KivioStencilSpawnerSetinternalSpawnerSet ()
KivioMapmap () const
bool isLoading () const
virtual void paintContent (QPainter &painter, const QRect &rect, bool transparent=false, double zoomX=1.0, double zoomY=1.0)
void paintContent (KivioPainter &painter, const QRect &rect, bool transparent, KivioPage *page, QPoint, KoZoomHandler *, bool, bool)
void printContent (KPrinter &prn)
KivioGridData grid ()
void initConfig ()
void saveConfig ()
void updateButton ()
void addCommand (KCommand *cmd)
int undoRedoLimit () const
void setUndoRedoLimit (int val)
KoCommandHistory * commandHistory () const
void insertPage (KivioPage *page)
void takePage (KivioPage *page)
void resetLayerPanel ()
void updateProtectPanelCheckBox ()
QFont defaultFont () const

Static Public Member Functions

static QPtrList< KivioDoc > & documents ()

Protected Slots

void slotDocumentRestored ()
void slotCommandExecuted ()
void loadStencil ()
virtual void openExistingFile (const QString &file)
virtual void openTemplate (const QString &file)

Protected Member Functions

bool checkStencilsForSpawnerSet (KivioStencilSpawnerSet *)
bool checkGroupForSpawnerSet (KivioStencil *, KivioStencilSpawnerSet *)
KivioStencilSpawnerSetfindSpawnerSet (const QString &dirName, const QString &name)
void saveOasisSettings (KoXmlWriter &)
void loadOasisSettings (const QDomDocument &settingsDoc)
KoView * createViewInstance (QWidget *parent, const char *name)
bool loadStencilSpawnerSet (const QString &id, bool hidden)
virtual bool completeLoading (KoStore *)

Protected Attributes

QPtrList< KivioStencilSpawnerSet > * m_pLstSpawnerSets
KivioMapm_pMap
int m_iPageId
QString m_strFileURL
bool m_bLoading
KivioStencilSpawnerSetm_pInternalSet
KivioGridData gridData
DCOPObject * dcop
KoCommandHistory * m_commandHistory
QFont m_font
QTimer * m_loadTimer
unsigned int m_currentFile
KivioStencilSpawnerSetm_currentSet
QValueList< KivioStencilSpawnerSet * > m_stencilSetLoadQueue
bool m_docOpened

Static Protected Attributes

static QPtrList< KivioDoc > * s_docs
static int s_docId

Friends

class KivioPage

Member Function Documentation

KivioPage * KivioDoc::createPage (  ) 

Returns:
a pointer to a new KivioPage.

The KivioPage is not added to the map nor added to the GUI.

Definition at line 627 of file kivio_doc.cpp.

void KivioDoc::addPage ( KivioPage page  ) 

Adds a KivioPage to the GUI and makes it active.

In addition the KivioPage is added to the map.

See also:
KivioView

KivioMap

Definition at line 638 of file kivio_doc.cpp.

void KivioDoc::addSpawnerSet ( const QString &   ) 

Adds a KivioStencilSpawnerSet to the list of spawner sets and make it active.

Definition at line 742 of file kivio_doc.cpp.

bool KivioDoc::isLoading (  )  const [inline]

Returns:
true if the document is currently loading.

Definition at line 120 of file kivio_doc.h.

void KivioDoc::slotDeleteStencilSet ( DragBarButton ,
QWidget *  ,
KivioStackBar  
) [slot]

Iterates through all spawner objects in the stencil set checking if they exist in any of the pages.

Definition at line 848 of file kivio_doc.cpp.

bool KivioDoc::checkStencilsForSpawnerSet ( KivioStencilSpawnerSet  )  [protected]

Checks if any stencils in the document use this spawner.

Definition at line 867 of file kivio_doc.cpp.

bool KivioDoc::loadStencilSpawnerSet ( const QString &  id,
bool  hidden 
) [protected]

Loads a KivioStencilSpawnerSet based on it's id.

Definition at line 553 of file kivio_doc.cpp.

bool KivioDoc::completeLoading ( KoStore *   )  [protected, virtual]

Overloaded function of KoDocument.

Definition at line 619 of file kivio_doc.cpp.


Member Data Documentation

List of stencil spawner sets.

Definition at line 197 of file kivio_doc.h.

KivioMap* KivioDoc::m_pMap [protected]

Pointer to the map that holds all the pages.

Definition at line 213 of file kivio_doc.h.

int KivioDoc::m_iPageId [protected]

This variable is used to give every KivioPage a unique default name.

See also:
newKivioPage

Definition at line 220 of file kivio_doc.h.

QString KivioDoc::m_strFileURL [protected]

The URL of the this part.

This variable is only set if the load function had been called with an URL as argument.

See also:
load

Definition at line 228 of file kivio_doc.h.

bool KivioDoc::m_bLoading [protected]

true if loading is in process, otherwise false.

This flag is used to avoid updates etc. during loading.

See also:
isLoading

Definition at line 236 of file kivio_doc.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys