svx: SdrEdgeLineDeltaAnzItem -> SdrEdgeLineDeltaCountItem
Change-Id: I91791a3ea21ca7a68d4d1aa49e29cabc38c777ee
This commit is contained in:
@@ -267,7 +267,7 @@ void SvxConnectionPage::Reset( const SfxItemSet* rAttrs )
|
||||
pItem = &pPool->GetDefaultItem( SDRATTR_EDGELINEDELTAANZ );
|
||||
if( pItem )
|
||||
{
|
||||
sal_uInt16 nValue = static_cast<const SdrEdgeLineDeltaAnzItem*>( pItem )->GetValue();
|
||||
sal_uInt16 nValue = static_cast<const SdrEdgeLineDeltaCountItem*>( pItem )->GetValue();
|
||||
if( nValue <= 2 )
|
||||
{
|
||||
m_pFtLine3->Enable( false );
|
||||
|
@@ -23,13 +23,13 @@
|
||||
#include <svx/sdmetitm.hxx>
|
||||
#include <svx/svxdllapi.h>
|
||||
|
||||
class SdrEdgeLineDeltaAnzItem: public SfxUInt16Item {
|
||||
class SdrEdgeLineDeltaCountItem: public SfxUInt16Item {
|
||||
public:
|
||||
SdrEdgeLineDeltaAnzItem(sal_uInt16 nVal=0): SfxUInt16Item(SDRATTR_EDGELINEDELTAANZ,nVal) {}
|
||||
SdrEdgeLineDeltaAnzItem(SvStream& rIn): SfxUInt16Item(SDRATTR_EDGELINEDELTAANZ,rIn) {}
|
||||
SdrEdgeLineDeltaCountItem(sal_uInt16 nVal=0): SfxUInt16Item(SDRATTR_EDGELINEDELTAANZ,nVal) {}
|
||||
SdrEdgeLineDeltaCountItem(SvStream& rIn): SfxUInt16Item(SDRATTR_EDGELINEDELTAANZ,rIn) {}
|
||||
virtual SfxPoolItem* Clone(SfxItemPool*) const override
|
||||
{
|
||||
return new SdrEdgeLineDeltaAnzItem(*this);
|
||||
return new SdrEdgeLineDeltaCountItem(*this);
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -252,7 +252,7 @@ sal_uInt16 SvxXConnectionPreview::GetLineDeltaCount()
|
||||
sal_uInt16 nCount(0);
|
||||
|
||||
if(SfxItemState::DONTCARE != rSet.GetItemState(SDRATTR_EDGELINEDELTAANZ))
|
||||
nCount = static_cast<const SdrEdgeLineDeltaAnzItem&>(rSet.Get(SDRATTR_EDGELINEDELTAANZ)).GetValue();
|
||||
nCount = static_cast<const SdrEdgeLineDeltaCountItem&>(rSet.Get(SDRATTR_EDGELINEDELTAANZ)).GetValue();
|
||||
|
||||
return nCount;
|
||||
}
|
||||
|
@@ -171,7 +171,7 @@ SdrItemPool::SdrItemPool(
|
||||
mppLocalPoolDefaults[SDRATTR_EDGENODE2VERTDIST-SDRATTR_START]=new SdrEdgeNode2VertDistItem(nDefEdgeDist);
|
||||
mppLocalPoolDefaults[SDRATTR_EDGENODE1GLUEDIST-SDRATTR_START]=new SdrEdgeNode1GlueDistItem;
|
||||
mppLocalPoolDefaults[SDRATTR_EDGENODE2GLUEDIST-SDRATTR_START]=new SdrEdgeNode2GlueDistItem;
|
||||
mppLocalPoolDefaults[SDRATTR_EDGELINEDELTAANZ -SDRATTR_START]=new SdrEdgeLineDeltaAnzItem;
|
||||
mppLocalPoolDefaults[SDRATTR_EDGELINEDELTAANZ -SDRATTR_START]=new SdrEdgeLineDeltaCountItem;
|
||||
mppLocalPoolDefaults[SDRATTR_EDGELINE1DELTA -SDRATTR_START]=new SdrMetricItem(SDRATTR_EDGELINE1DELTA, 0);
|
||||
mppLocalPoolDefaults[SDRATTR_EDGELINE2DELTA -SDRATTR_START]=new SdrMetricItem(SDRATTR_EDGELINE2DELTA, 0);
|
||||
mppLocalPoolDefaults[SDRATTR_EDGELINE3DELTA -SDRATTR_START]=new SdrMetricItem(SDRATTR_EDGELINE3DELTA, 0);
|
||||
|
@@ -833,7 +833,7 @@ bool IsItemIneffective(sal_uInt16 nWhich, const SfxItemSet* pSet, sal_uInt16& rI
|
||||
if (eKind!=SDREDGE_ORTHOLINES && eKind!=SDREDGE_BEZIER) return true;
|
||||
}
|
||||
if (ImpGetItem(*pSet,SDRATTR_EDGELINEDELTAANZ,pItem)) {
|
||||
sal_uInt16 nCount=static_cast<const SdrEdgeLineDeltaAnzItem*>(pItem)->GetValue();
|
||||
sal_uInt16 nCount=static_cast<const SdrEdgeLineDeltaCountItem*>(pItem)->GetValue();
|
||||
if (nCount==0) return true;
|
||||
if (nCount==1 && nWhich>SDRATTR_EDGELINE1DELTA) return true;
|
||||
if (nCount==2 && nWhich>SDRATTR_EDGELINE2DELTA) return true;
|
||||
|
@@ -262,7 +262,7 @@ void SdrEdgeObj::ImpSetEdgeInfoToAttr()
|
||||
{
|
||||
const SfxItemSet& rSet = GetObjectItemSet();
|
||||
SdrEdgeKind eKind = static_cast<const SdrEdgeKindItem&>(rSet.Get(SDRATTR_EDGEKIND)).GetValue();
|
||||
sal_Int32 nValAnz = static_cast<const SdrEdgeLineDeltaAnzItem&>(rSet.Get(SDRATTR_EDGELINEDELTAANZ)).GetValue();
|
||||
sal_Int32 nValAnz = static_cast<const SdrEdgeLineDeltaCountItem&>(rSet.Get(SDRATTR_EDGELINEDELTAANZ)).GetValue();
|
||||
sal_Int32 nVal1 = static_cast<const SdrMetricItem&>(rSet.Get(SDRATTR_EDGELINE1DELTA)).GetValue();
|
||||
sal_Int32 nVal2 = static_cast<const SdrMetricItem&>(rSet.Get(SDRATTR_EDGELINE2DELTA)).GetValue();
|
||||
sal_Int32 nVal3 = static_cast<const SdrMetricItem&>(rSet.Get(SDRATTR_EDGELINE3DELTA)).GetValue();
|
||||
@@ -316,7 +316,7 @@ void SdrEdgeObj::ImpSetEdgeInfoToAttr()
|
||||
// Here no more notifying is necessary, just local changes are OK.
|
||||
if(n != nValAnz)
|
||||
{
|
||||
GetProperties().SetObjectItemDirect(SdrEdgeLineDeltaAnzItem(n));
|
||||
GetProperties().SetObjectItemDirect(SdrEdgeLineDeltaCountItem(n));
|
||||
}
|
||||
|
||||
if(nVals[0] != nVal1)
|
||||
|
Reference in New Issue
Block a user