89class UndoWrapperCommand :
public KCommand
94 virtual void execute();
95 virtual void unexecute();
96 virtual TQString name()
const;
107class MergeCellCommand :
public KCommand
110 MergeCellCommand(
Cell* cell,
int colSpan,
int rowSpan );
112 virtual void execute();
113 virtual void unexecute();
114 virtual TQString name()
const;
129class DissociateCellCommand :
public KCommand
132 DissociateCellCommand(
Cell* cell );
134 virtual void execute();
135 virtual void unexecute();
136 virtual TQString name()
const;
151class RenameSheetCommand :
public KCommand
154 RenameSheetCommand( Sheet* sheet,
const TQString &name );
156 virtual void execute();
157 virtual void unexecute();
158 virtual TQString name()
const;
166class HideSheetCommand :
public KCommand
169 HideSheetCommand( Sheet* sheet );
171 virtual void execute();
172 virtual void unexecute();
173 virtual TQString name()
const;
180class ShowSheetCommand :
public KCommand
183 ShowSheetCommand( Sheet* sheet );
185 virtual void execute();
186 virtual void unexecute();
187 virtual TQString name()
const;
195class AddSheetCommand :
public KCommand
198 AddSheetCommand( Sheet* sheet );
200 virtual void execute();
201 virtual void unexecute();
202 virtual TQString name()
const;
210class RemoveSheetCommand :
public KCommand
213 RemoveSheetCommand( Sheet* sheet );
215 virtual void execute();
216 virtual void unexecute();
217 virtual TQString name()
const;
229class SheetPropertiesCommand :
public KCommand
232 SheetPropertiesCommand(
Doc* doc, Sheet* sheet );
233 void setLayoutDirection( Sheet::LayoutDirection direction );
234 void setAutoCalc(
bool b );
235 void setShowGrid(
bool b );
236 void setShowPageBorders(
bool b );
237 void setShowFormula(
bool b );
238 void setHideZero(
bool b );
239 void setShowFormulaIndicator(
bool b );
240 void setShowCommentIndicator(
bool b );
241 void setColumnAsNumber(
bool b );
242 void setLcMode(
bool b );
243 void setCapitalizeFirstLetter(
bool b );
245 virtual void execute();
246 virtual void unexecute();
247 virtual TQString name()
const;
252 Sheet::LayoutDirection oldDirection, newDirection;
253 bool oldAutoCalc, newAutoCalc;
254 bool oldShowGrid, newShowGrid;
255 bool oldShowPageBorders, newShowPageBorders;
256 bool oldShowFormula, newShowFormula;
257 bool oldHideZero, newHideZero;
258 bool oldShowFormulaIndicator, newShowFormulaIndicator;
259 bool oldShowCommentIndicator, newShowCommentIndicator;
260 bool oldColumnAsNumber, newColumnAsNumber;
261 bool oldLcMode, newLcMode;
262 bool oldCapitalizeFirstLetter, newCapitalizeFirstLetter;
266class InsertColumnCommand :
public KCommand
269 InsertColumnCommand( Sheet* s ,
unsigned int _column,
unsigned int _nbCol );
271 virtual void execute();
272 virtual void unexecute();
273 virtual TQString name()
const;
278 unsigned int insertPosColumn;
279 unsigned int nbColumnInserted;
284class DefinePrintRangeCommand :
public KCommand
287 DefinePrintRangeCommand( Sheet* sheet );
289 virtual void execute();
290 virtual void unexecute();
291 virtual TQString name()
const;
296 TQRect printRangeRedo, printRange;
300class PaperLayoutCommand :
public KCommand
303 PaperLayoutCommand( Sheet* sheet );
305 virtual void execute();
306 virtual void unexecute();
307 virtual TQString name()
const;
317 KoUnit::Unit unitRedo;
320 bool printCommentIndicator;
321 bool printCommentIndicatorRedo;
322 bool printFormulaIndicator;
323 bool printFormulaIndicatorRedo;
325 TQRect printRangeRedo;
326 TQPair<int, int> printRepeatColumns;
327 TQPair<int, int> printRepeatColumnsRedo;
328 TQPair<int, int> printRepeatRows;
329 TQPair<int, int> printRepeatRowsRedo;
339class LinkCommand :
public KCommand
342 LinkCommand( Cell* cell,
const TQString& text,
const TQString& link );
344 virtual void execute();
345 virtual void unexecute();
346 virtual TQString name()
const;
358class ChangeObjectGeometryCommand :
public KCommand
361 ChangeObjectGeometryCommand( EmbeddedObject *_obj,
const KoPoint &_m_diff,
const KoSize &_r_diff );
362 ~ChangeObjectGeometryCommand();
364 virtual void execute();
365 virtual void unexecute();
366 virtual TQString name()
const;
375class RemoveObjectCommand :
public KCommand
378 RemoveObjectCommand( EmbeddedObject *_obj,
bool _cut =
false );
379 ~RemoveObjectCommand();
381 virtual void execute();
382 virtual void unexecute();
383 virtual TQString name()
const;
392class InsertObjectCommand :
public KCommand
395 InsertObjectCommand(
const KoRect& _geometry, KoDocumentEntry&, Canvas *_canvas );
396 InsertObjectCommand(
const KoRect& _geometry, KoDocumentEntry&,
const TQRect& _data, Canvas *_canvas );
397 InsertObjectCommand(
const KoRect& _geometry, KURL& _file, Canvas *_canvas );
398 ~InsertObjectCommand();
400 virtual void execute();
401 virtual void unexecute();
402 virtual TQString name()
const;
408 KoDocumentEntry entry;
415class RenameNameObjectCommand :
public KNamedCommand
418 RenameNameObjectCommand(
const TQString &_name,
const TQString &_objectName, EmbeddedObject *_obj, Doc *_doc );
419 ~RenameNameObjectCommand();
423 TQString oldObjectName, newObjectName;
424 EmbeddedObject *object;
430class GeometryPropertiesCommand :
public KNamedCommand
433 enum KgpType { ProtectSize, KeepRatio};
434 GeometryPropertiesCommand(
const TQString &name, TQPtrList<EmbeddedObject> &objects,
435 bool newValue, KgpType type, Doc *_doc );
436 GeometryPropertiesCommand(
const TQString &name, TQValueList<bool> &lst, TQPtrList<EmbeddedObject> &objects,
437 bool newValue, KgpType type, Doc *_doc );
438 ~GeometryPropertiesCommand();
440 virtual void execute();
441 virtual void unexecute();
444 TQValueList<bool> m_oldValue;
445 TQPtrList<EmbeddedObject> m_objects;
451class MoveObjectByCmd :
public KNamedCommand
454 MoveObjectByCmd(
const TQString &_name,
const KoPoint &_diff, TQPtrList<EmbeddedObject> &_objects,
455 Doc *_doc, Sheet *m_page );
458 virtual void execute();
459 virtual void unexecute();
464 TQPtrList<EmbeddedObject> objects;