Kaydet (Commit) 3ddae219 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused fields pName and pMethodName in SfxSlot class

Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111
üst 764e3016
...@@ -72,8 +72,7 @@ class SvMetaSlot : public SvMetaAttribute ...@@ -72,8 +72,7 @@ class SvMetaSlot : public SvMetaAttribute
sal_uInt16 nCount, const OString& rSlotId, sal_uInt16 nCount, const OString& rSlotId,
SvSlotElementList &rList, SvSlotElementList &rList,
size_t nStart, size_t nStart,
const OString& rPrefix, SvIdlDataBase & rBase, SvStream & rOutStm );
SvIdlDataBase & rBase, SvStream & rOutStm );
virtual void Write( SvIdlDataBase & rBase, virtual void Write( SvIdlDataBase & rBase,
SvStream & rOutStm, sal_uInt16 nTab, SvStream & rOutStm, sal_uInt16 nTab,
WriteType, WriteAttribute = 0 ) SAL_OVERRIDE; WriteType, WriteAttribute = 0 ) SAL_OVERRIDE;
...@@ -244,7 +243,6 @@ public: ...@@ -244,7 +243,6 @@ public:
sal_uInt16 nCount, sal_uInt16 nCount,
SvSlotElementList&, SvSlotElementList&,
size_t nStart, size_t nStart,
const OString&,
SvIdlDataBase & rBase, SvIdlDataBase & rBase,
SvStream & rOutStm ); SvStream & rOutStm );
sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase, sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase,
......
...@@ -452,7 +452,7 @@ sal_uInt16 SvMetaClass::WriteSlots( const OString& rShellName, ...@@ -452,7 +452,7 @@ sal_uInt16 SvMetaClass::WriteSlots( const OString& rShellName,
SvSlotElement * pEle = rSlotList[ i ]; SvSlotElement * pEle = rSlotList[ i ];
SvMetaSlot * pAttr = pEle->xSlot; SvMetaSlot * pAttr = pEle->xSlot;
nSCount = nSCount + pAttr->WriteSlotMap( rShellName, nCount + nSCount, nSCount = nSCount + pAttr->WriteSlotMap( rShellName, nCount + nSCount,
rSlotList, i, pEle->aPrefix, rBase, rSlotList, i, rBase,
rOutStm ); rOutStm );
} }
......
...@@ -1145,7 +1145,6 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount, ...@@ -1145,7 +1145,6 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
const OString& rSlotId, const OString& rSlotId,
SvSlotElementList& rSlotList, SvSlotElementList& rSlotList,
size_t nStart, size_t nStart,
const OString& rPrefix,
SvIdlDataBase & rBase, SvStream & rOutStm ) SvIdlDataBase & rBase, SvStream & rOutStm )
{ {
if ( !GetExport() && !GetHidden() ) if ( !GetExport() && !GetHidden() )
...@@ -1379,25 +1378,12 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount, ...@@ -1379,25 +1378,12 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
sal_uLong nSCount = pType->GetAttrCount(); sal_uLong nSCount = pType->GetAttrCount();
rOutStm rOutStm
.WriteCharPtr( OString::number(nSCount).getStr() ) .WriteCharPtr( OString::number(nSCount).getStr() )
.WriteCharPtr( "/*Count*/" ); .WriteCharPtr( "/*Count*/," );
} }
else else
rOutStm.WriteChar( '0' ); rOutStm.WriteCharPtr( "0," );
// name for recording rOutStm.WriteCharPtr( " " );
if ( GetExport() )
{
rOutStm.WriteCharPtr( ",\"" );
if (!rPrefix.isEmpty())
rOutStm.WriteCharPtr( rPrefix.getStr() );
rOutStm.WriteChar( '.' );
if ( !IsVariable() || !GetType() ||
GetType()->GetBaseType()->GetType() != TYPE_STRUCT )
rOutStm.WriteCharPtr( GetMangleName( false ).getStr() );
rOutStm.WriteCharPtr( "\"," );
}
else
rOutStm.WriteCharPtr( ", 0, " );
// Method/Property flags // Method/Property flags
if( IsMethod() ) if( IsMethod() )
...@@ -1463,7 +1449,6 @@ sal_uInt16 SvMetaSlot::WriteSlotParamArray( SvIdlDataBase & rBase, SvStream & rO ...@@ -1463,7 +1449,6 @@ sal_uInt16 SvMetaSlot::WriteSlotParamArray( SvIdlDataBase & rBase, SvStream & rO
sal_uInt16 SvMetaSlot::WriteSlotMap( const OString& rShellName, sal_uInt16 nCount, sal_uInt16 SvMetaSlot::WriteSlotMap( const OString& rShellName, sal_uInt16 nCount,
SvSlotElementList& rSlotList, SvSlotElementList& rSlotList,
size_t nStart, size_t nStart,
const OString& rPrefix,
SvIdlDataBase & rBase, SvIdlDataBase & rBase,
SvStream & rOutStm ) SvStream & rOutStm )
{ {
...@@ -1483,7 +1468,7 @@ sal_uInt16 SvMetaSlot::WriteSlotMap( const OString& rShellName, sal_uInt16 nCoun ...@@ -1483,7 +1468,7 @@ sal_uInt16 SvMetaSlot::WriteSlotMap( const OString& rShellName, sal_uInt16 nCoun
nSCount = (sal_uInt16)pType->GetAttrCount(); nSCount = (sal_uInt16)pType->GetAttrCount();
} }
WriteSlot( rShellName, nCount, slotId, rSlotList, nStart, rPrefix, rBase, rOutStm ); WriteSlot( rShellName, nCount, slotId, rSlotList, nStart, rBase, rOutStm );
return nSCount; return nSCount;
} }
......
...@@ -174,7 +174,7 @@ SFX_DECL_TYPE(18); // for SvxSearchItem ...@@ -174,7 +174,7 @@ SFX_DECL_TYPE(18); // for SvxSearchItem
ExecMethodPtr, \ ExecMethodPtr, \
StateMethodPtr, \ StateMethodPtr, \
(const SfxType*) &a##ItemClass##_Impl, \ (const SfxType*) &a##ItemClass##_Impl, \
Name, Name, 0, 0, \ 0, 0, \
&a##aShellClass##Args_Impl[nArg0], nArgs, 0, Name \ &a##aShellClass##Args_Impl[nArg0], nArgs, 0, Name \
} }
...@@ -184,16 +184,15 @@ SFX_DECL_TYPE(18); // for SvxSearchItem ...@@ -184,16 +184,15 @@ SFX_DECL_TYPE(18); // for SvxSearchItem
ExecMethodPtr, \ ExecMethodPtr, \
StateMethodPtr, \ StateMethodPtr, \
(const SfxType*) &a##ItemClass##_Impl, \ (const SfxType*) &a##ItemClass##_Impl, \
0, 0, 0, 0, 0, 0, 0 \ 0, 0, 0, 0, 0 \
} }
#define SFX_NEW_SLOT_ARG( aShellClass, id, hid, GroupId, pLinked, pNext, ExecMethodPtr, StateMethodPtr, Flags, DisableFlags, ItemClass, nArg0, nArgs, Name, Prop, UnoName ) \ #define SFX_NEW_SLOT_ARG( aShellClass, id, hid, GroupId, pLinked, pNext, ExecMethodPtr, StateMethodPtr, Flags, DisableFlags, ItemClass, nArg0, nArgs, Prop, UnoName ) \
{ id, GroupId, hid, Flags | Prop, \ { id, GroupId, hid, Flags | Prop, \
USHRT_MAX, 0, \ USHRT_MAX, 0, \
ExecMethodPtr, \ ExecMethodPtr, \
StateMethodPtr, \ StateMethodPtr, \
(const SfxType*) &a##ItemClass##_Impl, \ (const SfxType*) &a##ItemClass##_Impl, \
Name, Name, \
pLinked, pNext, \ pLinked, pNext, \
&a##aShellClass##Args_Impl[nArg0], nArgs, DisableFlags, UnoName \ &a##aShellClass##Args_Impl[nArg0], nArgs, DisableFlags, UnoName \
} }
...@@ -204,7 +203,6 @@ SFX_DECL_TYPE(18); // for SvxSearchItem ...@@ -204,7 +203,6 @@ SFX_DECL_TYPE(18); // for SvxSearchItem
0, \ 0, \
0, \ 0, \
(const SfxType*) &aSfxBoolItem_Impl, \ (const SfxType*) &aSfxBoolItem_Impl, \
0, 0, \
pMaster, \ pMaster, \
pNext, \ pNext, \
0, 0, DisableFlags, UnoName \ 0, 0, DisableFlags, UnoName \
...@@ -240,9 +238,7 @@ public: ...@@ -240,9 +238,7 @@ public:
SfxExecFunc fnExec; // Function to be excecuted SfxExecFunc fnExec; // Function to be excecuted
SfxStateFunc fnState; // Function for Status SfxStateFunc fnState; // Function for Status
const SfxType* pType; // SfxPoolItem-Type (Status) const SfxType* pType; // SfxPoolItem-Type (Status)
const char* pName; // Name of the Slots
const char* pMethodName; // Name of the Method if different
const SfxSlot* pLinkedSlot; // Master-Slot for Enum value const SfxSlot* pLinkedSlot; // Master-Slot for Enum value
const SfxSlot* pNextSlot; // with the same Status-Method const SfxSlot* pNextSlot; // with the same Status-Method
......
...@@ -33,7 +33,7 @@ namespace sd { ...@@ -33,7 +33,7 @@ namespace sd {
SFX_SLOTMAP(LeftImpressPaneShell) SFX_SLOTMAP(LeftImpressPaneShell)
{ {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}; };
SFX_IMPL_INTERFACE(LeftImpressPaneShell, SfxShell, SdResId(STR_LEFT_IMPRESS_PANE_SHELL)) SFX_IMPL_INTERFACE(LeftImpressPaneShell, SfxShell, SdResId(STR_LEFT_IMPRESS_PANE_SHELL))
...@@ -59,7 +59,7 @@ LeftImpressPaneShell::~LeftImpressPaneShell (void) ...@@ -59,7 +59,7 @@ LeftImpressPaneShell::~LeftImpressPaneShell (void)
SFX_SLOTMAP(LeftDrawPaneShell) SFX_SLOTMAP(LeftDrawPaneShell)
{ {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}; };
SFX_IMPL_INTERFACE(LeftDrawPaneShell, SfxShell, SdResId(STR_LEFT_DRAW_PANE_SHELL)) SFX_IMPL_INTERFACE(LeftDrawPaneShell, SfxShell, SdResId(STR_LEFT_DRAW_PANE_SHELL))
......
...@@ -585,7 +585,6 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em ...@@ -585,7 +585,6 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em
pNewSlot->fnExec = SFX_STUB_PTR(SfxShell,VerbExec); pNewSlot->fnExec = SFX_STUB_PTR(SfxShell,VerbExec);
pNewSlot->fnState = SFX_STUB_PTR(SfxShell,VerbState); pNewSlot->fnState = SFX_STUB_PTR(SfxShell,VerbState);
pNewSlot->pType = 0; // HACK(SFX_TYPE(SfxVoidItem)) ??? pNewSlot->pType = 0; // HACK(SFX_TYPE(SfxVoidItem)) ???
pNewSlot->pName = strdup (OUStringToOString( aVerbs[n].VerbName, RTL_TEXTENCODING_UTF8 ).getStr());
pNewSlot->pLinkedSlot = 0; pNewSlot->pLinkedSlot = 0;
pNewSlot->nArgDefCount = 0; pNewSlot->nArgDefCount = 0;
pNewSlot->pFirstArgDef = 0; pNewSlot->pFirstArgDef = 0;
......
...@@ -291,7 +291,7 @@ void Deck::ShowPanel (const Panel& rPanel) ...@@ -291,7 +291,7 @@ void Deck::ShowPanel (const Panel& rPanel)
const OUString& GetWindowClassification (const Window* pWindow) const OUString GetWindowClassification (const Window* pWindow)
{ {
const OUString& rsName (pWindow->GetText()); const OUString& rsName (pWindow->GetText());
if (!rsName.isEmpty()) if (!rsName.isEmpty())
...@@ -300,8 +300,7 @@ const OUString& GetWindowClassification (const Window* pWindow) ...@@ -300,8 +300,7 @@ const OUString& GetWindowClassification (const Window* pWindow)
} }
else else
{ {
static const OUString aWindow ("window"); return OUString("window");
return aWindow;
} }
} }
......
...@@ -52,7 +52,7 @@ using namespace ::com::sun::star::uno; ...@@ -52,7 +52,7 @@ using namespace ::com::sun::star::uno;
// tragen wir etwas ein, was hier (hoffentlich) nie vorkommt). // tragen wir etwas ein, was hier (hoffentlich) nie vorkommt).
SFX_SLOTMAP(ExtrusionBar) SFX_SLOTMAP(ExtrusionBar)
{ {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}; };
SFX_IMPL_INTERFACE(ExtrusionBar, SfxShell, SVX_RES(RID_SVX_EXTRUSION_BAR)) SFX_IMPL_INTERFACE(ExtrusionBar, SfxShell, SVX_RES(RID_SVX_EXTRUSION_BAR))
......
...@@ -169,7 +169,7 @@ void SetFontWorkShapeTypeState( SdrView* pSdrView, SfxItemSet& rSet ) ...@@ -169,7 +169,7 @@ void SetFontWorkShapeTypeState( SdrView* pSdrView, SfxItemSet& rSet )
// tragen wir etwas ein, was hier (hoffentlich) nie vorkommt). // tragen wir etwas ein, was hier (hoffentlich) nie vorkommt).
SFX_SLOTMAP(FontworkBar) SFX_SLOTMAP(FontworkBar)
{ {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}; };
SFX_IMPL_INTERFACE(FontworkBar, SfxShell, SVX_RES(RID_SVX_FONTWORK_BAR)) SFX_IMPL_INTERFACE(FontworkBar, SfxShell, SVX_RES(RID_SVX_FONTWORK_BAR))
......
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