summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-10-01 11:29:42 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-10-01 13:23:48 +0300
commitf1d9c520a2a2df5bdbb02fff7ba8f3a134dfc32d (patch)
tree1b957036d034708e0dfd8d71f7ef3d35510883f2
parent14d9d74717d999aae9d4ffb1e8c2e6369fef69fa (diff)
Deduplication of NavigationOrderAccess for disable-dynlinking
Change-Id: I70238711222a12cb6bd843ebbc742a21a325810d
-rw-r--r--sd/source/ui/unoidl/unopage.cxx18
-rw-r--r--xmloff/source/draw/ximppage.cxx16
2 files changed, 17 insertions, 17 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index fcdae15a7cda..614cb88c4593 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -2602,10 +2602,10 @@ void SdGenericDrawPage::setNavigationOrder( const Any& rValue )
throw IllegalArgumentException();
}
-class NavigationOrderAccess : public ::cppu::WeakImplHelper1< XIndexAccess >
+class SdNavigationOrderAccess : public ::cppu::WeakImplHelper1< XIndexAccess >
{
public:
- NavigationOrderAccess( SdrPage* pPage );
+ SdNavigationOrderAccess( SdrPage* pPage );
// XIndexAccess
virtual sal_Int32 SAL_CALL getCount( ) throw (RuntimeException);
@@ -2619,7 +2619,7 @@ private:
std::vector< Reference< XShape > > maShapes;
};
-NavigationOrderAccess::NavigationOrderAccess( SdrPage* pPage )
+SdNavigationOrderAccess::SdNavigationOrderAccess( SdrPage* pPage )
: maShapes( static_cast< sal_uInt32 >( pPage ? pPage->GetObjCount() : 0 ) )
{
if( pPage )
@@ -2630,19 +2630,19 @@ NavigationOrderAccess::NavigationOrderAccess( SdrPage* pPage )
{
SdrObject* pObj = pPage->GetObj( nIndex );
sal_uInt32 nNavPos = pObj->GetNavigationPosition();
- DBG_ASSERT( !maShapes[nNavPos].is(), "sd::NavigationOrderAccess::NavigationOrderAccess(), duplicate navigation positions from core!" );
+ DBG_ASSERT( !maShapes[nNavPos].is(), "sd::SdNavigationOrderAccess::SdNavigationOrderAccess(), duplicate navigation positions from core!" );
maShapes[nNavPos] = Reference< XShape >( pObj->getUnoShape(), UNO_QUERY );
}
}
}
// XIndexAccess
-sal_Int32 SAL_CALL NavigationOrderAccess::getCount( ) throw (RuntimeException)
+sal_Int32 SAL_CALL SdNavigationOrderAccess::getCount( ) throw (RuntimeException)
{
return static_cast< sal_Int32 >( maShapes.size() );
}
-Any SAL_CALL NavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
+Any SAL_CALL SdNavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
{
if( (Index < 0) || (Index > getCount()) )
throw IndexOutOfBoundsException();
@@ -2651,12 +2651,12 @@ Any SAL_CALL NavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (IndexOu
}
// XElementAccess
-Type SAL_CALL NavigationOrderAccess::getElementType( ) throw (RuntimeException)
+Type SAL_CALL SdNavigationOrderAccess::getElementType( ) throw (RuntimeException)
{
return XShape::static_type();
}
-sal_Bool SAL_CALL NavigationOrderAccess::hasElements( ) throw (RuntimeException)
+sal_Bool SAL_CALL SdNavigationOrderAccess::hasElements( ) throw (RuntimeException)
{
return maShapes.empty() ? sal_False : sal_True;
}
@@ -2665,7 +2665,7 @@ Any SdGenericDrawPage::getNavigationOrder()
{
if( GetPage()->HasObjectNavigationOrder() )
{
- return Any( Reference< XIndexAccess >( new NavigationOrderAccess( GetPage() ) ) );
+ return Any( Reference< XIndexAccess >( new SdNavigationOrderAccess( GetPage() ) ) );
}
else
{
diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx
index 9346e6aefb3e..7e57d11df8a8 100644
--- a/xmloff/source/draw/ximppage.cxx
+++ b/xmloff/source/draw/ximppage.cxx
@@ -563,10 +563,10 @@ void SdXMLGenericPageContext::SetPageMaster( OUString& rsPageMasterName )
}
}
-class NavigationOrderAccess : public ::cppu::WeakImplHelper1< XIndexAccess >
+class XoNavigationOrderAccess : public ::cppu::WeakImplHelper1< XIndexAccess >
{
public:
- NavigationOrderAccess( std::vector< Reference< XShape > >& rShapes );
+ XoNavigationOrderAccess( std::vector< Reference< XShape > >& rShapes );
// XIndexAccess
virtual sal_Int32 SAL_CALL getCount( ) throw (RuntimeException);
@@ -580,18 +580,18 @@ private:
std::vector< Reference< XShape > > maShapes;
};
-NavigationOrderAccess::NavigationOrderAccess( std::vector< Reference< XShape > >& rShapes )
+XoNavigationOrderAccess::XoNavigationOrderAccess( std::vector< Reference< XShape > >& rShapes )
{
maShapes.swap( rShapes );
}
// XIndexAccess
-sal_Int32 SAL_CALL NavigationOrderAccess::getCount( ) throw (RuntimeException)
+sal_Int32 SAL_CALL XoNavigationOrderAccess::getCount( ) throw (RuntimeException)
{
return static_cast< sal_Int32 >( maShapes.size() );
}
-Any SAL_CALL NavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
+Any SAL_CALL XoNavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
{
if( (Index < 0) || (Index > getCount()) )
throw IndexOutOfBoundsException();
@@ -600,12 +600,12 @@ Any SAL_CALL NavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (IndexOu
}
// XElementAccess
-Type SAL_CALL NavigationOrderAccess::getElementType( ) throw (RuntimeException)
+Type SAL_CALL XoNavigationOrderAccess::getElementType( ) throw (RuntimeException)
{
return XShape::static_type();
}
-sal_Bool SAL_CALL NavigationOrderAccess::hasElements( ) throw (RuntimeException)
+sal_Bool SAL_CALL XoNavigationOrderAccess::hasElements( ) throw (RuntimeException)
{
return maShapes.empty() ? sal_False : sal_True;
}
@@ -640,7 +640,7 @@ void SdXMLGenericPageContext::SetNavigationOrder()
}
Reference< XPropertySet > xSet( mxShapes, UNO_QUERY_THROW );
- xSet->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "NavigationOrder" ) ), Any( Reference< XIndexAccess >( new NavigationOrderAccess( aShapes ) ) ) );
+ xSet->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "NavigationOrder" ) ), Any( Reference< XIndexAccess >( new XoNavigationOrderAccess( aShapes ) ) ) );
}
catch(const uno::Exception&)
{