20#ifndef __KARBON_PART_H__
21#define __KARBON_PART_H__
26#include <KoDocument.h>
29#include "koffice_export.h"
50 KarbonPart( TQWidget* parentWidget = 0L, const char* widgetName = 0L,
51 TQObject* parent = 0L, const char* name = 0L, bool singleViewMode = false );
54 virtual void paintContent( TQPainter& painter, const TQRect& rect,
55 bool transparent = false, double zoomX = 1.0, double zoomY = 1.0 );
58 virtual bool initDoc(InitDocFlags flags, TQWidget* parentWidget=0);
61 virtual bool loadXML( TQIODevice*, const TQDomDocument& document );
62 virtual bool loadOasis( const TQDomDocument &doc, KoOasisStyles &styles, const TQDomDocument &settings, KoStore *store );
65 virtual TQDomDocument saveXML();
66 virtual bool saveOasis( KoStore *store, KoXmlWriter *manifestWriter );
68 virtual void addShell( KoMainWindow *shell );
70 virtual DCOPObject* dcopObject();
73 void insertObject( VObject* object );
76 void addCommand( VCommand* cmd, bool repaint = false );
87 return m_commandHistory;
90 bool showStatusBar() const
92 return m_bShowStatusBar;
95 void setShowStatusBar( bool b );
100 void setUndoRedoLimit( int undos );
103 unsigned int maxRecentFiles() const { return m_maxRecentFiles; }
105 void setPageLayout( KoPageLayout& layout, KoUnit::Unit _unit );
107 bool mergeNativeFormat( const TQString & file );
111 void repaintAllViews( bool repaint = true );
112 void repaintAllViews( const KoRect& );
113 void slotDocumentRestored();
114 void slotCommandExecuted( VCommand * );
115 void slotUnitChanged( KoUnit::Unit unit );
118 virtual KoView* createViewInstance( TQWidget* parent, const char* name );
119 virtual void removeView( KoView *view );
120 void saveOasisSettings( KoXmlWriter & );
121 void loadOasisSettings( const TQDomDocument&settingsDoc );
127 bool m_bShowStatusBar;
129 unsigned int m_maxRecentFiles;
Keeps track of visual per document properties.
VCommandHistory * commandHistory() access the command history:
Manages a set of commands.
The base class for all karbon commands.
All non-visual, static doc info is in here.
The base class for all karbon objects.
|