karbon

KarbonPart Class Reference

#include <karbon_part.h>

List of all members.


Detailed Description

Keeps track of visual per document properties.

It manages actions performed on this object in a command history. It loads initial settings and applies them to the document and its views. Finally a dcop interface is set up here.

Definition at line 45 of file karbon_part.h.


Public Slots

void repaintAllViews (bool repaint=true)
void repaintAllViews (const KoRect &)
void slotDocumentRestored ()
void slotCommandExecuted (VCommand *)
void slotUnitChanged (KoUnit::Unit unit)

Public Member Functions

 KarbonPart (QWidget *parentWidget=0L, const char *widgetName=0L, QObject *parent=0L, const char *name=0L, bool singleViewMode=false)
virtual ~KarbonPart ()
virtual void paintContent (QPainter &painter, const QRect &rect, bool transparent=false, double zoomX=1.0, double zoomY=1.0)
virtual bool initDoc (InitDocFlags flags, QWidget *parentWidget=0)
virtual bool loadXML (QIODevice *, const QDomDocument &document)
virtual bool loadOasis (const QDomDocument &doc, KoOasisStyles &styles, const QDomDocument &settings, KoStore *store)
virtual QDomDocument saveXML ()
virtual bool saveOasis (KoStore *store, KoXmlWriter *manifestWriter)
virtual void addShell (KoMainWindow *shell)
virtual DCOPObject * dcopObject ()
void insertObject (VObject *object)
void addCommand (VCommand *cmd, bool repaint=false)
VDocumentdocument ()
void clearHistory ()
VCommandHistorycommandHistory ()
bool showStatusBar () const
void setShowStatusBar (bool b)
void reorganizeGUI ()
void setUndoRedoLimit (int undos)
void initConfig ()
unsigned int maxRecentFiles () const
void setPageLayout (KoPageLayout &layout, KoUnit::Unit _unit)
bool mergeNativeFormat (const QString &file)

Protected Member Functions

virtual KoView * createViewInstance (QWidget *parent, const char *name)
virtual void removeView (KoView *view)
void saveOasisSettings (KoXmlWriter &)
void loadOasisSettings (const QDomDocument &settingsDoc)

Member Function Documentation

void KarbonPart::addCommand ( VCommand cmd,
bool  repaint = false 
)

insert a command into the undo/redo-history:

Definition at line 505 of file karbon_part.cc.

VCommandHistory* KarbonPart::commandHistory (  )  [inline]

access the command history:

Definition at line 84 of file karbon_part.h.

bool KarbonPart::initDoc ( InitDocFlags  flags,
QWidget *  parentWidget = 0 
) [virtual]

standard koDocument inherited methods

Definition at line 121 of file karbon_part.cc.

void KarbonPart::insertObject ( VObject object  ) 

insert a new vobject

Definition at line 496 of file karbon_part.cc.

bool KarbonPart::loadXML ( QIODevice *  ,
const QDomDocument &  document 
) [virtual]

file-> open calls this method

Definition at line 193 of file karbon_part.cc.

void KarbonPart::reorganizeGUI (  ) 

update attached view(s) on the current doc settings at this time only the status bar is handled

Definition at line 606 of file karbon_part.cc.

void KarbonPart::repaintAllViews ( bool  repaint = true  )  [slot]

repaint all views attached to this koDocument

Definition at line 539 of file karbon_part.cc.

QDomDocument KarbonPart::saveXML (  )  [virtual]

file-> save and file-> save as call this method

Definition at line 254 of file karbon_part.cc.


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