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