outlundo.hxx (4c5491ea) | outlundo.hxx (7a980842) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 28 unchanged lines hidden (view full) --- 37 OutlinerUndoBase( sal_uInt16 nId, Outliner* pOutliner ); 38 39 Outliner* GetOutliner() const { return mpOutliner; } 40}; 41 42class OutlinerUndoChangeParaFlags : public OutlinerUndoBase 43{ 44private: | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 28 unchanged lines hidden (view full) --- 37 OutlinerUndoBase( sal_uInt16 nId, Outliner* pOutliner ); 38 39 Outliner* GetOutliner() const { return mpOutliner; } 40}; 41 42class OutlinerUndoChangeParaFlags : public OutlinerUndoBase 43{ 44private: |
45 sal_uInt16 mnPara; | 45 sal_uInt32 mnPara; |
46 sal_uInt16 mnOldFlags; 47 sal_uInt16 mnNewFlags; 48 49 void ImplChangeFlags( sal_uInt16 nFlags ); 50 51public: | 46 sal_uInt16 mnOldFlags; 47 sal_uInt16 mnNewFlags; 48 49 void ImplChangeFlags( sal_uInt16 nFlags ); 50 51public: |
52 OutlinerUndoChangeParaFlags( Outliner* pOutliner, sal_uInt16 nPara, sal_uInt16 nOldDepth, sal_uInt16 nNewDepth ); | 52 OutlinerUndoChangeParaFlags( Outliner* pOutliner, sal_uInt32 nPara, sal_uInt16 nOldDepth, sal_uInt16 nNewDepth ); |
53 54 virtual void Undo(); 55 virtual void Redo(); 56}; 57 58class OutlinerUndoChangeParaNumberingRestart : public OutlinerUndoBase 59{ 60private: | 53 54 virtual void Undo(); 55 virtual void Redo(); 56}; 57 58class OutlinerUndoChangeParaNumberingRestart : public OutlinerUndoBase 59{ 60private: |
61 sal_uInt16 mnPara; | 61 sal_uInt32 mnPara; |
62 63 struct ParaRestartData 64 { 65 sal_Int16 mnNumberingStartValue; 66 sal_Bool mbParaIsNumberingRestart; 67 }; 68 69 ParaRestartData maUndoData; 70 ParaRestartData maRedoData; 71 72 void ImplApplyData( const ParaRestartData& rData ); 73public: | 62 63 struct ParaRestartData 64 { 65 sal_Int16 mnNumberingStartValue; 66 sal_Bool mbParaIsNumberingRestart; 67 }; 68 69 ParaRestartData maUndoData; 70 ParaRestartData maRedoData; 71 72 void ImplApplyData( const ParaRestartData& rData ); 73public: |
74 OutlinerUndoChangeParaNumberingRestart( Outliner* pOutliner, sal_uInt16 nPara, | 74 OutlinerUndoChangeParaNumberingRestart( Outliner* pOutliner, sal_uInt32 nPara, |
75 sal_Int16 nOldNumberingStartValue, sal_Int16 mnNewNumberingStartValue, 76 sal_Bool nOldbParaIsNumberingRestart, sal_Bool nbNewParaIsNumberingRestart ); 77 78 virtual void Undo(); 79 virtual void Redo(); 80}; 81 82class OutlinerUndoChangeDepth : public OutlinerUndoBase 83{ 84 using SfxUndoAction::Repeat; 85private: | 75 sal_Int16 nOldNumberingStartValue, sal_Int16 mnNewNumberingStartValue, 76 sal_Bool nOldbParaIsNumberingRestart, sal_Bool nbNewParaIsNumberingRestart ); 77 78 virtual void Undo(); 79 virtual void Redo(); 80}; 81 82class OutlinerUndoChangeDepth : public OutlinerUndoBase 83{ 84 using SfxUndoAction::Repeat; 85private: |
86 sal_uInt16 mnPara; | 86 sal_uInt32 mnPara; |
87 sal_Int16 mnOldDepth; 88 sal_Int16 mnNewDepth; 89 90public: | 87 sal_Int16 mnOldDepth; 88 sal_Int16 mnNewDepth; 89 90public: |
91 OutlinerUndoChangeDepth( Outliner* pOutliner, sal_uInt16 nPara, sal_Int16 nOldDepth, sal_Int16 nNewDepth ); | 91 OutlinerUndoChangeDepth( Outliner* pOutliner, sal_uInt32 nPara, sal_Int16 nOldDepth, sal_Int16 nNewDepth ); |
92 93 virtual void Undo(); 94 virtual void Redo(); 95 virtual void Repeat(); 96}; 97 98// Hilfs-Undo: Wenn es fuer eine Aktion keine OutlinerUndoAction gibst, weil 99// die EditEngine das handelt, aber z.B. noch das Bullet neu berechnet werden muss. 100 101class OutlinerUndoCheckPara : public OutlinerUndoBase 102{ 103 using SfxUndoAction::Repeat; 104private: | 92 93 virtual void Undo(); 94 virtual void Redo(); 95 virtual void Repeat(); 96}; 97 98// Hilfs-Undo: Wenn es fuer eine Aktion keine OutlinerUndoAction gibst, weil 99// die EditEngine das handelt, aber z.B. noch das Bullet neu berechnet werden muss. 100 101class OutlinerUndoCheckPara : public OutlinerUndoBase 102{ 103 using SfxUndoAction::Repeat; 104private: |
105 sal_uInt16 mnPara; | 105 sal_uInt32 mnPara; |
106 107public: | 106 107public: |
108 OutlinerUndoCheckPara( Outliner* pOutliner, sal_uInt16 nPara ); | 108 OutlinerUndoCheckPara( Outliner* pOutliner, sal_uInt32 nPara ); |
109 110 virtual void Undo(); 111 virtual void Redo(); 112 virtual void Repeat(); 113}; 114 115 116 --- 6 unchanged lines hidden (view full) --- 123 void Restore( sal_Bool bUndo ); 124public: 125 OLUndoExpand( Outliner* pOut, sal_uInt16 nId ); 126 ~OLUndoExpand(); 127 virtual void Undo(); 128 virtual void Redo(); 129 virtual void Repeat(); 130 | 109 110 virtual void Undo(); 111 virtual void Redo(); 112 virtual void Repeat(); 113}; 114 115 116 --- 6 unchanged lines hidden (view full) --- 123 void Restore( sal_Bool bUndo ); 124public: 125 OLUndoExpand( Outliner* pOut, sal_uInt16 nId ); 126 ~OLUndoExpand(); 127 virtual void Undo(); 128 virtual void Redo(); 129 virtual void Repeat(); 130 |
131 sal_uInt16* pParas; // 0 == nCount enthaelt Absatznummer | 131 sal_uInt32* pParas; // 0 == nCount enthaelt Absatznummer |
132 Outliner* pOutliner; | 132 Outliner* pOutliner; |
133 sal_uInt16 nCount; | 133 sal_uInt32 nCount; |
134}; 135 136#endif | 134}; 135 136#endif |