diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-10 23:33:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 09:10:01 +0100 |
commit | de2785f9d5fbfe84e728f3549e8883e84780a076 (patch) | |
tree | f5912f0e8a9e94d0874f2c482ebe5fc6c86fcd57 /sfx2 | |
parent | a7ca9000aa52737f71add64cfd5560e5511acdd9 (diff) |
SfxMacro is useless
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/macro.hxx | 22 | ||||
-rw-r--r-- | sfx2/source/control/macro.cxx | 48 |
2 files changed, 0 insertions, 70 deletions
diff --git a/sfx2/inc/macro.hxx b/sfx2/inc/macro.hxx index a25a65442052..6d683a2c3fea 100644 --- a/sfx2/inc/macro.hxx +++ b/sfx2/inc/macro.hxx @@ -145,28 +145,6 @@ enum SfxMacroMode (example:" active document () ") */ }; -//==================================================================== - -struct SfxMacro_Impl; - -class SfxMacro - -/* [Description] - - Through using this class (and in fact its subclasses) the location of a - BASIC function will be discribed (also in which Library, in which module - and the Function name) as well as temporary storing a macro during the - recording. -*/ - -{ - SfxMacro_Impl* pImp; - -public: - SfxMacro( SfxMacroMode eMode = SFX_MACRO_RECORDINGRELATIVE ); - virtual ~SfxMacro(); -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/control/macro.cxx b/sfx2/source/control/macro.cxx index 401604271c76..a9f979858f59 100644 --- a/sfx2/source/control/macro.cxx +++ b/sfx2/source/control/macro.cxx @@ -349,52 +349,4 @@ void SfxMacroStatement::GenerateNameAndArgs_Impl aStatement.InsertAscii( "rem ", 0 ); } -//-------------------------------------------------------------------- - -SfxMacro::SfxMacro -( - SfxMacroMode eMode // Purpose of the instance, see <SfxMacroMode> -) - -/* [Description] - - Constructor of the SfxMacro class. Instances of this class are required - for two purposes in SFx: - - 1. for recording macros - In this cas is th constructor called with SFX_MACRO_RECORDINGABSOLUTE or - SFX_MACRO_RECORDINGRELATIVE. Should be an instance of a derived class, - in order to acommodate the derivation of information, where the macro - should be saved. Such a macro should, in its destructor, be saved at the - location specified by the user. - - 2. Assignment of exisiting macros - In this case the constructor is called with SFX_MACRO_EXISTING. - Such a instance is for example needed when macros are to be configured for - events or <SfxControllerItem>s. -*/ - -: pImp( new SfxMacro_Impl ) - -{ - pImp->eMode = eMode; -} - -//-------------------------------------------------------------------- - -SfxMacro::~SfxMacro() - -/* [Description] - - Virtual Destructor of the SfxMacro class. This should be overloaded in - the derived classes to save the recorded source in the mode - SFX_MACRO_RECORDINGABSOLUTE and SFX_MACRO_RECORDINGRELATIVE. -*/ - -{ - delete pImp; -} - -//-------------------------------------------------------------------- - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |