summaryrefslogtreecommitdiff
path: root/svl/source/numbers/numfmuno.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/numbers/numfmuno.hxx')
-rw-r--r--svl/source/numbers/numfmuno.hxx301
1 files changed, 150 insertions, 151 deletions
diff --git a/svl/source/numbers/numfmuno.hxx b/svl/source/numbers/numfmuno.hxx
index d4664124c864..c618c7efee6e 100644
--- a/svl/source/numbers/numfmuno.hxx
+++ b/svl/source/numbers/numfmuno.hxx
@@ -38,8 +38,8 @@ class SvNumberFormatsSupplierObj;
* SvNumberFormatterServiceObj is registered globally as a Service
*/
class SvNumberFormatterServiceObj : public cppu::WeakImplHelper<
- com::sun::star::util::XNumberFormatter2,
- com::sun::star::lang::XServiceInfo>
+ css::util::XNumberFormatter2,
+ css::lang::XServiceInfo>
{
private:
::rtl::Reference< SvNumberFormatsSupplierObj > xSupplier;
@@ -51,59 +51,58 @@ public:
// XNumberFormatter
virtual void SAL_CALL attachNumberFormatsSupplier(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::util::XNumberFormatsSupplier >& xSupplier )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >
+ const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier )
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::util::XNumberFormatsSupplier >
SAL_CALL getNumberFormatsSupplier()
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL detectNumberFormat( sal_Int32 nKey, const OUString& aString )
- throw(::com::sun::star::util::NotNumericException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::util::NotNumericException,
+ css::uno::RuntimeException, std::exception) override;
virtual double SAL_CALL convertStringToNumber( sal_Int32 nKey, const OUString& aString )
- throw(::com::sun::star::util::NotNumericException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::util::NotNumericException,
+ css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL convertNumberToString( sal_Int32 nKey, double fValue )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::util::Color SAL_CALL queryColorForNumber( sal_Int32 nKey,
- double fValue, ::com::sun::star::util::Color aDefaultColor )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::util::Color SAL_CALL queryColorForNumber( sal_Int32 nKey,
+ double fValue, css::util::Color aDefaultColor )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL formatString( sal_Int32 nKey, const OUString& aString )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::util::Color SAL_CALL queryColorForString( sal_Int32 nKey,
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::util::Color SAL_CALL queryColorForString( sal_Int32 nKey,
const OUString& aString,
- ::com::sun::star::util::Color aDefaultColor )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ css::util::Color aDefaultColor )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getInputString( sal_Int32 nKey, double fValue )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
// XNumberFormatPreviewer
virtual OUString SAL_CALL convertNumberToPreviewString(
const OUString& aFormat, double fValue,
- const ::com::sun::star::lang::Locale& nLocale, sal_Bool bAllowEnglish )
- throw(::com::sun::star::util::MalformedNumberFormatException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::util::Color SAL_CALL queryPreviewColorForNumber(
+ const css::lang::Locale& nLocale, sal_Bool bAllowEnglish )
+ throw(css::util::MalformedNumberFormatException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual css::util::Color SAL_CALL queryPreviewColorForNumber(
const OUString& aFormat, double fValue,
- const ::com::sun::star::lang::Locale& nLocale, sal_Bool bAllowEnglish,
- ::com::sun::star::util::Color aDefaultColor )
- throw(::com::sun::star::util::MalformedNumberFormatException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale, sal_Bool bAllowEnglish,
+ css::util::Color aDefaultColor )
+ throw(css::util::MalformedNumberFormatException,
+ css::uno::RuntimeException, std::exception) override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
+ throw(css::uno::RuntimeException, std::exception) override;
};
class SvNumberFormatsObj : public cppu::WeakImplHelper<
- com::sun::star::util::XNumberFormats,
- com::sun::star::util::XNumberFormatTypes,
- com::sun::star::lang::XServiceInfo>
+ css::util::XNumberFormats,
+ css::util::XNumberFormatTypes,
+ css::lang::XServiceInfo>
{
private:
SvNumberFormatsSupplierObj& rSupplier;
@@ -115,51 +114,51 @@ public:
// XNumberFormats
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
- getByKey( sal_Int32 nKey ) throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL queryKeys( sal_Int16 nType,
- const ::com::sun::star::lang::Locale& nLocale, sal_Bool bCreate )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL
+ getByKey( sal_Int32 nKey ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL queryKeys( sal_Int16 nType,
+ const css::lang::Locale& nLocale, sal_Bool bCreate )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL queryKey( const OUString& aFormat,
- const ::com::sun::star::lang::Locale& nLocale, sal_Bool bScan )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale, sal_Bool bScan )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL addNew( const OUString& aFormat,
- const ::com::sun::star::lang::Locale& nLocale )
- throw(::com::sun::star::util::MalformedNumberFormatException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale )
+ throw(css::util::MalformedNumberFormatException,
+ css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL addNewConverted( const OUString& aFormat,
- const ::com::sun::star::lang::Locale& nLocale,
- const ::com::sun::star::lang::Locale& nNewLocale )
- throw(::com::sun::star::util::MalformedNumberFormatException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeByKey( sal_Int32 nKey ) throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale,
+ const css::lang::Locale& nNewLocale )
+ throw(css::util::MalformedNumberFormatException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL removeByKey( sal_Int32 nKey ) throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL generateFormat( sal_Int32 nBaseKey,
- const ::com::sun::star::lang::Locale& nLocale, sal_Bool bThousands,
+ const css::lang::Locale& nLocale, sal_Bool bThousands,
sal_Bool bRed, sal_Int16 nDecimals, sal_Int16 nLeading )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
// XNumberFormatTypes
- virtual sal_Int32 SAL_CALL getStandardIndex( const ::com::sun::star::lang::Locale& nLocale )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getStandardIndex( const css::lang::Locale& nLocale )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL getStandardFormat( sal_Int16 nType,
- const ::com::sun::star::lang::Locale& nLocale )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL getFormatIndex( sal_Int16 nIndex,
- const ::com::sun::star::lang::Locale& nLocale )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale )
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL isTypeCompatible( sal_Int16 nOldType, sal_Int16 nNewType )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL getFormatForLocale( sal_Int32 nKey,
- const ::com::sun::star::lang::Locale& nLocale )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::lang::Locale& nLocale )
+ throw(css::uno::RuntimeException, std::exception) override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
+ throw(css::uno::RuntimeException, std::exception) override;
private:
SvNumberFormatsObj(); // never implemented
@@ -167,9 +166,9 @@ private:
class SvNumberFormatObj : public cppu::WeakImplHelper<
- com::sun::star::beans::XPropertySet,
- com::sun::star::beans::XPropertyAccess,
- com::sun::star::lang::XServiceInfo>
+ css::beans::XPropertySet,
+ css::beans::XPropertyAccess,
+ css::lang::XServiceInfo>
{
private:
SvNumberFormatsSupplierObj& rSupplier;
@@ -181,70 +180,70 @@ public:
virtual ~SvNumberFormatObj();
// XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
+ virtual css::uno::Reference< css::beans::XPropertySetInfo >
SAL_CALL getPropertySetInfo( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
- const ::com::sun::star::uno::Any& aValue )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::beans::PropertyVetoException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
+ const css::uno::Any& aValue )
+ throw(css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue(
const OUString& PropertyName )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& xListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XPropertyChangeListener >& xListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XPropertyChangeListener >& aListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XVetoableChangeListener >& aListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XVetoableChangeListener >& aListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
// XPropertyAccess
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
- getPropertyValues() throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& aProps )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::beans::PropertyVetoException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
+ getPropertyValues() throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setPropertyValues( const css::uno::Sequence<
+ css::beans::PropertyValue >& aProps )
+ throw(css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
+ throw(css::uno::RuntimeException, std::exception) override;
};
class SvNumberFormatSettingsObj : public cppu::WeakImplHelper<
- com::sun::star::beans::XPropertySet,
- com::sun::star::lang::XServiceInfo>
+ css::beans::XPropertySet,
+ css::lang::XServiceInfo>
{
private:
SvNumberFormatsSupplierObj& rSupplier;
@@ -256,53 +255,53 @@ public:
// XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
+ virtual css::uno::Reference< css::beans::XPropertySetInfo >
SAL_CALL getPropertySetInfo( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
- const ::com::sun::star::uno::Any& aValue )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::beans::PropertyVetoException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
+ const css::uno::Any& aValue )
+ throw(css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue(
const OUString& PropertyName )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& xListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XPropertyChangeListener >& xListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XPropertyChangeListener >& aListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XVetoableChangeListener >& aListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference<
+ css::beans::XVetoableChangeListener >& aListener )
+ throw(css::beans::UnknownPropertyException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
+ throw(css::uno::RuntimeException, std::exception) override;
};