summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-05 21:30:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-05 22:41:56 +0000
commit9999eab5fe5e92118574468905cae0e3c8982c7f (patch)
tree2bc04015f09e30c8d8dbb000f12f08749c21be59 /sw
parentb234008ba5096f251fffec4c467f2103f4ba3cc0 (diff)
getPropertyMap can return a reference instead of a pointer
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/accpara.cxx8
-rw-r--r--sw/source/core/unocore/SwXTextDefaults.cxx10
-rw-r--r--sw/source/core/unocore/unodraw.cxx10
-rw-r--r--sw/source/core/unocore/unofield.cxx8
-rw-r--r--sw/source/core/unocore/unoframe.cxx10
-rw-r--r--sw/source/core/unocore/unoidx.cxx8
-rw-r--r--sw/source/core/unocore/unoobj.cxx16
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx26
-rw-r--r--sw/source/core/unocore/unoport.cxx16
-rw-r--r--sw/source/core/unocore/unosect.cxx10
-rw-r--r--sw/source/core/unocore/unosett.cxx16
-rw-r--r--sw/source/core/unocore/unosrch.cxx6
-rw-r--r--sw/source/core/unocore/unostyle.cxx46
-rw-r--r--sw/source/core/unocore/unotbl.cxx20
-rw-r--r--sw/source/core/unocore/unotext.cxx10
-rw-r--r--sw/source/ui/uno/unoatxt.cxx4
-rw-r--r--sw/source/ui/uno/unomailmerge.cxx8
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx10
-rw-r--r--sw/source/ui/uno/unotxvw.cxx4
19 files changed, 123 insertions, 123 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 1133da647cac..30c3165e09c9 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -1274,9 +1274,9 @@ void SwAccessibleParagraph::_getDefaultAttributesImpl(
// build-up sequence containing the run attributes <rDefAttrSeq>
tAccParaPropValMap aDefAttrSeq;
{
- const SfxItemPropertyMap* pPropMap =
+ const SfxItemPropertyMap& rPropMap =
aSwMapProvider.GetPropertySet( PROPERTY_MAP_TEXT_CURSOR )->getPropertyMap();
- PropertyEntryVector_t aPropertyEntries = pPropMap->getPropertyEntries();
+ PropertyEntryVector_t aPropertyEntries = rPropMap.getPropertyEntries();
PropertyEntryVector_t::const_iterator aPropIt = aPropertyEntries.begin();
while ( aPropIt != aPropertyEntries.end() )
{
@@ -1505,9 +1505,9 @@ void SwAccessibleParagraph::_getRunAttributesImpl(
uno::Sequence< ::rtl::OUString > aDummy;
_getDefaultAttributesImpl( aDummy, aDefAttrSeq, true ); // #i82637#
- const SfxItemPropertyMap* pPropMap =
+ const SfxItemPropertyMap& rPropMap =
aSwMapProvider.GetPropertySet( PROPERTY_MAP_TEXT_CURSOR )->getPropertyMap();
- PropertyEntryVector_t aPropertyEntries = pPropMap->getPropertyEntries();
+ PropertyEntryVector_t aPropertyEntries = rPropMap.getPropertyEntries();
PropertyEntryVector_t::const_iterator aPropIt = aPropertyEntries.begin();
while ( aPropIt != aPropertyEntries.end() )
{
diff --git a/sw/source/core/unocore/SwXTextDefaults.cxx b/sw/source/core/unocore/SwXTextDefaults.cxx
index 2dbfec6946fe..35c6f89821c5 100644
--- a/sw/source/core/unocore/SwXTextDefaults.cxx
+++ b/sw/source/core/unocore/SwXTextDefaults.cxx
@@ -80,7 +80,7 @@ void SAL_CALL SwXTextDefaults::setPropertyValue( const OUString& rPropertyName,
SolarMutexGuard aGuard;
if (!m_pDoc)
throw RuntimeException();
- const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if ( pMap->nFlags & PropertyAttribute::READONLY)
@@ -146,7 +146,7 @@ Any SAL_CALL SwXTextDefaults::getPropertyValue( const OUString& rPropertyName )
SolarMutexGuard aGuard;
if (!m_pDoc)
throw RuntimeException();
- const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
Any aRet;
@@ -192,7 +192,7 @@ PropertyState SAL_CALL SwXTextDefaults::getPropertyState( const OUString& rPrope
PropertyState eRet = PropertyState_DIRECT_VALUE;
if (!m_pDoc)
throw RuntimeException();
- const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
@@ -223,7 +223,7 @@ void SAL_CALL SwXTextDefaults::setPropertyToDefault( const OUString& rPropertyNa
{
if (!m_pDoc)
throw RuntimeException();
- const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if ( pMap->nFlags & PropertyAttribute::READONLY)
@@ -238,7 +238,7 @@ Any SAL_CALL SwXTextDefaults::getPropertyDefault( const OUString& rPropertyName
{
if (!m_pDoc)
throw RuntimeException();
- const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry *pMap = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
Any aRet;
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 3746ed1f3efe..834d14d628ad 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -1129,7 +1129,7 @@ void SwXShape::setPropertyValue(const rtl::OUString& rPropertyName, const uno::A
{
SolarMutexGuard aGuard;
SwFrmFmt* pFmt = GetFrmFmt();
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if(xShapeAgg.is())
{
if(pEntry)
@@ -1471,7 +1471,7 @@ uno::Any SwXShape::getPropertyValue(const rtl::OUString& rPropertyName)
SwFrmFmt* pFmt = GetFrmFmt();
if(xShapeAgg.is())
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
if(pFmt)
@@ -1736,7 +1736,7 @@ uno::Sequence< beans::PropertyState > SwXShape::getPropertyStates(
uno::Reference< XPropertyState > xShapePrState;
for(sal_Int32 nProperty = 0; nProperty < aPropertyNames.getLength(); nProperty++)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( pNames[nProperty] );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( pNames[nProperty] );
if(pEntry)
{
if(RES_OPAQUE == pEntry->nWID)
@@ -1822,7 +1822,7 @@ void SwXShape::setPropertyToDefault( const rtl::OUString& rPropertyName )
SwFrmFmt* pFmt = GetFrmFmt();
if(xShapeAgg.is())
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -1886,7 +1886,7 @@ uno::Any SwXShape::getPropertyDefault( const rtl::OUString& rPropertyName )
uno::Any aRet;
if(xShapeAgg.is())
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
if(pEntry->nWID < RES_FRMATR_END && pFmt)
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 113cbca373c7..0b2a6fd1f854 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -306,7 +306,7 @@ sal_uInt16 GetFieldTypeMId( const OUString& rProperty, const SwFieldType& rTyp )
nId = USHRT_MAX;
else
{
- const SfxItemPropertySimpleEntry* pEntry = pSet->getPropertyMap()->getByName(rProperty);
+ const SfxItemPropertySimpleEntry* pEntry = pSet->getPropertyMap().getByName(rProperty);
nId = pEntry ? pEntry->nWID : USHRT_MAX;
}
return nId;
@@ -1869,7 +1869,7 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An
SwField* pField = (SwField*)GetField();
const SfxItemPropertySet* _pPropSet = aSwMapProvider.GetPropertySet(
lcl_GetPropertyMapOfService( m_nServiceId));
- const SfxItemPropertySimpleEntry* pEntry = _pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = _pPropSet->getPropertyMap().getByName(rPropertyName);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
@@ -2028,11 +2028,11 @@ uno::Any SwXTextField::getPropertyValue(const OUString& rPropertyName)
const SwField* pField = GetField();
const SfxItemPropertySet* _pPropSet = aSwMapProvider.GetPropertySet(
lcl_GetPropertyMapOfService( m_nServiceId));
- const SfxItemPropertySimpleEntry* pEntry = _pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = _pPropSet->getPropertyMap().getByName(rPropertyName);
if(!pEntry )
{
const SfxItemPropertySet* _pParaPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_PARAGRAPH_EXTENSIONS);
- pEntry = _pParaPropSet->getPropertyMap()->getByName(rPropertyName);
+ pEntry = _pParaPropSet->getPropertyMap().getByName(rPropertyName);
}
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index 517ed01f61e7..ebf73ac348e1 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -935,7 +935,7 @@ void SwXFrame::setPropertyValue(const :: OUString& rPropertyName, const :: uno::
{
SolarMutexGuard aGuard;
SwFrmFmt* pFmt = GetFrmFmt();
- const :: SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const :: SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
@@ -1403,7 +1403,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
SolarMutexGuard aGuard;
uno::Any aAny;
SwFrmFmt* pFmt = GetFrmFmt();
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
@@ -1738,7 +1738,7 @@ uno::Sequence< beans::PropertyState > SwXFrame::getPropertyStates(
const SwAttrSet& rFmtSet = pFmt->GetAttrSet();
for(int i = 0; i < aPropertyNames.getLength(); i++)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(pNames[i]);
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(pNames[i]);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pNames[i], static_cast < cppu::OWeakObject * > ( this ) );
@@ -1795,7 +1795,7 @@ void SwXFrame::setPropertyToDefault( const OUString& rPropertyName )
SwFrmFmt* pFmt = GetFrmFmt();
if(pFmt)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -1892,7 +1892,7 @@ uno::Any SwXFrame::getPropertyDefault( const OUString& rPropertyName )
SwFrmFmt* pFmt = GetFrmFmt();
if(pFmt)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pEntry)
{
if ( pEntry->nWID < RES_FRMATR_END )
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 50e7f59e9cfb..f4fd5d7a9d51 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -578,7 +578,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
SolarMutexGuard aGuard;
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -894,7 +894,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
uno::Any aRet;
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -2094,7 +2094,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
SolarMutexGuard aGuard;
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -2219,7 +2219,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
uno::Any aRet;
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 604a5dd081c4..b4ea3fc0a364 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -1853,7 +1853,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
{
uno::Any aAny;
SfxItemPropertySimpleEntry const*const pEntry =
- rPropSet.getPropertyMap()->getByName(rPropertyName);
+ rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
@@ -1892,7 +1892,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
{
SwDoc *const pDoc = rPaM.GetDoc();
SfxItemPropertySimpleEntry const*const pEntry =
- rPropSet.getPropertyMap()->getByName(rPropertyName);
+ rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -1930,7 +1930,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
const OUString* pNames = rPropertyNames.getConstArray();
uno::Sequence< beans::PropertyState > aRet(rPropertyNames.getLength());
beans::PropertyState* pStates = aRet.getArray();
- SfxItemPropertyMap const*const pMap = rPropSet.getPropertyMap();
+ const SfxItemPropertyMap &rMap = rPropSet.getPropertyMap();
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::std::auto_ptr<SfxItemSet> pSet;
::std::auto_ptr<SfxItemSet> pSetParent;
@@ -1939,7 +1939,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
for (sal_Int32 i = 0, nEnd = rPropertyNames.getLength(); i < nEnd; i++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- pMap->getByName( pNames[i] );
+ rMap.getByName( pNames[i] );
if(!pEntry)
{
if (pNames[i].equalsAsciiL( SW_PROP_NAME(UNO_NAME_IS_SKIP_HIDDEN_TEXT)) ||
@@ -2078,7 +2078,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
{
SwDoc & rDoc = *rPaM.GetDoc();
SfxItemPropertySimpleEntry const*const pEntry =
- rPropSet.getPropertyMap()->getByName(rPropertyName);
+ rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -2119,7 +2119,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
uno::RuntimeException)
{
SfxItemPropertySimpleEntry const*const pEntry =
- rPropSet.getPropertyMap()->getByName(rPropertyName);
+ rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -2389,7 +2389,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
for (sal_Int32 i = 0; i < nCount; i++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName( pNames[i] );
+ m_pImpl->m_rPropSet.getPropertyMap().getByName( pNames[i] );
if (!pEntry)
{
if (pNames[i].equalsAsciiL(
@@ -2461,7 +2461,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
for (sal_Int32 i = 0; i < nCount; i++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName( pNames[i] );
+ m_pImpl->m_rPropSet.getPropertyMap().getByName( pNames[i] );
if (!pEntry)
{
if (pNames[i].equalsAsciiL(
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index dfdc1945440b..930eaf9376d9 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -394,12 +394,12 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
SwCursor aCursor( aPos, 0, false );
const OUString* pPropertyNames = rPropertyNames.getConstArray();
const uno::Any* pValues = rValues.getConstArray();
- SfxItemPropertyMap const*const pMap = m_rPropSet.getPropertyMap();
+ const SfxItemPropertyMap &rMap = m_rPropSet.getPropertyMap();
SwParaSelection aParaSel( aCursor );
for (sal_Int32 nProp = 0; nProp < rPropertyNames.getLength(); nProp++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- pMap->getByName( pPropertyNames[nProp] );
+ rMap.getByName( pPropertyNames[nProp] );
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -454,12 +454,12 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
SwPaM aPam( aPos );
uno::Any* pValues = aValues.getArray();
const OUString* pPropertyNames = rPropertyNames.getConstArray();
- SfxItemPropertyMap const*const pMap = m_rPropSet.getPropertyMap();
+ const SfxItemPropertyMap &rMap = m_rPropSet.getPropertyMap();
const SwAttrSet& rAttrSet( rTxtNode.GetSwAttrSet() );
for (sal_Int32 nProp = 0; nProp < rPropertyNames.getLength(); nProp++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- pMap->getByName( pPropertyNames[nProp] );
+ rMap.getByName( pPropertyNames[nProp] );
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -566,7 +566,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
beans::SetPropertyTolerantFailed *pFailed = aFailed.getArray();
// get entry to start with
- SfxItemPropertyMap const*const pPropMap =
+ const SfxItemPropertyMap &rPropMap =
m_pImpl->m_rPropSet.getPropertyMap();
OUString sTmp;
@@ -580,7 +580,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
pFailed[ nFailed ].Name = pProp[i];
SfxItemPropertySimpleEntry const*const pEntry =
- pPropMap->getByName( pProp[i] );
+ rPropMap.getByName( pProp[i] );
if (!pEntry)
{
pFailed[ nFailed++ ].Result =
@@ -687,7 +687,7 @@ throw (uno::RuntimeException)
sal_Int32 nIdx = 0;
// get entry to start with
- SfxItemPropertyMap const*const pPropMap = m_rPropSet.getPropertyMap();
+ const SfxItemPropertyMap &rPropMap = m_rPropSet.getPropertyMap();
for (sal_Int32 i = 0; i < nProps; ++i)
{
@@ -699,7 +699,7 @@ throw (uno::RuntimeException)
rResult.Name = pProp[i];
SfxItemPropertySimpleEntry const*const pEntry =
- pPropMap->getByName( pProp[i] );
+ rPropMap.getByName( pProp[i] );
if (!pEntry) // property available?
{
rResult.Result =
@@ -922,7 +922,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
const SwAttrSet* pSet = 0;
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -948,7 +948,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
const OUString* pNames = PropertyNames.getConstArray();
uno::Sequence< beans::PropertyState > aRet(PropertyNames.getLength());
beans::PropertyState* pStates = aRet.getArray();
- SfxItemPropertyMap const*const pMap = m_pImpl->m_rPropSet.getPropertyMap();
+ const SfxItemPropertyMap &rMap = m_pImpl->m_rPropSet.getPropertyMap();
const SwAttrSet* pSet = 0;
sal_Bool bAttrSetFetched = sal_False;
@@ -956,7 +956,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
++i, ++pStates, ++pNames)
{
SfxItemPropertySimpleEntry const*const pEntry =
- pMap->getByName( *pNames );
+ rMap.getByName( *pNames );
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -999,7 +999,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
// select paragraph
SwParaSelection aParaSel( aCursor );
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName( rPropertyName );
+ m_pImpl->m_rPropSet.getPropertyMap().getByName( rPropertyName );
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -1069,7 +1069,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
}
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index e427fe7a827c..57ee034b72ca 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -416,10 +416,10 @@ uno::Sequence< uno::Any > SAL_CALL SwXTextPortion::GetPropertyValues_Impl(
SfxItemSet *pSet = 0;
// get startting pount fo the look-up, either the provided one or else
// from the beginning of the map
- const SfxItemPropertyMap* pMap = m_pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = m_pPropSet->getPropertyMap();
for(sal_Int32 nProp = 0; nProp < nLength; nProp++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName(pPropertyNames[nProp]);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName(pPropertyNames[nProp]);
if(pEntry)
{
GetPropertyValue( pValues[nProp], *pEntry, pUnoCrsr, pSet );
@@ -455,10 +455,10 @@ void SAL_CALL SwXTextPortion::SetPropertyValues_Impl(
{
const OUString* pPropertyNames = rPropertyNames.getConstArray();
const uno::Any* pValues = rValues.getConstArray();
- const SfxItemPropertyMap* pMap = m_pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = m_pPropSet->getPropertyMap();
for(sal_Int32 nProp = 0; nProp < rPropertyNames.getLength(); nProp++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName(pPropertyNames[nProp]);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName(pPropertyNames[nProp]);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pPropertyNames[nProp], static_cast < cppu::OWeakObject * > ( this ) );
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -541,7 +541,7 @@ uno::Sequence< beans::SetPropertyTolerantFailed > SAL_CALL SwXTextPortion::setPr
uno::Sequence< beans::SetPropertyTolerantFailed > aFailed( nProps );
beans::SetPropertyTolerantFailed *pFailed = aFailed.getArray();
- const SfxItemPropertyMap* pPropMap = m_pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rPropMap = m_pPropSet->getPropertyMap();
OUString sTmp;
for (sal_Int32 i = 0; i < nProps; ++i)
@@ -550,7 +550,7 @@ uno::Sequence< beans::SetPropertyTolerantFailed > SAL_CALL SwXTextPortion::setPr
{
pFailed[ nFailed ].Name = pProp[i];
- const SfxItemPropertySimpleEntry* pEntry = pPropMap->getByName( pProp[i] );
+ const SfxItemPropertySimpleEntry* pEntry = rPropMap.getByName( pProp[i] );
if (!pEntry)
pFailed[ nFailed++ ].Result = beans::TolerantPropertySetResultType::UNKNOWN_PROPERTY;
else
@@ -633,7 +633,7 @@ uno::Sequence< beans::GetDirectPropertyTolerantResult > SAL_CALL SwXTextPortion:
SfxItemSet *pSet = 0;
- const SfxItemPropertyMap* pPropMap = m_pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rPropMap = m_pPropSet->getPropertyMap();
uno::Sequence< beans::PropertyState > aPropertyStates =
SwUnoCursorHelper::GetPropertyStates(
@@ -658,7 +658,7 @@ uno::Sequence< beans::GetDirectPropertyTolerantResult > SAL_CALL SwXTextPortion:
}
else
{
- const SfxItemPropertySimpleEntry* pEntry = pPropMap->getByName( pProp[i] );
+ const SfxItemPropertySimpleEntry* pEntry = rPropMap.getByName( pProp[i] );
aResult.State = pPropertyStates[i];
aResult.Result = beans::TolerantPropertySetResultType::UNKNOWN_FAILURE;
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 916607fc9505..535ff043cb21 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -588,7 +588,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
nProperty++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- m_rPropSet.getPropertyMap()->getByName(pPropertyNames[nProperty]);
+ m_rPropSet.getPropertyMap().getByName(pPropertyNames[nProperty]);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -992,7 +992,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
nProperty++)
{
SfxItemPropertySimpleEntry const*const pEntry =
- m_rPropSet.getPropertyMap()->getByName(pPropertyNames[nProperty]);
+ m_rPropSet.getPropertyMap().getByName(pPropertyNames[nProperty]);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -1419,7 +1419,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
{
pStates[i] = beans::PropertyState_DEFAULT_VALUE;
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName( pNames[i]);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName( pNames[i]);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -1495,7 +1495,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException)
}
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
@@ -1639,7 +1639,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
uno::Any aRet;
SwSectionFmt *const pFmt = m_pImpl->GetSectionFmt();
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
throw beans::UnknownPropertyException(
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx
index 03f46e4171b6..76cf9c8cf488 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -341,7 +341,7 @@ void SwXFootnoteProperties::setPropertyValue(const OUString& rPropertyName, cons
SolarMutexGuard aGuard;
if(pDoc)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
if ( pEntry->nFlags & PropertyAttribute::READONLY)
@@ -464,7 +464,7 @@ uno::Any SwXFootnoteProperties::getPropertyValue(const OUString& rPropertyName)
uno::Any aRet;
if(pDoc)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
const SwFtnInfo& rFtnInfo = pDoc->GetFtnInfo();
@@ -652,7 +652,7 @@ void SwXEndnoteProperties::setPropertyValue(const OUString& rPropertyName, const
SolarMutexGuard aGuard;
if(pDoc)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
if ( pEntry->nFlags & PropertyAttribute::READONLY)
@@ -730,7 +730,7 @@ uno::Any SwXEndnoteProperties::getPropertyValue(const OUString& rPropertyName)
uno::Any aRet;
if(pDoc)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
const SwEndNoteInfo& rEndInfo = pDoc->GetEndNoteInfo();
@@ -884,7 +884,7 @@ void SwXLineNumberingProperties::setPropertyValue(
SolarMutexGuard aGuard;
if(pDoc)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
if ( pEntry->nFlags & PropertyAttribute::READONLY)
@@ -1003,7 +1003,7 @@ Any SwXLineNumberingProperties::getPropertyValue(const OUString& rPropertyName)
Any aRet;
if(pDoc)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropertySet->getPropertyMap().getByName( rPropertyName );
if(pEntry)
{
const SwLineNumberInfo& rInfo = pDoc->GetLineNumberInfo();
@@ -2483,7 +2483,7 @@ void SwXTextColumns::setPropertyValue( const OUString& rPropertyName, const Any&
throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException,
WrappedTargetException, RuntimeException)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if ( pEntry->nFlags & PropertyAttribute::READONLY)
@@ -2558,7 +2558,7 @@ void SwXTextColumns::setPropertyValue( const OUString& rPropertyName, const Any&
Any SwXTextColumns::getPropertyValue( const OUString& rPropertyName )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index bd1d4ce942bc..9ad8a5fe8da0 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -65,7 +65,7 @@ public:
SwSearchProperties_Impl::SwSearchProperties_Impl() :
nArrLen(0),
- aPropertyEntries( aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR)->getPropertyMap()->getPropertyEntries())
+ aPropertyEntries( aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR)->getPropertyMap().getPropertyEntries())
{
nArrLen = aPropertyEntries.size();
pValueArr = new beans::PropertyValue*[nArrLen];
@@ -555,7 +555,7 @@ void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const uno::A
lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException )
{
SolarMutexGuard aGuard;
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pEntry)
{
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -588,7 +588,7 @@ uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName) throw( b
SolarMutexGuard aGuard;
uno::Any aRet;
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
sal_Bool bSet = sal_False;
if(pEntry)
{
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 5b924bf01406..c5cb4c5e4870 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1064,7 +1064,7 @@ class SwStyleProperties_Impl
sal_uInt32 nArrLen;
public:
- SwStyleProperties_Impl(const SfxItemPropertyMap* _pMap);
+ SwStyleProperties_Impl(const SfxItemPropertyMap& rMap);
~SwStyleProperties_Impl();
sal_Bool SetProperty(const ::rtl::OUString& rName, uno::Any aVal);
@@ -1077,8 +1077,8 @@ public:
};
-SwStyleProperties_Impl::SwStyleProperties_Impl(const SfxItemPropertyMap* pMap) :
- aPropertyEntries( pMap->getPropertyEntries() ),
+SwStyleProperties_Impl::SwStyleProperties_Impl(const SfxItemPropertyMap& rMap) :
+ aPropertyEntries( rMap.getPropertyEntries() ),
nArrLen(0)
{
nArrLen = aPropertyEntries.size();
@@ -2092,7 +2092,7 @@ void SAL_CALL SwXStyle::SetPropertyValues_Impl(
;
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap &rMap = pPropSet->getPropertyMap();
if(rPropertyNames.getLength() != rValues.getLength())
throw lang::IllegalArgumentException();
@@ -2116,7 +2116,7 @@ void SAL_CALL SwXStyle::SetPropertyValues_Impl(
for(sal_Int16 nProp = 0; nProp < rPropertyNames.getLength(); nProp++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( pNames[nProp]);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( pNames[nProp]);
if(!pEntry ||
(!bIsConditional && pNames[nProp].equalsAsciiL(SW_PROP_NAME(UNO_NAME_PARA_STYLE_CONDITIONS))))
@@ -2366,7 +2366,7 @@ uno::Sequence< uno::Any > SAL_CALL SwXStyle::GetPropertyValues_Impl(
;
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap &rMap = pPropSet->getPropertyMap();
const OUString* pNames = rPropertyNames.getConstArray();
uno::Sequence< uno::Any > aRet(rPropertyNames.getLength());
@@ -2375,7 +2375,7 @@ uno::Sequence< uno::Any > SAL_CALL SwXStyle::GetPropertyValues_Impl(
SfxStyleSheetBase* pBase = 0;
for(sal_Int32 nProp = 0; nProp < rPropertyNames.getLength(); nProp++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( pNames[nProp]);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( pNames[nProp]);
if(!pEntry ||
(!bIsConditional && pNames[nProp].equalsAsciiL(SW_PROP_NAME(UNO_NAME_PARA_STYLE_CONDITIONS))))
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pNames[nProp], static_cast < cppu::OWeakObject * > ( this ) );
@@ -2577,13 +2577,13 @@ uno::Sequence< beans::PropertyState > SwXStyle::getPropertyStates(
;
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap &rMap = pPropSet->getPropertyMap();
SfxItemSet aSet = xStyle->GetItemSet();
for(sal_Int32 i = 0; i < rPropertyNames.getLength(); i++)
{
const String& rPropName = pNames[i];
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( rPropName);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( rPropName);
if(!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropName, static_cast < cppu::OWeakObject * > ( this ) );
if( FN_UNO_NUM_RULES == pEntry->nWID ||
@@ -2696,7 +2696,7 @@ void SAL_CALL SwXStyle::setPropertiesToDefault( const uno::Sequence< OUString >&
;
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap &rMap = pPropSet->getPropertyMap();
const OUString* pNames = aPropertyNames.getConstArray();
@@ -2704,7 +2704,7 @@ void SAL_CALL SwXStyle::setPropertiesToDefault( const uno::Sequence< OUString >&
{
for( sal_Int32 nProp = 0, nEnd = aPropertyNames.getLength(); nProp < nEnd; nProp++ )
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( pNames[nProp] );
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( pNames[nProp] );
if( !pEntry )
throw beans::UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is unknown: " ) ) + pNames[nProp], static_cast < cppu::OWeakObject * > ( this ) );
if ( pEntry->nWID == FN_UNO_FOLLOW_STYLE || pEntry->nWID == FN_UNO_NUM_RULES )
@@ -2862,14 +2862,14 @@ uno::Sequence< uno::Any > SAL_CALL SwXStyle::getPropertyDefaults( const uno::Seq
;
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap* pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap();
const SfxItemSet &rSet = xStyle->GetItemSet(), *pParentSet = rSet.GetParent();
const OUString *pNames = aPropertyNames.getConstArray();
uno::Any *pRet = aRet.getArray();
for ( sal_Int32 i = 0 ; i < nCount; i++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( pNames[i] );
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( pNames[i] );
if ( !pEntry )
throw beans::UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pNames[i], static_cast < cppu::OWeakObject * > ( this ) );
@@ -2968,7 +2968,7 @@ void SAL_CALL SwXPageStyle::SetPropertyValues_Impl(
const OUString* pNames = rPropertyNames.getConstArray();
const uno::Any* pValues = rValues.getConstArray();
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_PAGE_STYLE);
- const SfxItemPropertyMap* pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap();
SwStyleBase_Impl aBaseImpl(*GetDoc(), GetStyleName());
if(GetBasePool())
{
@@ -2985,7 +2985,7 @@ void SAL_CALL SwXPageStyle::SetPropertyValues_Impl(
for(sal_Int16 nProp = 0; nProp < rPropertyNames.getLength(); nProp++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( pNames[nProp] );
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( pNames[nProp] );
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pNames[nProp], static_cast < cppu::OWeakObject * > ( this ) );
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -3227,12 +3227,12 @@ uno::Sequence< uno::Any > SAL_CALL SwXPageStyle::GetPropertyValues_Impl(
uno::Any* pRet = aRet.getArray();
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_PAGE_STYLE);
- const SfxItemPropertyMap* pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap();
SwStyleBase_Impl aBase(*GetDoc(), GetStyleName());
SfxStyleSheetBase* pBase = 0;
for(sal_Int32 nProp = 0; nProp < nLength; nProp++)
{
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName( pNames[nProp] );
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName( pNames[nProp] );
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + pNames[nProp], static_cast < cppu::OWeakObject * > ( this ) );
@@ -3915,7 +3915,7 @@ uno::Sequence< uno::Any > SwXAutoStyle::GetPropertyValues_Impl(
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap();
const OUString* pNames = rPropertyNames.getConstArray();
sal_Int32 nLen = rPropertyNames.getLength();
@@ -3927,7 +3927,7 @@ uno::Sequence< uno::Any > SwXAutoStyle::GetPropertyValues_Impl(
for( sal_Int32 i = 0; i < nLen; ++i )
{
const String& rPropName = pNames[i];
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName(rPropName);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName(rPropName);
if(!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropName, static_cast < cppu::OWeakObject * > ( this ) );
else if ( RES_TXTATR_AUTOFMT == pEntry->nWID || RES_AUTO_STYLE == pEntry->nWID )
@@ -4035,12 +4035,12 @@ uno::Sequence< beans::PropertyState > SwXAutoStyle::getPropertyStates(
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
+ const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap();
SfxItemSet& rSet = *pSet.get();
for(sal_Int32 i = 0; i < rPropertyNames.getLength(); i++)
{
const String& rPropName = pNames[i];
- const SfxItemPropertySimpleEntry* pEntry = pMap->getByName(rPropName);
+ const SfxItemPropertySimpleEntry* pEntry = rMap.getByName(rPropName);
if(!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropName, static_cast < cppu::OWeakObject * > ( this ) );
pStates[i] = pPropSet->getPropertyState(*pEntry, rSet );
@@ -4086,8 +4086,8 @@ uno::Sequence< beans::PropertyValue > SwXAutoStyle::getProperties() throw (uno::
}
const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId);
- const SfxItemPropertyMap *pMap = pPropSet->getPropertyMap();
- PropertyEntryVector_t aPropVector = pMap->getPropertyEntries();
+ const SfxItemPropertyMap &rMap = pPropSet->getPropertyMap();
+ PropertyEntryVector_t aPropVector = rMap.getPropertyEntries();
SfxItemSet& rSet = *pSet.get();
SfxItemIter aIter(rSet);
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index f6632ea78454..42cf9b21c993 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1073,7 +1073,7 @@ void SwXCell::setPropertyValue(const OUString& rPropertyName, const uno::Any& aV
else
{
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if( !pEntry )
{
beans::UnknownPropertyException aEx;
@@ -1105,7 +1105,7 @@ uno::Any SwXCell::getPropertyValue(const OUString& rPropertyName)
if(IsValid())
{
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if( !pEntry )
{
beans::UnknownPropertyException aEx;
@@ -1340,7 +1340,7 @@ void SwXTextTableRow::setPropertyValue(const OUString& rPropertyName,
if(pLn)
{
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
SwDoc* pDoc = pFmt->GetDoc();
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
@@ -1400,7 +1400,7 @@ uno::Any SwXTextTableRow::getPropertyValue(const OUString& rPropertyName) throw(
if(pLn)
{
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if (!pEntry)
throw beans::UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
@@ -1755,7 +1755,7 @@ void SwXTextTableCursor::setPropertyValue(const OUString& rPropertyName,
lcl_FormatTable((SwFrmFmt*)pTblNode->GetTable().GetFrmFmt());
SwUnoTableCrsr* pTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pUnoCrsr);
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pEntry)
{
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -1817,7 +1817,7 @@ uno::Any SwXTextTableCursor::getPropertyValue(const OUString& rPropertyName)
lcl_FormatTable((SwFrmFmt*)pTblNode->GetTable().GetFrmFmt());
SwUnoTableCrsr* pTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pUnoCrsr);
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pEntry)
{
pTblCrsr->MakeBoxSels();
@@ -3001,7 +3001,7 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName,
if(!aValue.hasValue())
throw lang::IllegalArgumentException();
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if( !pEntry )
throw lang::IllegalArgumentException();
if(pFmt)
@@ -3207,7 +3207,7 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be
uno::Any aRet;
SwFrmFmt* pFmt = GetFrmFmt();
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pFmt)
{
if (!pEntry)
@@ -3773,7 +3773,7 @@ void SwXCellRange::setPropertyValue(const OUString& rPropertyName,
/* ASK OLIVER
lcl_FormatTable(pFmt);*/
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pEntry)
{
if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
@@ -3898,7 +3898,7 @@ uno::Any SwXCellRange::getPropertyValue(const OUString& rPropertyName) throw( be
/* ASK OLIVER
lcl_FormatTable(pFmt);*/
const SfxItemPropertySimpleEntry* pEntry =
- m_pPropSet->getPropertyMap()->getByName(rPropertyName);
+ m_pPropSet->getPropertyMap().getByName(rPropertyName);
if(pEntry)
{
switch(pEntry->nWID )
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 820239f1afb1..180dd3738551 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -1147,7 +1147,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
}
SfxItemPropertySimpleEntry const*const pEntry =
- m_pImpl->m_rPropSet.getPropertyMap()->getByName(rPropertyName);
+ m_pImpl->m_rPropSet.getPropertyMap().getByName(rPropertyName);
if (!pEntry)
{
beans::UnknownPropertyException aExcept;
@@ -1308,14 +1308,14 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
// now set the properties
SfxItemPropertySet const*const pParaPropSet =
aSwMapProvider.GetPropertySet(PROPERTY_MAP_PARAGRAPH);
- SfxItemPropertyMap const*const pParagraphMap =
+ const SfxItemPropertyMap &rParagraphMap =
pParaPropSet->getPropertyMap();
const beans::PropertyValue* pValues = rProperties.getConstArray();
for (sal_Int32 nProp = 0; nProp < rProperties.getLength(); ++nProp)
{
- if (!pParagraphMap->getByName(pValues[nProp].Name))
+ if (!rParagraphMap.getByName(pValues[nProp].Name))
{
bIllegalException = true;
break;
@@ -1415,7 +1415,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (rCharacterAndParagraphProperties.getLength())
{
- SfxItemPropertyMap const*const pCursorMap =
+ const SfxItemPropertyMap &rCursorMap =
aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR)
->getPropertyMap();
beans::PropertyValue const*const pValues =
@@ -1425,7 +1425,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
const sal_Int32 nLen(rCharacterAndParagraphProperties.getLength());
for (sal_Int32 nProp = 0; nProp < nLen; ++nProp)
{
- if (!pCursorMap->getByName( pValues[nProp].Name ))
+ if (!rCursorMap.getByName( pValues[nProp].Name ))
{
bIllegalException = true;
break;
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx
index 413bac67a5f9..40bd990d707c 100644
--- a/sw/source/ui/uno/unoatxt.cxx
+++ b/sw/source/ui/uno/unoatxt.cxx
@@ -644,7 +644,7 @@ void SwXAutoTextGroup::setPropertyValue(
lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
SolarMutexGuard aGuard;
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName );
if(!pEntry)
throw beans::UnknownPropertyException();
@@ -674,7 +674,7 @@ uno::Any SwXAutoTextGroup::getPropertyValue(const OUString& rPropertyName)
throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
{
SolarMutexGuard aGuard;
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw beans::UnknownPropertyException();
diff --git a/sw/source/ui/uno/unomailmerge.cxx b/sw/source/ui/uno/unomailmerge.cxx
index d0852a167c3a..4b6a8a1402fe 100644
--- a/sw/source/ui/uno/unomailmerge.cxx
+++ b/sw/source/ui/uno/unomailmerge.cxx
@@ -882,7 +882,7 @@ void SAL_CALL SwXMailMerge::setPropertyValue(
{
SolarMutexGuard aGuard;
- const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pCur)
throw UnknownPropertyException();
else if (pCur->nFlags & PropertyAttribute::READONLY)
@@ -1039,7 +1039,7 @@ uno::Any SAL_CALL SwXMailMerge::getPropertyValue(
Any aRet;
- const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pCur)
throw UnknownPropertyException();
else
@@ -1093,7 +1093,7 @@ void SAL_CALL SwXMailMerge::addPropertyChangeListener(
SolarMutexGuard aGuard;
if (!bDisposing && rListener.is())
{
- const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap().getByName( rPropertyName );
if (pCur)
aPropListeners.addInterface( pCur->nWID, rListener );
else
@@ -1109,7 +1109,7 @@ void SAL_CALL SwXMailMerge::removePropertyChangeListener(
SolarMutexGuard aGuard;
if (!bDisposing && rListener.is())
{
- const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap().getByName( rPropertyName );
if (pCur)
aPropListeners.removeInterface( pCur->nWID, rListener );
else
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index f27d9c877599..77d399dda090 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -1837,7 +1837,7 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName,
SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
@@ -2009,7 +2009,7 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
@@ -2259,7 +2259,7 @@ PropertyState SAL_CALL SwXTextDocument::getPropertyState( const OUString& rPrope
PropertyState eRet = PropertyState_DIRECT_VALUE;
if(!IsValid())
throw RuntimeException();
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
@@ -2291,7 +2291,7 @@ void SAL_CALL SwXTextDocument::setPropertyToDefault( const OUString& rPropertyNa
SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
switch(pEntry->nWID)
@@ -2306,7 +2306,7 @@ Any SAL_CALL SwXTextDocument::getPropertyDefault( const OUString& rPropertyName
SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
- const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
+ const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
Any aAny;
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index c055826d3ca6..8660f18bb2fe 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -921,7 +921,7 @@ void SAL_CALL SwXTextView::setPropertyValue(
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
SolarMutexGuard aGuard;
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException();
else if (pEntry->nFlags & PropertyAttribute::READONLY)
@@ -959,7 +959,7 @@ uno::Any SAL_CALL SwXTextView::getPropertyValue(
Any aRet;
- const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
+ const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException();
else