24#include <KoRichText.h>
28#include <KoParagLayout.h>
29#include <KoTextDocument.h>
30#include <koffice_export.h>
55class KOTEXT_EXPORT KoTextDeleteCommand : public KoTextDocDeleteCommand
58 KoTextDeleteCommand( KoTextDocument *d, int i, int idx, const TQMemArray<KoTextStringChar> &str,
60 const TQValueList<KoParagLayout> & oldParagLayouts );
61 KoTextCursor * execute( KoTextCursor *c );
62 KoTextCursor * unexecute( KoTextCursor *c );
64 TQValueList<KoParagLayout> m_oldParagLayouts;
71class KoTextInsertCommand : public KoTextDeleteCommand
74 KoTextInsertCommand( KoTextDocument *d, int i, int idx, const TQMemArray<KoTextStringChar> &str,
76 const TQValueList<KoParagLayout> &oldParagLayouts )
77 : KoTextDeleteCommand( d, i, idx, str, customItemsMap, oldParagLayouts ) {}
78 Commands type() const { return Insert; };
79 KoTextCursor *execute( KoTextCursor *c ) { return KoTextDeleteCommand::unexecute( c ); }
80 KoTextCursor *unexecute( KoTextCursor *c ) { return KoTextDeleteCommand::execute( c ); }
86class KOTEXT_EXPORT KoTextParagCommand : public KoTextDocCommand
89 KoTextParagCommand( KoTextDocument *d, int fParag, int lParag,
90 const TQValueList<KoParagLayout> &oldParagLayouts,
93 TQStyleSheetItem::Margin margin = (TQStyleSheetItem::Margin)-1 );
95 KoTextCursor * execute( KoTextCursor *c );
96 KoTextCursor * unexecute( KoTextCursor *c );
98 int firstParag, lastParag;
99 TQValueList<KoParagLayout> m_oldParagLayouts;
110class KoParagFormatCommand : public KoTextDocCommand
113 KoParagFormatCommand( KoTextDocument *d, int fParag, int lParag,
114 const TQValueList<KoTextFormat *> &oldFormats,
116 ~KoParagFormatCommand();
117 KoTextCursor *execute( KoTextCursor *c );
118 KoTextCursor *unexecute( KoTextCursor *c );
120 int firstParag, lastParag;
121 TQValueList<KoTextFormat *> m_oldFormats;
128class KoTextFormatCommand : public KoTextDocFormatCommand
131 KoTextFormatCommand( KoTextDocument *d, int sid, int sidx, int eid, int eidx, const TQMemArray<KoTextStringChar> &old, const KoTextFormat *f, int fl );
132 virtual ~KoTextFormatCommand();
134 KoTextCursor *execute( KoTextCursor *c );
135 KoTextCursor *unexecute( KoTextCursor *c );
136 void resizeCustomItems();
146 KoChangeVariableSubType( short int _oldValue, short int _newValue, KoVariable *var );
149 virtual TQString name() const;
151 short int m_newValue;
152 short int m_oldValue;
160class KoChangeVariableFormatProperties : public KCommand
163 KoChangeVariableFormatProperties( const TQString &_oldValue, const TQString &_newValue, KoVariable *var);
164 virtual TQString name() const;
A CustomItemsMap associates a custom item to an index Used in the undo/redo info for insert/delete te...
virtual TQString name() const=0
virtual void unexecute()=0
virtual TQString name() const
KNamedCommand(const TQString &name)
This class holds the paragraph-specific formatting information It's separated from KoTextParag so tha...
Each character (KoTextStringChar) points to a KoTextFormat that defines the formatting of that charac...
The KoTextObject is the high-level object that contains a KoTextDocument (the list of paragraphs),...
A KoVariable is a custom item, i.e.
|