diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-01 15:32:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-02 08:20:11 +0200 |
commit | de020fc9c3c67541067bc7e0b72ed41eae650288 (patch) | |
tree | b4f3d4a10ad71c4d2c77b4ef2785de4cde19faaf /forms/source/xforms/datatypes.hxx | |
parent | Fix typos (diff) | |
download | core-de020fc9c3c67541067bc7e0b72ed41eae650288.tar.gz core-de020fc9c3c67541067bc7e0b72ed41eae650288.zip |
com::sun::star->css in forms/
Change-Id: I1c09e88f839bdf11c6ff809ec95769e8f729c7cd
Diffstat (limited to 'forms/source/xforms/datatypes.hxx')
-rw-r--r-- | forms/source/xforms/datatypes.hxx | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/forms/source/xforms/datatypes.hxx b/forms/source/xforms/datatypes.hxx index 7e4c175c98ea..407a2e27ea65 100644 --- a/forms/source/xforms/datatypes.hxx +++ b/forms/source/xforms/datatypes.hxx @@ -44,7 +44,7 @@ namespace xforms //= OXSDDataType - typedef ::cppu::WeakImplHelper < ::com::sun::star::xsd::XDataType + typedef ::cppu::WeakImplHelper < css::xsd::XDataType > OXSDDataType_Base; typedef ::comphelper::OMutexAndBroadcastHelper OXSDDataType_BBase; typedef ::comphelper::OPropertyContainer OXSDDataType_PBase; @@ -82,37 +82,37 @@ namespace xforms DECLARE_XINTERFACE() DECLARE_XTYPEPROVIDER() - virtual OUString SAL_CALL getName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL setName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::util::VetoException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getPattern() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL setPattern( const OUString& _pattern ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int16 SAL_CALL getWhiteSpaceTreatment() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL setWhiteSpaceTreatment( sal_Int16 _whitespacetreatment ) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL getIsBasic() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int16 SAL_CALL getTypeClass() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getName( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setName( const OUString& aName ) throw (css::uno::RuntimeException, css::util::VetoException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getPattern() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setPattern( const OUString& _pattern ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int16 SAL_CALL getWhiteSpaceTreatment() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setWhiteSpaceTreatment( sal_Int16 _whitespacetreatment ) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL getIsBasic() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int16 SAL_CALL getTypeClass() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL validate( const OUString& value ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL explainInvalid( const OUString& value ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL validate( const OUString& value ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL explainInvalid( const OUString& value ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XPropertySet - is a base of XDataType and needs to be disambiguated - 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) SAL_OVERRIDE; - virtual ::com::sun::star::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) SAL_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) SAL_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) SAL_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) SAL_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) SAL_OVERRIDE; + virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; public: OXSDDataType* clone( const OUString& _rNewName ) const; protected: // XPropertySet and friends - virtual sal_Bool SAL_CALL convertFastPropertyValue( ::com::sun::star::uno::Any& _rConvertedValue, ::com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue ) throw(::com::sun::star::lang::IllegalArgumentException) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL convertFastPropertyValue( css::uno::Any& _rConvertedValue, css::uno::Any& _rOldValue, sal_Int32 _nHandle, const css::uno::Any& _rValue ) throw(css::lang::IllegalArgumentException) SAL_OVERRIDE; virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, - const ::com::sun::star::uno::Any& rValue + const css::uno::Any& rValue ) - throw (::com::sun::star::uno::Exception, std::exception) SAL_OVERRIDE; + throw (css::uno::Exception, std::exception) SAL_OVERRIDE; // --- own overridables --- // helper for implementing cloning of data types @@ -124,7 +124,7 @@ namespace xforms virtual OUString _explainInvalid( sal_uInt16 nReason ); // helper method for checking properties values which are to be set - virtual bool checkPropertySanity( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rNewValue, OUString& _rErrorMessage ); + virtual bool checkPropertySanity( sal_Int32 _nHandle, const css::uno::Any& _rNewValue, OUString& _rErrorMessage ); // register properties implemented by this instance - call the base class when overriding virtual void registerProperties(); @@ -149,16 +149,16 @@ namespace xforms } #define REGISTER_VOID_PROP( prop, memberAny, type ) \ - registerMayBeVoidProperty( PROPERTY_##prop, PROPERTY_ID_##prop, ::com::sun::star::beans::PropertyAttribute::BOUND | ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, \ + registerMayBeVoidProperty( PROPERTY_##prop, PROPERTY_ID_##prop, css::beans::PropertyAttribute::BOUND | css::beans::PropertyAttribute::MAYBEVOID, \ &memberAny, cppu::UnoType<type>::get() ); class OValueLimitedType_Base : public OXSDDataType { protected: - ::com::sun::star::uno::Any m_aMaxInclusive; - ::com::sun::star::uno::Any m_aMaxExclusive; - ::com::sun::star::uno::Any m_aMinInclusive; - ::com::sun::star::uno::Any m_aMinExclusive; + css::uno::Any m_aMaxInclusive; + css::uno::Any m_aMaxExclusive; + css::uno::Any m_aMinInclusive; + css::uno::Any m_aMinExclusive; double m_fCachedMaxInclusive; double m_fCachedMaxExclusive; @@ -174,9 +174,9 @@ namespace xforms // XPropertySet and friends virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, - const ::com::sun::star::uno::Any& rValue + const css::uno::Any& rValue ) - throw (::com::sun::star::uno::Exception, std::exception) SAL_OVERRIDE; + throw (css::uno::Exception, std::exception) SAL_OVERRIDE; // OXSDDataType overridables virtual bool _getValue( const OUString& value, double& fValue ); @@ -188,7 +188,7 @@ namespace xforms The value is guaranteed to be not <NULL/>, and is of type <member>ValueType</member> */ - virtual OUString typedValueAsHumanReadableString( const ::com::sun::star::uno::Any& _rValue ) const = 0; + virtual OUString typedValueAsHumanReadableString( const css::uno::Any& _rValue ) const = 0; /** translates a <member>ValueType</member> value into a double value @@ -202,7 +202,7 @@ namespace xforms @param _rDoubleValue output parameter to hold the resulting double value */ - virtual void normalizeValue( const ::com::sun::star::uno::Any& _rValue, double& _rDoubleValue ) const = 0; + virtual void normalizeValue( const css::uno::Any& _rValue, double& _rDoubleValue ) const = 0; }; template < typename VALUE_TYPE > @@ -210,7 +210,7 @@ namespace xforms { protected: typedef VALUE_TYPE ValueType; - inline const ::com::sun::star::uno::Type& + inline const css::uno::Type& getCppuType() const { return cppu::UnoType<ValueType>::get(); } protected: @@ -237,7 +237,7 @@ namespace xforms virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; // XPropertySet - virtual com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException); + virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(css::uno::RuntimeException); virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); }; @@ -262,13 +262,13 @@ namespace xforms { protected: // <properties> - ::com::sun::star::uno::Any m_aLength; - ::com::sun::star::uno::Any m_aMinLength; - ::com::sun::star::uno::Any m_aMaxLength; + css::uno::Any m_aLength; + css::uno::Any m_aMinLength; + css::uno::Any m_aMaxLength; // </properties> public: - OStringType( const OUString& _rName, sal_Int16 _nTypeClass /* = ::com::sun::star::xsd::DataTypeClass::STRING */ ); + OStringType( const OUString& _rName, sal_Int16 _nTypeClass /* = css::xsd::DataTypeClass::STRING */ ); protected: DECLARE_DEFAULT_CLONING( OStringType ) @@ -277,7 +277,7 @@ namespace xforms // OXSDDataType overridables virtual sal_uInt16 _validate( const OUString& value ) SAL_OVERRIDE; virtual OUString _explainInvalid( sal_uInt16 nReason ) SAL_OVERRIDE; - virtual bool checkPropertySanity( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rNewValue, OUString& _rErrorMessage ) SAL_OVERRIDE; + virtual bool checkPropertySanity( sal_Int32 _nHandle, const css::uno::Any& _rNewValue, OUString& _rErrorMessage ) SAL_OVERRIDE; virtual void registerProperties() SAL_OVERRIDE; }; @@ -286,11 +286,11 @@ namespace xforms class ODecimalType : public ODecimalType_Base { protected: - ::com::sun::star::uno::Any m_aTotalDigits; - ::com::sun::star::uno::Any m_aFractionDigits; + css::uno::Any m_aTotalDigits; + css::uno::Any m_aFractionDigits; public: - ODecimalType( const OUString& _rName, sal_Int16 _nTypeClass /* = ::com::sun::star::xsd::DataTypeClass::DECIMAL */ ); + ODecimalType( const OUString& _rName, sal_Int16 _nTypeClass /* = css::xsd::DataTypeClass::DECIMAL */ ); protected: DECLARE_DEFAULT_CLONING( ODecimalType ) @@ -302,8 +302,8 @@ namespace xforms virtual void registerProperties() SAL_OVERRIDE; // OValueLimitedType overridables - virtual OUString typedValueAsHumanReadableString( const ::com::sun::star::uno::Any& _rValue ) const SAL_OVERRIDE; - virtual void normalizeValue( const ::com::sun::star::uno::Any& _rValue, double& _rDoubleValue ) const SAL_OVERRIDE; + virtual OUString typedValueAsHumanReadableString( const css::uno::Any& _rValue ) const SAL_OVERRIDE; + virtual void normalizeValue( const css::uno::Any& _rValue, double& _rDoubleValue ) const SAL_OVERRIDE; private: using ODecimalType_Base::initializeTypedClone; @@ -328,8 +328,8 @@ namespace xforms virtual bool _getValue( const OUString& value, double& fValue ) SAL_OVERRIDE; \ \ /* OValueLimitedType overridables */ \ - virtual OUString typedValueAsHumanReadableString( const ::com::sun::star::uno::Any& _rValue ) const SAL_OVERRIDE; \ - virtual void normalizeValue( const ::com::sun::star::uno::Any& _rValue, double& _rDoubleValue ) const SAL_OVERRIDE; \ + virtual OUString typedValueAsHumanReadableString( const css::uno::Any& _rValue ) const SAL_OVERRIDE; \ + virtual void normalizeValue( const css::uno::Any& _rValue, double& _rDoubleValue ) const SAL_OVERRIDE; \ \ private: \ using classname##_Base::initializeTypedClone; \ @@ -338,17 +338,17 @@ namespace xforms //= ODateType - DEFAULT_DECLARE_SUBTYPE( ODateType, ::com::sun::star::util::Date ) + DEFAULT_DECLARE_SUBTYPE( ODateType, css::util::Date ) //= OTimeType - DEFAULT_DECLARE_SUBTYPE( OTimeType, ::com::sun::star::util::Time ) + DEFAULT_DECLARE_SUBTYPE( OTimeType, css::util::Time ) //= ODateTimeType - DEFAULT_DECLARE_SUBTYPE( ODateTimeType, ::com::sun::star::util::DateTime ) + DEFAULT_DECLARE_SUBTYPE( ODateTimeType, css::util::DateTime ) class OShortIntegerType; typedef ODerivedDataType< OShortIntegerType, OValueLimitedType< sal_Int16 > > OShortIntegerType_Base; @@ -364,8 +364,8 @@ namespace xforms virtual bool _getValue( const OUString& value, double& fValue ) SAL_OVERRIDE; // OValueLimitedType overridables - virtual OUString typedValueAsHumanReadableString( const ::com::sun::star::uno::Any& _rValue ) const SAL_OVERRIDE; - virtual void normalizeValue( const ::com::sun::star::uno::Any& _rValue, double& _rDoubleValue ) const SAL_OVERRIDE; + virtual OUString typedValueAsHumanReadableString( const css::uno::Any& _rValue ) const SAL_OVERRIDE; + virtual void normalizeValue( const css::uno::Any& _rValue, double& _rDoubleValue ) const SAL_OVERRIDE; private: using OShortIntegerType_Base::initializeTypedClone; |