250 inline bool isModified() const { return modified; } |
250 inline bool isModified() const { return modified; } |
251 |
251 |
252 inline QFont defaultFont() const { return formats.defaultFont(); } |
252 inline QFont defaultFont() const { return formats.defaultFont(); } |
253 inline void setDefaultFont(const QFont &f) { formats.setDefaultFont(f); } |
253 inline void setDefaultFont(const QFont &f) { formats.setDefaultFont(f); } |
254 |
254 |
|
255 void clearUndoRedoStacks(QTextDocument::Stacks stacksToClear, bool emitSignals = false); |
|
256 |
255 private: |
257 private: |
256 bool split(int pos); |
258 bool split(int pos); |
257 bool unite(uint f); |
259 bool unite(uint f); |
258 void truncateUndoStack(); |
|
259 |
260 |
260 void insert_string(int pos, uint strPos, uint length, int format, QTextUndoCommand::Operation op); |
261 void insert_string(int pos, uint strPos, uint length, int format, QTextUndoCommand::Operation op); |
261 int insert_block(int pos, uint strPos, int format, int blockformat, QTextUndoCommand::Operation op, int command); |
262 int insert_block(int pos, uint strPos, int format, int blockformat, QTextUndoCommand::Operation op, int command); |
262 int remove_string(int pos, uint length, QTextUndoCommand::Operation op); |
263 int remove_string(int pos, uint length, QTextUndoCommand::Operation op); |
263 int remove_block(int pos, int *blockformat, int command, QTextUndoCommand::Operation op); |
264 int remove_block(int pos, int *blockformat, int command, QTextUndoCommand::Operation op); |