Kaydet (Commit) de2785f9 authored tarafından Caolán McNamara's avatar Caolán McNamara

SfxMacro is useless

üst a7ca9000
......@@ -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: */
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment