Kaydet (Commit) 55cd728d authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

clean up and reduce indent levels

Change-Id: Iccc1b3f2499025b8dad920f4b0f4b674b5d394ce
üst 6afc8386
......@@ -717,20 +717,15 @@ void SwXStyleFamily::replaceByName(const OUString& rName, const uno::Any& rEleme
void SwXStyleFamily::removeByName(const OUString& rName) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if(m_pBasePool)
{
m_pBasePool->SetSearchMask(m_eFamily);
OUString aString;
SwStyleNameMapper::FillUIName(rName, aString, lcl_GetSwEnumFromSfxEnum ( m_eFamily ), true );
SfxStyleSheetBase* pBase = m_pBasePool->Find( aString );
if(pBase)
m_pBasePool->Remove(pBase);
else
throw container::NoSuchElementException();
}
else
if(!m_pBasePool)
throw uno::RuntimeException();
m_pBasePool->SetSearchMask(m_eFamily);
OUString sName;
SwStyleNameMapper::FillUIName(rName, sName, lcl_GetSwEnumFromSfxEnum(m_eFamily), true);
SfxStyleSheetBase* pBase = m_pBasePool->Find( sName );
if(!pBase)
throw container::NoSuchElementException();
m_pBasePool->Remove(pBase);
}
uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXStyleFamily::getPropertySetInfo( ) throw (uno::RuntimeException, std::exception)
......
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