SfxSlotInfo is unused
Change-Id: I8d5438ca338868c77dcf489609a4e007cfe925fd Reviewed-on: https://gerrit.libreoffice.org/30290 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
#ifndef INCLUDED_RSC_RSCSFX_HXX
|
||||
#define INCLUDED_RSC_RSCSFX_HXX
|
||||
|
||||
#define RSC_SFX_SLOT_INFO (0x100 + 0x203)
|
||||
|
||||
//========== S F X =======================================
|
||||
// This is used as a flags enum in sw/, but only there,
|
||||
// so I don't pull in o3tl::typed_flags here
|
||||
@@ -36,12 +34,6 @@ enum class SfxStyleFamily {
|
||||
All = 0x7fff
|
||||
};
|
||||
|
||||
// SfxSlotInfo
|
||||
enum class SfxSlotInfo {
|
||||
SlotName = 0x1,
|
||||
HelpText = 0x2
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -62,10 +62,6 @@ public:
|
||||
virtual RSCCLASS_TYPE GetClassType() const override;
|
||||
|
||||
void Pre_dtor() override;
|
||||
ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
|
||||
RSCINST * pDflt,
|
||||
RSCVAR nVarType, SfxSlotInfo nMask,
|
||||
Atom nDataBaseName = InvalidAtom ) override;
|
||||
ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
|
||||
RSCINST * pDflt = nullptr,
|
||||
RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
|
||||
|
@@ -109,8 +109,6 @@ class RscTypCont
|
||||
RscTop * InitClassMenuItem( RscTop * pSuper );
|
||||
RscTop * InitClassMenu( RscTop * pSuper, RscTop * pMenuItem );
|
||||
|
||||
RscTop * InitClassSfxSlotInfo( RscTop * pSuper );
|
||||
|
||||
public:
|
||||
RscBool aBool;
|
||||
RscRange aShort;
|
||||
|
@@ -81,11 +81,6 @@ public:
|
||||
virtual ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId );
|
||||
|
||||
// sets the variable
|
||||
virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
|
||||
RSCINST * pDflt,
|
||||
RSCVAR nVarType, SfxSlotInfo nMask,
|
||||
Atom nDataBaseName = InvalidAtom );
|
||||
|
||||
virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
|
||||
RSCINST * pDflt = nullptr,
|
||||
RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
|
||||
|
@@ -364,24 +364,4 @@ RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
|
||||
return pClassMenu;
|
||||
}
|
||||
|
||||
RscTop * RscTypCont::InitClassSfxSlotInfo( RscTop * pSuper )
|
||||
{
|
||||
Atom nId;
|
||||
RscTop * pClassSfxSlotInfo;
|
||||
|
||||
// initialize class
|
||||
nId = pHS->getID( "SfxSlotInfo" );
|
||||
pClassSfxSlotInfo = new RscClass( nId, RSC_SFX_SLOT_INFO, pSuper );
|
||||
aNmTb.Put( nId, CLASSNAME, pClassSfxSlotInfo );
|
||||
|
||||
nId = aNmTb.Put( "SlotName", VARNAME );
|
||||
pClassSfxSlotInfo->SetVariable( nId, &aLangString, nullptr, 0,
|
||||
SfxSlotInfo::SlotName );
|
||||
nId = aNmTb.Put( "HelpText", VARNAME );
|
||||
pClassSfxSlotInfo->SetVariable( nId, &aLangString, nullptr, 0,
|
||||
SfxSlotInfo::HelpText );
|
||||
return pClassSfxSlotInfo;
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -167,10 +167,6 @@ void RscTypCont::Init()
|
||||
pClassMenuItem->SetVariable( nId, pClassMenu, nullptr, VAR_SVDYNAMIC,
|
||||
(sal_uInt32)RscMenuItem::Menu );
|
||||
}
|
||||
{
|
||||
RscTop* pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr );
|
||||
pRoot->Insert( pClassSfxSlotInfo );
|
||||
}
|
||||
|
||||
aNmTb.SetSort();
|
||||
}
|
||||
|
@@ -277,16 +277,6 @@ ERRTYPE RscClass::SetVariable( Atom nVarName,
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
ERRTYPE RscClass::SetVariable( Atom nVarName,
|
||||
RscTop * pClass,
|
||||
RSCINST * pDflt,
|
||||
RSCVAR nVarType,
|
||||
SfxSlotInfo nMask,
|
||||
Atom nDataBaseName)
|
||||
{
|
||||
return SetVariable(nVarName, pClass, pDflt, nVarType, (sal_uInt32)nMask, nDataBaseName);
|
||||
}
|
||||
|
||||
void RscClass::EnumVariables( void * pData, VarEnumCallbackProc pProc )
|
||||
{
|
||||
sal_uInt32 i;
|
||||
|
@@ -102,17 +102,6 @@ ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
|
||||
return ERR_UNKNOWN_METHOD;
|
||||
}
|
||||
|
||||
ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
|
||||
RSCINST * pDflt, RSCVAR nVarType, SfxSlotInfo nMask,
|
||||
Atom nDataBaseName )
|
||||
{
|
||||
if( pSuperClass )
|
||||
return pSuperClass->SetVariable( nVarName, pClass, pDflt,
|
||||
nVarType, nMask, nDataBaseName );
|
||||
else
|
||||
return ERR_UNKNOWN_METHOD;
|
||||
}
|
||||
|
||||
void RscTop::EnumVariables( void * pData, VarEnumCallbackProc pProc )
|
||||
{
|
||||
if( pSuperClass )
|
||||
|
Reference in New Issue
Block a user