summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/classes/sbxmod.cxx2
-rw-r--r--comphelper/source/misc/weak.cxx2
-rw-r--r--comphelper/source/property/TypeGeneration.cxx2
-rw-r--r--comphelper/source/property/propstate.cxx4
-rw-r--r--dbaccess/source/core/dataaccess/connection.cxx12
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx8
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx4
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx4
-rw-r--r--dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx4
-rw-r--r--desktop/source/deployment/manager/dp_extensionmanager.cxx6
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx2
-rw-r--r--desktop/source/deployment/misc/dp_interact.cxx4
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx10
-rw-r--r--extensions/source/propctrlr/formcontroller.cxx2
-rw-r--r--extensions/source/propctrlr/genericpropertyhandler.cxx2
-rw-r--r--forms/source/component/Columns.cxx16
-rw-r--r--forms/source/component/DatabaseForm.cxx2
-rw-r--r--forms/source/component/FormsCollection.cxx2
-rw-r--r--forms/source/component/ListBox.cxx2
-rw-r--r--forms/source/misc/InterfaceContainer.cxx2
-rw-r--r--framework/source/fwe/interaction/preventduplicateinteraction.cxx2
-rw-r--r--include/comphelper/uno3.hxx4
-rw-r--r--include/vbahelper/vbacollectionimpl.hxx2
-rw-r--r--reportdesign/source/core/sdr/UndoEnv.cxx2
-rw-r--r--sc/source/filter/excel/excimp8.cxx2
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx4
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx2
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx4
-rw-r--r--sc/source/ui/vba/vbaborders.cxx4
-rw-r--r--sc/source/ui/vba/vbachartobjects.cxx2
-rw-r--r--sc/source/ui/vba/vbacomments.cxx2
-rw-r--r--sc/source/ui/vba/vbaformatconditions.cxx2
-rw-r--r--sc/source/ui/vba/vbahyperlinks.cxx4
-rw-r--r--sc/source/ui/vba/vbamenubars.cxx2
-rw-r--r--sc/source/ui/vba/vbamenuitems.cxx2
-rw-r--r--sc/source/ui/vba/vbamenus.cxx2
-rw-r--r--sc/source/ui/vba/vbanames.cxx2
-rw-r--r--sc/source/ui/vba/vbaoleobjects.cxx4
-rw-r--r--sc/source/ui/vba/vbapagebreaks.cxx8
-rw-r--r--sc/source/ui/vba/vbapivottables.cxx2
-rw-r--r--sc/source/ui/vba/vbarange.cxx6
-rw-r--r--sc/source/ui/vba/vbarange.hxx2
-rw-r--r--sc/source/ui/vba/vbasheetobjects.cxx4
-rw-r--r--sc/source/ui/vba/vbastyles.cxx2
-rw-r--r--sc/source/ui/vba/vbawindow.cxx2
-rw-r--r--sc/source/ui/vba/vbawindows.cxx4
-rw-r--r--sc/source/ui/vba/vbaworkbooks.cxx2
-rw-r--r--sc/source/ui/vba/vbaworksheets.cxx4
-rw-r--r--sd/source/core/stlfamily.cxx2
-rw-r--r--sd/source/core/stlpool.cxx2
-rw-r--r--sd/source/core/stlsheet.cxx10
-rw-r--r--sd/source/filter/xml/sdxmlwrp.cxx4
-rw-r--r--sd/source/ui/animations/motionpathtag.cxx6
-rw-r--r--sd/source/ui/framework/factories/BasicViewFactory.cxx2
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx2
-rw-r--r--sd/source/ui/unoidl/unopage.cxx8
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx8
-rw-r--r--svx/source/table/cell.cxx14
-rw-r--r--svx/source/table/tablecolumns.cxx2
-rw-r--r--svx/source/table/tabledesign.cxx12
-rw-r--r--svx/source/table/tablemodel.cxx6
-rw-r--r--svx/source/table/tablerows.cxx2
-rw-r--r--svx/source/unodraw/unoprov.cxx12
-rw-r--r--svx/source/unodraw/unoshap2.cxx2
-rw-r--r--svx/source/unodraw/unoshape.cxx14
-rw-r--r--sw/source/core/unocore/unodraw.cxx4
-rw-r--r--sw/source/core/unocore/unoftn.cxx2
-rw-r--r--sw/source/core/unocore/unoidx.cxx12
-rw-r--r--sw/source/core/unocore/unoobj.cxx4
-rw-r--r--sw/source/core/unocore/unoobj2.cxx4
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx2
-rw-r--r--sw/source/core/unocore/unorefmk.cxx2
-rw-r--r--sw/source/core/unocore/unotbl.cxx10
-rw-r--r--sw/source/core/unocore/unotext.cxx66
-rw-r--r--sw/source/filter/xml/swxml.cxx2
-rw-r--r--sw/source/filter/xml/wrtxml.cxx2
-rw-r--r--sw/source/ui/vba/vbaaddins.cxx2
-rw-r--r--sw/source/ui/vba/vbaautotextentry.cxx2
-rw-r--r--sw/source/ui/vba/vbabookmarks.cxx2
-rw-r--r--sw/source/ui/vba/vbaborders.cxx4
-rw-r--r--sw/source/ui/vba/vbacells.cxx4
-rw-r--r--sw/source/ui/vba/vbacolumns.cxx2
-rw-r--r--sw/source/ui/vba/vbadocumentproperties.cxx6
-rw-r--r--sw/source/ui/vba/vbadocuments.cxx2
-rw-r--r--sw/source/ui/vba/vbafield.cxx2
-rw-r--r--sw/source/ui/vba/vbaformfields.cxx4
-rw-r--r--sw/source/ui/vba/vbaframes.cxx2
-rw-r--r--sw/source/ui/vba/vbaheadersfooters.cxx4
-rw-r--r--sw/source/ui/vba/vbalistgalleries.cxx2
-rw-r--r--sw/source/ui/vba/vbalistlevels.cxx2
-rw-r--r--sw/source/ui/vba/vbalisttemplates.cxx2
-rw-r--r--sw/source/ui/vba/vbapanes.cxx4
-rw-r--r--sw/source/ui/vba/vbaparagraph.cxx4
-rw-r--r--sw/source/ui/vba/vbarevisions.cxx4
-rw-r--r--sw/source/ui/vba/vbarows.cxx2
-rw-r--r--sw/source/ui/vba/vbasections.cxx4
-rw-r--r--sw/source/ui/vba/vbastyles.cxx4
-rw-r--r--sw/source/ui/vba/vbatables.cxx4
-rw-r--r--sw/source/ui/vba/vbatablesofcontents.cxx4
-rw-r--r--sw/source/ui/vba/vbatabstops.cxx4
-rw-r--r--sw/source/ui/vba/vbavariables.cxx2
-rw-r--r--toolkit/source/controls/animatedimages.cxx6
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx2
-rw-r--r--toolkit/source/controls/grid/defaultgriddatamodel.cxx6
-rw-r--r--toolkit/source/controls/grid/gridcolumn.cxx6
-rw-r--r--toolkit/source/controls/grid/sortablegriddatamodel.cxx6
-rw-r--r--toolkit/source/controls/tree/treedatamodel.cxx10
-rw-r--r--toolkit/source/controls/unocontrolcontainer.cxx2
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx4
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx4
-rw-r--r--vbahelper/source/msforms/vbamultipage.cxx4
-rw-r--r--vbahelper/source/msforms/vbapages.cxx4
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.cxx6
-rw-r--r--vbahelper/source/vbahelper/vbacommandbars.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbashaperange.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbashapes.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkaction.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkcomponent.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkeditabletext.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkhypertext.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkimage.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkselection.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atktable.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atktext.cxx8
-rw-r--r--vcl/unx/gtk/a11y/atktextattributes.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkutil.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkvalue.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.cxx22
-rw-r--r--xmloff/source/draw/ximppage.cxx2
130 files changed, 296 insertions, 296 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 122d15260a5b..a3be564ab57a 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -217,7 +217,7 @@ Sequence< Type > SAL_CALL DocObjectWrapper::getTypes()
{
if ( i == 0 )
{
- *pPtr = XInvocation::static_type( NULL );
+ *pPtr = cppu::UnoType<XInvocation>::get();
}
else
{
diff --git a/comphelper/source/misc/weak.cxx b/comphelper/source/misc/weak.cxx
index 69163ab13bfb..f3117e6566f9 100644
--- a/comphelper/source/misc/weak.cxx
+++ b/comphelper/source/misc/weak.cxx
@@ -36,7 +36,7 @@ OWeakTypeObject::~OWeakTypeObject()
Any SAL_CALL OWeakTypeObject::queryInterface(const Type & rType ) throw (RuntimeException)
{
- if( rType == XTypeProvider::static_type() )
+ if( rType == cppu::UnoType<XTypeProvider>::get() )
return Any( Reference< XTypeProvider >(this) );
else
return ::cppu::OWeakObject::queryInterface( rType );
diff --git a/comphelper/source/property/TypeGeneration.cxx b/comphelper/source/property/TypeGeneration.cxx
index a5b27bc66d87..47c42b138837 100644
--- a/comphelper/source/property/TypeGeneration.cxx
+++ b/comphelper/source/property/TypeGeneration.cxx
@@ -218,7 +218,7 @@ namespace comphelper
case CPPUTYPE_SEQNAMEDVALUE: pType = &::getCppuType( (Sequence<beans::NamedValue>*)0 ); break;
case CPPUTYPE_REFXGRAPHIC: pType = &::getCppuType( (Reference< graphic::XGraphic >*)0); break;
case CPPUTYPE_TABLEBORDERDISTANCES: pType = &::getCppuType( (table::TableBorderDistances*)0 ); break;
- case CPPUTPYE_REFEMBEDDEDOBJECT: pType = &embed::XEmbeddedObject::static_type(); break;
+ case CPPUTPYE_REFEMBEDDEDOBJECT: pType = &cppu::UnoType<embed::XEmbeddedObject>::get(); break;
case CPPUTYPE_LINESTYLE: pType = &::getCppuType( (drawing::LineStyle*)0 ); break;
case CPPUTYPE_FILLSTYLE: pType = &::getCppuType( (drawing::FillStyle*)0 ); break;
case CPPUTYPE_GRADIENT: pType = &::getCppuType( (awt::Gradient*)0 ); break;
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx
index 1b4e1324936a..e596bc158c0d 100644
--- a/comphelper/source/property/propstate.cxx
+++ b/comphelper/source/property/propstate.cxx
@@ -194,8 +194,8 @@ namespace comphelper
Sequence< Type > SAL_CALL OStatefulPropertySet::getTypes() throw(RuntimeException)
{
Sequence< Type > aOwnTypes( 2 );
- aOwnTypes[0] = XWeak::static_type();
- aOwnTypes[1] = XTypeProvider::static_type();
+ aOwnTypes[0] = cppu::UnoType<XWeak>::get();
+ aOwnTypes[1] = cppu::UnoType<XTypeProvider>::get();
return concatSequences(
aOwnTypes,
diff --git a/dbaccess/source/core/dataaccess/connection.cxx b/dbaccess/source/core/dataaccess/connection.cxx
index 23d1a089356f..e275cbb0e73a 100644
--- a/dbaccess/source/core/dataaccess/connection.cxx
+++ b/dbaccess/source/core/dataaccess/connection.cxx
@@ -434,11 +434,11 @@ Sequence< Type > OConnection::getTypes() throw (RuntimeException)
lcl_copyTypes( aNormalizedTypes, ::connectivity::OConnectionWrapper::getTypes() );
if ( !m_bSupportsViews )
- aNormalizedTypes.erase( XViewsSupplier::static_type() );
+ aNormalizedTypes.erase( cppu::UnoType<XViewsSupplier>::get() );
if ( !m_bSupportsUsers )
- aNormalizedTypes.erase( XUsersSupplier::static_type() );
+ aNormalizedTypes.erase( cppu::UnoType<XUsersSupplier>::get() );
if ( !m_bSupportsGroups )
- aNormalizedTypes.erase( XGroupsSupplier::static_type() );
+ aNormalizedTypes.erase( cppu::UnoType<XGroupsSupplier>::get() );
Sequence< Type > aSupportedTypes( aNormalizedTypes.size() );
::std::copy( aNormalizedTypes.begin(), aNormalizedTypes.end(), aSupportedTypes.getArray() );
@@ -454,11 +454,11 @@ Sequence< sal_Int8 > OConnection::getImplementationId() throw (RuntimeException)
// com::sun::star::uno::XInterface
Any OConnection::queryInterface( const Type & rType ) throw (RuntimeException)
{
- if ( !m_bSupportsViews && rType.equals( XViewsSupplier::static_type() ) )
+ if ( !m_bSupportsViews && rType.equals( cppu::UnoType<XViewsSupplier>::get() ) )
return Any();
- else if ( !m_bSupportsUsers && rType.equals( XUsersSupplier::static_type() ) )
+ else if ( !m_bSupportsUsers && rType.equals( cppu::UnoType<XUsersSupplier>::get() ) )
return Any();
- else if ( !m_bSupportsGroups && rType.equals( XGroupsSupplier::static_type() ) )
+ else if ( !m_bSupportsGroups && rType.equals( cppu::UnoType<XGroupsSupplier>::get() ) )
return Any();
Any aReturn = OSubComponent::queryInterface( rType );
if (!aReturn.hasValue())
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index 21f16e8259dd..8d9c4b4c6e65 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -221,8 +221,8 @@ Any SAL_CALL ODatabaseDocument::queryInterface( const Type& _rType ) throw (Runt
// which already contains macros. In this case, the database document itself is not
// allowed to contain macros, too.
if ( !m_bAllowDocumentScripting
- && ( _rType.equals( XEmbeddedScripts::static_type() )
- || _rType.equals( XScriptInvocationContext::static_type() )
+ && ( _rType.equals( cppu::UnoType<XEmbeddedScripts>::get() )
+ || _rType.equals( cppu::UnoType<XScriptInvocationContext>::get() )
)
)
return Any();
@@ -265,7 +265,7 @@ Sequence< Type > SAL_CALL ODatabaseDocument::getTypes( ) throw (RuntimeExceptio
aTypes.getConstArray(),
aTypes.getConstArray() + aTypes.getLength(),
pStripTo,
- ::std::bind2nd( ::std::equal_to< Type >(), XEmbeddedScripts::static_type() )
+ ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XEmbeddedScripts>::get() )
) - pStripTo
);
@@ -276,7 +276,7 @@ Sequence< Type > SAL_CALL ODatabaseDocument::getTypes( ) throw (RuntimeExceptio
aTypes.getConstArray(),
aTypes.getConstArray() + aTypes.getLength(),
pStripTo,
- ::std::bind2nd( ::std::equal_to< Type >(), XScriptInvocationContext::static_type() )
+ ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() )
) - pStripTo
);
}
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index 3e5a3c797b6f..9a2c0ecdc2a9 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -597,7 +597,7 @@ void SbaXDataBrowserController::startFrameListening( const Reference< XFrame >&
Reference< XFrameActionListener > xAggListener;
if ( m_xFormControllerImpl.is() )
- m_xFormControllerImpl->queryAggregation( XFrameActionListener::static_type() ) >>= xAggListener;
+ m_xFormControllerImpl->queryAggregation( cppu::UnoType<XFrameActionListener>::get() ) >>= xAggListener;
if ( _rxFrame.is() && xAggListener.is() )
_rxFrame->addFrameActionListener( xAggListener );
@@ -610,7 +610,7 @@ void SbaXDataBrowserController::stopFrameListening( const Reference< XFrame >& _
Reference< XFrameActionListener > xAggListener;
if ( m_xFormControllerImpl.is() )
- m_xFormControllerImpl->queryAggregation( XFrameActionListener::static_type() ) >>= xAggListener;
+ m_xFormControllerImpl->queryAggregation( cppu::UnoType<XFrameActionListener>::get() ) >>= xAggListener;
if ( _rxFrame.is() && xAggListener.is() )
_rxFrame->removeFrameActionListener( xAggListener );
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 556599d3a669..6b2d8346eabe 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -240,7 +240,7 @@ SbaTableQueryBrowser::~SbaTableQueryBrowser()
Any SAL_CALL SbaTableQueryBrowser::queryInterface(const Type& _rType) throw (RuntimeException)
{
- if ( _rType.equals( XScriptInvocationContext::static_type() ) )
+ if ( _rType.equals( cppu::UnoType<XScriptInvocationContext>::get() ) )
{
OSL_PRECOND( !!m_aDocScriptSupport, "SbaTableQueryBrowser::queryInterface: did not initialize this, yet!" );
if ( !!m_aDocScriptSupport && *m_aDocScriptSupport )
@@ -269,7 +269,7 @@ Sequence< Type > SAL_CALL SbaTableQueryBrowser::getTypes( ) throw (RuntimeExcep
aTypes.getConstArray(),
aTypes.getConstArray() + aTypes.getLength(),
aStrippedTypes.getArray(),
- ::std::bind2nd( ::std::equal_to< Type >(), XScriptInvocationContext::static_type() )
+ ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() )
);
aTypes = aStrippedTypes;
}
diff --git a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
index 595f0949a363..a2a549a1cba4 100644
--- a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
+++ b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
@@ -211,7 +211,7 @@ namespace dbaui
Any SAL_CALL DBSubComponentController::queryInterface(const Type& _rType) throw (RuntimeException)
{
- if ( _rType.equals( XScriptInvocationContext::static_type() ) )
+ if ( _rType.equals( cppu::UnoType<XScriptInvocationContext>::get() ) )
{
if ( m_pImpl->documentHasScriptSupport() )
return makeAny( Reference< XScriptInvocationContext >( this ) );
@@ -231,7 +231,7 @@ namespace dbaui
aTypes.getConstArray(),
aTypes.getConstArray() + aTypes.getLength(),
aStrippedTypes.getArray(),
- ::std::bind2nd( ::std::equal_to< Type >(), XScriptInvocationContext::static_type() )
+ ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() )
);
aTypes = aStrippedTypes;
}
diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx
index 49ee4701f12b..3fc60b42688e 100644
--- a/desktop/source/deployment/manager/dp_extensionmanager.cxx
+++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx
@@ -1386,7 +1386,7 @@ void ExtensionManager::checkInstall(
static_cast<OWeakObject *>(this), displayName));
bool approve = false, abort = false;
if (! dp_misc::interactContinuation(
- request, task::XInteractionApprove::static_type(),
+ request, cppu::UnoType<task::XInteractionApprove>::get(),
cmdEnv, &approve, &abort ))
{
OSL_ASSERT( !approve && !abort );
@@ -1419,7 +1419,7 @@ void ExtensionManager::checkUpdate(
oldExtension ) ) );
bool replace = false, abort = false;
if (! dp_misc::interactContinuation(
- request, task::XInteractionApprove::static_type(),
+ request, cppu::UnoType<task::XInteractionApprove>::get(),
xCmdEnv, &replace, &abort )) {
OSL_ASSERT( !replace && !abort );
throw css::deployment::DeploymentException(
@@ -1494,7 +1494,7 @@ void ExtensionManager::check()
void ExtensionManager::fireModified()
{
::cppu::OInterfaceContainerHelper * pContainer = rBHelper.getContainer(
- util::XModifyListener::static_type() );
+ cppu::UnoType<util::XModifyListener>::get() );
if (pContainer != 0) {
pContainer->forEach<util::XModifyListener>(
boost::bind(&util::XModifyListener::modified, _1,
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index 72b3413d70c7..1792ee1ef44b 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -439,7 +439,7 @@ PackageManagerImpl::~PackageManagerImpl()
void PackageManagerImpl::fireModified()
{
::cppu::OInterfaceContainerHelper * pContainer = rBHelper.getContainer(
- util::XModifyListener::static_type() );
+ cppu::UnoType<util::XModifyListener>::get() );
if (pContainer != 0) {
pContainer->forEach<util::XModifyListener>(
boost::bind(&util::XModifyListener::modified, _1,
diff --git a/desktop/source/deployment/misc/dp_interact.cxx b/desktop/source/deployment/misc/dp_interact.cxx
index 4d9f40df91b0..f25165e4eff4 100644
--- a/desktop/source/deployment/misc/dp_interact.cxx
+++ b/desktop/source/deployment/misc/dp_interact.cxx
@@ -134,7 +134,7 @@ bool interactContinuation( Any const & request,
bool * pcont, bool * pabort )
{
OSL_ASSERT(
- task::XInteractionContinuation::static_type().isAssignableFrom(
+ cppu::UnoType<task::XInteractionContinuation>::get().isAssignableFrom(
continuation ) );
if (xCmdEnv.is()) {
Reference<task::XInteractionHandler> xInteractionHandler(
@@ -146,7 +146,7 @@ bool interactContinuation( Any const & request,
conts[ 0 ] = new InteractionContinuationImpl(
continuation, &cont );
conts[ 1 ] = new InteractionContinuationImpl(
- task::XInteractionAbort::static_type(), &abort );
+ cppu::UnoType<task::XInteractionAbort>::get(), &abort );
xInteractionHandler->handle(
new InteractionRequest( request, conts ) );
if (cont || abort) {
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 8c721c5afde4..44333de608f0 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -697,7 +697,7 @@ bool BackendImpl::PackageImpl::checkDependencies(
bool approve = false;
bool abort = false;
if (! interactContinuation(
- Any(licExc), task::XInteractionApprove::static_type(), xCmdEnv, &approve, &abort ))
+ Any(licExc), cppu::UnoType<task::XInteractionApprove>::get(), xCmdEnv, &approve, &abort ))
throw css::deployment::DeploymentException(
"Could not interact with user.", 0, Any());
@@ -871,7 +871,7 @@ void BackendImpl::PackageImpl::processPackage_(
Any( lang::WrappedTargetException(
"bundle item registration error!",
static_cast<OWeakObject *>(this), exc ) ),
- task::XInteractionApprove::static_type(), xCmdEnv,
+ cppu::UnoType<task::XInteractionApprove>::get(), xCmdEnv,
&approve, &abort )) {
OSL_ASSERT( !approve && !abort );
if (m_legacyBundle) // default for legacy packages: ignore
@@ -950,7 +950,7 @@ void BackendImpl::PackageImpl::processPackage_(
Any( lang::WrappedTargetException(
"bundle item revocation error!",
static_cast<OWeakObject *>(this), exc ) ),
- task::XInteractionApprove::static_type(), xCmdEnv,
+ cppu::UnoType<task::XInteractionApprove>::get(), xCmdEnv,
&approve, &abort )) {
OSL_ASSERT( !approve && !abort );
if (m_legacyBundle) // default for legacy packages: ignore
@@ -1053,7 +1053,7 @@ void BackendImpl::PackageImpl::exportTo(
static_cast<OWeakObject *>(this),
task::InteractionClassification_QUERY,
destFolderURL, title, OUString() ) ),
- ucb::XInteractionReplaceExistingData::static_type(), xCmdEnv,
+ cppu::UnoType<ucb::XInteractionReplaceExistingData>::get(), xCmdEnv,
&replace, &abort ) || !replace) {
return;
}
@@ -1383,7 +1383,7 @@ Reference<deployment::XPackage> BackendImpl::PackageImpl::bindBundleItem(
interactContinuation(
Any( lang::WrappedTargetException("bundle item error!",
static_cast<OWeakObject *>(this), exc ) ),
- task::XInteractionApprove::static_type(), xCmdEnv, 0, 0 );
+ cppu::UnoType<task::XInteractionApprove>::get(), xCmdEnv, 0, 0 );
}
}
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx
index 797542509d59..0cf7fd5bb1ac 100644
--- a/extensions/source/propctrlr/formcontroller.cxx
+++ b/extensions/source/propctrlr/formcontroller.cxx
@@ -175,7 +175,7 @@ namespace pcr
aProps[1] = Property(
PROPERTY_INTROSPECTEDOBJECT,
OWN_PROPERTY_ID_INTROSPECTEDOBJECT,
- XPropertySet::static_type(),
+ cppu::UnoType<XPropertySet>::get(),
PropertyAttribute::TRANSIENT | PropertyAttribute::CONSTRAINED
);
return new ::cppu::OPropertyArrayHelper( aProps );
diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx
index fbac84b0bed3..5d8d28aa2bb7 100644
--- a/extensions/source/propctrlr/genericpropertyhandler.cxx
+++ b/extensions/source/propctrlr/genericpropertyhandler.cxx
@@ -382,7 +382,7 @@ namespace pcr
if ( !xIntrospectionAccess.is() )
throw RuntimeException("The introspection service could not handle the given component.", *this );
- m_xComponent = Reference< XPropertySet >( xIntrospectionAccess->queryAdapter( XPropertySet::static_type() ), UNO_QUERY_THROW );
+ m_xComponent = Reference< XPropertySet >( xIntrospectionAccess->queryAdapter( cppu::UnoType<XPropertySet>::get() ), UNO_QUERY_THROW );
// now that we survived so far, remember m_xComponentIntrospectionAccess
m_xComponentIntrospectionAccess = xIntrospectionAccess;
m_xPropertyState = m_xPropertyState.query( m_xComponent );
diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx
index 1064ea051712..3ee43c5b334a 100644
--- a/forms/source/component/Columns.cxx
+++ b/forms/source/component/Columns.cxx
@@ -155,21 +155,21 @@ Sequence<Type> SAL_CALL OGridColumn::getTypes() throw(RuntimeException)
{
TypeBag aTypes( OGridColumn_BASE::getTypes() );
// erase the types which we do not support
- aTypes.removeType( XFormComponent::static_type() );
- aTypes.removeType( XServiceInfo::static_type() );
- aTypes.removeType( XBindableValue::static_type() );
- aTypes.removeType( XPropertyContainer::static_type() );
+ aTypes.removeType( cppu::UnoType<XFormComponent>::get() );
+ aTypes.removeType( cppu::UnoType<XServiceInfo>::get() );
+ aTypes.removeType( cppu::UnoType<XBindableValue>::get() );
+ aTypes.removeType( cppu::UnoType<XPropertyContainer>::get() );
// but re-add their base class(es)
- aTypes.addType( XChild::static_type() );
+ aTypes.addType( cppu::UnoType<XChild>::get() );
Reference< XTypeProvider > xProv;
if ( query_aggregation( m_xAggregate, xProv ))
aTypes.addTypes( xProv->getTypes() );
- aTypes.removeType( XTextRange::static_type() );
- aTypes.removeType( XSimpleText::static_type() );
- aTypes.removeType( XText::static_type() );
+ aTypes.removeType( cppu::UnoType<XTextRange>::get() );
+ aTypes.removeType( cppu::UnoType<XSimpleText>::get() );
+ aTypes.removeType( cppu::UnoType<XText>::get() );
return aTypes.getTypes();
}
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 88f7e5ded170..c03147252006 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -370,7 +370,7 @@ ODatabaseForm::ODatabaseForm( const ODatabaseForm& _cloneSource )
try
{
Reference< XPropertySet > xSourceProps( const_cast< ODatabaseForm& >( _cloneSource ).queryAggregation(
- XPropertySet::static_type() ), UNO_QUERY_THROW );
+ cppu::UnoType<XPropertySet>::get() ), UNO_QUERY_THROW );
Reference< XPropertySetInfo > xSourcePSI( xSourceProps->getPropertySetInfo(), UNO_SET_THROW );
Reference< XPropertyState > xSourcePropState( xSourceProps, UNO_QUERY );
diff --git a/forms/source/component/FormsCollection.cxx b/forms/source/component/FormsCollection.cxx
index db118d82e77f..396e747e664f 100644
--- a/forms/source/component/FormsCollection.cxx
+++ b/forms/source/component/FormsCollection.cxx
@@ -65,7 +65,7 @@ Sequence<Type> SAL_CALL OFormsCollection::getTypes() throw(RuntimeException)
//------------------------------------------------------------------
OFormsCollection::OFormsCollection(const Reference<XComponentContext>& _rxFactory)
:FormsCollectionComponentBase( m_aMutex )
- ,OInterfaceContainer( _rxFactory, m_aMutex, XForm::static_type() )
+ ,OInterfaceContainer( _rxFactory, m_aMutex, cppu::UnoType<XForm>::get() )
,OFormsCollection_BASE()
{
DBG_CTOR(OFormsCollection, NULL);
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 696ff231ff64..a39b59e4944d 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1749,7 +1749,7 @@ namespace frm
Any aReturn = OListBoxControl_BASE::queryInterface( _rType );
if ( !aReturn.hasValue()
- || _rType.equals( XTypeProvider::static_type() )
+ || _rType.equals( cppu::UnoType<XTypeProvider>::get() )
)
aReturn = OBoundControl::queryAggregation( _rType );
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index bab4df85f176..2acb2ef02526 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -1304,7 +1304,7 @@ Sequence<Type> SAL_CALL OFormComponents::getTypes() throw(RuntimeException)
//------------------------------------------------------------------------------
OFormComponents::OFormComponents(const Reference<XComponentContext>& _rxFactory)
:FormComponentsBase( m_aMutex )
- ,OInterfaceContainer( _rxFactory, m_aMutex, XFormComponent::static_type() )
+ ,OInterfaceContainer( _rxFactory, m_aMutex, cppu::UnoType<XFormComponent>::get() )
,OFormComponents_BASE()
{
}
diff --git a/framework/source/fwe/interaction/preventduplicateinteraction.cxx b/framework/source/fwe/interaction/preventduplicateinteraction.cxx
index 0ccb88d805f5..1a1d9831c65f 100644
--- a/framework/source/fwe/interaction/preventduplicateinteraction.cxx
+++ b/framework/source/fwe/interaction/preventduplicateinteraction.cxx
@@ -70,7 +70,7 @@ void PreventDuplicateInteraction::useDefaultUUIHandler()
css::uno::Any SAL_CALL PreventDuplicateInteraction::queryInterface( const css::uno::Type& aType )
throw (css::uno::RuntimeException)
{
- if ( aType.equals( XInteractionHandler2::static_type() ) )
+ if ( aType.equals( cppu::UnoType<XInteractionHandler2>::get() ) )
{
::osl::ResettableMutexGuard aLock(m_aLock);
css::uno::Reference< css::task::XInteractionHandler2 > xHandler( m_xHandler, css::uno::UNO_QUERY );
diff --git a/include/comphelper/uno3.hxx b/include/comphelper/uno3.hxx
index 7cf2ef8a6847..eb159b8b7662 100644
--- a/include/comphelper/uno3.hxx
+++ b/include/comphelper/uno3.hxx
@@ -236,7 +236,7 @@ namespace comphelper
if (_rxAggregate.is())
{
::com::sun::star::uno::Any aCheck = _rxAggregate->queryAggregation(
- iface::static_type());
+ cppu::UnoType<iface>::get());
if (aCheck.hasValue())
_rxOut = *(::com::sun::star::uno::Reference<iface>*)aCheck.getValue();
}
@@ -256,7 +256,7 @@ namespace comphelper
if (_rxObject.is())
{
::com::sun::star::uno::Any aCheck = _rxObject->queryInterface(
- iface::static_type());
+ cppu::UnoType<iface>::get());
if(aCheck.hasValue())
{
_rxOut = *(::com::sun::star::uno::Reference<iface>*)aCheck.getValue();
diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx
index f9ccf3782ef6..9217913221e4 100644
--- a/include/vbahelper/vbacollectionimpl.hxx
+++ b/include/vbahelper/vbacollectionimpl.hxx
@@ -174,7 +174,7 @@ protected:
public:
XNamedObjectCollectionHelper( const XNamedVec& sMap ) : mXNamedVec( sMap ), cachePos(mXNamedVec.begin()) {}
// XElementAccess
- virtual css::uno::Type SAL_CALL getElementType( ) throw (css::uno::RuntimeException) { return Ifc1::static_type(0); }
+ virtual css::uno::Type SAL_CALL getElementType( ) throw (css::uno::RuntimeException) { return cppu::UnoType<Ifc1>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (css::uno::RuntimeException) { return ( mXNamedVec.size() > 0 ); }
// XNameAcess
virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException)
diff --git a/reportdesign/source/core/sdr/UndoEnv.cxx b/reportdesign/source/core/sdr/UndoEnv.cxx
index aec827c1119d..e25c1c4d2817 100644
--- a/reportdesign/source/core/sdr/UndoEnv.cxx
+++ b/reportdesign/source/core/sdr/UndoEnv.cxx
@@ -282,7 +282,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
m_pImpl->m_xIntrospection->inspect( makeAny( _rEvent.Source ) ),
UNO_SET_THROW
);
- rObjectInfo.xPropertyIntrospection.set( xIntrospection->queryAdapter( XPropertySet::static_type() ), UNO_QUERY_THROW );
+ rObjectInfo.xPropertyIntrospection.set( xIntrospection->queryAdapter( cppu::UnoType<XPropertySet>::get() ), UNO_QUERY_THROW );
}
if ( rObjectInfo.xPropertyIntrospection.is() )
{
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 32ed8ca116fb..c0b7c9f6ec56 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -120,7 +120,7 @@ private:
::osl::Mutex m_aMutex;
public:
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return container::XIndexContainer::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<container::XIndexContainer>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index 81b2fe040baf..ef38f08c7c63 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -341,7 +341,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
{ OUString("ScriptConfiguration"), 0, ::getCppuType((uno::Reference<container::XNameAccess> *)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
{ OUString("OrganizerMode"), 0, ::getBooleanCppuType(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
- { OUString("SourceStorage"), 0, embed::XStorage::static_type(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
+ { OUString("SourceStorage"), 0, cppu::UnoType<embed::XStorage>::get(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( new comphelper::PropertySetInfo( aImportInfoMap ) ) );
@@ -785,7 +785,7 @@ sal_Bool ScXMLImportWrapper::Export(sal_Bool bStylesOnly)
{ OUString("StreamName"), 0, ::getCppuType( (OUString *)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString("StyleNames"), 0, ::getCppuType( (uno::Sequence<OUString>*)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString("StyleFamilies"), 0, ::getCppuType( (uno::Sequence<sal_Int32>*)0 ), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
- { OUString("TargetStorage"), 0, embed::XStorage::static_type(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
+ { OUString("TargetStorage"), 0, cppu::UnoType<embed::XStorage>::get(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( new comphelper::PropertySetInfo( aExportInfoMap ) ) );
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 81dda7da30b5..10d31104df89 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -1532,7 +1532,7 @@ uno::Sequence< OUString > SAL_CALL ScShapeObj::getSupportedServiceNames( ) thro
{
uno::Reference<lang::XServiceInfo> xSI;
if ( mxShapeAgg.is() )
- mxShapeAgg->queryAggregation( lang::XServiceInfo::static_type() ) >>= xSI;
+ mxShapeAgg->queryAggregation( cppu::UnoType<lang::XServiceInfo>::get() ) >>= xSI;
uno::Sequence< OUString > aSupported;
if ( xSI.is() )
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index f04b6885826e..c9205c69aecb 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -121,7 +121,7 @@ public:
// XElementAccess
virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException)
{
- return excel::XAxis::static_type(0);
+ return cppu::UnoType<excel::XAxis>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -142,7 +142,7 @@ ScVbaAxes::ScVbaAxes( const uno::Reference< XHelperInterface >& xParent,const un
uno::Type SAL_CALL
ScVbaAxes::getElementType() throw (css::uno::RuntimeException)
{
- return excel::XAxes::static_type(0);
+ return cppu::UnoType<excel::XAxes>::get();
}
uno::Reference< container::XEnumeration > SAL_CALL
diff --git a/sc/source/ui/vba/vbaborders.cxx b/sc/source/ui/vba/vbaborders.cxx
index 15e695a99dd0..0786ee61bfff 100644
--- a/sc/source/ui/vba/vbaborders.cxx
+++ b/sc/source/ui/vba/vbaborders.cxx
@@ -339,7 +339,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return excel::XBorder::static_type(0);
+ return cppu::UnoType<excel::XBorder>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -395,7 +395,7 @@ ScVbaBorders::createCollectionObject( const css::uno::Any& aSource )
uno::Type
ScVbaBorders::getElementType() throw (uno::RuntimeException)
{
- return excel::XBorders::static_type(0);
+ return cppu::UnoType<excel::XBorders>::get();
}
uno::Any
diff --git a/sc/source/ui/vba/vbachartobjects.cxx b/sc/source/ui/vba/vbachartobjects.cxx
index 2494edbb9bbc..c9c22ca5090a 100644
--- a/sc/source/ui/vba/vbachartobjects.cxx
+++ b/sc/source/ui/vba/vbachartobjects.cxx
@@ -153,7 +153,7 @@ ScVbaChartObjects::createEnumeration() throw (uno::RuntimeException)
uno::Type
ScVbaChartObjects::getElementType() throw (uno::RuntimeException)
{
- return excel::XChartObject::static_type(0);
+ return cppu::UnoType<excel::XChartObject>::get();
}
// ScVbaCollectionBaseImpl
diff --git a/sc/source/ui/vba/vbacomments.cxx b/sc/source/ui/vba/vbacomments.cxx
index 8495298e8103..0d9399ba19e1 100644
--- a/sc/source/ui/vba/vbacomments.cxx
+++ b/sc/source/ui/vba/vbacomments.cxx
@@ -85,7 +85,7 @@ ScVbaComments::createCollectionObject( const css::uno::Any& aSource )
uno::Type
ScVbaComments::getElementType() throw (uno::RuntimeException)
{
- return excel::XComment::static_type(0);
+ return cppu::UnoType<excel::XComment>::get();
}
OUString
diff --git a/sc/source/ui/vba/vbaformatconditions.cxx b/sc/source/ui/vba/vbaformatconditions.cxx
index eb61eed6dc98..9c5f75b4eb38 100644
--- a/sc/source/ui/vba/vbaformatconditions.cxx
+++ b/sc/source/ui/vba/vbaformatconditions.cxx
@@ -63,7 +63,7 @@ ScVbaFormatConditions::Delete( ) throw (script::BasicErrorException, uno::Runti
uno::Type SAL_CALL
ScVbaFormatConditions::getElementType() throw (css::uno::RuntimeException)
{
- return excel::XFormatCondition::static_type(0);
+ return cppu::UnoType<excel::XFormatCondition>::get();
}
diff --git a/sc/source/ui/vba/vbahyperlinks.cxx b/sc/source/ui/vba/vbahyperlinks.cxx
index dc93fc3357db..52f27ffce710 100644
--- a/sc/source/ui/vba/vbahyperlinks.cxx
+++ b/sc/source/ui/vba/vbahyperlinks.cxx
@@ -177,7 +177,7 @@ uno::Any SAL_CALL ScVbaHlinkContainer::getByIndex( sal_Int32 nIndex )
uno::Type SAL_CALL ScVbaHlinkContainer::getElementType() throw (uno::RuntimeException)
{
- return excel::XHyperlink::static_type( 0 );
+ return cppu::UnoType<excel::XHyperlink>::get();
}
sal_Bool SAL_CALL ScVbaHlinkContainer::hasElements() throw (uno::RuntimeException)
@@ -266,7 +266,7 @@ uno::Reference< container::XEnumeration > SAL_CALL ScVbaHyperlinks::createEnumer
uno::Type SAL_CALL ScVbaHyperlinks::getElementType() throw (uno::RuntimeException)
{
- return excel::XHyperlink::static_type( 0 );
+ return cppu::UnoType<excel::XHyperlink>::get();
}
// ScVbaCollectionBase --------------------------------------------------------
diff --git a/sc/source/ui/vba/vbamenubars.cxx b/sc/source/ui/vba/vbamenubars.cxx
index fff62a12cae0..7e0415bd0576 100644
--- a/sc/source/ui/vba/vbamenubars.cxx
+++ b/sc/source/ui/vba/vbamenubars.cxx
@@ -55,7 +55,7 @@ ScVbaMenuBars::~ScVbaMenuBars()
uno::Type SAL_CALL
ScVbaMenuBars::getElementType() throw ( uno::RuntimeException )
{
- return excel::XMenuBar::static_type( 0 );
+ return cppu::UnoType<excel::XMenuBar>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sc/source/ui/vba/vbamenuitems.cxx b/sc/source/ui/vba/vbamenuitems.cxx
index 5cb13ea5074a..80e580c8569c 100644
--- a/sc/source/ui/vba/vbamenuitems.cxx
+++ b/sc/source/ui/vba/vbamenuitems.cxx
@@ -62,7 +62,7 @@ ScVbaMenuItems::ScVbaMenuItems( const uno::Reference< XHelperInterface >& xParen
uno::Type SAL_CALL
ScVbaMenuItems::getElementType() throw ( uno::RuntimeException )
{
- return excel::XMenuItem::static_type( 0 );
+ return cppu::UnoType<excel::XMenuItem>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sc/source/ui/vba/vbamenus.cxx b/sc/source/ui/vba/vbamenus.cxx
index 6fbe213ec82d..39ee2c39219e 100644
--- a/sc/source/ui/vba/vbamenus.cxx
+++ b/sc/source/ui/vba/vbamenus.cxx
@@ -56,7 +56,7 @@ ScVbaMenus::ScVbaMenus( const uno::Reference< XHelperInterface >& xParent, const
uno::Type SAL_CALL
ScVbaMenus::getElementType() throw ( uno::RuntimeException )
{
- return excel::XMenu::static_type( 0 );
+ return cppu::UnoType<excel::XMenu>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx
index c3001c4b7789..d274fb04d5cb 100644
--- a/sc/source/ui/vba/vbanames.cxx
+++ b/sc/source/ui/vba/vbanames.cxx
@@ -235,7 +235,7 @@ ScVbaNames::Add( const css::uno::Any& Name ,
css::uno::Type
ScVbaNames::getElementType() throw( css::uno::RuntimeException )
{
- return ov::excel::XName::static_type(0);
+ return cppu::UnoType<ov::excel::XName>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sc/source/ui/vba/vbaoleobjects.cxx b/sc/source/ui/vba/vbaoleobjects.cxx
index e1264c31c2f7..d4c5215358fc 100644
--- a/sc/source/ui/vba/vbaoleobjects.cxx
+++ b/sc/source/ui/vba/vbaoleobjects.cxx
@@ -61,7 +61,7 @@ public:
// Methods XElementAcess
virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException)
{
- return drawing::XControlShape::static_type(0);
+ return cppu::UnoType<drawing::XControlShape>::get();
}
virtual ::sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException)
@@ -155,7 +155,7 @@ ScVbaOLEObjects::getItemByStringIndex( const OUString& sIndex ) throw (uno::Runt
uno::Type
ScVbaOLEObjects::getElementType() throw (uno::RuntimeException)
{
- return ooo::vba::excel::XOLEObject::static_type(0);
+ return cppu::UnoType<ooo::vba::excel::XOLEObject>::get();
}
OUString
diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx
index 6a7a522c87e3..285a8f1d3962 100644
--- a/sc/source/ui/vba/vbapagebreaks.cxx
+++ b/sc/source/ui/vba/vbapagebreaks.cxx
@@ -80,8 +80,8 @@ public:
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
if( m_bColumn )
- return excel::XVPageBreak::static_type(0);
- return excel::XHPageBreak::static_type(0);
+ return cppu::UnoType<excel::XVPageBreak>::get();
+ return cppu::UnoType<excel::XHPageBreak>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -232,7 +232,7 @@ ScVbaHPageBreaks::createCollectionObject( const css::uno::Any& aSource )
uno::Type
ScVbaHPageBreaks::getElementType() throw (uno::RuntimeException)
{
- return excel::XHPageBreak::static_type(0);
+ return cppu::UnoType<excel::XHPageBreak>::get();
}
OUString
@@ -292,7 +292,7 @@ ScVbaVPageBreaks::createCollectionObject( const css::uno::Any& aSource )
uno::Type
ScVbaVPageBreaks::getElementType() throw ( uno::RuntimeException )
{
- return excel::XVPageBreak::static_type( 0 );
+ return cppu::UnoType<excel::XVPageBreak>::get();
}
OUString
diff --git a/sc/source/ui/vba/vbapivottables.cxx b/sc/source/ui/vba/vbapivottables.cxx
index 511786e8028d..6ad471f13814 100644
--- a/sc/source/ui/vba/vbapivottables.cxx
+++ b/sc/source/ui/vba/vbapivottables.cxx
@@ -63,7 +63,7 @@ ScVbaPivotTables::createCollectionObject( const css::uno::Any& aSource )
uno::Type
ScVbaPivotTables::getElementType() throw (uno::RuntimeException)
{
- return excel::XPivotTable::static_type(0);
+ return cppu::UnoType<excel::XPivotTable>::get();
}
OUString
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 1b9f6e8b8b4f..e5b8e81e2435 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -330,7 +330,7 @@ public:
return uno::makeAny( m_xRange );
}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException){ return table::XCellRange::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException){ return cppu::UnoType<table::XCellRange>::get(); }
virtual ::sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException) { return sal_True; }
// XEnumerationAccess
@@ -365,7 +365,7 @@ public:
virtual uno::Reference< container::XEnumeration > SAL_CALL createEnumeration() throw (uno::RuntimeException);
// XElementAccess
- virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException){ return excel::XRange::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException){ return cppu::UnoType<excel::XRange>::get(); }
virtual uno::Any createCollectionObject( const uno::Any& aSource );
@@ -3321,7 +3321,7 @@ ScVbaRange::Find( const uno::Any& What, const uno::Any& After, const uno::Any& L
uno::Reference< table::XCellRange > processKey( const uno::Any& Key, uno::Reference< uno::XComponentContext >& xContext, ScDocShell* pDocSh )
{
uno::Reference< excel::XRange > xKeyRange;
- if ( Key.getValueType() == excel::XRange::static_type() )
+ if ( Key.getValueType() == cppu::UnoType<excel::XRange>::get() )
{
xKeyRange.set( Key, uno::UNO_QUERY_THROW );
}
diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx
index 9f1166a4cb9f..25074be48989 100644
--- a/sc/source/ui/vba/vbarange.hxx
+++ b/sc/source/ui/vba/vbarange.hxx
@@ -268,7 +268,7 @@ public:
// XElementAccess
virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException)
{
- return ov::excel::XRange::static_type(0);
+ return cppu::UnoType<ov::excel::XRange>::get();
}
virtual sal_Bool SAL_CALL hasElements() throw (css::uno::RuntimeException);
diff --git a/sc/source/ui/vba/vbasheetobjects.cxx b/sc/source/ui/vba/vbasheetobjects.cxx
index b542a666b1c9..c2244873e84b 100644
--- a/sc/source/ui/vba/vbasheetobjects.cxx
+++ b/sc/source/ui/vba/vbasheetobjects.cxx
@@ -219,7 +219,7 @@ uno::Any SAL_CALL ScVbaObjectContainer::getByIndex( sal_Int32 nIndex )
uno::Type SAL_CALL ScVbaObjectContainer::getElementType() throw (uno::RuntimeException)
{
- return drawing::XShape::static_type( 0 );
+ return cppu::UnoType<drawing::XShape>::get();
}
sal_Bool SAL_CALL ScVbaObjectContainer::hasElements() throw (uno::RuntimeException)
@@ -482,7 +482,7 @@ ScVbaButtonContainer::ScVbaButtonContainer(
const uno::Reference< sheet::XSpreadsheet >& rxSheet ) throw (uno::RuntimeException) :
ScVbaControlContainer(
rxParent, rxContext, rxModel, rxSheet,
- excel::XButton::static_type( 0 ),
+ cppu::UnoType<excel::XButton>::get(),
"com.sun.star.form.component.CommandButton",
form::FormComponentType::COMMANDBUTTON )
{
diff --git a/sc/source/ui/vba/vbastyles.cxx b/sc/source/ui/vba/vbastyles.cxx
index ffd1891c5196..cdb60d9ddf4d 100644
--- a/sc/source/ui/vba/vbastyles.cxx
+++ b/sc/source/ui/vba/vbastyles.cxx
@@ -62,7 +62,7 @@ ScVbaStyles::createCollectionObject(const uno::Any& aObject)
uno::Type SAL_CALL
ScVbaStyles::getElementType() throw (uno::RuntimeException)
{
- return excel::XStyle::static_type(0);
+ return cppu::UnoType<excel::XStyle>::get();
}
class EnumWrapper : public EnumerationHelper_BASE
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx
index 9aa8f2311b1a..67b5c3aebb27 100644
--- a/sc/source/ui/vba/vbawindow.cxx
+++ b/sc/source/ui/vba/vbawindow.cxx
@@ -150,7 +150,7 @@ public:
//XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return excel::XWorksheet::static_type(0);
+ return cppu::UnoType<excel::XWorksheet>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
diff --git a/sc/source/ui/vba/vbawindows.cxx b/sc/source/ui/vba/vbawindows.cxx
index f50c0104f36d..f812d11b15db 100644
--- a/sc/source/ui/vba/vbawindows.cxx
+++ b/sc/source/ui/vba/vbawindows.cxx
@@ -159,7 +159,7 @@ public:
//XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return sheet::XSpreadsheetDocument::static_type(0);
+ return cppu::UnoType<sheet::XSpreadsheetDocument>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
@@ -214,7 +214,7 @@ ScVbaWindows::createCollectionObject( const css::uno::Any& aSource )
uno::Type
ScVbaWindows::getElementType() throw (uno::RuntimeException)
{
- return excel::XWindows::static_type(0);
+ return cppu::UnoType<excel::XWindows>::get();
}
diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx
index 7625b11b71ef..8dc38770a507 100644
--- a/sc/source/ui/vba/vbaworkbooks.cxx
+++ b/sc/source/ui/vba/vbaworkbooks.cxx
@@ -169,7 +169,7 @@ ScVbaWorkbooks::ScVbaWorkbooks( const uno::Reference< XHelperInterface >& xParen
uno::Type
ScVbaWorkbooks::getElementType() throw (uno::RuntimeException)
{
- return excel::XWorkbook::static_type(0);
+ return cppu::UnoType<excel::XWorkbook>::get();
}
uno::Reference< container::XEnumeration >
ScVbaWorkbooks::createEnumeration() throw (uno::RuntimeException)
diff --git a/sc/source/ui/vba/vbaworksheets.cxx b/sc/source/ui/vba/vbaworksheets.cxx
index b8332af98a44..0eb7c4af24b4 100644
--- a/sc/source/ui/vba/vbaworksheets.cxx
+++ b/sc/source/ui/vba/vbaworksheets.cxx
@@ -89,7 +89,7 @@ class SheetCollectionHelper : public SheetCollectionHelper_BASE
public:
SheetCollectionHelper( const SheetMap& sMap ) : mSheetMap( sMap ), cachePos(mSheetMap.begin()) {}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return sheet::XSpreadsheet::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<sheet::XSpreadsheet>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { return ( !mSheetMap.empty() ); }
// XNameAcess
virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
@@ -179,7 +179,7 @@ ScVbaWorksheets::ScVbaWorksheets( const uno::Reference< XHelperInterface >& xPar
uno::Type
ScVbaWorksheets::getElementType() throw (uno::RuntimeException)
{
- return excel::XWorksheet::static_type(0);
+ return cppu::UnoType<excel::XWorksheet>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx
index 179acbb1aad1..507f25545ce2 100644
--- a/sd/source/core/stlfamily.cxx
+++ b/sd/source/core/stlfamily.cxx
@@ -305,7 +305,7 @@ sal_Bool SAL_CALL SdStyleFamily::hasByName( const OUString& aName ) throw(Runtim
Type SAL_CALL SdStyleFamily::getElementType() throw(RuntimeException)
{
- return XStyle::static_type();
+ return cppu::UnoType<XStyle>::get();
}
// ----------------------------------------------------------
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx
index 2401f06fccbd..7324c994e358 100644
--- a/sd/source/core/stlpool.cxx
+++ b/sd/source/core/stlpool.cxx
@@ -1211,7 +1211,7 @@ Type SAL_CALL SdStyleSheetPool::getElementType() throw(RuntimeException)
{
throwIfDisposed();
- return XNameAccess::static_type();
+ return cppu::UnoType<XNameAccess>::get();
}
// --------------------------------------------------------------------
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 2a266f4b3ef4..0cee3877dad8 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -78,7 +78,7 @@ static SvxItemPropertySet& GetStylePropertySet()
static const SfxItemPropertyMapEntry aFullPropertyMap_Impl[] =
{
{ OUString("Family"), WID_STYLE_FAMILY, ::getCppuType((const OUString*)0), PropertyAttribute::READONLY, 0},
- { OUString("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, XNameContainer::static_type(), 0, 0},
+ { OUString("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, cppu::UnoType<XNameContainer>::get(), 0, 0},
{ OUString("DisplayName"), WID_STYLE_DISPNAME, ::getCppuType((const OUString*)0), PropertyAttribute::READONLY, 0},
{ OUString("Hidden"), WID_STYLE_HIDDEN, ::getCppuType((bool*)0), 0, 0},
@@ -349,7 +349,7 @@ bool SdStyleSheet::IsUsed() const
{
MutexGuard aGuard( mrBHelper.rMutex );
- OInterfaceContainerHelper * pContainer = mrBHelper.getContainer( XModifyListener::static_type() );
+ OInterfaceContainerHelper * pContainer = mrBHelper.getContainer( cppu::UnoType<XModifyListener>::get() );
if( pContainer )
{
Sequence< Reference< XInterface > > aModifyListeners( pContainer->getElements() );
@@ -848,7 +848,7 @@ void SAL_CALL SdStyleSheet::addModifyListener( const Reference< XModifyListener
{
if( !mpModifyListenerForewarder.get() )
mpModifyListenerForewarder.reset( new ModifyListenerForewarder( this ) );
- mrBHelper.addListener( XModifyListener::static_type(), xListener );
+ mrBHelper.addListener( cppu::UnoType<XModifyListener>::get(), xListener );
}
}
@@ -856,7 +856,7 @@ void SAL_CALL SdStyleSheet::addModifyListener( const Reference< XModifyListener
void SAL_CALL SdStyleSheet::removeModifyListener( const Reference< XModifyListener >& xListener ) throw (RuntimeException)
{
- mrBHelper.removeListener( XModifyListener::static_type(), xListener );
+ mrBHelper.removeListener( cppu::UnoType<XModifyListener>::get(), xListener );
}
//------------------------------------------------------------------------
@@ -865,7 +865,7 @@ void SdStyleSheet::notifyModifyListener()
{
MutexGuard aGuard( mrBHelper.rMutex );
- OInterfaceContainerHelper * pContainer = mrBHelper.getContainer( XModifyListener::static_type() );
+ OInterfaceContainerHelper * pContainer = mrBHelper.getContainer( cppu::UnoType<XModifyListener>::get() );
if( pContainer )
{
EventObject aEvt( static_cast< OWeakObject * >( this ) );
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx
index fe9429f8f3a6..6578d4dc04f8 100644
--- a/sd/source/filter/xml/sdxmlwrp.cxx
+++ b/sd/source/filter/xml/sdxmlwrp.cxx
@@ -465,7 +465,7 @@ sal_Bool SdXMLFilter::Import( ErrCode& nError )
{ OUString("OrganizerMode"), 0,
::getBooleanCppuType(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
- { OUString("SourceStorage"), 0, embed::XStorage::static_type(),
+ { OUString("SourceStorage"), 0, cppu::UnoType<embed::XStorage>::get(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
@@ -841,7 +841,7 @@ sal_Bool SdXMLFilter::Export()
{ OUString("StyleFamilies"), 0,
::getCppuType( (Sequence<sal_Int32>*)0 ),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
- { OUString("TargetStorage"), 0, embed::XStorage::static_type(),
+ { OUString("TargetStorage"), 0, cppu::UnoType<embed::XStorage>::get(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index 20518234235f..0f4ca1daed19 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -1279,11 +1279,11 @@ void SAL_CALL MotionPathTag::disposing( const EventObject& /*Source*/ ) throw (R
Any SAL_CALL MotionPathTag::queryInterface( const ::com::sun::star::uno::Type& aType ) throw (RuntimeException)
{
- if( aType == XChangesListener::static_type() )
+ if( aType == cppu::UnoType<XChangesListener>::get() )
return Any( Reference< XChangesListener >( this ) );
- if( aType == XEventListener::static_type() )
+ if( aType == cppu::UnoType<XEventListener>::get() )
return Any( Reference< XEventListener >( this ) );
- if( aType == XInterface::static_type() )
+ if( aType == cppu::UnoType<XInterface>::get() )
return Any( Reference< XInterface >( this ) );
return Any();
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx
index ab0c0b9c9e87..bb940a5621a0 100644
--- a/sd/source/ui/framework/factories/BasicViewFactory.cxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx
@@ -372,7 +372,7 @@ void SAL_CALL BasicViewFactory::initialize (const Sequence<Any>& aArguments)
}
}
- pDescriptor->mxView.set( pDescriptor->mpWrapper->queryInterface( XResource::static_type() ), UNO_QUERY_THROW );
+ pDescriptor->mxView.set( pDescriptor->mpWrapper->queryInterface( cppu::UnoType<XResource>::get() ), UNO_QUERY_THROW );
}
return pDescriptor;
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 7fcdd175c4b9..87e6435bc2a7 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -3486,7 +3486,7 @@ void SAL_CALL SlideshowImpl::stopSound( ) throw (RuntimeException)
::com::sun::star::uno::Type SAL_CALL SlideshowImpl::getElementType( ) throw (::com::sun::star::uno::RuntimeException)
{
- return XDrawPage::static_type();
+ return cppu::UnoType<XDrawPage>::get();
}
// --------------------------------------------------------------------
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index c323181bbdec..c285a6aac802 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -147,7 +147,7 @@ const SvxItemPropertySet* ImplGetDrawPagePropertySet( sal_Bool bImpress, PageKin
{ OUString("TransitionFadeColor"), WID_TRANSITION_FADE_COLOR, ::getCppuType((const sal_Int32*)0), 0, 0},
{ OUString("TransitionDuration"), WID_TRANSITION_DURATION, ::getCppuType((const double*)0), 0, 0},
{ OUString("LoopSound"), WID_LOOP_SOUND, ::getBooleanCppuType(), 0, 0},
- { OUString("NavigationOrder"), WID_NAVORDER, ::com::sun::star::container::XIndexAccess::static_type(),0, 0},
+ { OUString("NavigationOrder"), WID_NAVORDER, cppu::UnoType<::com::sun::star::container::XIndexAccess>::get(),0, 0},
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
@@ -174,7 +174,7 @@ const SvxItemPropertySet* ImplGetDrawPagePropertySet( sal_Bool bImpress, PageKin
{ OUString("IsDateTimeFixed"), WID_PAGE_DATETIMEFIXED, ::getBooleanCppuType(), 0, 0}, \
{ OUString("DateTimeText"), WID_PAGE_DATETIMETEXT, ::getCppuType((const OUString*)0), 0, 0}, \
{ OUString("DateTimeFormat"), WID_PAGE_DATETIMEFORMAT, ::getCppuType((const sal_Int32*)0), 0, 0}, \
- { OUString("NavigationOrder"), WID_NAVORDER, ::com::sun::star::container::XIndexAccess::static_type(),0, 0}, \
+ { OUString("NavigationOrder"), WID_NAVORDER, cppu::UnoType<::com::sun::star::container::XIndexAccess>::get(),0, 0}, \
{ OUString(), 0, css::uno::Type(), 0, 0 }
static const SfxItemPropertyMapEntry aDrawPageNotesHandoutPropertyMap_Impl[] =
@@ -204,7 +204,7 @@ const SvxItemPropertySet* ImplGetDrawPagePropertySet( sal_Bool bImpress, PageKin
{ OUString(sUNO_Prop_UserDefinedAttributes),WID_PAGE_USERATTRIBS, ::getCppuType((const Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, \
{ OUString(sUNO_Prop_BookmarkURL), WID_PAGE_BOOKMARK, ::getCppuType((const OUString*)0), 0, 0}, \
{ OUString("IsBackgroundDark"), WID_PAGE_ISDARK, ::getBooleanCppuType(), beans::PropertyAttribute::READONLY, 0}, \
- { OUString("NavigationOrder"), WID_NAVORDER, ::com::sun::star::container::XIndexAccess::static_type(),0, 0}, \
+ { OUString("NavigationOrder"), WID_NAVORDER, cppu::UnoType<::com::sun::star::container::XIndexAccess>::get(),0, 0}, \
{ OUString(), 0, css::uno::Type(), 0, 0 }
static const SfxItemPropertyMapEntry aGraphicPagePropertyMap_Impl[] =
@@ -2646,7 +2646,7 @@ Any SAL_CALL SdNavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (Index
// XElementAccess
Type SAL_CALL SdNavigationOrderAccess::getElementType( ) throw (RuntimeException)
{
- return XShape::static_type();
+ return cppu::UnoType<XShape>::get();
}
sal_Bool SAL_CALL SdNavigationOrderAccess::hasElements( ) throw (RuntimeException)
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 44f9f92f991d..f7196d83a520 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -545,8 +545,8 @@ SfxBaseModel::~SfxBaseModel()
Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( RuntimeException )
{
- if ( ( !m_bSupportEmbeddedScripts && rType.equals( document::XEmbeddedScripts::static_type() ) )
- || ( !m_bSupportDocRecovery && rType.equals( XDocumentRecovery::static_type() ) )
+ if ( ( !m_bSupportEmbeddedScripts && rType.equals( cppu::UnoType<document::XEmbeddedScripts>::get() ) )
+ || ( !m_bSupportDocRecovery && rType.equals( cppu::UnoType<XDocumentRecovery>::get() ) )
)
return Any();
@@ -603,10 +603,10 @@ Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException
Sequence< uno::Type > aTypes( SfxBaseModel_Base::getTypes() );
if ( !m_bSupportEmbeddedScripts )
- lcl_stripType( aTypes, document::XEmbeddedScripts::static_type() );
+ lcl_stripType( aTypes, cppu::UnoType<document::XEmbeddedScripts>::get() );
if ( !m_bSupportDocRecovery )
- lcl_stripType( aTypes, XDocumentRecovery::static_type() );
+ lcl_stripType( aTypes, cppu::UnoType<XDocumentRecovery>::get() );
return aTypes;
}
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index 71b6ebd5296e..aea7ea3632b9 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -72,7 +72,7 @@ static const SvxItemPropertySet* ImplGetSvxCellPropertySet()
{
FILL_PROPERTIES
// { "HasLevels", OWN_ATTR_HASLEVELS, ::getBooleanCppuType(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
- { OUString("Style"), OWN_ATTR_STYLE, ::com::sun::star::style::XStyle::static_type(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
+ { OUString("Style"), OWN_ATTR_STYLE, cppu::UnoType<::com::sun::star::style::XStyle>::get(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
{ OUString(UNO_NAME_TEXT_WRITINGMODE), SDRATTR_TEXTDIRECTION, ::getCppuType( (::com::sun::star::text::WritingMode*) 0 ), 0, 0},
{ OUString(UNO_NAME_TEXT_HORZADJUST), SDRATTR_TEXT_HORZADJUST, ::getCppuType((const ::com::sun::star::drawing::TextHorizontalAdjust*)0), 0, 0}, \
{ OUString(UNO_NAME_TEXT_LEFTDIST), SDRATTR_TEXT_LEFTDIST, ::getCppuType((const sal_Int32*)0), 0, SFX_METRIC_ITEM}, \
@@ -801,16 +801,16 @@ sdr::properties::TextProperties* Cell::CloneProperties( SdrObject& rNewObj, Cell
Any SAL_CALL Cell::queryInterface( const Type & rType ) throw(RuntimeException)
{
- if( rType == XMergeableCell::static_type() )
+ if( rType == cppu::UnoType<XMergeableCell>::get() )
return Any( Reference< XMergeableCell >( this ) );
- if( rType == XCell::static_type() )
+ if( rType == cppu::UnoType<XCell>::get() )
return Any( Reference< XCell >( this ) );
- if( rType == XLayoutConstrains::static_type() )
+ if( rType == cppu::UnoType<XLayoutConstrains>::get() )
return Any( Reference< XLayoutConstrains >( this ) );
- if( rType == XEventListener::static_type() )
+ if( rType == cppu::UnoType<XEventListener>::get() )
return Any( Reference< XEventListener >( this ) );
Any aRet( SvxUnoTextBase::queryAggregation( rType ) );
@@ -844,8 +844,8 @@ Sequence< Type > SAL_CALL Cell::getTypes( ) throw (RuntimeException)
sal_Int32 nLen = aTypes.getLength();
aTypes.realloc(nLen + 2);
- aTypes[nLen++] = XMergeableCell::static_type();
- aTypes[nLen++] = XLayoutConstrains::static_type();
+ aTypes[nLen++] = cppu::UnoType<XMergeableCell>::get();
+ aTypes[nLen++] = cppu::UnoType<XLayoutConstrains>::get();
return aTypes;
}
diff --git a/svx/source/table/tablecolumns.cxx b/svx/source/table/tablecolumns.cxx
index 77428a8373b6..0dc240f6c9c5 100644
--- a/svx/source/table/tablecolumns.cxx
+++ b/svx/source/table/tablecolumns.cxx
@@ -113,7 +113,7 @@ Type SAL_CALL TableColumns::getElementType() throw (RuntimeException)
{
throwIfDisposed();
- return XCellRange::static_type();
+ return cppu::UnoType<XCellRange>::get();
}
// -----------------------------------------------------------------------------
diff --git a/svx/source/table/tabledesign.cxx b/svx/source/table/tabledesign.cxx
index 904c0daef9d0..00e857bf459d 100644
--- a/svx/source/table/tabledesign.cxx
+++ b/svx/source/table/tabledesign.cxx
@@ -236,7 +236,7 @@ sal_Bool SAL_CALL TableDesignStyle::isUserDefined() throw (RuntimeException)
sal_Bool SAL_CALL TableDesignStyle::isInUse() throw (RuntimeException)
{
ClearableMutexGuard aGuard( rBHelper.rMutex );
- OInterfaceContainerHelper * pContainer = rBHelper.getContainer( XModifyListener::static_type() );
+ OInterfaceContainerHelper * pContainer = rBHelper.getContainer( cppu::UnoType<XModifyListener>::get() );
if( pContainer )
{
Sequence< Reference< XInterface > > aListener( pContainer->getElements() );
@@ -334,7 +334,7 @@ sal_Bool SAL_CALL TableDesignStyle::hasByName( const OUString& rName ) throw(Ru
Type SAL_CALL TableDesignStyle::getElementType() throw(RuntimeException)
{
- return XStyle::static_type();
+ return cppu::UnoType<XStyle>::get();
}
// ----------------------------------------------------------
@@ -430,7 +430,7 @@ void SAL_CALL TableDesignStyle::addModifyListener( const Reference< XModifyListe
}
else
{
- rBHelper.addListener( XModifyListener::static_type(), xListener );
+ rBHelper.addListener( cppu::UnoType<XModifyListener>::get(), xListener );
}
}
@@ -438,7 +438,7 @@ void SAL_CALL TableDesignStyle::addModifyListener( const Reference< XModifyListe
void SAL_CALL TableDesignStyle::removeModifyListener( const Reference< XModifyListener >& xListener ) throw (RuntimeException)
{
- rBHelper.removeListener( XModifyListener::static_type(), xListener );
+ rBHelper.removeListener( cppu::UnoType<XModifyListener>::get(), xListener );
}
//------------------------------------------------------------------------
@@ -447,7 +447,7 @@ void TableDesignStyle::notifyModifyListener()
{
MutexGuard aGuard( rBHelper.rMutex );
- OInterfaceContainerHelper * pContainer = rBHelper.getContainer( XModifyListener::static_type() );
+ OInterfaceContainerHelper * pContainer = rBHelper.getContainer( cppu::UnoType<XModifyListener>::get() );
if( pContainer )
{
EventObject aEvt( static_cast< OWeakObject * >( this ) );
@@ -558,7 +558,7 @@ sal_Bool SAL_CALL TableDesignFamily::hasByName( const OUString& aName ) throw(Ru
Type SAL_CALL TableDesignFamily::getElementType() throw(RuntimeException)
{
- return XStyle::static_type();
+ return cppu::UnoType<XStyle>::get();
}
// ----------------------------------------------------------
diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx
index 62d20c204302..0bbb63d78131 100644
--- a/svx/source/table/tablemodel.cxx
+++ b/svx/source/table/tablemodel.cxx
@@ -390,14 +390,14 @@ void SAL_CALL TableModel::setModified( sal_Bool bModified ) throw (PropertyVetoE
void SAL_CALL TableModel::addModifyListener( const Reference< XModifyListener >& xListener ) throw (RuntimeException)
{
- rBHelper.addListener( XModifyListener::static_type() , xListener );
+ rBHelper.addListener( cppu::UnoType<XModifyListener>::get() , xListener );
}
// -----------------------------------------------------------------------------
void SAL_CALL TableModel::removeModifyListener( const Reference< XModifyListener >& xListener ) throw (RuntimeException)
{
- rBHelper.removeListener( XModifyListener::static_type() , xListener );
+ rBHelper.removeListener( cppu::UnoType<XModifyListener>::get() , xListener );
}
// -----------------------------------------------------------------------------
@@ -606,7 +606,7 @@ void TableModel::notifyModification()
{
mbNotifyPending = false;
- ::cppu::OInterfaceContainerHelper * pModifyListeners = rBHelper.getContainer( XModifyListener::static_type() );
+ ::cppu::OInterfaceContainerHelper * pModifyListeners = rBHelper.getContainer( cppu::UnoType<XModifyListener>::get() );
if( pModifyListeners )
{
EventObject aSource;
diff --git a/svx/source/table/tablerows.cxx b/svx/source/table/tablerows.cxx
index 6bba9e6d8ddc..6bc90ed81f53 100644
--- a/svx/source/table/tablerows.cxx
+++ b/svx/source/table/tablerows.cxx
@@ -109,7 +109,7 @@ Any SAL_CALL TableRows::getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsExc
Type SAL_CALL TableRows::getElementType() throw (RuntimeException)
{
throwIfDisposed();
- return XCellRange::static_type();
+ return cppu::UnoType<XCellRange>::get();
}
// -----------------------------------------------------------------------------
diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx
index ec8120a27252..0ec21af44650 100644
--- a/svx/source/unodraw/unoprov.cxx
+++ b/svx/source/unodraw/unoprov.cxx
@@ -245,7 +245,7 @@ SfxItemPropertyMapEntry const * ImplGetSvxGraphicObjectPropertyMap()
{ OUString("IsMirrored"), OWN_ATTR_MIRRORED, ::getCppuBooleanType(), 0, 0},
{ OUString("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0},
{ OUString("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0},
- { OUString("GraphicStream"), OWN_ATTR_GRAPHIC_STREAM, ::com::sun::star::io::XInputStream::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
+ { OUString("GraphicStream"), OWN_ATTR_GRAPHIC_STREAM, cppu::UnoType<::com::sun::star::io::XInputStream>::get(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
@@ -726,7 +726,7 @@ SfxItemPropertyMapEntry const * ImplGetSvxMediaShapePropertyMap()
// #i68101#
{ OUString(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , ::getCppuType((const OUString*)0), 0, 0},
{ OUString(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , ::getCppuType((const OUString*)0), 0, 0},
- {OUString("PrivateStream"), OWN_ATTR_MEDIA_STREAM, ::com::sun::star::io::XInputStream::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
+ {OUString("PrivateStream"), OWN_ATTR_MEDIA_STREAM, cppu::UnoType<::com::sun::star::io::XInputStream>::get(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
{OUString("PrivateTempFileURL"), OWN_ATTR_MEDIA_TEMPFILEURL, ::getCppuType((const OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
@@ -741,7 +741,7 @@ SfxItemPropertyMapEntry const * ImplGetSvxTableShapePropertyMap()
{ OUString(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER, ::getCppuType((const sal_Int32*)0), 0, 0},
{ OUString(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID, ::getCppuType((const sal_Int16*)0), 0, 0},
{ OUString(UNO_NAME_MISC_OBJ_LAYERNAME), SDRATTR_LAYERNAME, ::getCppuType((const OUString*)0), 0, 0},
- { OUString(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP, ::com::sun::star::awt::XBitmap::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
+ { OUString(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP, cppu::UnoType<::com::sun::star::awt::XBitmap>::get(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
{ OUString(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME, ::getCppuType(( const OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
{ OUString("Transformation"), OWN_ATTR_TRANSFORMATION, ::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 },
{ OUString(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, ::getBooleanCppuType(),0, 0},
@@ -750,15 +750,15 @@ SfxItemPropertyMapEntry const * ImplGetSvxTableShapePropertyMap()
{ OUString(UNO_NAME_MISC_OBJ_NAME), SDRATTR_OBJECTNAME, ::getCppuType((const ::rtl::OUString*)0), 0, 0},
{ OUString(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , ::getCppuType((const OUString*)0), 0, 0},
{ OUString(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , ::getCppuType((const OUString*)0), 0, 0},
- { OUString("Model"), OWN_ATTR_OLEMODEL , ::com::sun::star::table::XTable::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
- { OUString("TableTemplate"), OWN_ATTR_TABLETEMPLATE , ::com::sun::star::container::XIndexAccess::static_type(), 0, 0},
+ { OUString("Model"), OWN_ATTR_OLEMODEL , cppu::UnoType<::com::sun::star::table::XTable>::get(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
+ { OUString("TableTemplate"), OWN_ATTR_TABLETEMPLATE , cppu::UnoType<::com::sun::star::container::XIndexAccess>::get(), 0, 0},
{ OUString("UseFirstRowStyle"), OWN_ATTR_TABLETEMPLATE_FIRSTROW, ::getBooleanCppuType(),0, 0},
{ OUString("UseLastRowStyle"), OWN_ATTR_TABLETEMPLATE_LASTROW, ::getBooleanCppuType(),0, 0},
{ OUString("UseFirstColumnStyle"), OWN_ATTR_TABLETEMPLATE_FIRSTCOLUMN, ::getBooleanCppuType(),0, 0},
{ OUString("UseLastColumnStyle"), OWN_ATTR_TABLETEMPLATE_LASTCOLUMN, ::getBooleanCppuType(),0, 0},
{ OUString("UseBandingRowStyle"), OWN_ATTR_TABLETEMPLATE_BANDINGROWS, ::getBooleanCppuType(),0, 0},
{ OUString("UseBandingColumnStyle"), OWN_ATTR_TABLETEMPLATE_BANDINGCOULUMNS, ::getBooleanCppuType(),0, 0},
- { OUString("ReplacementGraphic"), OWN_ATTR_BITMAP, ::com::sun::star::graphic::XGraphic::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
+ { OUString("ReplacementGraphic"), OWN_ATTR_BITMAP, cppu::UnoType<::com::sun::star::graphic::XGraphic>::get(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0},
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index 3d8370fabb0e..a58b91d1b076 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -1479,7 +1479,7 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte
}
}
}
- else if( (rValue.getValueType() == awt::XBitmap::static_type()) || (rValue.getValueType() == graphic::XGraphic::static_type()))
+ else if( (rValue.getValueType() == cppu::UnoType<awt::XBitmap>::get()) || (rValue.getValueType() == cppu::UnoType<graphic::XGraphic>::get()))
{
Reference< graphic::XGraphic> xGraphic( rValue, UNO_QUERY );
if( xGraphic.is() )
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 2a97b18a6a69..8c64c3a4c780 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -782,7 +782,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
@@ -814,7 +814,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
@@ -848,7 +848,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
@@ -886,7 +886,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
@@ -919,7 +919,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
@@ -951,7 +951,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
@@ -1005,7 +1005,7 @@ uno::Sequence< uno::Type > SAL_CALL SvxShape::_getTypes()
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XMultiPropertySet >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< beans::XPropertyState >*)0);
- *pTypes++ = beans::XMultiPropertyStates::static_type();
+ *pTypes++ = cppu::UnoType<beans::XMultiPropertyStates>::get();
*pTypes++ = ::getCppuType((const uno::Reference< drawing::XGluePointsSupplier >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< container::XChild >*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo >*)0);
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 9033c16885c8..bc45c31ddf23 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -1928,7 +1928,7 @@ void SwXShape::addPropertyChangeListener(
// must be handled by the aggregate
uno::Reference< beans::XPropertySet > xShapeProps;
- if ( xShapeAgg->queryAggregation( beans::XPropertySet::static_type() ) >>= xShapeProps )
+ if ( xShapeAgg->queryAggregation( cppu::UnoType<beans::XPropertySet>::get() ) >>= xShapeProps )
xShapeProps->addPropertyChangeListener( _propertyName, _listener );
}
@@ -1943,7 +1943,7 @@ void SwXShape::removePropertyChangeListener(
// must be handled by the aggregate
uno::Reference< beans::XPropertySet > xShapeProps;
- if ( xShapeAgg->queryAggregation( beans::XPropertySet::static_type() ) >>= xShapeProps )
+ if ( xShapeAgg->queryAggregation( cppu::UnoType<beans::XPropertySet>::get() ) >>= xShapeProps )
xShapeProps->removePropertyChangeListener( _propertyName, _listener );
}
diff --git a/sw/source/core/unocore/unoftn.cxx b/sw/source/core/unocore/unoftn.cxx
index 80f1f47853b6..3345f3318820 100644
--- a/sw/source/core/unocore/unoftn.cxx
+++ b/sw/source/core/unocore/unoftn.cxx
@@ -500,7 +500,7 @@ SwXFootnote::createEnumeration() throw (uno::RuntimeException)
uno::Type SAL_CALL SwXFootnote::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL SwXFootnote::hasElements() throw (uno::RuntimeException)
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 6d265a487554..6dd8bb943e70 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -1252,7 +1252,7 @@ void SAL_CALL SwXDocumentIndex::refresh() throw (uno::RuntimeException)
::cppu::OInterfaceContainerHelper *const pContainer(
m_pImpl->m_Listeners.getContainer(
- util::XRefreshListener::static_type()));
+ cppu::UnoType<util::XRefreshListener>::get()));
if (pContainer)
{
lang::EventObject const event(static_cast< ::cppu::OWeakObject*>(this));
@@ -1266,7 +1266,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.addInterface(
- util::XRefreshListener::static_type(), xListener);
+ cppu::UnoType<util::XRefreshListener>::get(), xListener);
}
void SAL_CALL SwXDocumentIndex::removeRefreshListener(
@@ -1275,7 +1275,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.removeInterface(
- util::XRefreshListener::static_type(), xListener);
+ cppu::UnoType<util::XRefreshListener>::get(), xListener);
}
void SAL_CALL
@@ -1386,7 +1386,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.addInterface(
- lang::XEventListener::static_type(), xListener);
+ cppu::UnoType<lang::XEventListener>::get(), xListener);
}
void SAL_CALL
@@ -1396,7 +1396,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.removeInterface(
- lang::XEventListener::static_type(), xListener);
+ cppu::UnoType<lang::XEventListener>::get(), xListener);
}
OUString SAL_CALL SwXDocumentIndex::getName() throw (uno::RuntimeException)
@@ -2518,7 +2518,7 @@ throw (uno::RuntimeException)
uno::Type SAL_CALL
SwXDocumentIndexes::getElementType() throw (uno::RuntimeException)
{
- return text::XDocumentIndex::static_type();
+ return cppu::UnoType<text::XDocumentIndex>::get();
}
sal_Bool SAL_CALL
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 6a974597c57a..ff29a5c461aa 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -3050,7 +3050,7 @@ SwXTextCursor::createEnumeration() throw (uno::RuntimeException)
uno::Type SAL_CALL
SwXTextCursor::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL SwXTextCursor::hasElements() throw (uno::RuntimeException)
@@ -3073,7 +3073,7 @@ uno::Any SAL_CALL
SwXTextCursor::queryInterface(const uno::Type& rType)
throw (uno::RuntimeException)
{
- return (rType == lang::XUnoTunnel::static_type())
+ return (rType == cppu::UnoType<lang::XUnoTunnel>::get())
? OTextCursorHelper::queryInterface(rType)
: SwXTextCursor_Base::queryInterface(rType);
}
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index fd57634d6681..931a214d7ea2 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -1328,7 +1328,7 @@ SwXTextRange::createEnumeration() throw (uno::RuntimeException)
uno::Type SAL_CALL SwXTextRange::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL SwXTextRange::hasElements() throw (uno::RuntimeException)
@@ -1665,7 +1665,7 @@ throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException,
uno::Type SAL_CALL
SwXTextRanges::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL SwXTextRanges::hasElements() throw (uno::RuntimeException)
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index 3d4e97298fbc..bb71cc3d871b 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -1161,7 +1161,7 @@ SwXParagraph::createEnumeration() throw (uno::RuntimeException)
uno::Type SAL_CALL SwXParagraph::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL SwXParagraph::hasElements() throw (uno::RuntimeException)
diff --git a/sw/source/core/unocore/unorefmk.cxx b/sw/source/core/unocore/unorefmk.cxx
index 5d15fd486034..75337dd0ba5e 100644
--- a/sw/source/core/unocore/unorefmk.cxx
+++ b/sw/source/core/unocore/unorefmk.cxx
@@ -1231,7 +1231,7 @@ SwXMeta::setParent(uno::Reference< uno::XInterface > const& /*xParent*/)
uno::Type SAL_CALL
SwXMeta::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index e54169b09b76..2d2cc1af6d6c 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -123,7 +123,7 @@ static void lcl_SendChartEvent(::cppu::OWeakObject & rSource,
::cppu::OMultiTypeInterfaceContainerHelper & rListeners)
{
::cppu::OInterfaceContainerHelper *const pContainer(rListeners.getContainer(
- chart::XChartDataChangeEventListener::static_type()));
+ cppu::UnoType<chart::XChartDataChangeEventListener>::get()));
if (pContainer)
{
lcl_SendChartEvent(rSource, *pContainer);
@@ -2414,7 +2414,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.addInterface(
- lang::XEventListener::static_type(), xListener);
+ cppu::UnoType<lang::XEventListener>::get(), xListener);
}
void SAL_CALL SwXTextTable::removeEventListener(
@@ -2423,7 +2423,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.removeInterface(
- lang::XEventListener::static_type(), xListener);
+ cppu::UnoType<lang::XEventListener>::get(), xListener);
}
uno::Reference< table::XCell > SwXTextTable::getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow)
@@ -2924,7 +2924,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.addInterface(
- chart::XChartDataChangeEventListener::static_type(), xListener);
+ cppu::UnoType<chart::XChartDataChangeEventListener>::get(), xListener);
}
void SAL_CALL SwXTextTable::removeChartDataChangeEventListener(
@@ -2933,7 +2933,7 @@ throw (uno::RuntimeException)
{
// no need to lock here as m_pImpl is const and container threadsafe
m_pImpl->m_Listeners.removeInterface(
- chart::XChartDataChangeEventListener::static_type(), xListener);
+ cppu::UnoType<chart::XChartDataChangeEventListener>::get(), xListener);
}
sal_Bool SwXTextTable::isNotANumber(double nNumber) throw( uno::RuntimeException )
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index f8867d972494..dae5ca6d94cd 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -195,67 +195,67 @@ uno::Any SAL_CALL
SwXText::queryInterface(const uno::Type& rType) throw (uno::RuntimeException)
{
uno::Any aRet;
- if (rType == text::XText::static_type())
+ if (rType == cppu::UnoType<text::XText>::get())
{
aRet <<= uno::Reference< text::XText >(this);
}
- else if (rType == text::XSimpleText::static_type())
+ else if (rType == cppu::UnoType<text::XSimpleText>::get())
{
aRet <<= uno::Reference< text::XSimpleText >(this);
}
- else if (rType == text::XTextRange::static_type())
+ else if (rType == cppu::UnoType<text::XTextRange>::get())
{
aRet <<= uno::Reference< text::XTextRange>(this);
}
- else if (rType == text::XTextRangeCompare::static_type())
+ else if (rType == cppu::UnoType<text::XTextRangeCompare>::get())
{
aRet <<= uno::Reference< text::XTextRangeCompare >(this);
}
- else if (rType == lang::XTypeProvider::static_type())
+ else if (rType == cppu::UnoType<lang::XTypeProvider>::get())
{
aRet <<= uno::Reference< lang::XTypeProvider >(this);
}
- else if (rType == text::XRelativeTextContentInsert::static_type())
+ else if (rType == cppu::UnoType<text::XRelativeTextContentInsert>::get())
{
aRet <<= uno::Reference< text::XRelativeTextContentInsert >(this);
}
- else if (rType == text::XRelativeTextContentRemove::static_type())
+ else if (rType == cppu::UnoType<text::XRelativeTextContentRemove>::get())
{
aRet <<= uno::Reference< text::XRelativeTextContentRemove >(this);
}
- else if (rType == beans::XPropertySet::static_type())
+ else if (rType == cppu::UnoType<beans::XPropertySet>::get())
{
aRet <<= uno::Reference< beans::XPropertySet >(this);
}
- else if (rType == lang::XUnoTunnel::static_type())
+ else if (rType == cppu::UnoType<lang::XUnoTunnel>::get())
{
aRet <<= uno::Reference< lang::XUnoTunnel >(this);
}
- else if (rType == text::XTextAppendAndConvert::static_type())
+ else if (rType == cppu::UnoType<text::XTextAppendAndConvert>::get())
{
aRet <<= uno::Reference< text::XTextAppendAndConvert >(this);
}
- else if (rType == text::XTextAppend::static_type())
+ else if (rType == cppu::UnoType<text::XTextAppend>::get())
{
aRet <<= uno::Reference< text::XTextAppend >(this);
}
- else if (rType == text::XTextPortionAppend::static_type())
+ else if (rType == cppu::UnoType<text::XTextPortionAppend>::get())
{
aRet <<= uno::Reference< text::XTextPortionAppend >(this);
}
- else if (rType == text::XParagraphAppend::static_type())
+ else if (rType == cppu::UnoType<text::XParagraphAppend>::get())
{
aRet <<= uno::Reference< text::XParagraphAppend >(this);
}
- else if (rType == text::XTextConvert::static_type() )
+ else if (rType == cppu::UnoType<text::XTextConvert>::get() )
{
aRet <<= uno::Reference< text::XTextConvert >(this);
}
- else if (rType == text::XTextContentAppend::static_type())
+ else if (rType == cppu::UnoType<text::XTextContentAppend>::get())
{
aRet <<= uno::Reference< text::XTextContentAppend >(this);
}
- else if(rType == text::XTextCopy::static_type())
+ else if(rType == cppu::UnoType<text::XTextCopy>::get())
{
aRet <<= uno::Reference< text::XTextCopy >( this );
}
@@ -267,18 +267,18 @@ SwXText::getTypes() throw (uno::RuntimeException)
{
uno::Sequence< uno::Type > aRet(12);
uno::Type* pTypes = aRet.getArray();
- pTypes[0] = text::XText::static_type();
- pTypes[1] = text::XTextRangeCompare::static_type();
- pTypes[2] = text::XRelativeTextContentInsert::static_type();
- pTypes[3] = text::XRelativeTextContentRemove::static_type();
- pTypes[4] = lang::XUnoTunnel::static_type();
- pTypes[5] = beans::XPropertySet::static_type();
- pTypes[6] = text::XTextPortionAppend::static_type();
- pTypes[7] = text::XParagraphAppend::static_type();
- pTypes[8] = text::XTextContentAppend::static_type();
- pTypes[9] = text::XTextConvert::static_type();
- pTypes[10] = text::XTextAppend::static_type();
- pTypes[11] = text::XTextAppendAndConvert::static_type();
+ pTypes[0] = cppu::UnoType<text::XText>::get();
+ pTypes[1] = cppu::UnoType<text::XTextRangeCompare>::get();
+ pTypes[2] = cppu::UnoType<text::XRelativeTextContentInsert>::get();
+ pTypes[3] = cppu::UnoType<text::XRelativeTextContentRemove>::get();
+ pTypes[4] = cppu::UnoType<lang::XUnoTunnel>::get();
+ pTypes[5] = cppu::UnoType<beans::XPropertySet>::get();
+ pTypes[6] = cppu::UnoType<text::XTextPortionAppend>::get();
+ pTypes[7] = cppu::UnoType<text::XParagraphAppend>::get();
+ pTypes[8] = cppu::UnoType<text::XTextContentAppend>::get();
+ pTypes[9] = cppu::UnoType<text::XTextConvert>::get();
+ pTypes[10] = cppu::UnoType<text::XTextAppend>::get();
+ pTypes[11] = cppu::UnoType<text::XTextAppendAndConvert>::get();
return aRet;
}
@@ -2386,15 +2386,15 @@ SwXBodyText::queryAggregation(const uno::Type& rType)
throw (uno::RuntimeException)
{
uno::Any aRet;
- if (rType == container::XEnumerationAccess::static_type())
+ if (rType == cppu::UnoType<container::XEnumerationAccess>::get())
{
aRet <<= uno::Reference< container::XEnumerationAccess >(this);
}
- else if (rType == container::XElementAccess::static_type())
+ else if (rType == cppu::UnoType<container::XElementAccess>::get())
{
aRet <<= uno::Reference< container::XElementAccess >(this);
}
- else if (rType == lang::XServiceInfo::static_type())
+ else if (rType == cppu::UnoType<lang::XServiceInfo>::get())
{
aRet <<= uno::Reference< lang::XServiceInfo >(this);
}
@@ -2556,7 +2556,7 @@ throw (uno::RuntimeException)
uno::Type SAL_CALL
SwXBodyText::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL
@@ -2833,7 +2833,7 @@ throw (uno::RuntimeException)
uno::Type SAL_CALL
SwXHeadFootText::getElementType() throw (uno::RuntimeException)
{
- return text::XTextRange::static_type();
+ return cppu::UnoType<text::XTextRange>::get();
}
sal_Bool SAL_CALL SwXHeadFootText::hasElements() throw (uno::RuntimeException)
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx
index 3820ae6a0975..54052c835c98 100644
--- a/sw/source/filter/xml/swxml.cxx
+++ b/sw/source/filter/xml/swxml.cxx
@@ -608,7 +608,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c
{ OUString("TextDocInOOoFileFormat"), 0,
::getBooleanCppuType(),
beans::PropertyAttribute::MAYBEVOID, 0 },
- { OUString("SourceStorage"), 0, embed::XStorage::static_type(),
+ { OUString("SourceStorage"), 0, cppu::UnoType<embed::XStorage>::get(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx
index 61594fffdf72..0c761d587580 100644
--- a/sw/source/filter/xml/wrtxml.cxx
+++ b/sw/source/filter/xml/wrtxml.cxx
@@ -150,7 +150,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
{ OUString("OutlineStyleAsNormalListStyle"), 0,
::getBooleanCppuType(),
beans::PropertyAttribute::MAYBEVOID, 0 },
- { OUString("TargetStorage"),0, embed::XStorage::static_type(),
+ { OUString("TargetStorage"),0, cppu::UnoType<embed::XStorage>::get(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
diff --git a/sw/source/ui/vba/vbaaddins.cxx b/sw/source/ui/vba/vbaaddins.cxx
index ab62eed64c3c..cb199e55ae9a 100644
--- a/sw/source/ui/vba/vbaaddins.cxx
+++ b/sw/source/ui/vba/vbaaddins.cxx
@@ -64,7 +64,7 @@ SwVbaAddins::SwVbaAddins( const uno::Reference< XHelperInterface >& xParent, con
uno::Type
SwVbaAddins::getElementType() throw (uno::RuntimeException)
{
- return word::XAddin::static_type(0);
+ return cppu::UnoType<word::XAddin>::get();
}
uno::Reference< container::XEnumeration >
SwVbaAddins::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbaautotextentry.cxx b/sw/source/ui/vba/vbaautotextentry.cxx
index 9ac6382fbbba..9a5b58b76035 100644
--- a/sw/source/ui/vba/vbaautotextentry.cxx
+++ b/sw/source/ui/vba/vbaautotextentry.cxx
@@ -102,7 +102,7 @@ SwVbaAutoTextEntries::SwVbaAutoTextEntries( const uno::Reference< XHelperInterfa
uno::Type
SwVbaAutoTextEntries::getElementType() throw (uno::RuntimeException)
{
- return word::XAutoTextEntry::static_type(0);
+ return cppu::UnoType<word::XAutoTextEntry>::get();
}
uno::Reference< container::XEnumeration >
SwVbaAutoTextEntries::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbabookmarks.cxx b/sw/source/ui/vba/vbabookmarks.cxx
index 1479a64ac277..0e9f8f3b5d62 100644
--- a/sw/source/ui/vba/vbabookmarks.cxx
+++ b/sw/source/ui/vba/vbabookmarks.cxx
@@ -114,7 +114,7 @@ SwVbaBookmarks::SwVbaBookmarks( const uno::Reference< XHelperInterface >& xParen
uno::Type
SwVbaBookmarks::getElementType() throw (uno::RuntimeException)
{
- return word::XBookmark::static_type(0);
+ return cppu::UnoType<word::XBookmark>::get();
}
uno::Reference< container::XEnumeration >
SwVbaBookmarks::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbaborders.cxx b/sw/source/ui/vba/vbaborders.cxx
index 2559f3e4e868..d8845ca9cf4a 100644
--- a/sw/source/ui/vba/vbaborders.cxx
+++ b/sw/source/ui/vba/vbaborders.cxx
@@ -273,7 +273,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XBorder::static_type(0);
+ return cppu::UnoType<word::XBorder>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -327,7 +327,7 @@ SwVbaBorders::createCollectionObject( const css::uno::Any& aSource )
uno::Type
SwVbaBorders::getElementType() throw (uno::RuntimeException)
{
- return word::XBorders::static_type(0);
+ return cppu::UnoType<word::XBorders>::get();
}
uno::Any
diff --git a/sw/source/ui/vba/vbacells.cxx b/sw/source/ui/vba/vbacells.cxx
index fe5b050508ad..d975da608241 100644
--- a/sw/source/ui/vba/vbacells.cxx
+++ b/sw/source/ui/vba/vbacells.cxx
@@ -90,7 +90,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XCell::static_type(0);
+ return cppu::UnoType<word::XCell>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -176,7 +176,7 @@ void SAL_CALL SwVbaCells::SetHeight( float height, sal_Int32 heightrule ) throw
uno::Type
SwVbaCells::getElementType() throw (uno::RuntimeException)
{
- return word::XCell::static_type(0);
+ return cppu::UnoType<word::XCell>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sw/source/ui/vba/vbacolumns.cxx b/sw/source/ui/vba/vbacolumns.cxx
index 344dbb6a03c0..5bcf49b8b1d0 100644
--- a/sw/source/ui/vba/vbacolumns.cxx
+++ b/sw/source/ui/vba/vbacolumns.cxx
@@ -115,7 +115,7 @@ uno::Any SAL_CALL SwVbaColumns::Item( const uno::Any& Index1, const uno::Any& /*
uno::Type
SwVbaColumns::getElementType() throw (uno::RuntimeException)
{
- return word::XColumn::static_type(0);
+ return cppu::UnoType<word::XColumn>::get();
}
uno::Reference< container::XEnumeration >
SwVbaColumns::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbadocumentproperties.cxx b/sw/source/ui/vba/vbadocumentproperties.cxx
index 613b08b69e50..a7d13a3dc36f 100644
--- a/sw/source/ui/vba/vbadocumentproperties.cxx
+++ b/sw/source/ui/vba/vbadocumentproperties.cxx
@@ -727,7 +727,7 @@ protected:
// XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return XDocumentProperty::static_type(0);
+ return cppu::UnoType<XDocumentProperty>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -754,7 +754,7 @@ SwVbaBuiltinDocumentProperties::Add( const OUString& /*Name*/, ::sal_Bool /*Link
uno::Type SAL_CALL
SwVbaBuiltinDocumentProperties::getElementType() throw (uno::RuntimeException)
{
- return XDocumentProperty::static_type(0);
+ return cppu::UnoType<XDocumentProperty>::get();
}
uno::Reference< container::XEnumeration > SAL_CALL
@@ -852,7 +852,7 @@ public:
// XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return XDocumentProperty::static_type(0);
+ return cppu::UnoType<XDocumentProperty>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbadocuments.cxx b/sw/source/ui/vba/vbadocuments.cxx
index f79edda3baf5..25a09b2741ce 100644
--- a/sw/source/ui/vba/vbadocuments.cxx
+++ b/sw/source/ui/vba/vbadocuments.cxx
@@ -84,7 +84,7 @@ SwVbaDocuments::SwVbaDocuments( const uno::Reference< XHelperInterface >& xParen
uno::Type
SwVbaDocuments::getElementType() throw (uno::RuntimeException)
{
- return word::XDocument::static_type(0);
+ return cppu::UnoType<word::XDocument>::get();
}
uno::Reference< container::XEnumeration >
SwVbaDocuments::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx
index 0eb5db1b27eb..0493ab6669cc 100644
--- a/sw/source/ui/vba/vbafield.cxx
+++ b/sw/source/ui/vba/vbafield.cxx
@@ -520,7 +520,7 @@ SwVbaFields::getServiceImplName()
uno::Type SAL_CALL
SwVbaFields::getElementType() throw (uno::RuntimeException)
{
- return word::XField::static_type(0);
+ return cppu::UnoType<word::XField>::get();
}
uno::Sequence<OUString>
diff --git a/sw/source/ui/vba/vbaformfields.cxx b/sw/source/ui/vba/vbaformfields.cxx
index 45491a0adde9..94608a8e9cc0 100644
--- a/sw/source/ui/vba/vbaformfields.cxx
+++ b/sw/source/ui/vba/vbaformfields.cxx
@@ -98,7 +98,7 @@ public:
cachePos = mxFormFields.begin();
}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return word::XFormField::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<word::XFormField>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { return getCount() > 0 ; }
// XNameAcess
virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
@@ -159,7 +159,7 @@ SwVbaFormFields::SwVbaFormFields( const uno::Reference< XHelperInterface >& xPar
uno::Type
SwVbaFormFields::getElementType() throw (uno::RuntimeException)
{
- return word::XFormField::static_type(0);
+ return cppu::UnoType<word::XFormField>::get();
}
uno::Reference< container::XEnumeration >
SwVbaFormFields::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbaframes.cxx b/sw/source/ui/vba/vbaframes.cxx
index 26316a1e643d..7400f51e7590 100644
--- a/sw/source/ui/vba/vbaframes.cxx
+++ b/sw/source/ui/vba/vbaframes.cxx
@@ -62,7 +62,7 @@ SwVbaFrames::SwVbaFrames( const uno::Reference< XHelperInterface >& xParent, con
uno::Type
SwVbaFrames::getElementType() throw (uno::RuntimeException)
{
- return word::XFrame::static_type(0);
+ return cppu::UnoType<word::XFrame>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sw/source/ui/vba/vbaheadersfooters.cxx b/sw/source/ui/vba/vbaheadersfooters.cxx
index 69fa3f942d0f..d5f52910fbdd 100644
--- a/sw/source/ui/vba/vbaheadersfooters.cxx
+++ b/sw/source/ui/vba/vbaheadersfooters.cxx
@@ -52,7 +52,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XHeaderFooter::static_type(0);
+ return cppu::UnoType<word::XHeaderFooter>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -104,7 +104,7 @@ uno::Any SAL_CALL SwVbaHeadersFooters::Item( const uno::Any& Index1, const uno::
uno::Type
SwVbaHeadersFooters::getElementType() throw (uno::RuntimeException)
{
- return word::XHeaderFooter::static_type(0);
+ return cppu::UnoType<word::XHeaderFooter>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sw/source/ui/vba/vbalistgalleries.cxx b/sw/source/ui/vba/vbalistgalleries.cxx
index 5178e49b32d4..ecb8852c84ca 100644
--- a/sw/source/ui/vba/vbalistgalleries.cxx
+++ b/sw/source/ui/vba/vbalistgalleries.cxx
@@ -69,7 +69,7 @@ uno::Any SAL_CALL SwVbaListGalleries::Item( const uno::Any& Index1, const uno::A
uno::Type
SwVbaListGalleries::getElementType() throw (uno::RuntimeException)
{
- return word::XListGallery::static_type(0);
+ return cppu::UnoType<word::XListGallery>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sw/source/ui/vba/vbalistlevels.cxx b/sw/source/ui/vba/vbalistlevels.cxx
index edefd64f3ddd..9c2822f34fce 100644
--- a/sw/source/ui/vba/vbalistlevels.cxx
+++ b/sw/source/ui/vba/vbalistlevels.cxx
@@ -72,7 +72,7 @@ uno::Any SAL_CALL SwVbaListLevels::Item( const uno::Any& Index1, const uno::Any&
uno::Type
SwVbaListLevels::getElementType() throw (uno::RuntimeException)
{
- return word::XListLevel::static_type(0);
+ return cppu::UnoType<word::XListLevel>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sw/source/ui/vba/vbalisttemplates.cxx b/sw/source/ui/vba/vbalisttemplates.cxx
index 749d92f644c5..00f3ee22bca3 100644
--- a/sw/source/ui/vba/vbalisttemplates.cxx
+++ b/sw/source/ui/vba/vbalisttemplates.cxx
@@ -66,7 +66,7 @@ uno::Any SAL_CALL SwVbaListTemplates::Item( const uno::Any& Index1, const uno::A
uno::Type
SwVbaListTemplates::getElementType() throw (uno::RuntimeException)
{
- return word::XListTemplate::static_type(0);
+ return cppu::UnoType<word::XListTemplate>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/sw/source/ui/vba/vbapanes.cxx b/sw/source/ui/vba/vbapanes.cxx
index 8bf6b45ab87f..ec1e6a94cf86 100644
--- a/sw/source/ui/vba/vbapanes.cxx
+++ b/sw/source/ui/vba/vbapanes.cxx
@@ -48,7 +48,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XPane::static_type(0);
+ return cppu::UnoType<word::XPane>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -82,7 +82,7 @@ SwVbaPanes::SwVbaPanes( const uno::Reference< XHelperInterface >& xParent, const
uno::Type
SwVbaPanes::getElementType() throw (uno::RuntimeException)
{
- return word::XPane::static_type(0);
+ return cppu::UnoType<word::XPane>::get();
}
uno::Reference< container::XEnumeration >
SwVbaPanes::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbaparagraph.cxx b/sw/source/ui/vba/vbaparagraph.cxx
index c7547ef92eae..5a015e0405c0 100644
--- a/sw/source/ui/vba/vbaparagraph.cxx
+++ b/sw/source/ui/vba/vbaparagraph.cxx
@@ -90,7 +90,7 @@ public:
{
}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return text::XTextRange::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<text::XTextRange>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { return sal_True; }
// XIndexAccess
virtual ::sal_Int32 SAL_CALL getCount( ) throw (uno::RuntimeException)
@@ -141,7 +141,7 @@ SwVbaParagraphs::SwVbaParagraphs( const uno::Reference< XHelperInterface >& xPar
uno::Type
SwVbaParagraphs::getElementType() throw (uno::RuntimeException)
{
- return word::XParagraph::static_type(0);
+ return cppu::UnoType<word::XParagraph>::get();
}
uno::Reference< container::XEnumeration >
SwVbaParagraphs::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbarevisions.cxx b/sw/source/ui/vba/vbarevisions.cxx
index 98bde2b12215..073554134015 100644
--- a/sw/source/ui/vba/vbarevisions.cxx
+++ b/sw/source/ui/vba/vbarevisions.cxx
@@ -55,7 +55,7 @@ public:
RevisionCollectionHelper( const uno::Reference< frame::XModel >& xModel, const uno::Reference< text::XTextRange >& xTextRange ) throw (uno::RuntimeException);
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return beans::XPropertySet::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<beans::XPropertySet>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { return ( !mRevisionMap.empty() ); }
// XIndexAccess
virtual ::sal_Int32 SAL_CALL getCount( ) throw (uno::RuntimeException) { return mRevisionMap.size(); }
@@ -116,7 +116,7 @@ SwVbaRevisions::SwVbaRevisions( const uno::Reference< XHelperInterface >& xParen
uno::Type
SwVbaRevisions::getElementType() throw (uno::RuntimeException)
{
- return word::XRevision::static_type(0);
+ return cppu::UnoType<word::XRevision>::get();
}
uno::Reference< container::XEnumeration >
SwVbaRevisions::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx
index 2600ac2efc15..9f728d6068b1 100644
--- a/sw/source/ui/vba/vbarows.cxx
+++ b/sw/source/ui/vba/vbarows.cxx
@@ -334,7 +334,7 @@ uno::Any SAL_CALL SwVbaRows::Item( const uno::Any& Index1, const uno::Any& /*not
uno::Type
SwVbaRows::getElementType() throw (uno::RuntimeException)
{
- return word::XRow::static_type(0);
+ return cppu::UnoType<word::XRow>::get();
}
uno::Reference< container::XEnumeration >
SwVbaRows::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbasections.cxx b/sw/source/ui/vba/vbasections.cxx
index aa4d7bb72d4f..4c874c26dbac 100644
--- a/sw/source/ui/vba/vbasections.cxx
+++ b/sw/source/ui/vba/vbasections.cxx
@@ -105,7 +105,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XSection::static_type(0);
+ return cppu::UnoType<word::XSection>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -155,7 +155,7 @@ SwVbaSections::PageSetup( ) throw (uno::RuntimeException)
uno::Type SAL_CALL
SwVbaSections::getElementType() throw (uno::RuntimeException)
{
- return word::XSection::static_type(0);
+ return cppu::UnoType<word::XSection>::get();
}
uno::Reference< container::XEnumeration > SAL_CALL
diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx
index 6a39e8ca7791..d8131f64a470 100644
--- a/sw/source/ui/vba/vbastyles.cxx
+++ b/sw/source/ui/vba/vbastyles.cxx
@@ -174,7 +174,7 @@ public:
mxParaStyles.set( xStyleFamilies->getByName("ParagraphStyles"), uno::UNO_QUERY_THROW );
}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return style::XStyle::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<style::XStyle>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { return getCount() > 0; }
// XNameAcess
virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
@@ -281,7 +281,7 @@ SwVbaStyles::createCollectionObject(const uno::Any& aObject)
uno::Type SAL_CALL
SwVbaStyles::getElementType() throw (uno::RuntimeException)
{
- return word::XStyle::static_type(0);
+ return cppu::UnoType<word::XStyle>::get();
}
uno::Reference< container::XEnumeration > SAL_CALL
diff --git a/sw/source/ui/vba/vbatables.cxx b/sw/source/ui/vba/vbatables.cxx
index 1dc799b5fb87..f1eb1d79b65d 100644
--- a/sw/source/ui/vba/vbatables.cxx
+++ b/sw/source/ui/vba/vbatables.cxx
@@ -94,7 +94,7 @@ public:
return uno::makeAny( xTable );
}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return text::XTextTable::static_type(0); }
+ virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) { return cppu::UnoType<text::XTextTable>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { return getCount() > 0 ; }
// XNameAcess
virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
@@ -218,7 +218,7 @@ SwVbaTables::getServiceImplName()
uno::Type SAL_CALL
SwVbaTables::getElementType() throw (uno::RuntimeException)
{
- return word::XTable::static_type(0);
+ return cppu::UnoType<word::XTable>::get();
}
uno::Sequence<OUString>
diff --git a/sw/source/ui/vba/vbatablesofcontents.cxx b/sw/source/ui/vba/vbatablesofcontents.cxx
index 755d2a2cfdba..4397e18a220b 100644
--- a/sw/source/ui/vba/vbatablesofcontents.cxx
+++ b/sw/source/ui/vba/vbatablesofcontents.cxx
@@ -91,7 +91,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XTableOfContents::static_type(0);
+ return cppu::UnoType<word::XTableOfContents>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -150,7 +150,7 @@ SwVbaTablesOfContents::Add( const uno::Reference< word::XRange >& Range, const u
uno::Type
SwVbaTablesOfContents::getElementType() throw (uno::RuntimeException)
{
- return word::XTableOfContents::static_type(0);
+ return cppu::UnoType<word::XTableOfContents>::get();
}
uno::Reference< container::XEnumeration >
SwVbaTablesOfContents::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx
index c4ea6eae7761..85e52727c806 100644
--- a/sw/source/ui/vba/vbatabstops.cxx
+++ b/sw/source/ui/vba/vbatabstops.cxx
@@ -93,7 +93,7 @@ public:
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return word::XTabStop::static_type(0);
+ return cppu::UnoType<word::XTabStop>::get();
}
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
@@ -235,7 +235,7 @@ void SAL_CALL SwVbaTabStops::ClearAll() throw (uno::RuntimeException)
uno::Type
SwVbaTabStops::getElementType() throw (uno::RuntimeException)
{
- return word::XTabStop::static_type(0);
+ return cppu::UnoType<word::XTabStop>::get();
}
uno::Reference< container::XEnumeration >
SwVbaTabStops::createEnumeration() throw (uno::RuntimeException)
diff --git a/sw/source/ui/vba/vbavariables.cxx b/sw/source/ui/vba/vbavariables.cxx
index ad93d0a188a3..87d11904fcc7 100644
--- a/sw/source/ui/vba/vbavariables.cxx
+++ b/sw/source/ui/vba/vbavariables.cxx
@@ -45,7 +45,7 @@ SwVbaVariables::SwVbaVariables( const uno::Reference< XHelperInterface >& xParen
uno::Type
SwVbaVariables::getElementType() throw (uno::RuntimeException)
{
- return word::XVariable::static_type(0);
+ return cppu::UnoType<word::XVariable>::get();
}
uno::Reference< container::XEnumeration >
SwVbaVariables::createEnumeration() throw (uno::RuntimeException)
diff --git a/toolkit/source/controls/animatedimages.cxx b/toolkit/source/controls/animatedimages.cxx
index 26d03e6ef6f5..5946869ca904 100644
--- a/toolkit/source/controls/animatedimages.cxx
+++ b/toolkit/source/controls/animatedimages.cxx
@@ -210,7 +210,7 @@ namespace toolkit
void ( SAL_CALL XContainerListener::*i_notificationMethod )( const ContainerEvent& ),
const sal_Int32 i_accessor, const Sequence< OUString >& i_imageURLs, const Reference< XInterface >& i_context )
{
- ::cppu::OInterfaceContainerHelper* pContainerListeners = i_broadcaseHelper.getContainer( XContainerListener::static_type() );
+ ::cppu::OInterfaceContainerHelper* pContainerListeners = i_broadcaseHelper.getContainer( cppu::UnoType<XContainerListener>::get() );
if ( pContainerListeners == NULL )
return;
@@ -468,13 +468,13 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesControlModel::addContainerListener( const Reference< XContainerListener >& i_listener ) throw (RuntimeException)
{
- BrdcstHelper.addListener( XContainerListener::static_type(), i_listener );
+ BrdcstHelper.addListener( cppu::UnoType<XContainerListener>::get(), i_listener );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesControlModel::removeContainerListener( const Reference< XContainerListener >& i_listener ) throw (RuntimeException)
{
- BrdcstHelper.removeListener( XContainerListener::static_type(), i_listener );
+ BrdcstHelper.removeListener( cppu::UnoType<XContainerListener>::get(), i_listener );
}
//......................................................................................................................
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index 163085b26961..8f32532dcea9 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -130,7 +130,7 @@ public:
}
virtual Type SAL_CALL getElementType( ) throw (RuntimeException)
{
- return T::static_type( NULL );
+ return cppu::UnoType<T>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (RuntimeException)
{
diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx
index b7f212153248..00e0bc502530 100644
--- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx
+++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx
@@ -75,7 +75,7 @@ namespace toolkit
void DefaultGridDataModel::broadcast( GridDataEvent const & i_event,
void ( SAL_CALL XGridDataListener::*i_listenerMethod )( GridDataEvent const & ), ::comphelper::ComponentGuard & i_instanceLock )
{
- ::cppu::OInterfaceContainerHelper* pListeners = rBHelper.getContainer( XGridDataListener::static_type() );
+ ::cppu::OInterfaceContainerHelper* pListeners = rBHelper.getContainer( cppu::UnoType<XGridDataListener>::get() );
if ( !pListeners )
return;
@@ -391,13 +391,13 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL DefaultGridDataModel::addGridDataListener( const Reference< grid::XGridDataListener >& i_listener ) throw (RuntimeException)
{
- rBHelper.addListener( XGridDataListener::static_type(), i_listener );
+ rBHelper.addListener( cppu::UnoType<XGridDataListener>::get(), i_listener );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL DefaultGridDataModel::removeGridDataListener( const Reference< grid::XGridDataListener >& i_listener ) throw (RuntimeException)
{
- rBHelper.removeListener( XGridDataListener::static_type(), i_listener );
+ rBHelper.removeListener( cppu::UnoType<XGridDataListener>::get(), i_listener );
}
//------------------------------------------------------------------------------------------------------------------
diff --git a/toolkit/source/controls/grid/gridcolumn.cxx b/toolkit/source/controls/grid/gridcolumn.cxx
index f08b89be6374..bfaf53bfa97b 100644
--- a/toolkit/source/controls/grid/gridcolumn.cxx
+++ b/toolkit/source/controls/grid/gridcolumn.cxx
@@ -85,7 +85,7 @@ namespace toolkit
i_oldValue, i_newValue, m_nIndex
);
- ::cppu::OInterfaceContainerHelper* pIter = rBHelper.getContainer( XGridColumnListener::static_type() );
+ ::cppu::OInterfaceContainerHelper* pIter = rBHelper.getContainer( cppu::UnoType<XGridColumnListener>::get() );
i_Guard.clear();
if( pIter )
@@ -215,13 +215,13 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL GridColumn::addGridColumnListener( const Reference< XGridColumnListener >& xListener ) throw (RuntimeException)
{
- rBHelper.addListener( XGridColumnListener::static_type(), xListener );
+ rBHelper.addListener( cppu::UnoType<XGridColumnListener>::get(), xListener );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL GridColumn::removeGridColumnListener( const Reference< XGridColumnListener >& xListener ) throw (RuntimeException)
{
- rBHelper.removeListener( XGridColumnListener::static_type(), xListener );
+ rBHelper.removeListener( cppu::UnoType<XGridColumnListener>::get(), xListener );
}
//------------------------------------------------------------------------------------------------------------------
diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
index 252e6929b6f2..b8db1d3768f5 100644
--- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx
+++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
@@ -272,7 +272,7 @@ namespace toolkit
void SortableGridDataModel::impl_broadcast( void ( SAL_CALL XGridDataListener::*i_listenerMethod )( const GridDataEvent & ),
GridDataEvent const & i_publicEvent, MethodGuard& i_instanceLock )
{
- ::cppu::OInterfaceContainerHelper* pListeners = rBHelper.getContainer( XGridDataListener::static_type() );
+ ::cppu::OInterfaceContainerHelper* pListeners = rBHelper.getContainer( cppu::UnoType<XGridDataListener>::get() );
if ( pListeners == NULL )
return;
@@ -717,13 +717,13 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL SortableGridDataModel::addGridDataListener( const Reference< XGridDataListener >& i_listener ) throw (RuntimeException)
{
- rBHelper.addListener( XGridDataListener::static_type(), i_listener );
+ rBHelper.addListener( cppu::UnoType<XGridDataListener>::get(), i_listener );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL SortableGridDataModel::removeGridDataListener( const Reference< XGridDataListener >& i_listener ) throw (RuntimeException)
{
- rBHelper.removeListener( XGridDataListener::static_type(), i_listener );
+ rBHelper.removeListener( cppu::UnoType<XGridDataListener>::get(), i_listener );
}
//------------------------------------------------------------------------------------------------------------------
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx
index c8859a202880..01fb0267a670 100644
--- a/toolkit/source/controls/tree/treedatamodel.cxx
+++ b/toolkit/source/controls/tree/treedatamodel.cxx
@@ -161,7 +161,7 @@ MutableTreeDataModel::~MutableTreeDataModel()
void MutableTreeDataModel::broadcast( broadcast_type eType, const Reference< XTreeNode >& xParentNode, const Reference< XTreeNode >* pNodes, sal_Int32 nNodes )
{
- ::cppu::OInterfaceContainerHelper* pIter = BrdcstHelper.getContainer( XTreeDataModelListener::static_type() );
+ ::cppu::OInterfaceContainerHelper* pIter = BrdcstHelper.getContainer( cppu::UnoType<XTreeDataModelListener>::get() );
if( pIter )
{
Reference< XInterface > xSource( static_cast< ::cppu::OWeakObject* >( this ) );
@@ -235,14 +235,14 @@ Reference< XTreeNode > SAL_CALL MutableTreeDataModel::getRoot( ) throw (Runtime
void SAL_CALL MutableTreeDataModel::addTreeDataModelListener( const Reference< XTreeDataModelListener >& xListener ) throw (RuntimeException)
{
- BrdcstHelper.addListener( XTreeDataModelListener::static_type(), xListener );
+ BrdcstHelper.addListener( cppu::UnoType<XTreeDataModelListener>::get(), xListener );
}
//---------------------------------------------------------------------
void SAL_CALL MutableTreeDataModel::removeTreeDataModelListener( const Reference< XTreeDataModelListener >& xListener ) throw (RuntimeException)
{
- BrdcstHelper.removeListener( XTreeDataModelListener::static_type(), xListener );
+ BrdcstHelper.removeListener( cppu::UnoType<XTreeDataModelListener>::get(), xListener );
}
//---------------------------------------------------------------------
@@ -266,14 +266,14 @@ void SAL_CALL MutableTreeDataModel::dispose() throw (RuntimeException)
void SAL_CALL MutableTreeDataModel::addEventListener( const Reference< XEventListener >& xListener ) throw (RuntimeException)
{
- BrdcstHelper.addListener( XEventListener::static_type(), xListener );
+ BrdcstHelper.addListener( cppu::UnoType<XEventListener>::get(), xListener );
}
//---------------------------------------------------------------------
void SAL_CALL MutableTreeDataModel::removeEventListener( const Reference< XEventListener >& xListener ) throw (RuntimeException)
{
- BrdcstHelper.removeListener( XEventListener::static_type(), xListener );
+ BrdcstHelper.removeListener( cppu::UnoType<XEventListener>::get(), xListener );
}
//---------------------------------------------------------------------
diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx
index 60c72390faec..6927e98792b0 100644
--- a/toolkit/source/controls/unocontrolcontainer.cxx
+++ b/toolkit/source/controls/unocontrolcontainer.cxx
@@ -576,7 +576,7 @@ uno::Sequence< ::sal_Int32 > SAL_CALL UnoControlContainer::getIdentifiers( ) th
// container::XElementAccess
uno::Type SAL_CALL UnoControlContainer::getElementType( ) throw (uno::RuntimeException)
{
- return awt::XControlModel::static_type();
+ return cppu::UnoType<awt::XControlModel>::get();
}
::sal_Bool SAL_CALL UnoControlContainer::hasElements( ) throw (uno::RuntimeException)
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx
index ae0cc588cf17..b89d7163712a 100644
--- a/vbahelper/source/msforms/vbacontrol.cxx
+++ b/vbahelper/source/msforms/vbacontrol.cxx
@@ -576,7 +576,7 @@ void ScVbaControl::fireChangeEvent()
{
script::ScriptEvent evt;
evt.ScriptType = "VBAInterop";
- evt.ListenerType = form::XChangeListener::static_type(0);
+ evt.ListenerType = cppu::UnoType<form::XChangeListener>::get();
evt.MethodName = "changed";
fireEvent( evt );
}
@@ -585,7 +585,7 @@ void ScVbaControl::fireClickEvent()
{
script::ScriptEvent evt;
evt.ScriptType = "VBAInterop";
- evt.ListenerType = awt::XActionListener::static_type(0);
+ evt.ListenerType = cppu::UnoType<awt::XActionListener>::get();
evt.MethodName = "actionPerformed";
fireEvent( evt );
}
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx
index 7e9ded29e2dd..2aa3daf86ccf 100644
--- a/vbahelper/source/msforms/vbacontrols.cxx
+++ b/vbahelper/source/msforms/vbacontrols.cxx
@@ -114,7 +114,7 @@ public:
// XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return awt::XControl::static_type(0);
+ return cppu::UnoType<awt::XControl>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
@@ -498,7 +498,7 @@ void SAL_CALL ScVbaControls::Remove( const uno::Any& StringKeyOrIndex )
uno::Type
ScVbaControls::getElementType() throw (uno::RuntimeException)
{
- return ooo::vba::msforms::XControl::static_type(0);
+ return cppu::UnoType<ooo::vba::msforms::XControl>::get();
}
VBAHELPER_IMPL_XHELPERINTERFACE( ScVbaControls, "ooo.vba.msforms.Controls" )
diff --git a/vbahelper/source/msforms/vbamultipage.cxx b/vbahelper/source/msforms/vbamultipage.cxx
index 7cfbe97019e5..53f3df360eba 100644
--- a/vbahelper/source/msforms/vbamultipage.cxx
+++ b/vbahelper/source/msforms/vbamultipage.cxx
@@ -44,8 +44,8 @@ public:
virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException)
{
// no Pages object yet #FIXME
- //return msforms::XPage::static_type(0);
- return uno::XInterface::static_type(0);
+ //return cppu::UnoType<msforms::XPage>::get();
+ return cppu::UnoType<uno::XInterface>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
{
diff --git a/vbahelper/source/msforms/vbapages.cxx b/vbahelper/source/msforms/vbapages.cxx
index 3b279835503d..fecf870b79e3 100644
--- a/vbahelper/source/msforms/vbapages.cxx
+++ b/vbahelper/source/msforms/vbapages.cxx
@@ -28,8 +28,8 @@ ScVbaPages::ScVbaPages( const uno::Reference< XHelperInterface >& xParent, const
uno::Type SAL_CALL
ScVbaPages::getElementType() throw (uno::RuntimeException)
{
- // return msforms::XPage::static_type(0);
- return uno::XInterface::static_type(0);
+ // return cppu::UnoType<msforms::XPage>::get();
+ return cppu::UnoType<uno::XInterface>::get();
}
uno::Any
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
index 12fbe00a9e91..5fc986e5677d 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
@@ -106,7 +106,7 @@ uno::Sequence< beans::PropertyValue > ScVbaCommandBarControls::CreateToolbarItem
uno::Type SAL_CALL
ScVbaCommandBarControls::getElementType() throw ( uno::RuntimeException )
{
- return XCommandBarControl::static_type( 0 );
+ return cppu::UnoType<XCommandBarControl>::get();
}
uno::Reference< container::XEnumeration >
@@ -260,7 +260,7 @@ public:
{ throw lang::IndexOutOfBoundsException(); }
// XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
- { return XCommandBarControl::static_type( 0 ); }
+ { return cppu::UnoType<XCommandBarControl>::get(); }
virtual ::sal_Bool SAL_CALL hasElements( ) throw (::com::sun::star::uno::RuntimeException)
{ return false; }
};
@@ -277,7 +277,7 @@ VbaDummyCommandBarControls::VbaDummyCommandBarControls(
// XEnumerationAccess
uno::Type SAL_CALL VbaDummyCommandBarControls::getElementType() throw ( uno::RuntimeException )
{
- return XCommandBarControl::static_type( 0 );
+ return cppu::UnoType<XCommandBarControl>::get();
}
uno::Reference< container::XEnumeration > VbaDummyCommandBarControls::createEnumeration() throw ( uno::RuntimeException )
diff --git a/vbahelper/source/vbahelper/vbacommandbars.cxx b/vbahelper/source/vbahelper/vbacommandbars.cxx
index a78757e56a11..37fe629b269b 100644
--- a/vbahelper/source/vbahelper/vbacommandbars.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbars.cxx
@@ -90,7 +90,7 @@ ScVbaCommandBars::~ScVbaCommandBars()
uno::Type SAL_CALL
ScVbaCommandBars::getElementType() throw ( uno::RuntimeException )
{
- return XCommandBar::static_type( 0 );
+ return cppu::UnoType<XCommandBar>::get();
}
uno::Reference< container::XEnumeration >
diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
index 3bfc5312e48c..73c4d13b53e8 100644
--- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
@@ -167,7 +167,7 @@ public:
//XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return frame::XModel::static_type(0);
+ return cppu::UnoType<frame::XModel>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
diff --git a/vbahelper/source/vbahelper/vbashaperange.cxx b/vbahelper/source/vbahelper/vbashaperange.cxx
index da02ffb8f1ed..c50b2d3118b2 100644
--- a/vbahelper/source/vbahelper/vbashaperange.cxx
+++ b/vbahelper/source/vbahelper/vbashaperange.cxx
@@ -363,7 +363,7 @@ void SAL_CALL ScVbaShapeRange::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::Runtime
uno::Type SAL_CALL
ScVbaShapeRange::getElementType() throw (uno::RuntimeException)
{
- return msforms::XShape::static_type(0);
+ return cppu::UnoType<msforms::XShape>::get();
}
uno::Reference< container::XEnumeration > SAL_CALL
diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx
index 1303eac17b2f..5e5d3322d148 100644
--- a/vbahelper/source/vbahelper/vbashapes.cxx
+++ b/vbahelper/source/vbahelper/vbashapes.cxx
@@ -105,7 +105,7 @@ ScVbaShapes::createCollectionObject( const css::uno::Any& aSource ) throw (uno::
uno::Type
ScVbaShapes::getElementType() throw (uno::RuntimeException)
{
- return ooo::vba::msforms::XShape::static_type(0);
+ return cppu::UnoType<ooo::vba::msforms::XShape>::get();
}
OUString
diff --git a/vcl/unx/gtk/a11y/atkaction.cxx b/vcl/unx/gtk/a11y/atkaction.cxx
index 20183299742e..fb613daffc68 100644
--- a/vcl/unx/gtk/a11y/atkaction.cxx
+++ b/vcl/unx/gtk/a11y/atkaction.cxx
@@ -55,7 +55,7 @@ static accessibility::XAccessibleAction*
{
if( !pWrap->mpAction && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleAction::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleAction>::get() );
pWrap->mpAction = reinterpret_cast< accessibility::XAccessibleAction * > (any.pReserved);
pWrap->mpAction->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx
index 8f18b49ac8a0..53797f3350a3 100644
--- a/vcl/unx/gtk/a11y/atkcomponent.cxx
+++ b/vcl/unx/gtk/a11y/atkcomponent.cxx
@@ -36,7 +36,7 @@ static accessibility::XAccessibleComponent*
{
if( !pWrap->mpComponent && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleComponent::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleComponent>::get() );
pWrap->mpComponent = reinterpret_cast< accessibility::XAccessibleComponent * > (any.pReserved);
pWrap->mpComponent->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkeditabletext.cxx b/vcl/unx/gtk/a11y/atkeditabletext.cxx
index ed0675ec35f4..d72988f09f89 100644
--- a/vcl/unx/gtk/a11y/atkeditabletext.cxx
+++ b/vcl/unx/gtk/a11y/atkeditabletext.cxx
@@ -37,7 +37,7 @@ static accessibility::XAccessibleEditableText*
{
if( !pWrap->mpEditableText && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleEditableText::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleEditableText>::get() );
pWrap->mpEditableText = reinterpret_cast< accessibility::XAccessibleEditableText * > (any.pReserved);
pWrap->mpEditableText->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkhypertext.cxx b/vcl/unx/gtk/a11y/atkhypertext.cxx
index 864057d10687..f1fac6be1889 100644
--- a/vcl/unx/gtk/a11y/atkhypertext.cxx
+++ b/vcl/unx/gtk/a11y/atkhypertext.cxx
@@ -201,7 +201,7 @@ static accessibility::XAccessibleHypertext*
{
if( !pWrap->mpHypertext && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleHypertext::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleHypertext>::get() );
pWrap->mpHypertext = reinterpret_cast< accessibility::XAccessibleHypertext * > (any.pReserved);
pWrap->mpHypertext->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkimage.cxx b/vcl/unx/gtk/a11y/atkimage.cxx
index 9a14c819ed99..b413daae130d 100644
--- a/vcl/unx/gtk/a11y/atkimage.cxx
+++ b/vcl/unx/gtk/a11y/atkimage.cxx
@@ -46,7 +46,7 @@ static accessibility::XAccessibleImage*
{
if( !pWrap->mpImage && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleImage::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleImage>::get() );
pWrap->mpImage = reinterpret_cast< accessibility::XAccessibleImage * > (any.pReserved);
pWrap->mpImage->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkselection.cxx b/vcl/unx/gtk/a11y/atkselection.cxx
index 8132118377b6..1d0994131cef 100644
--- a/vcl/unx/gtk/a11y/atkselection.cxx
+++ b/vcl/unx/gtk/a11y/atkselection.cxx
@@ -34,7 +34,7 @@ static accessibility::XAccessibleSelection*
{
if( !pWrap->mpSelection && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleSelection::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleSelection>::get() );
pWrap->mpSelection = reinterpret_cast< accessibility::XAccessibleSelection * > (any.pReserved);
pWrap->mpSelection->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atktable.cxx b/vcl/unx/gtk/a11y/atktable.cxx
index 60bb7fed2043..bf30e41eabdb 100644
--- a/vcl/unx/gtk/a11y/atktable.cxx
+++ b/vcl/unx/gtk/a11y/atktable.cxx
@@ -65,7 +65,7 @@ static accessibility::XAccessibleTable*
{
if( !pWrap->mpTable && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleTable::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleTable>::get() );
pWrap->mpTable = reinterpret_cast< accessibility::XAccessibleTable * > (any.pReserved);
pWrap->mpTable->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx
index bbcb420c7a19..a11e4abca878 100644
--- a/vcl/unx/gtk/a11y/atktext.cxx
+++ b/vcl/unx/gtk/a11y/atktext.cxx
@@ -152,7 +152,7 @@ static accessibility::XAccessibleText*
{
if( !pWrap->mpText && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleText::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleText>::get() );
pWrap->mpText = reinterpret_cast< accessibility::XAccessibleText * > (any.pReserved);
pWrap->mpText->acquire();
}
@@ -173,7 +173,7 @@ static accessibility::XAccessibleTextMarkup*
{
if( !pWrap->mpTextMarkup && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleTextMarkup::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleTextMarkup>::get() );
/* Since this not a dedicated interface in Atk and thus has not
* been queried during wrapper initialization, we need to check
* the return value here.
@@ -202,7 +202,7 @@ static accessibility::XAccessibleTextAttributes*
{
if( !pWrap->mpTextAttributes && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleTextAttributes::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleTextAttributes>::get() );
/* Since this not a dedicated interface in Atk and thus has not
* been queried during wrapper initialization, we need to check
* the return value here.
@@ -230,7 +230,7 @@ static accessibility::XAccessibleMultiLineText*
{
if( !pWrap->mpMultiLineText && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleMultiLineText::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleMultiLineText>::get() );
/* Since this not a dedicated interface in Atk and thus has not
* been queried during wrapper initialization, we need to check
* the return value here.
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx
index 54a2d6cb5dc6..365f1c9cdd2e 100644
--- a/vcl/unx/gtk/a11y/atktextattributes.cxx
+++ b/vcl/unx/gtk/a11y/atktextattributes.cxx
@@ -219,7 +219,7 @@ static accessibility::XAccessibleComponent*
{
if( !pWrap->mpComponent && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleComponent::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleComponent>::get() );
pWrap->mpComponent = reinterpret_cast< accessibility::XAccessibleComponent * > (any.pReserved);
pWrap->mpComponent->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index adeda2b7828f..d487a67e6125 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -97,7 +97,7 @@ atk_wrapper_focus_idle_handler (gpointer data)
AtkObjectWrapper* wrapper_obj = ATK_OBJECT_WRAPPER (atk_obj);
if( wrapper_obj && !wrapper_obj->mpText && wrapper_obj->mpContext )
{
- uno::Any any = wrapper_obj->mpContext->queryInterface( accessibility::XAccessibleText::static_type(NULL) );
+ uno::Any any = wrapper_obj->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleText>::get() );
if ( typelib_TypeClass_INTERFACE == any.pType->eTypeClass &&
any.pReserved != 0 )
{
diff --git a/vcl/unx/gtk/a11y/atkvalue.cxx b/vcl/unx/gtk/a11y/atkvalue.cxx
index 46abdfd480a9..44416fa19982 100644
--- a/vcl/unx/gtk/a11y/atkvalue.cxx
+++ b/vcl/unx/gtk/a11y/atkvalue.cxx
@@ -35,7 +35,7 @@ static accessibility::XAccessibleValue*
{
if( !pWrap->mpValue && pWrap->mpContext )
{
- uno::Any any = pWrap->mpContext->queryInterface( accessibility::XAccessibleValue::static_type(NULL) );
+ uno::Any any = pWrap->mpContext->queryInterface( cppu::UnoType<accessibility::XAccessibleValue>::get() );
pWrap->mpValue = reinterpret_cast< accessibility::XAccessibleValue * > (any.pReserved);
pWrap->mpValue->acquire();
}
diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx
index a87fe6ce1c30..aab0961b5b34 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.cxx
@@ -652,53 +652,53 @@ const struct {
const char *name;
GInterfaceInitFunc aInit;
GetGIfaceType aGetGIfaceType;
- const uno::Type & (*aGetUnoType) (void *);
+ const uno::Type & (*aGetUnoType) ();
} aTypeTable[] = {
// re-location heaven:
{
"Comp", (GInterfaceInitFunc) componentIfaceInit,
atk_component_get_type,
- accessibility::XAccessibleComponent::static_type
+ cppu::UnoType<accessibility::XAccessibleComponent>::get
},
{
"Act", (GInterfaceInitFunc) actionIfaceInit,
atk_action_get_type,
- accessibility::XAccessibleAction::static_type
+ cppu::UnoType<accessibility::XAccessibleAction>::get
},
{
"Txt", (GInterfaceInitFunc) textIfaceInit,
atk_text_get_type,
- accessibility::XAccessibleText::static_type
+ cppu::UnoType<accessibility::XAccessibleText>::get
},
{
"Val", (GInterfaceInitFunc) valueIfaceInit,
atk_value_get_type,
- accessibility::XAccessibleValue::static_type
+ cppu::UnoType<accessibility::XAccessibleValue>::get
},
{
"Tab", (GInterfaceInitFunc) tableIfaceInit,
atk_table_get_type,
- accessibility::XAccessibleTable::static_type
+ cppu::UnoType<accessibility::XAccessibleTable>::get
},
{
"Edt", (GInterfaceInitFunc) editableTextIfaceInit,
atk_editable_text_get_type,
- accessibility::XAccessibleEditableText::static_type
+ cppu::UnoType<accessibility::XAccessibleEditableText>::get
},
{
"Img", (GInterfaceInitFunc) imageIfaceInit,
atk_image_get_type,
- accessibility::XAccessibleImage::static_type
+ cppu::UnoType<accessibility::XAccessibleImage>::get
},
{
"Hyp", (GInterfaceInitFunc) hypertextIfaceInit,
atk_hypertext_get_type,
- accessibility::XAccessibleHypertext::static_type
+ cppu::UnoType<accessibility::XAccessibleHypertext>::get
},
{
"Sel", (GInterfaceInitFunc) selectionIfaceInit,
atk_selection_get_type,
- accessibility::XAccessibleSelection::static_type
+ cppu::UnoType<accessibility::XAccessibleSelection>::get
}
// AtkDocument is a nastily broken interface (so far)
// we could impl. get_document_type perhaps though.
@@ -715,7 +715,7 @@ ensureTypeFor( uno::XInterface *pAccessible )
for( i = 0; i < aTypeTableSize; i++ )
{
- if( isOfType( pAccessible, aTypeTable[i].aGetUnoType(0) ) )
+ if( isOfType( pAccessible, aTypeTable[i].aGetUnoType() ) )
{
aTypeName += aTypeTable[i].name;
bTypes[i] = TRUE;
diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx
index 9942583932ec..0fd0aa87073b 100644
--- a/xmloff/source/draw/ximppage.cxx
+++ b/xmloff/source/draw/ximppage.cxx
@@ -570,7 +570,7 @@ Any SAL_CALL XoNavigationOrderAccess::getByIndex( sal_Int32 Index ) throw (Index
// XElementAccess
Type SAL_CALL XoNavigationOrderAccess::getElementType( ) throw (RuntimeException)
{
- return XShape::static_type();
+ return cppu::UnoType<XShape>::get();
}
sal_Bool SAL_CALL XoNavigationOrderAccess::hasElements( ) throw (RuntimeException)