return whether this modification represents an operation that may reasonably be deferred (not done now OR [possibly] at all) */
| 52 | may reasonably be deferred (not done now OR [possibly] at all) |
| 53 | */ |
| 54 | static bool CanDeferToLastStep ( const DocModification &mh ) |
| 55 | { |
| 56 | if ( mh.modificationType & ( SC_MOD_BEFOREINSERT | SC_MOD_BEFOREDELETE ) ) { |
| 57 | return true; // CAN skip |
| 58 | } |
| 59 | if ( ! ( mh.modificationType & ( SC_PERFORMED_UNDO | SC_PERFORMED_REDO ) ) ) { |
| 60 | return false; // MUST do |
| 61 | } |
| 62 | if ( mh.modificationType & SC_MULTISTEPUNDOREDO ) { |
| 63 | return true; // CAN skip |
| 64 | } |
| 65 | return false; // PRESUMABLY must do |
| 66 | } |
| 67 | |
| 68 | static bool CanEliminate ( const DocModification &mh ) |
| 69 | { |