info/CWS undoapi : SfxUndoManager rework

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

info/CWS undoapi : SfxUndoManager rework

frank.schoenheit


          Type: info
         Title: SfxUndoManager rework
     Posted by: [hidden email]
      Affected: -
         TaskId: i33781
<http://www.openoffice.org/issues/show_bug.cgi?id=33781>
Effective from: CWS undoapi
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/undoapi>
    CWS status: new


*Summary*
--------
* removed various unused methods
* removed various unused method parameters
* replace USHORT, where referencing a stack size, with size_t
+ bool SfxUndoManager::IsDoing() const
+ bool SfxUndoManager::IsInListAction() const
+ size_t SfxUndoManager::GetListActionDepth() const
+ class SfxUndoListener
+ SfxUndoManager::Add/RemoveUndoListener
* outsourced remaining public interface into ::svl::IUndoManager
+ typedef sal_Int32 UndoStackMark;
+ UndoStackMark SfxUndoManager::MarkTopUndoAction();
+ void SfxUndoManager::RemoveMark( UndoStackMark );
+ bool SfxUndoManager::HasTopUndoActionMark(
    UndoStackMark );
+ void SfxUndoManager::RemoveOldestUndoActions( size_t );

SfxShell:
- SfxUndoManager* GetUndoManager();
+ ::svl::IUndoManager* GetUndoManager();
- void SetUndoManager( SfxUndoManager* );
+ void SetUndoManager( ::svl::IUndoManager* );

TextEngine/EditEngine/Outliner:
- SfxUndoManager& GetUndoManager();
+ ::svl::IUndoManager& GetUndoManager();



*Description*
-------------
SfxUndoManager got some refactoring love in CWS undoapi - see the
above list for details on the changes in its public API.


Send feedback to [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]