summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/unocontrolbase.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-09 09:05:08 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-09 09:39:36 +0000
commit4a00be7ade3235e18cab7706bcfe9a1adccb2462 (patch)
treee7d43d09527869c129ccbb14bb3cf5ace9849da9 /toolkit/source/controls/unocontrolbase.cxx
parent6c80a8fe89fadf9a2c7260a09c037a09462f53d1 (diff)
com::sun::star->css in toolkit/
Change-Id: Ia8feca46fa64a300235730e1248fa5fda0783ba2 Reviewed-on: https://gerrit.libreoffice.org/19853 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'toolkit/source/controls/unocontrolbase.cxx')
-rw-r--r--toolkit/source/controls/unocontrolbase.cxx62
1 files changed, 31 insertions, 31 deletions
diff --git a/toolkit/source/controls/unocontrolbase.cxx b/toolkit/source/controls/unocontrolbase.cxx
index 7cfec1dc6373..e29cd7fced5b 100644
--- a/toolkit/source/controls/unocontrolbase.cxx
+++ b/toolkit/source/controls/unocontrolbase.cxx
@@ -40,19 +40,19 @@ bool UnoControlBase::ImplHasProperty( sal_uInt16 nPropId )
bool UnoControlBase::ImplHasProperty( const OUString& aPropertyName )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::beans::XPropertySet > xPSet( mxModel, css::uno::UNO_QUERY );
if ( !xPSet.is() )
return false;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > xInfo = xPSet->getPropertySetInfo();
+ css::uno::Reference< css::beans::XPropertySetInfo > xInfo = xPSet->getPropertySetInfo();
if ( !xInfo.is() )
return false;
return xInfo->hasPropertyByName( aPropertyName );
}
-void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues, bool bUpdateThis )
+void UnoControlBase::ImplSetPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues, bool bUpdateThis )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > xMPS( mxModel, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::beans::XMultiPropertySet > xMPS( mxModel, css::uno::UNO_QUERY );
if ( !mxModel.is() )
return;
@@ -66,7 +66,7 @@ void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequenc
{
xMPS->setPropertyValues( aPropertyNames, aValues );
}
- catch( const ::com::sun::star::uno::Exception& )
+ catch( const css::uno::Exception& )
{
if ( !bUpdateThis )
ImplLockPropertyChangeNotifications( aPropertyNames, false );
@@ -81,12 +81,12 @@ void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequenc
}
}
-void UnoControlBase::ImplSetPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, bool bUpdateThis )
+void UnoControlBase::ImplSetPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue, bool bUpdateThis )
{
// Model might be logged off already but an event still fires
if ( mxModel.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::beans::XPropertySet > xPSet( mxModel, css::uno::UNO_QUERY );
if ( !bUpdateThis )
ImplLockPropertyChangeNotification( aPropertyName, true );
@@ -94,7 +94,7 @@ void UnoControlBase::ImplSetPropertyValue( const OUString& aPropertyName, const
{
xPSet->setPropertyValue( aPropertyName, aValue );
}
- catch( const com::sun::star::uno::Exception& )
+ catch( const css::uno::Exception& )
{
if ( !bUpdateThis )
ImplLockPropertyChangeNotification( aPropertyName, false );
@@ -105,13 +105,13 @@ void UnoControlBase::ImplSetPropertyValue( const OUString& aPropertyName, const
}
}
-::com::sun::star::uno::Any UnoControlBase::ImplGetPropertyValue( const OUString& aPropertyName )
+css::uno::Any UnoControlBase::ImplGetPropertyValue( const OUString& aPropertyName )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::beans::XPropertySet > xPSet( mxModel, css::uno::UNO_QUERY );
if ( xPSet.is() )
return xPSet->getPropertyValue( aPropertyName );
else
- return ::com::sun::star::uno::Any();
+ return css::uno::Any();
}
template <typename T> T UnoControlBase::ImplGetPropertyValuePOD( sal_uInt16 nProp )
@@ -119,7 +119,7 @@ template <typename T> T UnoControlBase::ImplGetPropertyValuePOD( sal_uInt16 nPro
T t(0);
if ( mxModel.is() )
{
- ::com::sun::star::uno::Any aVal = ImplGetPropertyValue( GetPropertyName( nProp ) );
+ css::uno::Any aVal = ImplGetPropertyValue( GetPropertyName( nProp ) );
aVal >>= t;
}
return t;
@@ -130,7 +130,7 @@ template <typename T> T UnoControlBase::ImplGetPropertyValueClass( sal_uInt16 nP
T t;
if ( mxModel.is() )
{
- ::com::sun::star::uno::Any aVal = ImplGetPropertyValue( GetPropertyName( nProp ) );
+ css::uno::Any aVal = ImplGetPropertyValue( GetPropertyName( nProp ) );
aVal >>= t;
}
return t;
@@ -171,14 +171,14 @@ util::Time UnoControlBase::ImplGetPropertyValue_Time( sal_uInt16 nProp )
return ImplGetPropertyValueClass<util::Time>(nProp);
}
-::com::sun::star::awt::Size UnoControlBase::Impl_getMinimumSize()
+css::awt::Size UnoControlBase::Impl_getMinimumSize()
{
- ::com::sun::star::awt::Size aSz;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
+ css::awt::Size aSz;
+ css::uno::Reference< css::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
DBG_ASSERT( xP.is(), "Layout: No Peer!" );
if ( xP.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains > xL( xP, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::awt::XLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
if ( xL.is() )
aSz = xL->getMinimumSize();
@@ -188,14 +188,14 @@ util::Time UnoControlBase::ImplGetPropertyValue_Time( sal_uInt16 nProp )
return aSz;
}
-::com::sun::star::awt::Size UnoControlBase::Impl_getPreferredSize()
+css::awt::Size UnoControlBase::Impl_getPreferredSize()
{
- ::com::sun::star::awt::Size aSz;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
+ css::awt::Size aSz;
+ css::uno::Reference< css::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
DBG_ASSERT( xP.is(), "Layout: No Peer!" );
if ( xP.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains > xL( xP, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::awt::XLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
if ( xL.is() )
aSz = xL->getPreferredSize();
@@ -205,14 +205,14 @@ util::Time UnoControlBase::ImplGetPropertyValue_Time( sal_uInt16 nProp )
return aSz;
}
-::com::sun::star::awt::Size UnoControlBase::Impl_calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize )
+css::awt::Size UnoControlBase::Impl_calcAdjustedSize( const css::awt::Size& rNewSize )
{
- ::com::sun::star::awt::Size aSz;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
+ css::awt::Size aSz;
+ css::uno::Reference< css::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
DBG_ASSERT( xP.is(), "Layout: No Peer!" );
if ( xP.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains > xL( xP, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::awt::XLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
if ( xL.is() )
aSz = xL->calcAdjustedSize( rNewSize );
@@ -222,14 +222,14 @@ util::Time UnoControlBase::ImplGetPropertyValue_Time( sal_uInt16 nProp )
return aSz;
}
-::com::sun::star::awt::Size UnoControlBase::Impl_getMinimumSize( sal_Int16 nCols, sal_Int16 nLines )
+css::awt::Size UnoControlBase::Impl_getMinimumSize( sal_Int16 nCols, sal_Int16 nLines )
{
- ::com::sun::star::awt::Size aSz;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
+ css::awt::Size aSz;
+ css::uno::Reference< css::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
DBG_ASSERT( xP.is(), "Layout: No Peer!" );
if ( xP.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextLayoutConstrains > xL( xP, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::awt::XTextLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
if ( xL.is() )
aSz = xL->getMinimumSize( nCols, nLines );
@@ -241,11 +241,11 @@ util::Time UnoControlBase::ImplGetPropertyValue_Time( sal_uInt16 nProp )
void UnoControlBase::Impl_getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
+ css::uno::Reference< css::awt::XWindowPeer > xP = ImplGetCompatiblePeer( true );
DBG_ASSERT( xP.is(), "Layout: No Peer!" );
if ( xP.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextLayoutConstrains > xL( xP, ::com::sun::star::uno::UNO_QUERY );
+ css::uno::Reference< css::awt::XTextLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
if ( xL.is() )
xL->getColumnsAndLines( nCols, nLines );