CWS-TOOLING: integrate CWS impress200

This commit is contained in:
obo
2010-09-14 07:53:51 +02:00
3 changed files with 14 additions and 9 deletions

View File

@@ -64,6 +64,7 @@ public:
sal_Bool AreThereOwnUsrAnys() const { return (pCombiList ? sal_True : sal_False); } sal_Bool AreThereOwnUsrAnys() const { return (pCombiList ? sal_True : sal_False); }
::com::sun::star::uno::Any* GetUsrAnyForID(sal_uInt16 nWID) const; ::com::sun::star::uno::Any* GetUsrAnyForID(sal_uInt16 nWID) const;
void AddUsrAnyForID(const ::com::sun::star::uno::Any& rAny, sal_uInt16 nWID); void AddUsrAnyForID(const ::com::sun::star::uno::Any& rAny, sal_uInt16 nWID);
void ClearAllUsrAny();
com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const; com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const;
const SfxItemPropertyMapEntry* getPropertyMapEntries() const {return _pMap;} const SfxItemPropertyMapEntry* getPropertyMapEntries() const {return _pMap;}

View File

@@ -71,15 +71,7 @@ SvxItemPropertySet::SvxItemPropertySet( const SfxItemPropertyMapEntry* pMap, Sfx
//---------------------------------------------------------------------- //----------------------------------------------------------------------
SvxItemPropertySet::~SvxItemPropertySet() SvxItemPropertySet::~SvxItemPropertySet()
{ {
/* ClearAllUsrAny();
if(pItemPool)
delete pItemPool;
pItemPool = NULL;
*/
if(pCombiList)
delete pCombiList;
pCombiList = NULL;
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
@@ -111,6 +103,17 @@ void SvxItemPropertySet::AddUsrAnyForID(const uno::Any& rAny, sal_uInt16 nWID)
pCombiList->Insert(pNew); pCombiList->Insert(pNew);
} }
//----------------------------------------------------------------------
void SvxItemPropertySet::ClearAllUsrAny()
{
if(pCombiList)
delete pCombiList;
pCombiList = NULL;
}
//----------------------------------------------------------------------
sal_Bool SvxUnoCheckForPositiveValue( const uno::Any& rVal ) sal_Bool SvxUnoCheckForPositiveValue( const uno::Any& rVal )
{ {
sal_Bool bConvert = sal_True; // the default is that all metric items must be converted sal_Bool bConvert = sal_True; // the default is that all metric items must be converted

View File

@@ -708,6 +708,7 @@ void SvxItemPropertySet_ObtainSettingsFromPropertySet(const SvxItemPropertySet&
// next entry // next entry
++aSrcIt; ++aSrcIt;
} }
const_cast< SvxItemPropertySet& >(rPropSet).ClearAllUsrAny();
} }
} }