diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-10 23:23:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 09:10:00 +0100 |
commit | d7842b76d8fdef15a1019c99af322c0ae37cb8db (patch) | |
tree | 2b7a95bf508382693ad06babfcbc8462e2b68f23 /sfx2/source/control | |
parent | 051ded51b0818043c9c9b8ccd4c6fbfacd00408a (diff) |
SfxMacro is unused, strip down to ctor/dtor
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/macro.cxx | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/sfx2/source/control/macro.cxx b/sfx2/source/control/macro.cxx index db6954571e28..26f6abc4c4ab 100644 --- a/sfx2/source/control/macro.cxx +++ b/sfx2/source/control/macro.cxx @@ -398,123 +398,4 @@ SfxMacro::~SfxMacro() //-------------------------------------------------------------------- -SfxMacroMode SfxMacro::GetMode() const - -/* [Description] - - Returns the mode, which indicates for what purpose this SfxMacro was - constructed. - - [Cross-reference] - - enum <SfxMacroMode> -*/ - -{ - return pImp->eMode; -} - -//-------------------------------------------------------------------- - -void SfxMacro::Record -( - SfxMacroStatement* pStatement // the recordning <SfxMacroStatement> -) - -/* [Description] - - This method features the parameters passed on as a Statement. The - instance to which the pointer points is transfered to the ownership - of SfxMacro. - - The call is only valid if it is about a SfxMacro, which was constructed - with SFX_MACRO_RECORDINGRELATIVE or SFX_MACRO_RECORDINGABSOLUTE and is - available as an already recorded statement. - - [Cross-reference] - - <SfxMacro::Replace(SfxMacroStatement*)> - <SfxMacro::Remove()> -*/ - -{ - DBG_ASSERT( pImp->eMode != SFX_MACRO_EXISTING, "invalid call to non-recording SfxMacro" ); - pImp->aList.C40_INSERT( SfxMacroStatement, pStatement, pImp->aList.Count() ); -} - -//-------------------------------------------------------------------- - -void SfxMacro::Replace -( - SfxMacroStatement* pStatement // the recording <SfxMacroStatement> -) - -/* [Description] - - This method records the statement passed on as a parameter. This will - overwrite the last recorded statement. The instance to which the passed - pointer points is transfered to the ownership of the SfxMacro. - - With this method it is possible to combine statements. For example, instead - of calling the 'CursorLeft()' five times could be summarized as - 'CursorLeft (5)'. Or rather than building a word letter by letter, this - could be done by a single statement 'InsertString("Hello")'. - - The call is only valid if it is about a SfxMacro, which was constructed - with SFX_MACRO_RECORDINGRELATIVE or SFX_MACRO_RECORDINGABSOLUTE and is - available as an already recorded statement. - - [Note] - - This method is typically called from the execute methods of - <SfxSlot>s created by the application developers. - - [Cross-reference] - - <SfxMacro::Record(SfxMacroStatement*)> - <SfxMacro::Remove()> -*/ - -{ - DBG_ASSERT( pImp->eMode != SFX_MACRO_EXISTING, "invalid call to non-recording SfxMacro" ); - DBG_ASSERT( pImp->aList.Count(), "no replaceable statement available" ); - pImp->aList.Remove( pImp->aList.Count() - 1 ); - pImp->aList.C40_INSERT( SfxMacroStatement,pStatement, pImp->aList.Count() ); -} - -//-------------------------------------------------------------------- - -void SfxMacro::Remove() - -/* [Description] - - This method deletes the last recorded <SfxMacroStatement> and removes - it from the macro. - - With this method it is possible to combine statements. For example, instead - of calling the 'CursorLeft()' five times could be summarized as - 'CursorLeft (5)'. Or rather than building a word letter by letter, this - could be done by a single statement 'InsertString("Hello")'. - - The call is only valid if it is about a SfxMacro, which was constructed - with SFX_MACRO_RECORDINGRELATIVE or SFX_MACRO_RECORDINGABSOLUTE and is - available as an already recorded statement. - - [Note] - - This method is typically called from the the Execute methods of <SfxSlot>s - by the application developer. - - [Cross-reference] - - <SfxMacro::Replace(SfxMacroStatement*)> - <SfxMacro::Record(SfxMacroStatement*)> -*/ - -{ - DBG_ASSERT( pImp->eMode != SFX_MACRO_EXISTING, "invalid call to non-recording SfxMacro" ); - DBG_ASSERT( pImp->aList.Count(), "no replaceable statement available" ); - pImp->aList.Remove( pImp->aList.Count() - 1 ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |