diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 12:06:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 14:23:11 +0200 |
commit | 1946794ae09ba732022fe6a74ea45e304ab70b84 (patch) | |
tree | e32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /forms/source/component | |
parent | 5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff) |
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'forms/source/component')
73 files changed, 713 insertions, 713 deletions
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx index 8526cc35b5de..d3db076b9507 100644 --- a/forms/source/component/Button.cxx +++ b/forms/source/component/Button.cxx @@ -112,8 +112,8 @@ void OButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) cons DECL_PROP1( BUTTONTYPE, FormButtonType, BOUND ); DECL_PROP1( DEFAULT_STATE, sal_Int16, BOUND ); DECL_PROP1( DISPATCHURLINTERNAL, sal_Bool, BOUND ); - DECL_PROP1( TARGET_URL, ::rtl::OUString, BOUND ); - DECL_PROP1( TARGET_FRAME, ::rtl::OUString, BOUND ); + DECL_PROP1( TARGET_URL, OUString, BOUND ); + DECL_PROP1( TARGET_FRAME, OUString, BOUND ); DECL_PROP1( TABINDEX, sal_Int16, BOUND ); END_DESCRIBE_PROPERTIES(); } @@ -128,14 +128,14 @@ StringSequence OButtonModel::getSupportedServiceNames() throw() StringSequence aSupported = OClickableImageBaseModel::getSupportedServiceNames(); aSupported.realloc( aSupported.getLength() + 1 ); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[ aSupported.getLength() - 1 ] = FRM_SUN_COMPONENT_COMMANDBUTTON; return aSupported; } //------------------------------------------------------------------------------ -::rtl::OUString OButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString OButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_COMMANDBUTTON; // old (non-sun) name for compatibility ! } @@ -153,7 +153,7 @@ void OButtonModel::write(const Reference<XObjectOutputStream>& _rxOutStream) thr _rxOutStream->writeShort( (sal_uInt16)m_eButtonType ); - ::rtl::OUString sTmp = INetURLObject::decode( m_sTargetURL, '%', INetURLObject::DECODE_UNAMBIGUOUS); + OUString sTmp = INetURLObject::decode( m_sTargetURL, '%', INetURLObject::DECODE_UNAMBIGUOUS); _rxOutStream << sTmp; _rxOutStream << m_sTargetFrame; writeHelpTextCompatibly(_rxOutStream); @@ -215,8 +215,8 @@ void OButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) throw default: OSL_FAIL("OButtonModel::read : unknown version !"); m_eButtonType = FormButtonType_PUSH; - m_sTargetURL = ::rtl::OUString(); - m_sTargetFrame = ::rtl::OUString(); + m_sTargetURL = OUString(); + m_sTargetFrame = OUString(); break; } } @@ -358,7 +358,7 @@ StringSequence OButtonControl::getSupportedServiceNames() throw() StringSequence aSupported = OClickableImageBaseControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_COMMANDBUTTON; return aSupported; } @@ -517,7 +517,7 @@ void OButtonControl::actionPerformed_Impl( sal_Bool _bNotifyListener, const ::co // XButton //------------------------------------------------------------------------------ -void OButtonControl::setLabel(const ::rtl::OUString& Label) throw( RuntimeException ) +void OButtonControl::setLabel(const OUString& Label) throw( RuntimeException ) { Reference<XButton> xButton; query_aggregation( m_xAggregate, xButton ); @@ -526,7 +526,7 @@ void OButtonControl::setLabel(const ::rtl::OUString& Label) throw( RuntimeExcept } //------------------------------------------------------------------------------ -void SAL_CALL OButtonControl::setActionCommand(const ::rtl::OUString& _rCommand) throw( RuntimeException ) +void SAL_CALL OButtonControl::setActionCommand(const OUString& _rCommand) throw( RuntimeException ) { { ::osl::MutexGuard aGuard( m_aMutex ); @@ -566,7 +566,7 @@ public: bool _bStart ); - void handleListening( const ::rtl::OUString& _rPropertyName ); + void handleListening( const OUString& _rPropertyName ); }; //.............................................................................. @@ -582,7 +582,7 @@ DoPropertyListening::DoPropertyListening( } //.............................................................................. -void DoPropertyListening::handleListening( const ::rtl::OUString& _rPropertyName ) +void DoPropertyListening::handleListening( const OUString& _rPropertyName ) { if ( m_xProps.is() ) { @@ -652,7 +652,7 @@ void SAL_CALL OButtonControl::propertyChange( const PropertyChangeEvent& _rEvent //------------------------------------------------------------------------------ namespace { - bool isFormControllerURL( const ::rtl::OUString& _rURL ) + bool isFormControllerURL( const OUString& _rURL ) { return ( _rURL.getLength() > RTL_CONSTASCII_LENGTH( ".uno:FormController/" ) ) && ( _rURL.startsWith( ".uno:FormController/" ) ); @@ -665,7 +665,7 @@ sal_Int16 OButtonControl::getModelUrlFeatureId( ) const sal_Int16 nFeatureId = -1; // some URL related properties of the model - ::rtl::OUString sUrl; + OUString sUrl; FormButtonType eButtonType = FormButtonType_PUSH; Reference< XPropertySet > xModelProps( const_cast< OButtonControl* >( this )->getModel(), UNO_QUERY ); diff --git a/forms/source/component/Button.hxx b/forms/source/component/Button.hxx index 1a13136bc280..0128cebb5b01 100644 --- a/forms/source/component/Button.hxx +++ b/forms/source/component/Button.hxx @@ -62,7 +62,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); // ::com::sun::star::io::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); @@ -147,8 +147,8 @@ public: // XButton virtual void SAL_CALL addActionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL removeActionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setLabel(const ::rtl::OUString& Label) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setActionCommand(const ::rtl::OUString& _rCommand) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setLabel(const OUString& Label) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setActionCommand(const OUString& _rCommand) throw(::com::sun::star::uno::RuntimeException); // OComponentHelper virtual void SAL_CALL disposing(); diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx index cff783f50c2e..dd24d44e7b39 100644 --- a/forms/source/component/CheckBox.cxx +++ b/forms/source/component/CheckBox.cxx @@ -62,7 +62,7 @@ StringSequence SAL_CALL OCheckBoxControl::getSupportedServiceNames() throw(::com StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_CHECKBOX; return aSupported; } @@ -114,7 +114,7 @@ StringSequence SAL_CALL OCheckBoxModel::getSupportedServiceNames() throw(::com:: sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -139,7 +139,7 @@ void OCheckBoxModel::describeFixedProperties( Sequence< Property >& _rProps ) co } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OCheckBoxModel::getServiceName() throw(RuntimeException) +OUString SAL_CALL OCheckBoxModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_CHECKBOX; // old (non-sun) name for compatibility ! } @@ -169,7 +169,7 @@ void SAL_CALL OCheckBoxModel::read(const Reference<stario::XObjectInputStream>& // Version sal_uInt16 nVersion = _rxInStream->readShort(); - ::rtl::OUString sReferenceValue; + OUString sReferenceValue; sal_Int16 nDefaultChecked( 0 ); switch ( nVersion ) { diff --git a/forms/source/component/CheckBox.hxx b/forms/source/component/CheckBox.hxx index 7e186bceebd6..3ad94b8ffc9f 100644 --- a/forms/source/component/CheckBox.hxx +++ b/forms/source/component/CheckBox.hxx @@ -42,7 +42,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx index 01c71872c3ca..aa004a031730 100644 --- a/forms/source/component/Columns.cxx +++ b/forms/source/component/Columns.cxx @@ -69,26 +69,26 @@ const StringSequence& getColumnTypes() static StringSequence aColumnTypes(10); if (aColumnTypes.getConstArray()[0].isEmpty()) { - ::rtl::OUString* pNames = aColumnTypes.getArray(); - pNames[TYPE_CHECKBOX] = ::rtl::OUString( "CheckBox" ); - pNames[TYPE_COMBOBOX] = ::rtl::OUString( "ComboBox" ); - pNames[TYPE_CURRENCYFIELD] = ::rtl::OUString( "CurrencyField" ); - pNames[TYPE_DATEFIELD] = ::rtl::OUString( "DateField" ); - pNames[TYPE_FORMATTEDFIELD] = ::rtl::OUString( "FormattedField" ); - pNames[TYPE_LISTBOX] = ::rtl::OUString( "ListBox" ); - pNames[TYPE_NUMERICFIELD] = ::rtl::OUString( "NumericField" ); - pNames[TYPE_PATTERNFIELD] = ::rtl::OUString( "PatternField" ); - pNames[TYPE_TEXTFIELD] = ::rtl::OUString( "TextField" ); - pNames[TYPE_TIMEFIELD] = ::rtl::OUString( "TimeField" ); + OUString* pNames = aColumnTypes.getArray(); + pNames[TYPE_CHECKBOX] = OUString( "CheckBox" ); + pNames[TYPE_COMBOBOX] = OUString( "ComboBox" ); + pNames[TYPE_CURRENCYFIELD] = OUString( "CurrencyField" ); + pNames[TYPE_DATEFIELD] = OUString( "DateField" ); + pNames[TYPE_FORMATTEDFIELD] = OUString( "FormattedField" ); + pNames[TYPE_LISTBOX] = OUString( "ListBox" ); + pNames[TYPE_NUMERICFIELD] = OUString( "NumericField" ); + pNames[TYPE_PATTERNFIELD] = OUString( "PatternField" ); + pNames[TYPE_TEXTFIELD] = OUString( "TextField" ); + pNames[TYPE_TIMEFIELD] = OUString( "TimeField" ); } return aColumnTypes; } //------------------------------------------------------------------------------ -sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName) +sal_Int32 getColumnTypeByModelName(const OUString& aModelName) { - const ::rtl::OUString aModelPrefix ("com.sun.star.form.component."); - const ::rtl::OUString aCompatibleModelPrefix ("stardiv.one.form.component."); + const OUString aModelPrefix ("com.sun.star.form.component."); + const OUString aCompatibleModelPrefix ("stardiv.one.form.component."); sal_Int32 nTypeId = -1; if (aModelName == FRM_COMPONENT_EDIT) @@ -102,7 +102,7 @@ sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName) DBG_ASSERT( (nPrefixPos != -1) || (nCompatiblePrefixPos != -1), "::getColumnTypeByModelName() : wrong servivce !"); - ::rtl::OUString aColumnType = (nPrefixPos != -1) + OUString aColumnType = (nPrefixPos != -1) ? aModelName.copy(aModelPrefix.getLength()) : aModelName.copy(aCompatibleModelPrefix.getLength()); @@ -200,7 +200,7 @@ Any SAL_CALL OGridColumn::queryAggregation( const Type& _rType ) throw (RuntimeE DBG_NAME(OGridColumn); //------------------------------------------------------------------------------ -OGridColumn::OGridColumn( const comphelper::ComponentContext& _rContext, const ::rtl::OUString& _sModelName ) +OGridColumn::OGridColumn( const comphelper::ComponentContext& _rContext, const OUString& _sModelName ) :OGridColumn_BASE(m_aMutex) ,OPropertySetAggregationHelper(OGridColumn_BASE::rBHelper) ,m_aHidden( makeAny( sal_False ) ) @@ -304,7 +304,7 @@ void OGridColumn::disposing() void OGridColumn::clearAggregateProperties( Sequence< Property >& _rProps, sal_Bool bAllowDropDown ) { // some properties are not to be exposed to the outer world - ::std::set< ::rtl::OUString > aForbiddenProperties; + ::std::set< OUString > aForbiddenProperties; aForbiddenProperties.insert( PROPERTY_ALIGN ); aForbiddenProperties.insert( PROPERTY_AUTOCOMPLETE ); aForbiddenProperties.insert( PROPERTY_BACKGROUNDCOLOR ); @@ -341,7 +341,7 @@ void OGridColumn::clearAggregateProperties( Sequence< Property >& _rProps, sal_B aForbiddenProperties.insert( PROPERTY_VERTICAL_ALIGN ); aForbiddenProperties.insert( PROPERTY_IMAGE_URL ); aForbiddenProperties.insert( PROPERTY_IMAGE_POSITION ); - aForbiddenProperties.insert( ::rtl::OUString( "EnableVisible" ) ); + aForbiddenProperties.insert( OUString( "EnableVisible" ) ); if ( !bAllowDropDown ) aForbiddenProperties.insert( PROPERTY_DROPDOWN ); @@ -365,11 +365,11 @@ void OGridColumn::setOwnProperties(Sequence<Property>& aDescriptor) { aDescriptor.realloc(5); Property* pProperties = aDescriptor.getArray(); - DECL_PROP1(LABEL, ::rtl::OUString, BOUND); + DECL_PROP1(LABEL, OUString, BOUND); DECL_PROP3(WIDTH, sal_Int32, BOUND, MAYBEVOID, MAYBEDEFAULT); DECL_PROP3(ALIGN, sal_Int16, BOUND, MAYBEVOID, MAYBEDEFAULT); DECL_BOOL_PROP2(HIDDEN, BOUND, MAYBEDEFAULT); - DECL_PROP1(COLUMNSERVICENAME, ::rtl::OUString, READONLY); + DECL_PROP1(COLUMNSERVICENAME, OUString, READONLY); } // Reference<XPropertySet> diff --git a/forms/source/component/Columns.hxx b/forms/source/component/Columns.hxx index c5463a999b4a..ed2a1054d82f 100644 --- a/forms/source/component/Columns.hxx +++ b/forms/source/component/Columns.hxx @@ -61,14 +61,14 @@ protected: // [properties] ::comphelper::ComponentContext m_aContext; - ::rtl::OUString m_aModelName; + OUString m_aModelName; // [properties] - ::rtl::OUString m_aLabel; // Column name + OUString m_aLabel; // Column name // [properties] public: - OGridColumn(const ::comphelper::ComponentContext& _rContext, const ::rtl::OUString& _sModelName = ::rtl::OUString()); + OGridColumn(const ::comphelper::ComponentContext& _rContext, const OUString& _sModelName = OUString()); OGridColumn(const OGridColumn* _pOriginal ); virtual ~OGridColumn(); @@ -110,7 +110,7 @@ public: // XCloneable virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone( ) throw (::com::sun::star::uno::RuntimeException); - const ::rtl::OUString& getModelName() const { return m_aModelName; } + const OUString& getModelName() const { return m_aModelName; } protected: static void clearAggregateProperties(::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property>& seqProps, sal_Bool bAllowDropDown); @@ -189,7 +189,7 @@ OGridColumn* ClassName::createCloneColumn() const \ // List of all known columns const StringSequence& getColumnTypes(); -sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName); +sal_Int32 getColumnTypeByModelName(const OUString& aModelName); // Columns DECL_COLUMN(TextFieldColumn) diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx index 29abbe3a7af8..84613659ac90 100644 --- a/forms/source/component/ComboBox.cxx +++ b/forms/source/component/ComboBox.cxx @@ -95,7 +95,7 @@ StringSequence SAL_CALL OComboBoxModel::getSupportedServiceNames() throw(Runtime sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -305,10 +305,10 @@ void OComboBoxModel::describeFixedProperties( Sequence< Property >& _rProps ) co BEGIN_DESCRIBE_PROPERTIES( 6, OBoundControlModel ) DECL_PROP1(TABINDEX, sal_Int16, BOUND); DECL_PROP1(LISTSOURCETYPE, ListSourceType, BOUND); - DECL_PROP1(LISTSOURCE, ::rtl::OUString, BOUND); + DECL_PROP1(LISTSOURCE, OUString, BOUND); DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND); - DECL_PROP1(DEFAULT_TEXT, ::rtl::OUString, BOUND); - DECL_PROP1(STRINGITEMLIST, Sequence< ::rtl::OUString >,BOUND); + DECL_PROP1(DEFAULT_TEXT, OUString, BOUND); + DECL_PROP1(STRINGITEMLIST, Sequence< OUString >,BOUND); END_DESCRIBE_PROPERTIES(); } @@ -322,7 +322,7 @@ void OComboBoxModel::describeAggregateProperties( Sequence< Property >& _rAggreg } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OComboBoxModel::getServiceName() throw(RuntimeException) +OUString SAL_CALL OComboBoxModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_COMBOBOX; // old (non-sun) name for compatibility ! } @@ -391,9 +391,9 @@ void SAL_CALL OComboBoxModel::read(const Reference<stario::XObjectInputStream>& if (nVersion > 0x0006) { OSL_FAIL("OComboBoxModel::read : invalid (means unknown) version !"); - m_aListSource = ::rtl::OUString(); + m_aListSource = OUString(); m_aBoundColumn <<= (sal_Int16)0; - m_aDefaultText = ::rtl::OUString(); + m_aDefaultText = OUString(); m_eListSourceType = ListSourceType_TABLE; m_bEmptyIsNull = sal_True; defaultCommonProperties(); @@ -411,10 +411,10 @@ void SAL_CALL OComboBoxModel::read(const Reference<stario::XObjectInputStream>& } else // nVersion == 4 { - m_aListSource = ::rtl::OUString(); + m_aListSource = OUString(); StringSequence aListSource; _rxInStream >> aListSource; - const ::rtl::OUString* pToken = aListSource.getConstArray(); + const OUString* pToken = aListSource.getConstArray(); sal_Int32 nLen = aListSource.getLength(); for (sal_Int32 i = 0; i < nLen; ++i, ++pToken) m_aListSource += *pToken; @@ -511,7 +511,7 @@ void OComboBoxModel::loadData( bool _bForce ) Reference<XNameAccess> xFieldsByName = getTableFields(xConnection, m_aListSource); Reference<XIndexAccess> xFieldsByIndex(xFieldsByName, UNO_QUERY); - ::rtl::OUString aFieldName; + OUString aFieldName; if ( xFieldsByName.is() && xFieldsByName->hasByName( getControlSource() ) ) { aFieldName = getControlSource(); @@ -521,7 +521,7 @@ void OComboBoxModel::loadData( bool _bForce ) // otherwise look for the alias Reference<XPropertySet> xFormProp(xForm,UNO_QUERY); Reference< XColumnsSupplier > xSupplyFields; - xFormProp->getPropertyValue(::rtl::OUString("SingleSelectQueryComposer")) >>= xSupplyFields; + xFormProp->getPropertyValue(OUString("SingleSelectQueryComposer")) >>= xSupplyFields; // search the field DBG_ASSERT(xSupplyFields.is(), "OComboBoxModel::loadData : invalid query composer !"); @@ -543,12 +543,12 @@ void OComboBoxModel::loadData( bool _bForce ) OSL_ENSURE(xMeta.is(),"No database meta data!"); if ( xMeta.is() ) { - ::rtl::OUString aQuote = xMeta->getIdentifierQuoteString(); + OUString aQuote = xMeta->getIdentifierQuoteString(); - ::rtl::OUString sCatalog, sSchema, sTable; + OUString sCatalog, sSchema, sTable; qualifiedNameComponents( xMeta, m_aListSource, sCatalog, sSchema, sTable, eInDataManipulation ); - ::rtl::OUStringBuffer aStatement; + OUStringBuffer aStatement; aStatement.appendAscii( "SELECT DISTINCT " ); aStatement.append ( quoteName( aQuote, aFieldName ) ); aStatement.appendAscii( " FROM " ); @@ -597,7 +597,7 @@ void OComboBoxModel::loadData( bool _bForce ) return; } - ::std::vector< ::rtl::OUString > aStringList; + ::std::vector< OUString > aStringList; aStringList.reserve(16); try { @@ -646,7 +646,7 @@ void OComboBoxModel::loadData( bool _bForce ) { StringSequence seqNames = xFieldNames->getElementNames(); sal_Int32 nFieldsCount = seqNames.getLength(); - const ::rtl::OUString* pustrNames = seqNames.getConstArray(); + const OUString* pustrNames = seqNames.getConstArray(); for (sal_Int32 k=0; k<nFieldsCount; ++k) aStringList.push_back(pustrNames[k]); @@ -671,7 +671,7 @@ void OComboBoxModel::loadData( bool _bForce ) // Create StringSequence for ListBox StringSequence aStringSeq(aStringList.size()); - ::rtl::OUString* pStringAry = aStringSeq.getArray(); + OUString* pStringAry = aStringSeq.getArray(); for (sal_Int32 i = 0; i<aStringSeq.getLength(); ++i) pStringAry[i] = aStringList[i]; @@ -726,7 +726,7 @@ sal_Bool OComboBoxModel::commitControlValueToDbColumn( bool _bPostReset ) { Any aNewValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) ); - ::rtl::OUString sNewValue; + OUString sNewValue; aNewValue >>= sNewValue; bool bModified = ( aNewValue != m_aLastKnownValue ); @@ -771,7 +771,7 @@ sal_Bool OComboBoxModel::commitControlValueToDbColumn( bool _bPostReset ) StringSequence aStringItemList; if ( getPropertyValue( PROPERTY_STRINGITEMLIST ) >>= aStringItemList ) { - const ::rtl::OUString* pStringItems = aStringItemList.getConstArray(); + const OUString* pStringItems = aStringItemList.getConstArray(); sal_Int32 i; for (i=0; i<aStringItemList.getLength(); ++i, ++pStringItems) { @@ -801,7 +801,7 @@ Any OComboBoxModel::translateDbColumnToControlValue() OSL_PRECOND( m_pValueFormatter.get(), "OComboBoxModel::translateDbColumnToControlValue: no value formatter!" ); if ( m_pValueFormatter.get() ) { - ::rtl::OUString sValue( m_pValueFormatter->getFormattedValue() ); + OUString sValue( m_pValueFormatter->getFormattedValue() ); if ( sValue.isEmpty() && m_pValueFormatter->getColumn().is() && m_pValueFormatter->getColumn()->wasNull() @@ -818,7 +818,7 @@ Any OComboBoxModel::translateDbColumnToControlValue() else m_aLastKnownValue.clear(); - return m_aLastKnownValue.hasValue() ? m_aLastKnownValue : makeAny( ::rtl::OUString() ); + return m_aLastKnownValue.hasValue() ? m_aLastKnownValue : makeAny( OUString() ); // (m_aLastKnownValue is alllowed to be VOID, the control value isn't) } @@ -890,7 +890,7 @@ StringSequence SAL_CALL OComboBoxControl::getSupportedServiceNames() throw(Runti StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_COMBOBOX; return aSupported; } diff --git a/forms/source/component/ComboBox.hxx b/forms/source/component/ComboBox.hxx index 548163523817..7803af357e1d 100644 --- a/forms/source/component/ComboBox.hxx +++ b/forms/source/component/ComboBox.hxx @@ -51,8 +51,8 @@ class OComboBoxModel { CachedRowSet m_aListRowSet; // the row set to fill the list ::com::sun::star::uno::Any m_aBoundColumn; // obsolet - ::rtl::OUString m_aListSource; // - ::rtl::OUString m_aDefaultText; // DefaultText + OUString m_aListSource; // + OUString m_aDefaultText; // DefaultText ::com::sun::star::uno::Any m_aLastKnownValue; StringSequence m_aDesignModeStringItems; @@ -98,7 +98,7 @@ public: virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx index 6076fc64b7d2..7df3e8e939d7 100644 --- a/forms/source/component/Currency.cxx +++ b/forms/source/component/Currency.cxx @@ -66,7 +66,7 @@ StringSequence SAL_CALL OCurrencyControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_CURRENCYFIELD; return aSupported; } @@ -97,7 +97,7 @@ void OCurrencyModel::implConstruct() const SvtSysLocale aSysLocale; const LocaleDataWrapper& aLocaleInfo = aSysLocale.GetLocaleData(); - ::rtl::OUString sCurrencySymbol; + OUString sCurrencySymbol; sal_Bool bPrependCurrencySymbol; switch ( aLocaleInfo.getCurrPositiveFormat() ) { @@ -110,11 +110,11 @@ void OCurrencyModel::implConstruct() bPrependCurrencySymbol = sal_False; break; case 2: // $ 1 - sCurrencySymbol = ::rtl::OUString(String(aLocaleInfo.getCurrSymbol())) + ::rtl::OUString(" "); + sCurrencySymbol = OUString(String(aLocaleInfo.getCurrSymbol())) + OUString(" "); bPrependCurrencySymbol = sal_True; break; case 3: // 1 $ - sCurrencySymbol = ::rtl::OUString(" ") + ::rtl::OUString(String(aLocaleInfo.getCurrSymbol())); + sCurrencySymbol = OUString(" ") + OUString(String(aLocaleInfo.getCurrSymbol())); bPrependCurrencySymbol = sal_False; break; } @@ -172,7 +172,7 @@ StringSequence SAL_CALL OCurrencyModel::getSupportedServiceNames() throw() sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 4 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; *pStoreTo++ = VALIDATABLE_CONTROL_MODEL; @@ -196,7 +196,7 @@ void OCurrencyModel::describeFixedProperties( Sequence< Property >& _rProps ) co } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OCurrencyModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OCurrencyModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_CURRENCYFIELD; // old (non-sun) name for compatibility ! } diff --git a/forms/source/component/Currency.hxx b/forms/source/component/Currency.hxx index 91e428e78681..ba6571dbbe86 100644 --- a/forms/source/component/Currency.hxx +++ b/forms/source/component/Currency.hxx @@ -46,7 +46,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); // ::com::sun::star::io::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun ::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun ::star::uno::RuntimeException); // OControlModel's property handling virtual void describeFixedProperties( diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 91cedf46f933..ac4305b745f2 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -403,7 +403,7 @@ ODatabaseForm::ODatabaseForm( const ODatabaseForm& _cloneSource ) catch(const Exception&) { throw WrappedTargetException( - ::rtl::OUString( "Could not clone the given database form." ), + OUString( "Could not clone the given database form." ), *const_cast< ODatabaseForm* >( &_cloneSource ), ::cppu::getCaughtException() ); @@ -478,22 +478,22 @@ ODatabaseForm::~ODatabaseForm() //============================================================================== // html tools //------------------------------------------------------------------------ -::rtl::OUString ODatabaseForm::GetDataURLEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) +OUString ODatabaseForm::GetDataURLEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) { return GetDataEncoded(true,SubmitButton,MouseEvt); } // ----------------------------------------------------------------------------- -::rtl::OUString ODatabaseForm::GetDataEncoded(bool _bURLEncoded,const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) +OUString ODatabaseForm::GetDataEncoded(bool _bURLEncoded,const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) { // Fill List of successful Controls HtmlSuccessfulObjList aSuccObjList; FillSuccessfulList( aSuccObjList, SubmitButton, MouseEvt ); - // Aggregate Liste to ::rtl::OUString - ::rtl::OUStringBuffer aResult; - ::rtl::OUString aName; - ::rtl::OUString aValue; + // Aggregate Liste to OUString + OUStringBuffer aResult; + OUString aName; + OUString aValue; for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin(); pSuccObj < aSuccObjList.end(); @@ -536,13 +536,13 @@ ODatabaseForm::~ODatabaseForm() //============================================================================== // html tools //------------------------------------------------------------------------ -::rtl::OUString ODatabaseForm::GetDataTextEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) +OUString ODatabaseForm::GetDataTextEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) { return GetDataEncoded(false,SubmitButton,MouseEvt); } //------------------------------------------------------------------------ -Sequence<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt, ::rtl::OUString& rContentType) +Sequence<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt, OUString& rContentType) { // Create Parent @@ -555,7 +555,7 @@ Sequence<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XContr FillSuccessfulList( aSuccObjList, SubmitButton, MouseEvt ); - // Aggregate Liste to ::rtl::OUString + // Aggregate Liste to OUString for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin(); pSuccObj < aSuccObjList.end(); ++pSuccObj @@ -596,7 +596,7 @@ Sequence<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XContr //------------------------------------------------------------------------ namespace { - static void appendDigits( sal_Int32 _nNumber, sal_Int8 nDigits, ::rtl::OUStringBuffer& _rOut ) + static void appendDigits( sal_Int32 _nNumber, sal_Int8 nDigits, OUStringBuffer& _rOut ) { sal_Int32 nCurLen = _rOut.getLength(); _rOut.append( _nNumber ); @@ -606,7 +606,7 @@ namespace } //------------------------------------------------------------------------ -void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Reference<XPropertySet>& xComponentSet, const ::rtl::OUString& rNamePrefix, +void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Reference<XPropertySet>& xComponentSet, const OUString& rNamePrefix, const Reference<XControl>& rxSubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt) { if (!xComponentSet.is()) @@ -622,7 +622,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc sal_Int16 nClassId = 0; xComponentSet->getPropertyValue(PROPERTY_CLASSID) >>= nClassId; - ::rtl::OUString aName; + OUString aName; xComponentSet->getPropertyValue( PROPERTY_NAME ) >>= aName; if( aName.isEmpty() && nClassId != FormComponentType::IMAGEBUTTON) return; @@ -642,7 +642,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc if (xSubmitButtonComponent == xComponentSet && hasProperty(PROPERTY_LABEL, xComponentSet)) { // <name>=<label> - ::rtl::OUString aLabel; + OUString aLabel; xComponentSet->getPropertyValue( PROPERTY_LABEL ) >>= aLabel; rList.push_back( HtmlSuccessfulObj(aName, aLabel) ); } @@ -660,10 +660,10 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc if (xSubmitButtonComponent == xComponentSet) { // <name>.x=<pos.X>&<name>.y=<pos.Y> - ::rtl::OUString aRhs = ::rtl::OUString::valueOf( MouseEvt.X ); + OUString aRhs = OUString::valueOf( MouseEvt.X ); // Only if a name is available we have a name.x - rtl::OUStringBuffer aLhs(aName); + OUStringBuffer aLhs(aName); if (!aName.isEmpty()) aLhs.append(".x"); else @@ -671,7 +671,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc rList.push_back( HtmlSuccessfulObj(aLhs.makeStringAndClear(), aRhs) ); aLhs.append(aName); - aRhs = ::rtl::OUString::valueOf( MouseEvt.Y ); + aRhs = OUString::valueOf( MouseEvt.Y ); if (!aName.isEmpty()) aLhs.append(".y"); else @@ -693,7 +693,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc if( nChecked != 1 ) break; - ::rtl::OUString aStrValue; + OUString aStrValue; if( hasProperty(PROPERTY_REFVALUE, xComponentSet) ) xComponentSet->getPropertyValue( PROPERTY_REFVALUE ) >>= aStrValue; @@ -712,7 +712,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc sal_Bool bMulti = rxSubmitButton.is() && (aTmp.getValueType().getTypeClass() == TypeClass_BOOLEAN) && getBOOL(aTmp); - ::rtl::OUString sText; + OUString sText; if ( bMulti ) // For multiline edit, get the text at the control { @@ -754,7 +754,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc // <name>=<text> if( hasProperty(PROPERTY_TEXT, xComponentSet) ) { - ::rtl::OUString aText; + OUString aText; xComponentSet->getPropertyValue( PROPERTY_TEXT ) >>= aText; rList.push_back( HtmlSuccessfulObj(aName, aText) ); } @@ -766,7 +766,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc // no value (NULL) means empty value if( hasProperty(PROPERTY_VALUE, xComponentSet) ) { - ::rtl::OUString aText; + OUString aText; Any aVal = xComponentSet->getPropertyValue( PROPERTY_VALUE ); double aDoubleVal = 0; @@ -785,13 +785,13 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc // no value (NULL) means empty value if( hasProperty(PROPERTY_DATE, xComponentSet) ) { - ::rtl::OUString aText; + OUString aText; Any aVal = xComponentSet->getPropertyValue( PROPERTY_DATE ); sal_Int32 nInt32Val = 0; if (aVal >>= nInt32Val) { ::Date aDate( nInt32Val ); - ::rtl::OUStringBuffer aBuffer; + OUStringBuffer aBuffer; appendDigits( aDate.GetMonth(), 2, aBuffer ); aBuffer.append( (sal_Unicode)'-' ); appendDigits( aDate.GetDay(), 2, aBuffer ); @@ -808,13 +808,13 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc // no value (NULL) means empty value if( hasProperty(PROPERTY_TIME, xComponentSet) ) { - ::rtl::OUString aText; + OUString aText; Any aVal = xComponentSet->getPropertyValue( PROPERTY_TIME ); sal_Int32 nInt32Val = 0; if (aVal >>= nInt32Val) { ::Time aTime(nInt32Val); - ::rtl::OUStringBuffer aBuffer; + OUStringBuffer aBuffer; appendDigits( aTime.GetHour(), 2, aBuffer ); aBuffer.append( (sal_Unicode)'-' ); appendDigits( aTime.GetMin(), 2, aBuffer ); @@ -833,7 +833,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc // <name>=<value> if( hasProperty(PROPERTY_HIDDEN_VALUE, xComponentSet) ) { - ::rtl::OUString aText; + OUString aText; xComponentSet->getPropertyValue( PROPERTY_HIDDEN_VALUE ) >>= aText; rList.push_back( HtmlSuccessfulObj(aName, aText) ); } @@ -846,7 +846,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc if( hasProperty(PROPERTY_TEXT, xComponentSet) ) { - ::rtl::OUString aText; + OUString aText; xComponentSet->getPropertyValue( PROPERTY_TEXT ) >>= aText; rList.push_back( HtmlSuccessfulObj(aName, aText, SUCCESSFUL_REPRESENT_FILE) ); } @@ -862,16 +862,16 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc break; // Displayed values - Sequence< ::rtl::OUString > aVisibleList; + Sequence< OUString > aVisibleList; xComponentSet->getPropertyValue( PROPERTY_STRINGITEMLIST ) >>= aVisibleList; sal_Int32 nStringCnt = aVisibleList.getLength(); - const ::rtl::OUString* pStrings = aVisibleList.getConstArray(); + const OUString* pStrings = aVisibleList.getConstArray(); // Value list - Sequence< ::rtl::OUString > aValueList; + Sequence< OUString > aValueList; xComponentSet->getPropertyValue( PROPERTY_VALUE_SEQ ) >>= aValueList; sal_Int32 nValCnt = aValueList.getLength(); - const ::rtl::OUString* pVals = aValueList.getConstArray(); + const OUString* pVals = aValueList.getConstArray(); // Selection Sequence<sal_Int16> aSelectList; @@ -894,7 +894,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc ++nCurCnt; } - ::rtl::OUString aSubValue; + OUString aSubValue; for(i=0; i<nCurCnt; ++i ) { sal_Int16 nSelPos = pSels[i]; @@ -917,7 +917,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc if (!xContainer.is()) break; - aName += rtl::OUString(static_cast<sal_Unicode>('.')); + aName += OUString(static_cast<sal_Unicode>('.')); Reference<XPropertySet> xSet; sal_Int32 nCount = xContainer->getCount(); @@ -942,7 +942,7 @@ void ODatabaseForm::FillSuccessfulList( HtmlSuccessfulObjList& rList, rList.clear(); // Iterate over Components Reference<XPropertySet> xComponentSet; - ::rtl::OUString aPrefix; + OUString aPrefix; // we know already how many objects should be appended, // so why not allocate the space for them @@ -955,9 +955,9 @@ void ODatabaseForm::FillSuccessfulList( HtmlSuccessfulObjList& rList, } //------------------------------------------------------------------------ -void ODatabaseForm::Encode( ::rtl::OUString& rString ) const +void ODatabaseForm::Encode( OUString& rString ) const { - ::rtl::OUStringBuffer aResult; + OUStringBuffer aResult; // Line endings are represented as CR rString = convertLineEnd(rString, LINEEND_CR); @@ -1010,8 +1010,8 @@ void ODatabaseForm::Encode( ::rtl::OUString& rString ) const } //------------------------------------------------------------------------ -void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const ::rtl::OUString& rName, - const ::rtl::OUString& rData ) +void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const OUString& rName, + const OUString& rData ) { // Create part as MessageChild @@ -1019,21 +1019,21 @@ void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const ::rtl::OUStr // Header - ::rtl::OUStringBuffer aContentDisp; + OUStringBuffer aContentDisp; aContentDisp.append("form-data; name=\""); aContentDisp.append(rName); aContentDisp.append('\"'); pChild->SetContentDisposition(aContentDisp.makeStringAndClear()); - pChild->SetContentType(::rtl::OUString("text/plain")); + pChild->SetContentType(OUString("text/plain")); rtl_TextEncoding eSystemEncoding = osl_getThreadTextEncoding(); const sal_Char* pBestMatchingEncoding = rtl_getBestMimeCharsetFromTextEncoding( eSystemEncoding ); - rtl::OUString aBestMatchingEncoding = rtl::OUString::createFromAscii(pBestMatchingEncoding); + OUString aBestMatchingEncoding = OUString::createFromAscii(pBestMatchingEncoding); pChild->SetContentTransferEncoding(aBestMatchingEncoding); // Body SvMemoryStream* pStream = new SvMemoryStream; - pStream->WriteLine( rtl::OUStringToOString(rData, rtl_getTextEncodingFromMimeCharset(pBestMatchingEncoding)) ); + pStream->WriteLine( OUStringToOString(rData, rtl_getTextEncodingFromMimeCharset(pBestMatchingEncoding)) ); pStream->Flush(); pStream->Seek( 0 ); pChild->SetDocumentLB( new SvLockBytes(pStream, sal_True) ); @@ -1041,11 +1041,11 @@ void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const ::rtl::OUStr } //------------------------------------------------------------------------ -sal_Bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const ::rtl::OUString& rName, - const ::rtl::OUString& rFileName ) +sal_Bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const OUString& rName, + const OUString& rFileName ) { - rtl::OUString aFileName(rFileName); - rtl::OUString aContentType(CONTENT_TYPE_STR_TEXT_PLAIN); + OUString aFileName(rFileName); + OUString aContentType(CONTENT_TYPE_STR_TEXT_PLAIN); SvStream *pStream = 0; if (!aFileName.isEmpty()) @@ -1081,7 +1081,7 @@ sal_Bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const ::rtl::O // Header - ::rtl::OUStringBuffer aContentDisp; + OUStringBuffer aContentDisp; aContentDisp.append("form-data; name=\""); aContentDisp.append(rName); aContentDisp.append('\"'); @@ -1090,7 +1090,7 @@ sal_Bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const ::rtl::O aContentDisp.append('\"'); pChild->SetContentDisposition(aContentDisp.makeStringAndClear()); pChild->SetContentType( aContentType ); - pChild->SetContentTransferEncoding(::rtl::OUString("8bit")); + pChild->SetContentTransferEncoding(OUString("8bit")); // Body @@ -1109,7 +1109,7 @@ void ODatabaseForm::onError( const SQLErrorEvent& _rEvent ) } //------------------------------------------------------------------------------ -void ODatabaseForm::onError( const SQLException& _rException, const ::rtl::OUString& _rContextDescription ) +void ODatabaseForm::onError( const SQLException& _rException, const OUString& _rContextDescription ) { if ( !m_aErrorListeners.getLength() ) return; @@ -1385,20 +1385,20 @@ void ODatabaseForm::describeFixedAndAggregateProperties( DECL_IFACE_PROP4(ACTIVE_CONNECTION, XConnection, BOUND, TRANSIENT, MAYBEVOID, CONSTRAINED); DECL_BOOL_PROP2 ( APPLYFILTER, BOUND, MAYBEDEFAULT ); - DECL_PROP1 ( NAME, ::rtl::OUString, BOUND ); - DECL_PROP1 ( MASTERFIELDS, Sequence< ::rtl::OUString >, BOUND ); - DECL_PROP1 ( DETAILFIELDS, Sequence< ::rtl::OUString >, BOUND ); - DECL_PROP2 ( DATASOURCE, ::rtl::OUString, BOUND, CONSTRAINED ); + DECL_PROP1 ( NAME, OUString, BOUND ); + DECL_PROP1 ( MASTERFIELDS, Sequence< OUString >, BOUND ); + DECL_PROP1 ( DETAILFIELDS, Sequence< OUString >, BOUND ); + DECL_PROP2 ( DATASOURCE, OUString, BOUND, CONSTRAINED ); DECL_PROP3 ( CYCLE, TabulatorCycle, BOUND, MAYBEVOID, MAYBEDEFAULT ); - DECL_PROP2 ( FILTER, ::rtl::OUString, BOUND, MAYBEDEFAULT ); + DECL_PROP2 ( FILTER, OUString, BOUND, MAYBEDEFAULT ); DECL_BOOL_PROP2 ( INSERTONLY, BOUND, MAYBEDEFAULT ); DECL_PROP1 ( NAVIGATION, NavigationBarMode, BOUND ); DECL_BOOL_PROP1 ( ALLOWADDITIONS, BOUND ); DECL_BOOL_PROP1 ( ALLOWEDITS, BOUND ); DECL_BOOL_PROP1 ( ALLOWDELETIONS, BOUND ); DECL_PROP2 ( PRIVILEGES, sal_Int32, TRANSIENT, READONLY ); - DECL_PROP1 ( TARGET_URL, ::rtl::OUString, BOUND ); - DECL_PROP1 ( TARGET_FRAME, ::rtl::OUString, BOUND ); + DECL_PROP1 ( TARGET_URL, OUString, BOUND ); + DECL_PROP1 ( TARGET_FRAME, OUString, BOUND ); DECL_PROP1 ( SUBMIT_METHOD, FormSubmitMethod, BOUND ); DECL_PROP1 ( SUBMIT_ENCODING, FormSubmitEncoding, BOUND ); DECL_BOOL_PROP3 ( DYNAMIC_CONTROL_BORDER, BOUND, MAYBEVOID, MAYBEDEFAULT ); @@ -1427,13 +1427,13 @@ Reference< XPropertySetInfo > ODatabaseForm::getPropertySetInfo() throw( Runtime } //-------------------------------------------------------------------- -void SAL_CALL ODatabaseForm::addProperty( const ::rtl::OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException) +void SAL_CALL ODatabaseForm::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException) { m_aPropertyBagHelper.addProperty( _rName, _nAttributes, _rInitialValue ); } //-------------------------------------------------------------------- -void SAL_CALL ODatabaseForm::removeProperty( const ::rtl::OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException) +void SAL_CALL ODatabaseForm::removeProperty( const OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException) { m_aPropertyBagHelper.removeProperty( _rName ); } @@ -1625,7 +1625,7 @@ sal_Bool ODatabaseForm::convertFastPropertyValue( Any& rConvertedValue, Any& rOl { Any aAggregateProperty; getFastPropertyValue(aAggregateProperty, PROPERTY_ID_DATASOURCE); - bModified = tryPropertyValue(rConvertedValue, rOldValue, rValue, aAggregateProperty, ::getCppuType(static_cast<const ::rtl::OUString*>(NULL))); + bModified = tryPropertyValue(rConvertedValue, rOldValue, rValue, aAggregateProperty, ::getCppuType(static_cast<const OUString*>(NULL))); } break; case PROPERTY_ID_TARGET_URL: @@ -1701,7 +1701,7 @@ void ODatabaseForm::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const A case PROPERTY_ID_FILTER: { - ::rtl::OUString sNewFilter; + OUString sNewFilter; rValue >>= sNewFilter; m_aFilterManager.setFilterComponent( FilterManager::fcPublicFilter, sNewFilter ); } @@ -1912,7 +1912,7 @@ Any ODatabaseForm::getPropertyDefaultByHandle( sal_Int32 nHandle ) const break; case PROPERTY_ID_FILTER: - aReturn <<= ::rtl::OUString(); + aReturn <<= OUString(); break; case PROPERTY_ID_APPLYFILTER: @@ -2012,7 +2012,7 @@ void ODatabaseForm::reset_impl(bool _bAproveByListeners) if ( xColProps.is() ) xPSI = xColProps->getPropertySetInfo( ); - static const ::rtl::OUString PROPERTY_CONTROLDEFAULT( "ControlDefault" ); + static const OUString PROPERTY_CONTROLDEFAULT( "ControlDefault" ); if ( xPSI.is() && xPSI->hasPropertyByName( PROPERTY_CONTROLDEFAULT ) ) { Any aDefault = xColProps->getPropertyValue( PROPERTY_CONTROLDEFAULT ); @@ -2147,8 +2147,8 @@ void SAL_CALL ODatabaseForm::submit( const Reference<XControl>& Control, } } // ----------------------------------------------------------------------------- -void lcl_dispatch(const Reference< XFrame >& xFrame,const Reference<XURLTransformer>& xTransformer,const ::rtl::OUString& aURLStr,const ::rtl::OUString& aReferer,const ::rtl::OUString& aTargetName - ,const ::rtl::OUString& aData,rtl_TextEncoding _eEncoding) +void lcl_dispatch(const Reference< XFrame >& xFrame,const Reference<XURLTransformer>& xTransformer,const OUString& aURLStr,const OUString& aReferer,const OUString& aTargetName + ,const OUString& aData,rtl_TextEncoding _eEncoding) { URL aURL; aURL.Complete = aURLStr; @@ -2161,16 +2161,16 @@ void lcl_dispatch(const Reference< XFrame >& xFrame,const Reference<XURLTransfor if (xDisp.is()) { Sequence<PropertyValue> aArgs(2); - aArgs.getArray()[0].Name = ::rtl::OUString("Referer"); + aArgs.getArray()[0].Name = OUString("Referer"); aArgs.getArray()[0].Value <<= aReferer; // build a sequence from the to-be-submitted string - rtl::OString a8BitData(rtl::OUStringToOString(aData, _eEncoding)); + OString a8BitData(OUStringToOString(aData, _eEncoding)); // always ANSI #58641 Sequence< sal_Int8 > aPostData((const sal_Int8*)a8BitData.getStr(), a8BitData.getLength()); Reference< XInputStream > xPostData = new SequenceInputStream(aPostData); - aArgs.getArray()[1].Name = ::rtl::OUString("PostData"); + aArgs.getArray()[1].Name = OUString("PostData"); aArgs.getArray()[1].Value <<= xPostData; xDisp->dispatch(aURL, aArgs); @@ -2197,9 +2197,9 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: FormSubmitEncoding eSubmitEncoding; FormSubmitMethod eSubmitMethod; - ::rtl::OUString aURLStr; - ::rtl::OUString aReferer; - ::rtl::OUString aTargetName; + OUString aURLStr; + OUString aReferer; + OUString aTargetName; Reference< XModel > xModel; { SolarMutexGuard aGuard; @@ -2232,7 +2232,7 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: // URL encoding if( eSubmitEncoding == FormSubmitEncoding_URL ) { - ::rtl::OUString aData; + OUString aData; { SolarMutexGuard aGuard; aData = GetDataURLEncoded( Control, MouseEvt ); @@ -2255,7 +2255,7 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: if (xDisp.is()) { Sequence<PropertyValue> aArgs(1); - aArgs.getArray()->Name = ::rtl::OUString("Referer"); + aArgs.getArray()->Name = OUString("Referer"); aArgs.getArray()->Value <<= aReferer; xDisp->dispatch(aURL, aArgs); } @@ -2278,7 +2278,7 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: if (xDisp.is()) { - ::rtl::OUString aContentType; + OUString aContentType; Sequence<sal_Int8> aData; { SolarMutexGuard aGuard; @@ -2288,15 +2288,15 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: return; Sequence<PropertyValue> aArgs(3); - aArgs.getArray()[0].Name = ::rtl::OUString("Referer"); + aArgs.getArray()[0].Name = OUString("Referer"); aArgs.getArray()[0].Value <<= aReferer; - aArgs.getArray()[1].Name = ::rtl::OUString("ContentType"); + aArgs.getArray()[1].Name = OUString("ContentType"); aArgs.getArray()[1].Value <<= aContentType; // build a sequence from the to-be-submitted string Reference< XInputStream > xPostData = new SequenceInputStream(aData); - aArgs.getArray()[2].Name = ::rtl::OUString("PostData"); + aArgs.getArray()[2].Name = OUString("PostData"); aArgs.getArray()[2].Value <<= xPostData; xDisp->dispatch(aURL, aArgs); @@ -2304,7 +2304,7 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: } else if( eSubmitEncoding == FormSubmitEncoding_TEXT ) { - ::rtl::OUString aData; + OUString aData; { SolarMutexGuard aGuard; aData = GetDataTextEncoded( Reference<XControl> (), MouseEvt ); @@ -2429,7 +2429,7 @@ void SAL_CALL ODatabaseForm::setParent(const InterfaceRef& Parent) throw ( ::com sal_Bool bIsEmbedded = ::dbtools::isEmbeddedInDatabase( Parent, xOuterConnection ); if ( bIsEmbedded ) - xAggregateProperties->setPropertyValue( PROPERTY_DATASOURCE, makeAny( ::rtl::OUString() ) ); + xAggregateProperties->setPropertyValue( PROPERTY_DATASOURCE, makeAny( OUString() ) ); } //============================================================================== @@ -2499,7 +2499,7 @@ Sequence<Reference<XControlModel> > SAL_CALL ODatabaseForm::getControlModels() t } //------------------------------------------------------------------------------ -void SAL_CALL ODatabaseForm::setGroup( const Sequence<Reference<XControlModel> >& _rGroup, const ::rtl::OUString& Name ) throw( RuntimeException ) +void SAL_CALL ODatabaseForm::setGroup( const Sequence<Reference<XControlModel> >& _rGroup, const OUString& Name ) throw( RuntimeException ) { ::osl::MutexGuard aGuard(m_aMutex); @@ -2507,7 +2507,7 @@ void SAL_CALL ODatabaseForm::setGroup( const Sequence<Reference<XControlModel> > // first control of the sequence const Reference<XControlModel>* pControls = _rGroup.getConstArray(); Reference< XPropertySet > xSet; - ::rtl::OUString sGroupName( Name ); + OUString sGroupName( Name ); for( sal_Int32 i=0; i<_rGroup.getLength(); ++i, ++pControls ) { @@ -2535,11 +2535,11 @@ sal_Int32 SAL_CALL ODatabaseForm::getGroupCount() throw( RuntimeException ) } //------------------------------------------------------------------------------ -void SAL_CALL ODatabaseForm::getGroup( sal_Int32 nGroup, Sequence<Reference<XControlModel> >& _rGroup, ::rtl::OUString& _rName ) throw( RuntimeException ) +void SAL_CALL ODatabaseForm::getGroup( sal_Int32 nGroup, Sequence<Reference<XControlModel> >& _rGroup, OUString& _rName ) throw( RuntimeException ) { ::osl::MutexGuard aGuard(m_aMutex); _rGroup.realloc(0); - _rName = ::rtl::OUString(); + _rName = OUString(); if ((nGroup < 0) || (nGroup >= m_pGroupManager->getGroupCount())) return; @@ -2547,7 +2547,7 @@ void SAL_CALL ODatabaseForm::getGroup( sal_Int32 nGroup, Sequence<Reference<XCon } //------------------------------------------------------------------------------ -void SAL_CALL ODatabaseForm::getGroupByName(const ::rtl::OUString& Name, Sequence< Reference<XControlModel> >& _rGroup) throw( RuntimeException ) +void SAL_CALL ODatabaseForm::getGroupByName(const OUString& Name, Sequence< Reference<XControlModel> >& _rGroup) throw( RuntimeException ) { ::osl::MutexGuard aGuard(m_aMutex); _rGroup.realloc(0); @@ -2679,11 +2679,11 @@ void SAL_CALL ODatabaseForm::load() throw( RuntimeException ) sal_Bool ODatabaseForm::canShareConnection( const Reference< XPropertySet >& _rxParentProps ) { // our own data source - ::rtl::OUString sOwnDatasource; + OUString sOwnDatasource; m_xAggregateSet->getPropertyValue( PROPERTY_DATASOURCE ) >>= sOwnDatasource; // our parents data source - ::rtl::OUString sParentDataSource; + OUString sParentDataSource; OSL_ENSURE( _rxParentProps.is() && _rxParentProps->getPropertySetInfo().is() && _rxParentProps->getPropertySetInfo()->hasPropertyByName( PROPERTY_DATASOURCE ), "ODatabaseForm::doShareConnection: invalid parent form!" ); if ( _rxParentProps.is() ) @@ -2700,8 +2700,8 @@ sal_Bool ODatabaseForm::canShareConnection( const Reference< XPropertySet >& _rx else { // the data source name is empty // -> ook for the URL - ::rtl::OUString sParentURL; - ::rtl::OUString sMyURL; + OUString sParentURL; + OUString sMyURL; _rxParentProps->getPropertyValue( PROPERTY_URL ) >>= sParentURL; m_xAggregateSet->getPropertyValue( PROPERTY_URL ) >>= sMyURL; @@ -2714,11 +2714,11 @@ sal_Bool ODatabaseForm::canShareConnection( const Reference< XPropertySet >& _rx // check for the user/password // take the user property on the rowset (if any) into account - ::rtl::OUString sParentUser, sParentPwd; + OUString sParentUser, sParentPwd; _rxParentProps->getPropertyValue( PROPERTY_USER ) >>= sParentUser; _rxParentProps->getPropertyValue( PROPERTY_PASSWORD ) >>= sParentPwd; - ::rtl::OUString sMyUser, sMyPwd; + OUString sMyUser, sMyPwd; m_xAggregateSet->getPropertyValue( PROPERTY_USER ) >>= sMyUser; m_xAggregateSet->getPropertyValue( PROPERTY_PASSWORD ) >>= sMyPwd; @@ -3625,7 +3625,7 @@ void SAL_CALL ODatabaseForm::setNull(sal_Int32 parameterIndex, sal_Int32 sqlType } //------------------------------------------------------------------------------ -void SAL_CALL ODatabaseForm::setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName) throw( SQLException, RuntimeException ) +void SAL_CALL ODatabaseForm::setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& typeName) throw( SQLException, RuntimeException ) { m_aParameterManager.setObjectNull(parameterIndex, sqlType, typeName); } @@ -3673,7 +3673,7 @@ void SAL_CALL ODatabaseForm::setDouble(sal_Int32 parameterIndex, double x) throw } //------------------------------------------------------------------------------ -void SAL_CALL ODatabaseForm::setString(sal_Int32 parameterIndex, const ::rtl::OUString& x) throw( SQLException, RuntimeException ) +void SAL_CALL ODatabaseForm::setString(sal_Int32 parameterIndex, const OUString& x) throw( SQLException, RuntimeException ) { m_aParameterManager.setString(parameterIndex, x); } @@ -3775,16 +3775,16 @@ void SAL_CALL ODatabaseForm::propertyChange( const PropertyChangeEvent& evt ) th // com::sun::star::lang::XServiceInfo //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL ODatabaseForm::getImplementationName_Static() +OUString SAL_CALL ODatabaseForm::getImplementationName_Static() { - return ::rtl::OUString( "com.sun.star.comp.forms.ODatabaseForm" ); + return OUString( "com.sun.star.comp.forms.ODatabaseForm" ); } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getCompatibleServiceNames_Static() +Sequence< OUString > SAL_CALL ODatabaseForm::getCompatibleServiceNames_Static() { - Sequence< ::rtl::OUString > aServices( 1 ); - ::rtl::OUString* pServices = aServices.getArray(); + Sequence< OUString > aServices( 1 ); + OUString* pServices = aServices.getArray(); *pServices++ = FRM_COMPONENT_FORM; @@ -3792,13 +3792,13 @@ Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getCompatibleServiceNames_St } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getCurrentServiceNames_Static() +Sequence< OUString > SAL_CALL ODatabaseForm::getCurrentServiceNames_Static() { - Sequence< ::rtl::OUString > aServices( 5 ); - ::rtl::OUString* pServices = aServices.getArray(); + Sequence< OUString > aServices( 5 ); + OUString* pServices = aServices.getArray(); *pServices++ = FRM_SUN_FORMCOMPONENT; - *pServices++ = ::rtl::OUString("com.sun.star.form.FormComponents"); + *pServices++ = OUString("com.sun.star.form.FormComponents"); *pServices++ = FRM_SUN_COMPONENT_FORM; *pServices++ = FRM_SUN_COMPONENT_HTMLFORM; *pServices++ = FRM_SUN_COMPONENT_DATAFORM; @@ -3807,7 +3807,7 @@ Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getCurrentServiceNames_Stati } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames_Static() +Sequence< OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames_Static() { return ::comphelper::concatSequences( getCurrentServiceNames_Static(), @@ -3816,16 +3816,16 @@ Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames_Sta } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL ODatabaseForm::getImplementationName() throw( RuntimeException ) +OUString SAL_CALL ODatabaseForm::getImplementationName() throw( RuntimeException ) { return getImplementationName_Static(); } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames() throw( RuntimeException ) +Sequence< OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames() throw( RuntimeException ) { // the services of our aggregate - Sequence< ::rtl::OUString > aServices; + Sequence< OUString > aServices; Reference< XServiceInfo > xInfo; if (query_aggregation(m_xAggregate, xInfo)) aServices = xInfo->getSupportedServiceNames(); @@ -3842,10 +3842,10 @@ Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames() t } //------------------------------------------------------------------------------ -sal_Bool SAL_CALL ODatabaseForm::supportsService(const ::rtl::OUString& ServiceName) throw( RuntimeException ) +sal_Bool SAL_CALL ODatabaseForm::supportsService(const OUString& ServiceName) throw( RuntimeException ) { - Sequence< ::rtl::OUString > aSupported( getSupportedServiceNames() ); - const ::rtl::OUString* pArray = aSupported.getConstArray(); + Sequence< OUString > aSupported( getSupportedServiceNames() ); + const OUString* pArray = aSupported.getConstArray(); for( sal_Int32 i = 0; i < aSupported.getLength(); ++i, ++pArray ) if( pArray->equals( ServiceName ) ) return sal_True; @@ -3860,7 +3860,7 @@ const sal_uInt16 CYCLE = 0x0001; const sal_uInt16 DONTAPPLYFILTER = 0x0002; //------------------------------------------------------------------------------ -::rtl::OUString ODatabaseForm::getServiceName() throw( RuntimeException ) +OUString ODatabaseForm::getServiceName() throw( RuntimeException ) { return FRM_COMPONENT_FORM; // old (non-sun) name for compatibility ! } @@ -3879,13 +3879,13 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS // Name _rxOutStream << m_sName; - ::rtl::OUString sDataSource; + OUString sDataSource; if (m_xAggregateSet.is()) m_xAggregateSet->getPropertyValue(PROPERTY_DATASOURCE) >>= sDataSource; _rxOutStream << sDataSource; // former CursorSource - ::rtl::OUString sCommand; + OUString sCommand; if (m_xAggregateSet.is()) m_xAggregateSet->getPropertyValue(PROPERTY_COMMAND) >>= sCommand; _rxOutStream << sCommand; @@ -3932,7 +3932,7 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS _rxOutStream->writeBoolean(m_bAllowDelete); // html form stuff - ::rtl::OUString sTmp = INetURLObject::decode( m_aTargetURL, '%', INetURLObject::DECODE_UNAMBIGUOUS); + OUString sTmp = INetURLObject::decode( m_aTargetURL, '%', INetURLObject::DECODE_UNAMBIGUOUS); _rxOutStream << sTmp; _rxOutStream->writeShort( (sal_Int16)m_eSubmitMethod ); _rxOutStream->writeShort( (sal_Int16)m_eSubmitEncoding ); @@ -3951,8 +3951,8 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS _rxOutStream->writeShort((sal_Int16)m_eNavigation); - ::rtl::OUString sFilter; - ::rtl::OUString sOrder; + OUString sFilter; + OUString sOrder; if (m_xAggregateSet.is()) { m_xAggregateSet->getPropertyValue(PROPERTY_FILTER) >>= sFilter; @@ -3992,7 +3992,7 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre _rxInStream >> m_sName; - ::rtl::OUString sAggregateProp; + OUString sAggregateProp; _rxInStream >> sAggregateProp; if (m_xAggregateSet.is()) m_xAggregateSet->setPropertyValue(PROPERTY_DATASOURCE, makeAny(sAggregateProp)); @@ -4040,7 +4040,7 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre m_bAllowDelete = _rxInStream->readBoolean(); // html stuff - ::rtl::OUString sTmp; + OUString sTmp; _rxInStream >> sTmp; m_aTargetURL = INetURLObject::decode( sTmp, '%', INetURLObject::DECODE_UNAMBIGUOUS); m_eSubmitMethod = (FormSubmitMethod)_rxInStream->readShort(); @@ -4115,15 +4115,15 @@ void SAL_CALL ODatabaseForm::errorOccured(const SQLErrorEvent& _rEvent) throw( R // com::sun::star::container::XNamed //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL ODatabaseForm::getName() throw( RuntimeException ) +OUString SAL_CALL ODatabaseForm::getName() throw( RuntimeException ) { - ::rtl::OUString sReturn; + OUString sReturn; OPropertySetHelper::getFastPropertyValue(PROPERTY_ID_NAME) >>= sReturn; return sReturn; } //------------------------------------------------------------------------------ -void SAL_CALL ODatabaseForm::setName(const ::rtl::OUString& aName) throw( RuntimeException ) +void SAL_CALL ODatabaseForm::setName(const OUString& aName) throw( RuntimeException ) { setFastPropertyValue(PROPERTY_ID_NAME, makeAny(aName)); } diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx index 4e250a0fa7e9..776b5fed1830 100644 --- a/forms/source/component/DatabaseForm.hxx +++ b/forms/source/component/DatabaseForm.hxx @@ -94,11 +94,11 @@ const sal_uInt16 SUCCESSFUL_REPRESENT_FILE = 0x0002; class HtmlSuccessfulObj { public: - ::rtl::OUString aName; - ::rtl::OUString aValue; + OUString aName; + OUString aValue; sal_uInt16 nRepresentation; - HtmlSuccessfulObj( const ::rtl::OUString& _rName, const ::rtl::OUString& _rValue, + HtmlSuccessfulObj( const OUString& _rName, const OUString& _rValue, sal_uInt16 _nRepresent = SUCCESSFUL_REPRESENT_TEXT ) :aName( _rName ) ,aValue( _rValue ) @@ -169,8 +169,8 @@ class ODatabaseForm :public OFormComponents ::osl::Mutex m_aResetSafety; ::com::sun::star::uno::Any m_aCycle; ::com::sun::star::uno::Any m_aIgnoreResult; // set when we are a subform and our master form positioned on a new row - ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aMasterFields; - ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aDetailFields; + ::com::sun::star::uno::Sequence< OUString > m_aMasterFields; + ::com::sun::star::uno::Sequence< OUString > m_aDetailFields; // the object doin' most of the work - an SDB-rowset ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation> m_xAggregate; @@ -187,7 +187,7 @@ class ODatabaseForm :public OFormComponents Timer* m_pLoadTimer; OFormSubmitResetThread* m_pThread; - ::rtl::OUString m_sCurrentErrorContext; + OUString m_sCurrentErrorContext; // will be used as additional context information // when an exception is catched and forwarded to the listeners @@ -202,9 +202,9 @@ class ODatabaseForm :public OFormComponents ::com::sun::star::uno::Any m_aControlBorderColorMouse; ::com::sun::star::uno::Any m_aControlBorderColorInvalid; ::com::sun::star::uno::Any m_aDynamicControlBorder; - ::rtl::OUString m_sName; - ::rtl::OUString m_aTargetURL; - ::rtl::OUString m_aTargetFrame; + OUString m_sName; + OUString m_aTargetURL; + OUString m_aTargetFrame; ::com::sun::star::form::FormSubmitMethod m_eSubmitMethod; ::com::sun::star::form::FormSubmitEncoding m_eSubmitEncoding; ::com::sun::star::form::NavigationBarMode m_eNavigation; @@ -280,18 +280,18 @@ public: virtual void SAL_CALL setParent(const InterfaceRef& Parent) throw ( :: com::sun::star::lang::NoSupportException , ::com::sun::star::uno::RuntimeException); // com::sun::star::container::XNamed - virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setName(const ::rtl::OUString& aName) throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setName(const OUString& aName) throw(::com::sun::star::uno::RuntimeException); // com::sun::star::awt::XTabControllerModel virtual sal_Bool SAL_CALL getGroupControl() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setGroupControl(sal_Bool /*_bGroupControl*/) throw(::com::sun::star::uno::RuntimeException) { } virtual void SAL_CALL setControlModels(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rControls) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > SAL_CALL getControlModels() throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setGroup(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rGroup, const ::rtl::OUString& _rGroupName) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setGroup(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rGroup, const OUString& _rGroupName) throw(::com::sun::star::uno::RuntimeException); virtual sal_Int32 SAL_CALL getGroupCount() throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL getGroup(sal_Int32 _nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rxGroup, ::rtl::OUString& _rName) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL getGroupByName(const ::rtl::OUString& _rName, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rxGroup) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL getGroup(sal_Int32 _nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rxGroup, OUString& _rName) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL getGroupByName(const OUString& _rName, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rxGroup) throw(::com::sun::star::uno::RuntimeException); // com::sun::star::lang::XEventListener virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& _rSource) throw(::com::sun::star::uno::RuntimeException); @@ -376,19 +376,19 @@ public: virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any>& rows) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); // com::sun::star::lang::XServiceInfo - virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // com::sun::star::lang::XServiceInfo - static version - static ::rtl::OUString SAL_CALL getImplementationName_Static(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCurrentServiceNames_Static(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCompatibleServiceNames_Static(); + static OUString SAL_CALL getImplementationName_Static(); + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static(); + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getCurrentServiceNames_Static(); + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getCompatibleServiceNames_Static(); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory ); // com::sun::star::io::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); @@ -397,7 +397,7 @@ public: // com::sun::star::sdbc::XParameters virtual void SAL_CALL setNull(sal_Int32 parameterIndex, sal_Int32 sqlType) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& typeName) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setBoolean(sal_Int32 parameterIndex, sal_Bool x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setByte(sal_Int32 parameterIndex, sal_Int8 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setShort(sal_Int32 parameterIndex, sal_Int16 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); @@ -405,7 +405,7 @@ public: virtual void SAL_CALL setLong(sal_Int32 parameterIndex, sal_Int64 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setFloat(sal_Int32 parameterIndex, float x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setDouble(sal_Int32 parameterIndex, double x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setString(sal_Int32 parameterIndex, const ::rtl::OUString& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setString(sal_Int32 parameterIndex, const OUString& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setBytes(sal_Int32 parameterIndex, const ::com::sun::star::uno::Sequence< sal_Int8 >& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setDate(sal_Int32 parameterIndex, const ::com::sun::star::util::Date& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setTime(sal_Int32 parameterIndex, const ::com::sun::star::util::Time& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); @@ -424,8 +424,8 @@ public: virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException); // XPropertyContainer - virtual void SAL_CALL addProperty( const ::rtl::OUString& Name, ::sal_Int16 Attributes, const ::com::sun::star::uno::Any& DefaultValue ) throw (::com::sun::star::beans::PropertyExistException, ::com::sun::star::beans::IllegalTypeException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeProperty( const ::rtl::OUString& Name ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::NotRemoveableException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addProperty( const OUString& Name, ::sal_Int16 Attributes, const ::com::sun::star::uno::Any& DefaultValue ) throw (::com::sun::star::beans::PropertyExistException, ::com::sun::star::beans::IllegalTypeException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeProperty( const OUString& Name ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::NotRemoveableException, ::com::sun::star::uno::RuntimeException); // XPropertyAccess virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues( ) throw (::com::sun::star::uno::RuntimeException); @@ -516,23 +516,23 @@ private: // error handling void onError(const ::com::sun::star::sdb::SQLErrorEvent& _rEvent); - void onError(const ::com::sun::star::sdbc::SQLException&, const ::rtl::OUString& _rContextDescription); + void onError(const ::com::sun::star::sdbc::SQLException&, const OUString& _rContextDescription); // html tools - ::rtl::OUString GetDataEncoded(bool _bURLEncoded,const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); - ::rtl::OUString GetDataURLEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); - ::rtl::OUString GetDataTextEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); + OUString GetDataEncoded(bool _bURLEncoded,const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); + OUString GetDataURLEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); + OUString GetDataTextEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); ::com::sun::star::uno::Sequence<sal_Int8> GetDataMultiPartEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt, - ::rtl::OUString& rContentType); + OUString& rContentType); - void AppendComponent(HtmlSuccessfulObjList& rList, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& xComponentSet, const ::rtl::OUString& rNamePrefix, + void AppendComponent(HtmlSuccessfulObjList& rList, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& xComponentSet, const OUString& rNamePrefix, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& rxSubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); void FillSuccessfulList(HtmlSuccessfulObjList& rList, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& rxSubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt); - void InsertTextPart(INetMIMEMessage& rParent, const ::rtl::OUString& rName, const ::rtl::OUString& rData); - sal_Bool InsertFilePart(INetMIMEMessage& rParent, const ::rtl::OUString& rName, const ::rtl::OUString& rFileName); - void Encode(::rtl::OUString& rString) const; + void InsertTextPart(INetMIMEMessage& rParent, const OUString& rName, const OUString& rData); + sal_Bool InsertFilePart(INetMIMEMessage& rParent, const OUString& rName, const OUString& rFileName); + void Encode(OUString& rString) const; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > getConnection(); diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx index bc59971729f6..7ebc20d53389 100644 --- a/forms/source/component/Date.cxx +++ b/forms/source/component/Date.cxx @@ -68,7 +68,7 @@ StringSequence SAL_CALL ODateControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_DATEFIELD; return aSupported; } @@ -143,7 +143,7 @@ StringSequence SAL_CALL ODateModel::getSupportedServiceNames() throw() sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -160,7 +160,7 @@ StringSequence SAL_CALL ODateModel::getSupportedServiceNames() throw() } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL ODateModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL ODateModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_DATEFIELD; // old (non-sun) name for compatibility ! } diff --git a/forms/source/component/Date.hxx b/forms/source/component/Date.hxx index 7384c93a7c55..1160945550fb 100644 --- a/forms/source/component/Date.hxx +++ b/forms/source/component/Date.hxx @@ -45,7 +45,7 @@ public: DECLARE_DEFAULT_LEAF_XTOR( ODateModel ); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException ); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException ); // ::com::sun::star::beans::XPropertySet virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const; diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx index 81b816c55427..e3e3b76cf0b4 100644 --- a/forms/source/component/Edit.cxx +++ b/forms/source/component/Edit.cxx @@ -153,7 +153,7 @@ StringSequence OEditControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_TEXTFIELD; return aSupported; } @@ -180,7 +180,7 @@ void OEditControl::focusLost( const FocusEvent& /*e*/ ) throw ( ::com::sun::star Reference<XPropertySet> xSet(getModel(), UNO_QUERY); if (xSet.is()) { - ::rtl::OUString sNewHtmlChangeValue; + OUString sNewHtmlChangeValue; xSet->getPropertyValue( PROPERTY_TEXT ) >>= sNewHtmlChangeValue; if( sNewHtmlChangeValue != m_aHtmlChangeValue ) { @@ -217,7 +217,7 @@ void OEditControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) throw ( return; aTmp = xFormSet->getPropertyValue( PROPERTY_TARGET_URL ); - if (!aTmp.getValueType().equals(::getCppuType((const ::rtl::OUString*)NULL)) || + if (!aTmp.getValueType().equals(::getCppuType((const OUString*)NULL)) || getString(aTmp).isEmpty() ) return; @@ -338,7 +338,7 @@ void OEditModel::disposing() // XPersistObject //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OEditModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OEditModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_EDIT; // old (non-sun) name for compatibility ! } @@ -351,7 +351,7 @@ StringSequence SAL_CALL OEditModel::getSupportedServiceNames() throw() sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -388,7 +388,7 @@ void OEditModel::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_PROPERTIES( 5, OEditBaseModel ) DECL_PROP2(PERSISTENCE_MAXTEXTLENGTH,sal_Int16, READONLY, TRANSIENT); - DECL_PROP2(DEFAULT_TEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT); + DECL_PROP2(DEFAULT_TEXT, OUString, BOUND, MAYBEDEFAULT); DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); DECL_BOOL_PROP2(FILTERPROPOSAL, BOUND, MAYBEDEFAULT); @@ -477,13 +477,13 @@ namespace catch(const IllegalArgumentException& e) { #if OSL_DEBUG_LEVEL > 0 - ::rtl::OString sMessage( "could not transfer the property named '" ); - sMessage += ::rtl::OString( pSourceProps->Name.getStr(), pSourceProps->Name.getLength(), RTL_TEXTENCODING_ASCII_US ); - sMessage += ::rtl::OString( "'." ); + OString sMessage( "could not transfer the property named '" ); + sMessage += OString( pSourceProps->Name.getStr(), pSourceProps->Name.getLength(), RTL_TEXTENCODING_ASCII_US ); + sMessage += OString( "'." ); if ( !e.Message.isEmpty() ) { - sMessage += ::rtl::OString( "\n\nMessage:\n" ); - sMessage += ::rtl::OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); + sMessage += OString( "\n\nMessage:\n" ); + sMessage += OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); } OSL_FAIL( sMessage.getStr() ); #else @@ -508,7 +508,7 @@ void OEditModel::writeAggregate( const Reference< XObjectOutputStream >& _rxOutS // but for compatibility, we need to use an "old" aggregate for writing and reading Reference< XPropertySet > xFakedAggregate( - getContext().createComponent( (rtl::OUString)VCL_CONTROLMODEL_EDIT ), + getContext().createComponent( (OUString)VCL_CONTROLMODEL_EDIT ), UNO_QUERY ); OSL_ENSURE( xFakedAggregate.is(), "OEditModel::writeAggregate: could not create an old EditControlModel!" ); @@ -530,7 +530,7 @@ void OEditModel::readAggregate( const Reference< XObjectInputStream >& _rxInStre // but for compatibility, we need to use an "old" aggregate for writing and reading Reference< XPropertySet > xFakedAggregate( - getContext().createComponent( (rtl::OUString)VCL_CONTROLMODEL_EDIT ), + getContext().createComponent( (OUString)VCL_CONTROLMODEL_EDIT ), UNO_QUERY ); Reference< XPersistObject > xFakedPersist( xFakedAggregate, UNO_QUERY ); @@ -567,7 +567,7 @@ void OEditModel::write(const Reference<XObjectOutputStream>& _rxOutStream) throw // First we set it to an empty string : Without this the second setPropertyValue would not do anything as it thinks // we aren't changing the prop (it didn't notify the - implicite - change of the text prop while setting the max text len) // This seems to be a bug with in toolkit's EditControl-implementation. - m_xAggregateSet->setPropertyValue(PROPERTY_TEXT, makeAny(::rtl::OUString())); + m_xAggregateSet->setPropertyValue(PROPERTY_TEXT, makeAny(OUString())); m_xAggregateSet->setPropertyValue(PROPERTY_TEXT, aCurrentText); } } @@ -587,7 +587,7 @@ void OEditModel::read(const Reference<XObjectInputStream>& _rxInStream) throw ( && (getString(aDefaultControl) == STARDIV_ONE_FORM_CONTROL_TEXTFIELD ) ) { - m_xAggregateSet->setPropertyValue( PROPERTY_DEFAULTCONTROL, makeAny( (::rtl::OUString)STARDIV_ONE_FORM_CONTROL_EDIT ) ); + m_xAggregateSet->setPropertyValue( PROPERTY_DEFAULTCONTROL, makeAny( (OUString)STARDIV_ONE_FORM_CONTROL_EDIT ) ); // Older as well as current versions should understand this : the former knew only the STARDIV_ONE_FORM_CONTROL_EDIT, // the latter are registered for both STARDIV_ONE_FORM_CONTROL_EDIT and STARDIV_ONE_FORM_CONTROL_TEXTFIELD. } @@ -619,7 +619,7 @@ void OEditModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm ) if ( !m_bMaxTextLenModified ) { sal_Int32 nFieldLen = 0; - xField->getPropertyValue(::rtl::OUString("Precision") ) >>= nFieldLen; + xField->getPropertyValue(OUString("Precision") ) >>= nFieldLen; if (nFieldLen && nFieldLen <= USHRT_MAX) { @@ -673,7 +673,7 @@ sal_Bool OEditModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) { Any aNewValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) ); - ::rtl::OUString sNewValue; + OUString sNewValue; aNewValue >>= sNewValue; if ( !aNewValue.hasValue() @@ -713,7 +713,7 @@ Any OEditModel::translateDbColumnToControlValue() Any aRet; if ( m_pValueFormatter.get() ) { - ::rtl::OUString sValue( m_pValueFormatter->getFormattedValue() ); + OUString sValue( m_pValueFormatter->getFormattedValue() ); if ( sValue.isEmpty() && m_pValueFormatter->getColumn().is() && m_pValueFormatter->getColumn()->wasNull() @@ -727,14 +727,14 @@ Any OEditModel::translateDbColumnToControlValue() if ( nMaxTextLen && sValue.getLength() > nMaxTextLen ) { sal_Int32 nDiff = sValue.getLength() - nMaxTextLen; - sValue = sValue.replaceAt( nMaxTextLen, nDiff, ::rtl::OUString() ); + sValue = sValue.replaceAt( nMaxTextLen, nDiff, OUString() ); } aRet <<= sValue; } } - return aRet.hasValue() ? aRet : makeAny( ::rtl::OUString() ); + return aRet.hasValue() ? aRet : makeAny( OUString() ); } //------------------------------------------------------------------------------ diff --git a/forms/source/component/Edit.hxx b/forms/source/component/Edit.hxx index bf39ef19957f..5ef4daf247e4 100644 --- a/forms/source/component/Edit.hxx +++ b/forms/source/component/Edit.hxx @@ -66,7 +66,7 @@ public: // XPersistObject virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); // XPropertySet using OBoundControlModel::getFastPropertyValue; @@ -131,7 +131,7 @@ class OEditControl : public OBoundControl ::cppu::OInterfaceContainerHelper m_aChangeListeners; - ::rtl::OUString m_aHtmlChangeValue; + OUString m_aHtmlChangeValue; sal_uInt32 m_nKeyEvent; public: diff --git a/forms/source/component/EditBase.cxx b/forms/source/component/EditBase.cxx index a9c6b4366c99..bfbb76f1d86a 100644 --- a/forms/source/component/EditBase.cxx +++ b/forms/source/component/EditBase.cxx @@ -48,8 +48,8 @@ const sal_uInt16 FILTERPROPOSAL = 0x0004; DBG_NAME( OEditBaseModel ) //------------------------------------------------------------------ -OEditBaseModel::OEditBaseModel( const Reference< XMultiServiceFactory >& _rxFactory, const ::rtl::OUString& rUnoControlModelName, - const ::rtl::OUString& rDefault, const sal_Bool _bSupportExternalBinding, const sal_Bool _bSupportsValidation ) +OEditBaseModel::OEditBaseModel( const Reference< XMultiServiceFactory >& _rxFactory, const OUString& rUnoControlModelName, + const OUString& rDefault, const sal_Bool _bSupportExternalBinding, const sal_Bool _bSupportsValidation ) :OBoundControlModel( _rxFactory, rUnoControlModelName, rDefault, sal_True, _bSupportExternalBinding, _bSupportsValidation ) ,m_nLastReadVersion(0) ,m_bEmptyIsNull(sal_True) @@ -331,7 +331,7 @@ Any OEditBaseModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const switch (nHandle) { case PROPERTY_ID_DEFAULT_TEXT: - return makeAny(::rtl::OUString()); + return makeAny(OUString()); case PROPERTY_ID_FILTERPROPOSAL: return Any(makeAny((sal_Bool)sal_False)); case PROPERTY_ID_DEFAULT_VALUE: diff --git a/forms/source/component/EditBase.hxx b/forms/source/component/EditBase.hxx index 9fdcca7858d3..3d22332657b5 100644 --- a/forms/source/component/EditBase.hxx +++ b/forms/source/component/EditBase.hxx @@ -59,7 +59,7 @@ class OEditBaseModel : public OBoundControlModel protected: // [properties] for all EditingFields ::com::sun::star::uno::Any m_aDefault; - ::rtl::OUString m_aDefaultText; // default value + OUString m_aDefaultText; // default value sal_Bool m_bEmptyIsNull : 1; // empty string will be interepreted as NULL when committing sal_Bool m_bFilterProposal : 1; // use a list of possible value in filtermode // [properties] diff --git a/forms/source/component/File.cxx b/forms/source/component/File.cxx index 3b3cb127443e..43798c4dce26 100644 --- a/forms/source/component/File.cxx +++ b/forms/source/component/File.cxx @@ -76,7 +76,7 @@ StringSequence OFileControlModel::getSupportedServiceNames() throw(RuntimeExcep StringSequence aSupported = OControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_FILECONTROL; return aSupported; } @@ -145,7 +145,7 @@ Any OFileControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const switch ( _nHandle ) { case PROPERTY_ID_DEFAULT_TEXT: - return makeAny( ::rtl::OUString() ); + return makeAny( OUString() ); } return OControlModel::getPropertyDefaultByHandle( _nHandle ); } @@ -192,13 +192,13 @@ sal_Bool OFileControlModel::convertFastPropertyValue(Any& rConvertedValue, Any& void OFileControlModel::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_PROPERTIES( 2, OControlModel ) - DECL_PROP1(DEFAULT_TEXT, ::rtl::OUString, BOUND); + DECL_PROP1(DEFAULT_TEXT, OUString, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); END_DESCRIBE_PROPERTIES(); } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFileControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OFileControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_FILECONTROL; // old (non-sun) name for compatibility ! } @@ -236,7 +236,7 @@ void OFileControlModel::read(const Reference<stario::XObjectInputStream>& _rxInS break; default: OSL_FAIL("OFileControlModel::read : unknown version !"); - m_sDefaultValue = ::rtl::OUString(); + m_sDefaultValue = OUString(); } // Display default values after read diff --git a/forms/source/component/File.hxx b/forms/source/component/File.hxx index 13d813a139d6..992e90776848 100644 --- a/forms/source/component/File.hxx +++ b/forms/source/component/File.hxx @@ -35,7 +35,7 @@ class OFileControlModel ,public ::com::sun::star::form::XReset { ::cppu::OInterfaceContainerHelper m_aResetListeners; - ::rtl::OUString m_sDefaultValue; + OUString m_sDefaultValue; protected: virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes(); @@ -63,7 +63,7 @@ public: virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle( sal_Int32 _nHandle ) const; // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com ::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com ::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx index c6c665f5db41..e7775267abb9 100644 --- a/forms/source/component/Filter.cxx +++ b/forms/source/component/Filter.cxx @@ -152,28 +152,28 @@ namespace frm } //------------------------------------------------------------------ - ::rtl::OUString OFilterControl::GetComponentServiceName() + OUString OFilterControl::GetComponentServiceName() { - ::rtl::OUString aServiceName; + OUString aServiceName; switch (m_nControlClass) { case FormComponentType::RADIOBUTTON: - aServiceName = rtl::OUString("radiobutton"); + aServiceName = OUString("radiobutton"); break; case FormComponentType::CHECKBOX: - aServiceName = rtl::OUString("checkbox"); + aServiceName = OUString("checkbox"); break; case FormComponentType::COMBOBOX: - aServiceName = rtl::OUString("combobox"); + aServiceName = OUString("combobox"); break; case FormComponentType::LISTBOX: - aServiceName = rtl::OUString("listbox"); + aServiceName = OUString("listbox"); break; default: if (m_bMultiLine) - aServiceName = rtl::OUString("MultiLineEdit"); + aServiceName = OUString("MultiLineEdit"); else - aServiceName = rtl::OUString("Edit"); + aServiceName = OUString("Edit"); } return aServiceName; } @@ -268,7 +268,7 @@ namespace frm } //--------------------------------------------------------------------- - void OFilterControl::ImplSetPeerProperty( const ::rtl::OUString& rPropName, const Any& rVal ) + void OFilterControl::ImplSetPeerProperty( const OUString& rPropName, const Any& rVal ) { // these properties are ignored if (rPropName == PROPERTY_TEXT || @@ -289,7 +289,7 @@ namespace frm //--------------------------------------------------------------------- void SAL_CALL OFilterControl::itemStateChanged( const ItemEvent& rEvent ) throw(RuntimeException) { - ::rtl::OUStringBuffer aText; + OUStringBuffer aText; switch (m_nControlClass) { case FormComponentType::CHECKBOX: @@ -300,7 +300,7 @@ namespace frm bool bSelected = ( rEvent.Selected == STATE_CHECK ); - ::rtl::OUString sExpressionMarker( "$expression$" ); + OUString sExpressionMarker( "$expression$" ); ::dbtools::getBoleanComparisonPredicate( sExpressionMarker, bSelected, @@ -308,7 +308,7 @@ namespace frm aText ); - ::rtl::OUString sText( aText.makeStringAndClear() ); + OUString sText( aText.makeStringAndClear() ); sal_Int32 nMarkerPos( sText.indexOf( sExpressionMarker ) ); OSL_ENSURE( nMarkerPos == 0, "OFilterControl::itemStateChanged: unsupported boolean comparison mode!" ); // If this assertion fails, then getBoleanComparisonPredicate created a predicate which @@ -335,7 +335,7 @@ namespace frm try { const Reference< XItemList > xItemList( getModel(), UNO_QUERY_THROW ); - ::rtl::OUString sItemText( xItemList->getItemText( rEvent.Selected ) ); + OUString sItemText( xItemList->getItemText( rEvent.Selected ) ); const MapString2String::const_iterator itemPos = m_aDisplayItemToValueItem.find( sItemText ); if ( itemPos != m_aDisplayItemToValueItem.end() ) @@ -344,7 +344,7 @@ namespace frm if ( !sItemText.isEmpty() ) { ::dbtools::OPredicateInputController aPredicateInput( m_xContext, m_xConnection, getParseContext() ); - ::rtl::OUString sErrorMessage; + OUString sErrorMessage; OSL_VERIFY( aPredicateInput.normalizePredicateString( sItemText, m_xField, &sErrorMessage ) ); } } @@ -365,7 +365,7 @@ namespace frm break; } - ::rtl::OUString sText( aText.makeStringAndClear() ); + OUString sText( aText.makeStringAndClear() ); if ( m_aText.compareTo( sText ) ) { m_aText = sText; @@ -395,7 +395,7 @@ namespace frm if ( !m_xField.is() ) return; - ::rtl::OUString sFieldName; + OUString sFieldName; m_xField->getPropertyValue( PROPERTY_NAME ) >>= sFieldName; // here we need a table to which the field belongs to @@ -405,13 +405,13 @@ namespace frm // create a query composer Reference< XColumnsSupplier > xSuppColumns; - xFormProps->getPropertyValue(::rtl::OUString("SingleSelectQueryComposer")) >>= xSuppColumns; + xFormProps->getPropertyValue(OUString("SingleSelectQueryComposer")) >>= xSuppColumns; const Reference< XConnection > xConnection( ::dbtools::getConnection( xForm ), UNO_SET_THROW ); const Reference< XNameAccess > xFieldNames( xSuppColumns->getColumns(), UNO_SET_THROW ); if ( !xFieldNames->hasByName( sFieldName ) ) return; - ::rtl::OUString sRealFieldName, sTableName; + OUString sRealFieldName, sTableName; const Reference< XPropertySet > xComposerFieldProps( xFieldNames->getByName( sFieldName ), UNO_QUERY_THROW ); xComposerFieldProps->getPropertyValue( PROPERTY_REALNAME ) >>= sRealFieldName; xComposerFieldProps->getPropertyValue( PROPERTY_TABLENAME ) >>= sTableName; @@ -423,10 +423,10 @@ namespace frm sTableName = xNamedTable->getName(); // create a statement selecting all values for the given field - ::rtl::OUStringBuffer aStatement; + OUStringBuffer aStatement; const Reference< XDatabaseMetaData > xMeta( xConnection->getMetaData(), UNO_SET_THROW ); - const ::rtl::OUString sQuoteChar = xMeta->getIdentifierQuoteString(); + const OUString sQuoteChar = xMeta->getIdentifierQuoteString(); aStatement.appendAscii( "SELECT DISTINCT " ); aStatement.append( sQuoteChar ); @@ -444,13 +444,13 @@ namespace frm aStatement.appendAscii( " FROM " ); - ::rtl::OUString sCatalog, sSchema, sTable; + OUString sCatalog, sSchema, sTable; ::dbtools::qualifiedNameComponents( xMeta, sTableName, sCatalog, sSchema, sTable, ::dbtools::eInDataManipulation ); aStatement.append( ::dbtools::composeTableNameForSelect( xConnection, sCatalog, sSchema, sTable ) ); // execute the statement xStatement.reset( xConnection->createStatement() ); - const ::rtl::OUString sSelectStatement( aStatement.makeStringAndClear( ) ); + const OUString sSelectStatement( aStatement.makeStringAndClear( ) ); xListCursor.reset( xStatement->executeQuery( sSelectStatement ) ); // retrieve the one column which we take the values from @@ -461,17 +461,17 @@ namespace frm // ensure the values will be formatted according to the field format const ::dbtools::FormattedColumnValue aFormatter( m_xFormatter, xDataField ); - ::std::vector< ::rtl::OUString > aProposals; + ::std::vector< OUString > aProposals; aProposals.reserve(16); while ( xListCursor->next() && ( aProposals.size() < size_t( SHRT_MAX ) ) ) { - const ::rtl::OUString sCurrentValue = aFormatter.getFormattedValue(); + const OUString sCurrentValue = aFormatter.getFormattedValue(); aProposals.push_back( sCurrentValue ); } // fill the list items into our peer - Sequence< ::rtl::OUString> aStringSeq( aProposals.size() ); + Sequence< OUString> aStringSeq( aProposals.size() ); ::std::copy( aProposals.begin(), aProposals.end(), aStringSeq.getArray() ); const Reference< XComboBox > xComboBox( getPeer(), UNO_QUERY_THROW ); @@ -508,7 +508,7 @@ namespace frm // already asserted in ensureInitialized return sal_True; - ::rtl::OUString aText; + OUString aText; switch (m_nControlClass) { case FormComponentType::TEXTFIELD: @@ -524,12 +524,12 @@ namespace frm if (m_aText.compareTo(aText)) { // check the text with the SQL-Parser - ::rtl::OUString aNewText(aText); + OUString aNewText(aText); aNewText = aNewText.trim(); if ( !aNewText.isEmpty() ) { ::dbtools::OPredicateInputController aPredicateInput( m_xContext, m_xConnection, getParseContext() ); - ::rtl::OUString sErrorMessage; + OUString sErrorMessage; if ( !aPredicateInput.normalizePredicateString( aNewText, m_xField, &sErrorMessage ) ) { // display the error and outta here @@ -565,7 +565,7 @@ namespace frm } //--------------------------------------------------------------------- - void SAL_CALL OFilterControl::setText( const ::rtl::OUString& aText ) throw(RuntimeException) + void SAL_CALL OFilterControl::setText( const OUString& aText ) throw(RuntimeException) { if ( !ensureInitialized( ) ) // already asserted in ensureInitialized @@ -602,7 +602,7 @@ namespace frm Reference< XVclWindowPeer > xVclWindow( getPeer(), UNO_QUERY ); if (xVclWindow.is()) { - ::rtl::OUString aRefText = ::comphelper::getString(com::sun::star::uno::Reference< XPropertySet > (getModel(), UNO_QUERY)->getPropertyValue(PROPERTY_REFVALUE)); + OUString aRefText = ::comphelper::getString(com::sun::star::uno::Reference< XPropertySet > (getModel(), UNO_QUERY)->getPropertyValue(PROPERTY_REFVALUE)); Any aValue; if (aText == aRefText) aValue <<= (sal_Int32)STATE_CHECK; @@ -634,7 +634,7 @@ namespace frm OSL_ENSURE( ( itemPos != m_aDisplayItemToValueItem.end() ) || m_aText.isEmpty(), "OFilterControl::setText: this text is not in my display list!" ); if ( itemPos == m_aDisplayItemToValueItem.end() ) - m_aText = ::rtl::OUString(); + m_aText = OUString(); if ( m_aText.isEmpty() ) { @@ -664,7 +664,7 @@ namespace frm } //--------------------------------------------------------------------- - void SAL_CALL OFilterControl::insertText( const ::com::sun::star::awt::Selection& rSel, const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException) + void SAL_CALL OFilterControl::insertText( const ::com::sun::star::awt::Selection& rSel, const OUString& aText ) throw(::com::sun::star::uno::RuntimeException) { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); if (xText.is()) @@ -675,15 +675,15 @@ namespace frm } //--------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OFilterControl::getText() throw(RuntimeException) + OUString SAL_CALL OFilterControl::getText() throw(RuntimeException) { return m_aText; } //--------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OFilterControl::getSelectedText( void ) throw(RuntimeException) + OUString SAL_CALL OFilterControl::getSelectedText( void ) throw(RuntimeException) { - ::rtl::OUString aSelected; + OUString aSelected; Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); if (xText.is()) aSelected = xText->getSelectedText(); @@ -761,7 +761,7 @@ namespace frm PropertyValue aProp; NamedValue aValue; - const ::rtl::OUString* pName = NULL; + const OUString* pName = NULL; const Any* pValue = NULL; Reference< XPropertySet > xControlModel; @@ -847,9 +847,9 @@ namespace frm m_nControlClass = nClassId; if ( FormComponentType::LISTBOX == nClassId ) { - Sequence< ::rtl::OUString > aDisplayItems; + Sequence< OUString > aDisplayItems; OSL_VERIFY( xControlModel->getPropertyValue( PROPERTY_STRINGITEMLIST ) >>= aDisplayItems ); - Sequence< ::rtl::OUString > aValueItems; + Sequence< OUString > aValueItems; OSL_VERIFY( xControlModel->getPropertyValue( PROPERTY_VALUE_SEQ ) >>= aValueItems ); OSL_ENSURE( aDisplayItems.getLength() == aValueItems.getLength(), "OFilterControl::initialize: inconsistent item lists!" ); for ( sal_Int32 i=0; i < ::std::min( aDisplayItems.getLength(), aValueItems.getLength() ); ++i ) @@ -874,16 +874,16 @@ namespace frm } //--------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OFilterControl::getImplementationName( ) throw (RuntimeException) + OUString SAL_CALL OFilterControl::getImplementationName( ) throw (RuntimeException) { return getImplementationName_Static(); } //--------------------------------------------------------------------- - sal_Bool SAL_CALL OFilterControl::supportsService( const ::rtl::OUString& ServiceName ) throw (RuntimeException) + sal_Bool SAL_CALL OFilterControl::supportsService( const OUString& ServiceName ) throw (RuntimeException) { - Sequence< ::rtl::OUString > aSupported( getSupportedServiceNames() ); - const ::rtl::OUString* pArray = aSupported.getConstArray(); + Sequence< OUString > aSupported( getSupportedServiceNames() ); + const OUString* pArray = aSupported.getConstArray(); for( sal_Int32 i = 0; i < aSupported.getLength(); ++i, ++pArray ) if( pArray->equals( ServiceName ) ) return sal_True; @@ -891,23 +891,23 @@ namespace frm } //--------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL OFilterControl::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL OFilterControl::getSupportedServiceNames( ) throw (RuntimeException) { return getSupportedServiceNames_Static(); } //--------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OFilterControl::getImplementationName_Static() + OUString SAL_CALL OFilterControl::getImplementationName_Static() { - return ::rtl::OUString( "com.sun.star.comp.forms.OFilterControl" ); + return OUString( "com.sun.star.comp.forms.OFilterControl" ); } //--------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL OFilterControl::getSupportedServiceNames_Static() + Sequence< OUString > SAL_CALL OFilterControl::getSupportedServiceNames_Static() { - Sequence< ::rtl::OUString > aNames( 2 ); - aNames[ 0 ] = ::rtl::OUString( "com.sun.star.form.control.FilterControl" ); - aNames[ 1 ] = ::rtl::OUString( "com.sun.star.awt.UnoControl" ); + Sequence< OUString > aNames( 2 ); + aNames[ 0 ] = OUString( "com.sun.star.form.control.FilterControl" ); + aNames[ 1 ] = OUString( "com.sun.star.awt.UnoControl" ); return aNames; } diff --git a/forms/source/component/Filter.hxx b/forms/source/component/Filter.hxx index cd530478be0d..b8d7fd57eea3 100644 --- a/forms/source/component/Filter.hxx +++ b/forms/source/component/Filter.hxx @@ -67,10 +67,10 @@ namespace frm ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xMessageParent; - typedef ::boost::unordered_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash > MapString2String; + typedef ::boost::unordered_map< OUString, OUString, OUStringHash > MapString2String; MapString2String m_aDisplayItemToValueItem; - ::rtl::OUString m_aText; + OUString m_aText; ::connectivity::OSQLParser m_aParser; sal_Int16 m_nControlClass; // which kind of control do we use? sal_Bool m_bFilterList : 1; @@ -87,7 +87,7 @@ namespace frm DECLARE_UNO3_AGG_DEFAULTS(OFilterControl,OWeakAggObject); ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString GetComponentServiceName(); + virtual OUString GetComponentServiceName(); virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > & rxToolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > & rParentPeer ) throw( ::com::sun::star::uno::RuntimeException ); // ::com::sun::star::lang::XComponent @@ -96,10 +96,10 @@ namespace frm // ::com::sun::star::awt::XTextComponent virtual void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener > & l ) throw( ::com::sun::star::uno::RuntimeException ); virtual void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener > & l ) throw( ::com::sun::star::uno::RuntimeException ); - virtual void SAL_CALL setText( const ::rtl::OUString& aText ) throw( ::com::sun::star::uno::RuntimeException ); - virtual void SAL_CALL insertText( const ::com::sun::star::awt::Selection& rSel, const ::rtl::OUString& aText ) throw( ::com::sun::star::uno::RuntimeException ); - virtual ::rtl::OUString SAL_CALL getText() throw( ::com::sun::star::uno::RuntimeException ); - virtual ::rtl::OUString SAL_CALL getSelectedText() throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setText( const OUString& aText ) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL insertText( const ::com::sun::star::awt::Selection& rSel, const OUString& aText ) throw( ::com::sun::star::uno::RuntimeException ); + virtual OUString SAL_CALL getText() throw( ::com::sun::star::uno::RuntimeException ); + virtual OUString SAL_CALL getSelectedText() throw( ::com::sun::star::uno::RuntimeException ); virtual void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw( ::com::sun::star::uno::RuntimeException ); virtual ::com::sun::star::awt::Selection SAL_CALL getSelection() throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Bool SAL_CALL isEditable() throw( ::com::sun::star::uno::RuntimeException ); @@ -126,18 +126,18 @@ namespace frm virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // com::sun::star::lang::XServiceInfo - static version - static ::rtl::OUString SAL_CALL getImplementationName_Static(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static(); + static OUString SAL_CALL getImplementationName_Static(); + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static(); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory ); protected: virtual void PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescriptor& rDesc ); - virtual void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal ); + virtual void ImplSetPeerProperty( const OUString& rPropName, const ::com::sun::star::uno::Any& rVal ); sal_Bool ensureInitialized( ); diff --git a/forms/source/component/FixedText.cxx b/forms/source/component/FixedText.cxx index 29fa80c1c214..f45efc18dae8 100644 --- a/forms/source/component/FixedText.cxx +++ b/forms/source/component/FixedText.cxx @@ -78,7 +78,7 @@ StringSequence SAL_CALL OFixedTextModel::getSupportedServiceNames() throw(::com: StringSequence aSupported = OControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_FIXEDTEXT; return aSupported; } @@ -91,7 +91,7 @@ void OFixedTextModel::describeAggregateProperties( Sequence< Property >& _rAggre } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFixedTextModel::getServiceName() throw(RuntimeException) +OUString SAL_CALL OFixedTextModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_FIXEDTEXT; // old (non-sun) name for compatibility ! } diff --git a/forms/source/component/FixedText.hxx b/forms/source/component/FixedText.hxx index a813298eab99..bfea6178ea07 100644 --- a/forms/source/component/FixedText.hxx +++ b/forms/source/component/FixedText.hxx @@ -40,7 +40,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index ac5b96c92a17..a666f6ab6bf2 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -90,7 +90,7 @@ namespace frm if ( ( nOldLength != m_aOldValues.getLength() ) || ( nOldLength != m_aNewValues.getLength() ) ) - throw RuntimeException( ::rtl::OUString(), m_rModel ); + throw RuntimeException( OUString(), m_rModel ); m_aHandles.realloc( nOldLength + 1 ); m_aHandles[ nOldLength ] = _nHandle; @@ -132,7 +132,7 @@ namespace frm //============================================================================= DBG_NAME(frm_OControl) //------------------------------------------------------------------------------ -OControl::OControl( const Reference< XMultiServiceFactory >& _rxFactory, const rtl::OUString& _rAggregateService, const sal_Bool _bSetDelegator ) +OControl::OControl( const Reference< XMultiServiceFactory >& _rxFactory, const OUString& _rAggregateService, const sal_Bool _bSetDelegator ) :OComponentHelper(m_aMutex) ,m_aContext( _rxFactory ) { @@ -241,10 +241,10 @@ void OControl::disposing() // XServiceInfo //------------------------------------------------------------------------------ -sal_Bool SAL_CALL OControl::supportsService(const rtl::OUString& _rsServiceName) throw ( RuntimeException) +sal_Bool SAL_CALL OControl::supportsService(const OUString& _rsServiceName) throw ( RuntimeException) { - Sequence<rtl::OUString> aSupported = getSupportedServiceNames(); - const rtl::OUString* pSupported = aSupported.getConstArray(); + Sequence<OUString> aSupported = getSupportedServiceNames(); + const OUString* pSupported = aSupported.getConstArray(); for (sal_Int32 i=0; i<aSupported.getLength(); ++i, ++pSupported) if (pSupported->equals(_rsServiceName)) return sal_True; @@ -252,9 +252,9 @@ sal_Bool SAL_CALL OControl::supportsService(const rtl::OUString& _rsServiceName) } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > OControl::getAggregateServiceNames() +Sequence< OUString > OControl::getAggregateServiceNames() { - Sequence< ::rtl::OUString > aAggServices; + Sequence< OUString > aAggServices; Reference< XServiceInfo > xInfo; if ( query_aggregation( m_xAggregate, xInfo ) ) aAggServices = xInfo->getSupportedServiceNames(); @@ -262,7 +262,7 @@ Sequence< ::rtl::OUString > OControl::getAggregateServiceNames() } //------------------------------------------------------------------------------ -Sequence<rtl::OUString> SAL_CALL OControl::getSupportedServiceNames() throw(RuntimeException) +Sequence<OUString> SAL_CALL OControl::getSupportedServiceNames() throw(RuntimeException) { return ::comphelper::concatSequences( getAggregateServiceNames(), @@ -271,10 +271,10 @@ Sequence<rtl::OUString> SAL_CALL OControl::getSupportedServiceNames() throw(Runt } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL OControl::getSupportedServiceNames_Static() throw( RuntimeException ) +Sequence< OUString > SAL_CALL OControl::getSupportedServiceNames_Static() throw( RuntimeException ) { // no own supported service names - return Sequence< ::rtl::OUString >(); + return Sequence< OUString >(); } // XEventListener @@ -391,7 +391,7 @@ sal_Bool SAL_CALL OControl::isTransparent() throw ( RuntimeException) DBG_NAME(frm_OBoundControl); //------------------------------------------------------------------ OBoundControl::OBoundControl( const Reference< XMultiServiceFactory >& _rxFactory, - const ::rtl::OUString& _rAggregateService, const sal_Bool _bSetDelegator ) + const OUString& _rAggregateService, const sal_Bool _bSetDelegator ) :OControl( _rxFactory, _rAggregateService, _bSetDelegator ) ,m_bLocked(sal_False) ,m_aOriginalFont( EmptyFontDescriptor() ) @@ -542,7 +542,7 @@ Any SAL_CALL OControlModel::queryAggregation(const Type& _rType) throw (RuntimeE //------------------------------------------------------------------------------ void OControlModel::readHelpTextCompatibly(const staruno::Reference< stario::XObjectInputStream >& _rxInStream) { - ::rtl::OUString sHelpText; + OUString sHelpText; ::comphelper::operator>>( _rxInStream, sHelpText); try { @@ -558,7 +558,7 @@ void OControlModel::readHelpTextCompatibly(const staruno::Reference< stario::XOb //------------------------------------------------------------------------------ void OControlModel::writeHelpTextCompatibly(const staruno::Reference< stario::XObjectOutputStream >& _rxOutStream) { - ::rtl::OUString sHelpText; + OUString sHelpText; try { if (m_xAggregateSet.is()) @@ -574,8 +574,8 @@ void OControlModel::writeHelpTextCompatibly(const staruno::Reference< stario::XO //------------------------------------------------------------------ OControlModel::OControlModel( const Reference<com::sun::star::lang::XMultiServiceFactory>& _rxFactory, - const ::rtl::OUString& _rUnoControlModelTypeName, - const ::rtl::OUString& rDefault, const sal_Bool _bSetDelegator) + const OUString& _rUnoControlModelTypeName, + const OUString& rDefault, const sal_Bool _bSetDelegator) :OComponentHelper(m_aMutex) ,OPropertySetAggregationHelper(OComponentHelper::rBHelper) ,m_aContext( _rxFactory ) @@ -723,25 +723,25 @@ void SAL_CALL OControlModel::setParent(const Reference< XInterface >& _rxParent) // XNamed //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OControlModel::getName() throw(RuntimeException) +OUString SAL_CALL OControlModel::getName() throw(RuntimeException) { - ::rtl::OUString aReturn; + OUString aReturn; OPropertySetHelper::getFastPropertyValue(PROPERTY_ID_NAME) >>= aReturn; return aReturn; } //------------------------------------------------------------------------------ -void SAL_CALL OControlModel::setName(const ::rtl::OUString& _rName) throw(RuntimeException) +void SAL_CALL OControlModel::setName(const OUString& _rName) throw(RuntimeException) { setFastPropertyValue(PROPERTY_ID_NAME, makeAny(_rName)); } // XServiceInfo //------------------------------------------------------------------------------ -sal_Bool SAL_CALL OControlModel::supportsService(const rtl::OUString& _rServiceName) throw ( RuntimeException) +sal_Bool SAL_CALL OControlModel::supportsService(const OUString& _rServiceName) throw ( RuntimeException) { - Sequence<rtl::OUString> aSupported = getSupportedServiceNames(); - const rtl::OUString* pSupported = aSupported.getConstArray(); + Sequence<OUString> aSupported = getSupportedServiceNames(); + const OUString* pSupported = aSupported.getConstArray(); for (sal_Int32 i=0; i<aSupported.getLength(); ++i, ++pSupported) if (pSupported->equals(_rServiceName)) return sal_True; @@ -749,9 +749,9 @@ sal_Bool SAL_CALL OControlModel::supportsService(const rtl::OUString& _rServiceN } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > OControlModel::getAggregateServiceNames() +Sequence< OUString > OControlModel::getAggregateServiceNames() { - Sequence< ::rtl::OUString > aAggServices; + Sequence< OUString > aAggServices; Reference< XServiceInfo > xInfo; if ( query_aggregation( m_xAggregate, xInfo ) ) aAggServices = xInfo->getSupportedServiceNames(); @@ -759,7 +759,7 @@ Sequence< ::rtl::OUString > OControlModel::getAggregateServiceNames() } //------------------------------------------------------------------------------ -Sequence<rtl::OUString> SAL_CALL OControlModel::getSupportedServiceNames() throw(RuntimeException) +Sequence<OUString> SAL_CALL OControlModel::getSupportedServiceNames() throw(RuntimeException) { return ::comphelper::concatSequences( getAggregateServiceNames(), @@ -768,11 +768,11 @@ Sequence<rtl::OUString> SAL_CALL OControlModel::getSupportedServiceNames() throw } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL OControlModel::getSupportedServiceNames_Static() throw( RuntimeException ) +Sequence< OUString > SAL_CALL OControlModel::getSupportedServiceNames_Static() throw( RuntimeException ) { - Sequence< ::rtl::OUString > aServiceNames( 2 ); + Sequence< OUString > aServiceNames( 2 ); aServiceNames[ 0 ] = FRM_SUN_FORMCOMPONENT; - aServiceNames[ 1 ] = ::rtl::OUString("com.sun.star.form.FormControlModel"); + aServiceNames[ 1 ] = OUString("com.sun.star.form.FormControlModel"); return aServiceNames; } @@ -964,7 +964,7 @@ Any OControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const { case PROPERTY_ID_NAME: case PROPERTY_ID_TAG: - aReturn <<= ::rtl::OUString(); + aReturn <<= OUString(); break; case PROPERTY_ID_CLASSID: @@ -1064,12 +1064,12 @@ void OControlModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const A switch (_nHandle) { case PROPERTY_ID_NAME: - DBG_ASSERT(_rValue.getValueType() == getCppuType((const ::rtl::OUString*)NULL), + DBG_ASSERT(_rValue.getValueType() == getCppuType((const OUString*)NULL), "OControlModel::setFastPropertyValue_NoBroadcast : invalid type" ); _rValue >>= m_aName; break; case PROPERTY_ID_TAG: - DBG_ASSERT(_rValue.getValueType() == getCppuType((const ::rtl::OUString*)NULL), + DBG_ASSERT(_rValue.getValueType() == getCppuType((const OUString*)NULL), "OControlModel::setFastPropertyValue_NoBroadcast : invalid type" ); _rValue >>= m_aTag; break; @@ -1098,9 +1098,9 @@ void OControlModel::describeFixedProperties( Sequence< Property >& _rProps ) con { BEGIN_DESCRIBE_BASE_PROPERTIES( 5 ) DECL_PROP2 (CLASSID, sal_Int16, READONLY, TRANSIENT); - DECL_PROP1 (NAME, ::rtl::OUString, BOUND); + DECL_PROP1 (NAME, OUString, BOUND); DECL_BOOL_PROP2 (NATIVE_LOOK, BOUND, TRANSIENT); - DECL_PROP1 (TAG, ::rtl::OUString, BOUND); + DECL_PROP1 (TAG, OUString, BOUND); DECL_PROP1 (GENERATEVBAEVENTS, sal_Bool, TRANSIENT); END_DESCRIBE_PROPERTIES() } @@ -1148,13 +1148,13 @@ Reference< XPropertySetInfo> SAL_CALL OControlModel::getPropertySetInfo() throw( } //-------------------------------------------------------------------- -void SAL_CALL OControlModel::addProperty( const ::rtl::OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException) +void SAL_CALL OControlModel::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException) { m_aPropertyBagHelper.addProperty( _rName, _nAttributes, _rInitialValue ); } //-------------------------------------------------------------------- -void SAL_CALL OControlModel::removeProperty( const ::rtl::OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException) +void SAL_CALL OControlModel::removeProperty( const OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException) { m_aPropertyBagHelper.removeProperty( _rName ); } @@ -1228,7 +1228,7 @@ Any SAL_CALL OBoundControlModel::queryAggregation( const Type& _rType ) throw (R //------------------------------------------------------------------ OBoundControlModel::OBoundControlModel( const Reference< XMultiServiceFactory>& _rxFactory, - const ::rtl::OUString& _rUnoControlModelTypeName, const ::rtl::OUString& _rDefault, + const OUString& _rUnoControlModelTypeName, const OUString& _rDefault, const sal_Bool _bCommitable, const sal_Bool _bSupportExternalBinding, const sal_Bool _bSupportsValidation ) :OControlModel( _rxFactory, _rUnoControlModelTypeName, _rDefault, sal_False ) ,OPropertyChangeListener( m_aMutex ) @@ -1387,7 +1387,7 @@ void OBoundControlModel::implInitValuePropertyListening( ) const } //----------------------------------------------------------------------------- -void OBoundControlModel::initOwnValueProperty( const ::rtl::OUString& i_rValuePropertyName ) +void OBoundControlModel::initOwnValueProperty( const OUString& i_rValuePropertyName ) { OSL_PRECOND( m_sValuePropertyName.isEmpty() && -1 == m_nValuePropertyAggregateHandle, "OBoundControlModel::initOwnValueProperty: value property is already initialized!" ); @@ -1396,7 +1396,7 @@ void OBoundControlModel::initOwnValueProperty( const ::rtl::OUString& i_rValuePr } //----------------------------------------------------------------------------- -void OBoundControlModel::initValueProperty( const ::rtl::OUString& _rValuePropertyName, sal_Int32 _nValuePropertyExternalHandle ) +void OBoundControlModel::initValueProperty( const OUString& _rValuePropertyName, sal_Int32 _nValuePropertyExternalHandle ) { OSL_PRECOND( m_sValuePropertyName.isEmpty() && -1 == m_nValuePropertyAggregateHandle, "OBoundControlModel::initValueProperty: value property is already initialized!" ); @@ -1540,7 +1540,7 @@ void OBoundControlModel::_propertyChanged( const PropertyChangeEvent& _rEvt ) th } //------------------------------------------------------------------------------ -void OBoundControlModel::startAggregatePropertyListening( const ::rtl::OUString& _rPropertyName ) +void OBoundControlModel::startAggregatePropertyListening( const OUString& _rPropertyName ) { OSL_PRECOND( m_pAggPropMultiplexer, "OBoundControlModel::startAggregatePropertyListening: no multiplexer!" ); OSL_ENSURE( !_rPropertyName.isEmpty(), "OBoundControlModel::startAggregatePropertyListening: invalid property name!" ); @@ -1653,10 +1653,10 @@ StringSequence SAL_CALL OBoundControlModel::getSupportedServiceNames() throw(Run } //------------------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL OBoundControlModel::getSupportedServiceNames_Static() throw( RuntimeException ) +Sequence< OUString > SAL_CALL OBoundControlModel::getSupportedServiceNames_Static() throw( RuntimeException ) { - Sequence< ::rtl::OUString > aOwnServiceNames( 1 ); - aOwnServiceNames[ 0 ] = ::rtl::OUString("com.sun.star.form.DataAwareControlModel"); + Sequence< OUString > aOwnServiceNames( 1 ); + aOwnServiceNames[ 0 ] = OUString("com.sun.star.form.DataAwareControlModel"); return ::comphelper::concatSequences( OControlModel::getSupportedServiceNames_Static(), @@ -1843,7 +1843,7 @@ Any OBoundControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const break; case PROPERTY_ID_CONTROLSOURCE: - aDefault <<= ::rtl::OUString(); + aDefault <<= OUString(); break; case PROPERTY_ID_CONTROLLABEL: @@ -1949,7 +1949,7 @@ void SAL_CALL OBoundControlModel::propertyChange( const PropertyChangeEvent& evt OSL_ENSURE( evt.Source == m_xExternalBinding, "OBoundControlModel::propertyChange: where did this come from?" ); // our binding has properties which can control properties of ourself - ::rtl::OUString sBindingControlledProperty; + OUString sBindingControlledProperty; bool bForwardToLabelControl = false; if ( evt.PropertyName.equals( PROPERTY_READONLY ) ) { @@ -3058,10 +3058,10 @@ void OBoundControlModel::recheckValidity( bool _bForceNotification ) void OBoundControlModel::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_PROPERTIES( 5, OControlModel ) - DECL_PROP1 ( CONTROLSOURCE, ::rtl::OUString, BOUND ); + DECL_PROP1 ( CONTROLSOURCE, OUString, BOUND ); DECL_IFACE_PROP3( BOUNDFIELD, XPropertySet, BOUND, READONLY, TRANSIENT ); DECL_IFACE_PROP2( CONTROLLABEL, XPropertySet, BOUND, MAYBEVOID ); - DECL_PROP2 ( CONTROLSOURCEPROPERTY, ::rtl::OUString, READONLY, TRANSIENT ); + DECL_PROP2 ( CONTROLSOURCEPROPERTY, OUString, READONLY, TRANSIENT ); DECL_BOOL_PROP1 ( INPUT_REQUIRED, BOUND ); END_DESCRIBE_PROPERTIES() } diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index d217a80f28dc..ca3142566205 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -266,7 +266,7 @@ void OFormattedControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) thr return; Any aTmp(xFormSet->getPropertyValue( PROPERTY_TARGET_URL )); - if (!isA(aTmp, static_cast< ::rtl::OUString* >(NULL)) || + if (!isA(aTmp, static_cast< OUString* >(NULL)) || getString(aTmp).isEmpty() ) return; @@ -322,7 +322,7 @@ StringSequence OFormattedControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_FORMATTEDFIELD; return aSupported; } @@ -404,7 +404,7 @@ StringSequence OFormattedModel::getSupportedServiceNames() throw() sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -440,9 +440,9 @@ Sequence< Type > OFormattedModel::_getTypes() // XPersistObject //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFormattedModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OFormattedModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString(FRM_COMPONENT_EDIT); + return OUString(FRM_COMPONENT_EDIT); } // XPropertySet @@ -509,7 +509,7 @@ void OFormattedModel::setPropertyToDefaultByHandle(sal_Int32 nHandle) } //------------------------------------------------------------------------------ -void OFormattedModel::setPropertyToDefault(const ::rtl::OUString& aPropertyName) throw( com::sun::star::beans::UnknownPropertyException, RuntimeException ) +void OFormattedModel::setPropertyToDefault(const OUString& aPropertyName) throw( com::sun::star::beans::UnknownPropertyException, RuntimeException ) { OPropertyArrayAggregationHelper& rPH = m_aPropertyBagHelper.getInfoHelper(); sal_Int32 nHandle = rPH.getHandleByName( aPropertyName ); @@ -533,7 +533,7 @@ Any OFormattedModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const } //------------------------------------------------------------------------------ -Any SAL_CALL OFormattedModel::getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw( com::sun::star::beans::UnknownPropertyException, RuntimeException ) +Any SAL_CALL OFormattedModel::getPropertyDefault( const OUString& aPropertyName ) throw( com::sun::star::beans::UnknownPropertyException, RuntimeException ) { OPropertyArrayAggregationHelper& rPH = m_aPropertyBagHelper.getInfoHelper(); sal_Int32 nHandle = rPH.getHandleByName( aPropertyName ); @@ -601,7 +601,7 @@ void OFormattedModel::updateFormatterNullDate() // calc the current NULL date Reference< XNumberFormatsSupplier > xSupplier( calcFormatsSupplier() ); if ( xSupplier.is() ) - xSupplier->getNumberFormatSettings()->getPropertyValue( ::rtl::OUString( "NullDate" ) ) >>= m_aNullDate; + xSupplier->getNumberFormatSettings()->getPropertyValue( OUString( "NullDate" ) ) >>= m_aNullDate; } //------------------------------------------------------------------------------ @@ -774,7 +774,7 @@ void OFormattedModel::onConnectedDbColumn( const Reference< XInterface >& _rxFor Reference<XNumberFormatsSupplier> xSupplier = calcFormatsSupplier(); m_bNumeric = getBOOL( getPropertyValue( PROPERTY_TREATASNUMERIC ) ); m_nKeyType = getNumberFormatType( xSupplier->getNumberFormats(), nFormatKey ); - xSupplier->getNumberFormatSettings()->getPropertyValue( ::rtl::OUString("NullDate") ) >>= m_aNullDate; + xSupplier->getNumberFormatSettings()->getPropertyValue( OUString("NullDate") ) >>= m_aNullDate; OEditBaseModel::onConnectedDbColumn( _rxForm ); } @@ -833,10 +833,10 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream) Reference<XNumberFormats> xFormats = xSupplier->getNumberFormats(); - ::rtl::OUString sFormatDescription; + OUString sFormatDescription; LanguageType eFormatLanguage = LANGUAGE_DONTKNOW; - static const ::rtl::OUString s_aLocaleProp ("Locale"); + static const OUString s_aLocaleProp ("Locale"); Reference<com::sun::star::beans::XPropertySet> xFormat = xFormats->getByKey(nKey); if (hasProperty(s_aLocaleProp, xFormat)) { @@ -849,7 +849,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream) } } - static const ::rtl::OUString s_aFormatStringProp ("FormatString"); + static const OUString s_aFormatStringProp ("FormatString"); if (hasProperty(s_aFormatStringProp, xFormat)) xFormat->getPropertyValue(s_aFormatStringProp) >>= sFormatDescription; @@ -919,7 +919,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr if (bNonVoidKey) { // den String und die Language lesen .... - ::rtl::OUString sFormatDescription = _rxInStream->readUTF(); + OUString sFormatDescription = _rxInStream->readUTF(); LanguageType eDescriptionLanguage = (LanguageType)_rxInStream->readLong(); // und daraus von einem Formatter zu einem Key zusammenwuerfeln lassen ... @@ -1128,7 +1128,7 @@ Any OFormattedModel::translateControlValueToExternalValue( ) const { case TypeClass_STRING: { - ::rtl::OUString sString; + OUString sString; if ( aControlValue >>= sString ) { aExternalValue <<= sString; @@ -1212,7 +1212,7 @@ Sequence< Type > OFormattedModel::getSupportedBindingTypes() aTypes.push_front(::getCppuType( static_cast< UNODateTime* >( NULL ) ) ); break; case NumberFormat::TEXT: - aTypes.push_front(::getCppuType( static_cast< ::rtl::OUString* >( NULL ) ) ); + aTypes.push_front(::getCppuType( static_cast< OUString* >( NULL ) ) ); break; case NumberFormat::LOGICAL: aTypes.push_front(::getCppuType( static_cast< sal_Bool* >( NULL ) ) ); diff --git a/forms/source/component/FormattedField.hxx b/forms/source/component/FormattedField.hxx index 6129e64dc5cf..a21313838d07 100644 --- a/forms/source/component/FormattedField.hxx +++ b/forms/source/component/FormattedField.hxx @@ -78,7 +78,7 @@ namespace frm // XPersistObject virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); // XPropertySet virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const; @@ -94,8 +94,8 @@ namespace frm void setPropertyToDefaultByHandle(sal_Int32 nHandle); ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const; - void SAL_CALL setPropertyToDefault(const ::rtl::OUString& aPropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); - ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + void SAL_CALL setPropertyToDefault(const OUString& aPropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); // OControlModel's property handling virtual void describeFixedProperties( diff --git a/forms/source/component/FormattedFieldWrapper.cxx b/forms/source/component/FormattedFieldWrapper.cxx index e634bbf8ed7c..2a21dec3c620 100644 --- a/forms/source/component/FormattedFieldWrapper.cxx +++ b/forms/source/component/FormattedFieldWrapper.cxx @@ -186,20 +186,20 @@ Any SAL_CALL OFormattedFieldWrapper::queryAggregation(const Type& _rType) throw } //------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFormattedFieldWrapper::getServiceName() throw(RuntimeException) +OUString SAL_CALL OFormattedFieldWrapper::getServiceName() throw(RuntimeException) { // return the old compatibility name for an EditModel return FRM_COMPONENT_EDIT; } //------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFormattedFieldWrapper::getImplementationName( ) throw (RuntimeException) +OUString SAL_CALL OFormattedFieldWrapper::getImplementationName( ) throw (RuntimeException) { - return ::rtl::OUString("com.sun.star.comp.forms.OFormattedFieldWrapper"); + return OUString("com.sun.star.comp.forms.OFormattedFieldWrapper"); } //------------------------------------------------------------------ -sal_Bool SAL_CALL OFormattedFieldWrapper::supportsService( const ::rtl::OUString& _rServiceName ) throw (RuntimeException) +sal_Bool SAL_CALL OFormattedFieldWrapper::supportsService( const OUString& _rServiceName ) throw (RuntimeException) { DBG_ASSERT(m_xAggregate.is(), "OFormattedFieldWrapper::supportsService: should never have made it 'til here without an aggregate!"); Reference< XServiceInfo > xSI; @@ -208,7 +208,7 @@ sal_Bool SAL_CALL OFormattedFieldWrapper::supportsService( const ::rtl::OUString } //------------------------------------------------------------------ -Sequence< ::rtl::OUString > SAL_CALL OFormattedFieldWrapper::getSupportedServiceNames( ) throw (RuntimeException) +Sequence< OUString > SAL_CALL OFormattedFieldWrapper::getSupportedServiceNames( ) throw (RuntimeException) { DBG_ASSERT(m_xAggregate.is(), "OFormattedFieldWrapper::getSupportedServiceNames: should never have made it 'til here without an aggregate!"); Reference< XServiceInfo > xSI; @@ -237,7 +237,7 @@ void SAL_CALL OFormattedFieldWrapper::write(const Reference<XObjectOutputStream> // else we have to write an edit part first OSL_ENSURE(m_pEditPart.is(), "OFormattedFieldWrapper::write : formatted part without edit part ?"); if ( !m_pEditPart.is() ) - throw RuntimeException( ::rtl::OUString(), *this ); + throw RuntimeException( OUString(), *this ); // for this we transfer the current props of the formatted part to the edit part Reference<XPropertySet> xFormatProps(m_xFormattedPart, UNO_QUERY); diff --git a/forms/source/component/FormattedFieldWrapper.hxx b/forms/source/component/FormattedFieldWrapper.hxx index 957c6a7e94fa..1dc202c72d93 100644 --- a/forms/source/component/FormattedFieldWrapper.hxx +++ b/forms/source/component/FormattedFieldWrapper.hxx @@ -69,12 +69,12 @@ public: virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation(const ::com::sun::star::uno::Type& _rType) throw(::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); diff --git a/forms/source/component/FormsCollection.cxx b/forms/source/component/FormsCollection.cxx index e997ef77b948..7a37b4ebec68 100644 --- a/forms/source/component/FormsCollection.cxx +++ b/forms/source/component/FormsCollection.cxx @@ -44,7 +44,7 @@ InterfaceRef SAL_CALL OFormsCollection_CreateInstance(const Reference<XMultiServ } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFormsCollection::getServiceName() throw(RuntimeException) +OUString SAL_CALL OFormsCollection::getServiceName() throw(RuntimeException) { return FRM_SUN_FORMS_COLLECTION; } @@ -106,16 +106,16 @@ Any SAL_CALL OFormsCollection::queryAggregation(const Type& _rType) throw(Runtim } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OFormsCollection::getImplementationName() throw(RuntimeException) +OUString SAL_CALL OFormsCollection::getImplementationName() throw(RuntimeException) { - return ::rtl::OUString("com.sun.star.comp.forms.OFormsCollection"); + return OUString("com.sun.star.comp.forms.OFormsCollection"); } //------------------------------------------------------------------------------ -sal_Bool SAL_CALL OFormsCollection::supportsService( const ::rtl::OUString& _rServiceName ) throw(RuntimeException) +sal_Bool SAL_CALL OFormsCollection::supportsService( const OUString& _rServiceName ) throw(RuntimeException) { - Sequence<rtl::OUString> aSupported = getSupportedServiceNames(); - const rtl::OUString* pSupported = aSupported.getConstArray(); + Sequence<OUString> aSupported = getSupportedServiceNames(); + const OUString* pSupported = aSupported.getConstArray(); for (sal_Int32 i=0; i<aSupported.getLength(); ++i, ++pSupported) if (pSupported->equals(_rServiceName)) return sal_True; @@ -128,7 +128,7 @@ StringSequence SAL_CALL OFormsCollection::getSupportedServiceNames() throw(Runti StringSequence aReturn(2); aReturn.getArray()[0] = FRM_SUN_FORMS_COLLECTION; - aReturn.getArray()[1] = ::rtl::OUString("com.sun.star.form.FormComponents"); + aReturn.getArray()[1] = OUString("com.sun.star.form.FormComponents"); return aReturn; } diff --git a/forms/source/component/FormsCollection.hxx b/forms/source/component/FormsCollection.hxx index f5ec4c6c2241..c6c585806584 100644 --- a/forms/source/component/FormsCollection.hxx +++ b/forms/source/component/FormsCollection.hxx @@ -65,11 +65,11 @@ public: virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException); virtual StringSequence SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); // XCloneable diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index d25212629ec5..be0bdbf9c031 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -78,7 +78,7 @@ InterfaceRef SAL_CALL OGridControlModel_CreateInstance(const Reference<XMultiSer DBG_NAME(OGridControlModel); //------------------------------------------------------------------ OGridControlModel::OGridControlModel(const Reference<XMultiServiceFactory>& _rxFactory) - :OControlModel(_rxFactory, ::rtl::OUString()) + :OControlModel(_rxFactory, OUString()) ,OInterfaceContainer(_rxFactory, m_aMutex, ::getCppuType(static_cast<Reference<XPropertySet>*>(NULL))) ,OErrorBroadcaster( OComponentHelper::rBHelper ) ,FontControlModel( false ) @@ -201,8 +201,8 @@ StringSequence OGridControlModel::getSupportedServiceNames() throw(RuntimeExcept StringSequence aSupported = OControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 2); - ::rtl::OUString*pArray = aSupported.getArray(); - pArray[aSupported.getLength()-2] = ::rtl::OUString("com.sun.star.awt.UnoControlModel"); + OUString*pArray = aSupported.getArray(); + pArray[aSupported.getLength()-2] = OUString("com.sun.star.awt.UnoControlModel"); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_GRIDCONTROL; return aSupported; } @@ -363,9 +363,9 @@ void OGridControlModel::removeSelectionChangeListener(const Reference< XSelectio // XGridColumnFactory //------------------------------------------------------------------------------ -Reference<XPropertySet> SAL_CALL OGridControlModel::createColumn(const ::rtl::OUString& ColumnType) throw ( :: com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) +Reference<XPropertySet> SAL_CALL OGridControlModel::createColumn(const OUString& ColumnType) throw ( :: com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) { - const Sequence< ::rtl::OUString >& rColumnTypes = frm::getColumnTypes(); + const Sequence< OUString >& rColumnTypes = frm::getColumnTypes(); return createColumn( ::detail::findPos( ColumnType, rColumnTypes ) ); } @@ -445,9 +445,9 @@ void OGridControlModel::_reset() void OGridControlModel::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_BASE_PROPERTIES( 37 ) - DECL_PROP1(NAME, ::rtl::OUString, BOUND); + DECL_PROP1(NAME, OUString, BOUND); DECL_PROP2(CLASSID, sal_Int16, READONLY, TRANSIENT); - DECL_PROP1(TAG, ::rtl::OUString, BOUND); + DECL_PROP1(TAG, OUString, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); DECL_PROP3(TABSTOP, sal_Bool, BOUND, MAYBEDEFAULT, MAYBEVOID); DECL_PROP2(HASNAVIGATION, sal_Bool, BOUND, MAYBEDEFAULT); @@ -455,14 +455,14 @@ void OGridControlModel::describeFixedProperties( Sequence< Property >& _rProps ) DECL_PROP2(ENABLEVISIBLE, sal_Bool, BOUND, MAYBEDEFAULT); DECL_PROP1(BORDER, sal_Int16, BOUND); DECL_PROP2(BORDERCOLOR, sal_Int16, BOUND, MAYBEVOID); - DECL_PROP1(DEFAULTCONTROL, ::rtl::OUString, BOUND); + DECL_PROP1(DEFAULTCONTROL, OUString, BOUND); DECL_PROP3(TEXTCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID); DECL_PROP3(BACKGROUNDCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID); DECL_PROP2(FONT, FontDescriptor, BOUND, MAYBEDEFAULT); DECL_PROP3(ROWHEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID); - DECL_PROP1(HELPTEXT, ::rtl::OUString, BOUND); - DECL_PROP1(FONT_NAME, ::rtl::OUString, MAYBEDEFAULT); - DECL_PROP1(FONT_STYLENAME, ::rtl::OUString, MAYBEDEFAULT); + DECL_PROP1(HELPTEXT, OUString, BOUND); + DECL_PROP1(FONT_NAME, OUString, MAYBEDEFAULT); + DECL_PROP1(FONT_STYLENAME, OUString, MAYBEDEFAULT); DECL_PROP1(FONT_FAMILY, sal_Int16, MAYBEDEFAULT); DECL_PROP1(FONT_CHARSET, sal_Int16, MAYBEDEFAULT); DECL_PROP1(FONT_HEIGHT, float, MAYBEDEFAULT); @@ -479,7 +479,7 @@ void OGridControlModel::describeFixedProperties( Sequence< Property >& _rProps ) DECL_PROP4(CURSORCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID , TRANSIENT); DECL_PROP3(ALWAYSSHOWCURSOR, sal_Bool, BOUND, MAYBEDEFAULT, TRANSIENT); DECL_PROP3(DISPLAYSYNCHRON, sal_Bool, BOUND, MAYBEDEFAULT, TRANSIENT); - DECL_PROP2(HELPURL, ::rtl::OUString, BOUND, MAYBEDEFAULT); + DECL_PROP2(HELPURL, OUString, BOUND, MAYBEDEFAULT); DECL_PROP2(WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT); DECL_PROP3(CONTEXT_WRITING_MODE,sal_Int16, BOUND, MAYBEDEFAULT, TRANSIENT); END_DESCRIBE_PROPERTIES(); @@ -733,7 +733,7 @@ Any OGridControlModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const break; case PROPERTY_ID_DEFAULTCONTROL: - aReturn <<= ::rtl::OUString( STARDIV_ONE_FORM_CONTROL_GRID ); + aReturn <<= OUString( STARDIV_ONE_FORM_CONTROL_GRID ); break; case PROPERTY_ID_PRINTABLE: @@ -751,7 +751,7 @@ Any OGridControlModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const case PROPERTY_ID_HELPURL: case PROPERTY_ID_HELPTEXT: - aReturn <<= ::rtl::OUString(); + aReturn <<= OUString(); break; case PROPERTY_ID_BORDER: @@ -868,7 +868,7 @@ void OGridControlModel::approveNewElement( const Reference< XPropertySet >& _rxO // XPersistObject //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OGridControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OGridControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_GRID; // old (non-sun) name for compatibility ! } @@ -1009,7 +1009,7 @@ void OGridControlModel::read(const Reference<XObjectInputStream>& _rxInStream) t { // Lesen des Modelnamen - ::rtl::OUString sModelName; + OUString sModelName; _rxInStream >> sModelName; Reference<XPropertySet> xCol(createColumn(getColumnTypeByModelName(sModelName))); diff --git a/forms/source/component/Grid.hxx b/forms/source/component/Grid.hxx index f29e6be26d1c..a5b963394571 100644 --- a/forms/source/component/Grid.hxx +++ b/forms/source/component/Grid.hxx @@ -76,14 +76,14 @@ class OGridControlModel :public OControlModel ::com::sun::star::uno::Any m_aBackgroundColor; ::com::sun::star::uno::Any m_aCursorColor; // transient ::com::sun::star::uno::Any m_aBorderColor; - ::rtl::OUString m_aDefaultControl; - ::rtl::OUString m_sHelpText; + OUString m_aDefaultControl; + OUString m_sHelpText; // [properties] ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xSelection; // [properties] - ::rtl::OUString m_sHelpURL; // URL + OUString m_sHelpURL; // URL sal_Int16 m_nBorder; sal_Int16 m_nWritingMode; sal_Int16 m_nContextWritingMode; @@ -134,11 +134,11 @@ public: virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener >& xListener) throw(::com::sun::star::uno::RuntimeException); // XGridColumnFactory - virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> SAL_CALL createColumn(const ::rtl::OUString& ColumnType) throw ( :: com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> SAL_CALL createColumn(const OUString& ColumnType) throw ( :: com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); virtual StringSequence SAL_CALL getColumnTypes() throw ( ::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); diff --git a/forms/source/component/GroupBox.cxx b/forms/source/component/GroupBox.cxx index 81a9275bcc7c..0779522702b9 100644 --- a/forms/source/component/GroupBox.cxx +++ b/forms/source/component/GroupBox.cxx @@ -72,7 +72,7 @@ StringSequence SAL_CALL OGroupBoxModel::getSupportedServiceNames() throw(Runtime StringSequence aSupported = OControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_GROUPBOX; return aSupported; } @@ -95,7 +95,7 @@ void OGroupBoxModel::describeAggregateProperties( Sequence< Property >& _rAggreg } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OGroupBoxModel::getServiceName() throw(RuntimeException) +OUString SAL_CALL OGroupBoxModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_GROUPBOX; // old (non-sun) name for compatibility ! } @@ -152,7 +152,7 @@ StringSequence SAL_CALL OGroupBoxControl::getSupportedServiceNames() throw(Runti StringSequence aSupported = OControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_GROUPBOX; return aSupported; } diff --git a/forms/source/component/GroupBox.hxx b/forms/source/component/GroupBox.hxx index d270e48025e7..e825e02c5f43 100644 --- a/forms/source/component/GroupBox.hxx +++ b/forms/source/component/GroupBox.hxx @@ -40,7 +40,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL diff --git a/forms/source/component/GroupManager.cxx b/forms/source/component/GroupManager.cxx index caa015af2d0b..86234c3db591 100644 --- a/forms/source/component/GroupManager.cxx +++ b/forms/source/component/GroupManager.cxx @@ -153,7 +153,7 @@ public: DBG_NAME(OGroup) //------------------------------------------------------------------ -OGroup::OGroup( const ::rtl::OUString& rGroupName ) +OGroup::OGroup( const OUString& rGroupName ) :m_aGroupName( rGroupName ) ,m_nInsertPos(0) { @@ -257,7 +257,7 @@ Sequence< Reference<XControlModel> > OGroup::GetControlModels() const DBG_NAME(OGroupManager); //------------------------------------------------------------------ OGroupManager::OGroupManager(const Reference< XContainer >& _rxContainer) - :m_pCompGroup( new OGroup( ::rtl::OUString("AllComponentGroup") ) ) + :m_pCompGroup( new OGroup( OUString("AllComponentGroup") ) ) ,m_xContainer(_rxContainer) { DBG_CTOR(OGroupManager,NULL); @@ -293,7 +293,7 @@ void OGroupManager::disposing(const EventObject& evt) throw( RuntimeException ) } } // ----------------------------------------------------------------------------- -void OGroupManager::removeFromGroupMap(const ::rtl::OUString& _sGroupName,const Reference<XPropertySet>& _xSet) +void OGroupManager::removeFromGroupMap(const OUString& _sGroupName,const Reference<XPropertySet>& _xSet) { // Component aus CompGroup entfernen m_pCompGroup->RemoveComponent( _xSet ); @@ -338,7 +338,7 @@ void SAL_CALL OGroupManager::propertyChange(const PropertyChangeEvent& evt) thro Reference<XPropertySet> xSet(evt.Source, UNO_QUERY); // Component aus Gruppe entfernen - ::rtl::OUString sGroupName; + OUString sGroupName; if (hasProperty( PROPERTY_GROUP_NAME, xSet )) xSet->getPropertyValue( PROPERTY_GROUP_NAME ) >>= sGroupName; if (evt.PropertyName == PROPERTY_NAME) { @@ -410,7 +410,7 @@ sal_Int32 OGroupManager::getGroupCount() } //------------------------------------------------------------------ -void OGroupManager::getGroup(sal_Int32 nGroup, Sequence< Reference<XControlModel> >& _rGroup, ::rtl::OUString& _rName) +void OGroupManager::getGroup(sal_Int32 nGroup, Sequence< Reference<XControlModel> >& _rGroup, OUString& _rName) { OSL_ENSURE(nGroup >= 0 && (size_t)nGroup < m_aActiveGroupMap.size(),"OGroupManager::getGroup: Invalid group index!"); OGroupArr::iterator aGroupPos = m_aActiveGroupMap[nGroup]; @@ -419,7 +419,7 @@ void OGroupManager::getGroup(sal_Int32 nGroup, Sequence< Reference<XControlModel } //------------------------------------------------------------------ -void OGroupManager::getGroupByName(const ::rtl::OUString& _rName, Sequence< Reference<XControlModel> >& _rGroup) +void OGroupManager::getGroupByName(const OUString& _rName, Sequence< Reference<XControlModel> >& _rGroup) { OGroupArr::iterator aFind = m_aGroupArr.find(_rName); if ( aFind != m_aGroupArr.end() ) @@ -438,7 +438,7 @@ void OGroupManager::InsertElement( const Reference<XPropertySet>& xSet ) m_pCompGroup->InsertComponent( xSet ); // Component in Gruppe aufnehmen - ::rtl::OUString sGroupName( GetGroupName( xSet ) ); + OUString sGroupName( GetGroupName( xSet ) ); OGroupArr::iterator aFind = m_aGroupArr.find(sGroupName); @@ -494,16 +494,16 @@ void OGroupManager::RemoveElement( const Reference<XPropertySet>& xSet ) return; // Component aus Gruppe entfernen - ::rtl::OUString sGroupName( GetGroupName( xSet ) ); + OUString sGroupName( GetGroupName( xSet ) ); removeFromGroupMap(sGroupName,xSet); } -::rtl::OUString OGroupManager::GetGroupName( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> xComponent ) +OUString OGroupManager::GetGroupName( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> xComponent ) { if (!xComponent.is()) - return ::rtl::OUString(); - ::rtl::OUString sGroupName; + return OUString(); + OUString sGroupName; if (hasProperty( PROPERTY_GROUP_NAME, xComponent )) { xComponent->getPropertyValue( PROPERTY_GROUP_NAME ) >>= sGroupName; if (sGroupName.isEmpty()) diff --git a/forms/source/component/GroupManager.hxx b/forms/source/component/GroupManager.hxx index 3fda7f12b39b..484412525767 100644 --- a/forms/source/component/GroupManager.hxx +++ b/forms/source/component/GroupManager.hxx @@ -96,7 +96,7 @@ namespace frm //======================================================================== class OGroupComp { - ::rtl::OUString m_aName; + OUString m_aName; ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xComponent; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> m_xControlModel; sal_Int32 m_nPos; @@ -116,7 +116,7 @@ public: sal_Int32 GetPos() const { return m_nPos; } sal_Int16 GetTabIndex() const { return m_nTabIndex; } - ::rtl::OUString GetName() const { return m_aName; } + OUString GetName() const { return m_aName; } }; DECLARE_STL_VECTOR(OGroupComp, OGroupCompArr); @@ -148,13 +148,13 @@ class OGroup OGroupCompArr m_aCompArray; OGroupCompAccArr m_aCompAccArray; - ::rtl::OUString m_aGroupName; + OUString m_aGroupName; sal_uInt16 m_nInsertPos; // Die Einfugeposition der GroupComps wird von der Gruppe bestimmt. friend class OGroupLess; public: - OGroup( const ::rtl::OUString& rGroupName ); + OGroup( const OUString& rGroupName ); #ifdef DBG_UTIL OGroup( const OGroup& _rSource ); // just to ensure the DBG_CTOR call #endif @@ -162,7 +162,7 @@ public: sal_Bool operator==( const OGroup& rGroup ) const; - ::rtl::OUString GetGroupName() const { return m_aGroupName; } + OUString GetGroupName() const { return m_aGroupName; } ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> > GetControlModels() const; void InsertComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& rxElement ); @@ -189,7 +189,7 @@ class OGroupManager : public ::cppu::WeakImplHelper2< ::com::sun::star::beans::X // Helper functions void InsertElement( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& rxElement ); void RemoveElement( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& rxElement ); - void removeFromGroupMap(const ::rtl::OUString& _sGroupName,const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xSet); + void removeFromGroupMap(const OUString& _sGroupName,const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xSet); public: OGroupManager(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >& _rxContainer); @@ -208,11 +208,11 @@ public: // Other functions sal_Int32 getGroupCount(); - void getGroup(sal_Int32 nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> >& _rGroup, ::rtl::OUString& Name); - void getGroupByName(const ::rtl::OUString& Name, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> >& _rGroup); + void getGroup(sal_Int32 nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> >& _rGroup, OUString& Name); + void getGroupByName(const OUString& Name, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> >& _rGroup); ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> > getControlModels(); - static ::rtl::OUString GetGroupName( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> xComponent ); + static OUString GetGroupName( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> xComponent ); }; diff --git a/forms/source/component/Hidden.cxx b/forms/source/component/Hidden.cxx index a2abcc23299c..4271482cc7b1 100644 --- a/forms/source/component/Hidden.cxx +++ b/forms/source/component/Hidden.cxx @@ -49,7 +49,7 @@ InterfaceRef SAL_CALL OHiddenModel_CreateInstance(const Reference<XMultiServiceF DBG_NAME( OHiddenModel ) //------------------------------------------------------------------ OHiddenModel::OHiddenModel(const Reference<XMultiServiceFactory>& _rxFactory) - :OControlModel(_rxFactory, ::rtl::OUString()) + :OControlModel(_rxFactory, OUString()) { DBG_CTOR( OHiddenModel, NULL ); m_nClassId = FormComponentType::HIDDENCONTROL; @@ -120,9 +120,9 @@ void OHiddenModel::describeFixedProperties( Sequence< Property >& _rProps ) cons { BEGIN_DESCRIBE_BASE_PROPERTIES(4) DECL_PROP2(CLASSID, sal_Int16, READONLY, TRANSIENT); - DECL_PROP1(HIDDEN_VALUE, ::rtl::OUString, BOUND); - DECL_PROP1(NAME, ::rtl::OUString, BOUND); - DECL_PROP1(TAG, ::rtl::OUString, BOUND); + DECL_PROP1(HIDDEN_VALUE, OUString, BOUND); + DECL_PROP1(NAME, OUString, BOUND); + DECL_PROP1(TAG, OUString, BOUND); END_DESCRIBE_PROPERTIES(); } @@ -137,7 +137,7 @@ StringSequence SAL_CALL OHiddenModel::getSupportedServiceNames() throw(::com::su } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OHiddenModel::getServiceName() throw(RuntimeException) +OUString SAL_CALL OHiddenModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_HIDDEN; // old (non-sun) name for compatibility ! } @@ -165,9 +165,9 @@ void SAL_CALL OHiddenModel::read(const Reference<XObjectInputStream>& _rxInStrea DBG_ASSERT(nVersion != 1, "OHiddenModel::read : this version is obsolete !"); switch (nVersion) { - case 1 : { ::rtl::OUString sDummy; _rxInStream >> sDummy; _rxInStream >> m_sHiddenValue; } break; + case 1 : { OUString sDummy; _rxInStream >> sDummy; _rxInStream >> m_sHiddenValue; } break; case 2 : _rxInStream >> m_sHiddenValue; break; - default : OSL_FAIL("OHiddenModel::read : unknown version !"); m_sHiddenValue = ::rtl::OUString(); + default : OSL_FAIL("OHiddenModel::read : unknown version !"); m_sHiddenValue = OUString(); } OControlModel::read(_rxInStream); } diff --git a/forms/source/component/Hidden.hxx b/forms/source/component/Hidden.hxx index 091c15fb4722..08d77d613c04 100644 --- a/forms/source/component/Hidden.hxx +++ b/forms/source/component/Hidden.hxx @@ -32,7 +32,7 @@ namespace frm class OHiddenModel :public OControlModel { - ::rtl::OUString m_sHiddenValue; + OUString m_sHiddenValue; public: DECLARE_DEFAULT_LEAF_XTOR( OHiddenModel ); @@ -50,7 +50,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL diff --git a/forms/source/component/ImageButton.cxx b/forms/source/component/ImageButton.cxx index 025f6938e0b0..7fa744c50ea3 100644 --- a/forms/source/component/ImageButton.cxx +++ b/forms/source/component/ImageButton.cxx @@ -84,7 +84,7 @@ StringSequence OImageButtonModel::getSupportedServiceNames() throw() StringSequence aSupported = OClickableImageBaseModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_IMAGEBUTTON; return aSupported; } @@ -95,14 +95,14 @@ void OImageButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) BEGIN_DESCRIBE_PROPERTIES( 5, OClickableImageBaseModel ) DECL_PROP1(BUTTONTYPE, FormButtonType, BOUND); DECL_PROP1(DISPATCHURLINTERNAL, sal_Bool, BOUND); - DECL_PROP1(TARGET_URL, ::rtl::OUString, BOUND); - DECL_PROP1(TARGET_FRAME, ::rtl::OUString, BOUND); + DECL_PROP1(TARGET_URL, OUString, BOUND); + DECL_PROP1(TARGET_FRAME, OUString, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); END_DESCRIBE_PROPERTIES(); } //------------------------------------------------------------------------------ -::rtl::OUString OImageButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString OImageButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_IMAGEBUTTON; // old (non-sun) name for compatibility ! } @@ -116,7 +116,7 @@ void OImageButtonModel::write(const Reference<XObjectOutputStream>& _rxOutStream _rxOutStream->writeShort(0x0003); _rxOutStream->writeShort((sal_uInt16)m_eButtonType); - ::rtl::OUString sTmp(INetURLObject::decode( m_sTargetURL, '%', INetURLObject::DECODE_UNAMBIGUOUS)); + OUString sTmp(INetURLObject::decode( m_sTargetURL, '%', INetURLObject::DECODE_UNAMBIGUOUS)); _rxOutStream << sTmp; _rxOutStream << m_sTargetFrame; writeHelpTextCompatibly(_rxOutStream); @@ -156,8 +156,8 @@ void OImageButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) t default : OSL_FAIL("OImageButtonModel::read : unknown version !"); m_eButtonType = FormButtonType_PUSH; - m_sTargetURL = ::rtl::OUString(); - m_sTargetFrame = ::rtl::OUString(); + m_sTargetURL = OUString(); + m_sTargetFrame = OUString(); break; } } @@ -186,7 +186,7 @@ StringSequence OImageButtonControl::getSupportedServiceNames() throw() StringSequence aSupported = OClickableImageBaseControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_IMAGEBUTTON; return aSupported; } diff --git a/forms/source/component/ImageButton.hxx b/forms/source/component/ImageButton.hxx index 4d26287aed0e..1496b42ef417 100644 --- a/forms/source/component/ImageButton.hxx +++ b/forms/source/component/ImageButton.hxx @@ -42,7 +42,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); // ::com::sun::star::io::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx index 801d833c9341..1991e32ef14d 100644 --- a/forms/source/component/ImageControl.cxx +++ b/forms/source/component/ImageControl.cxx @@ -207,7 +207,7 @@ StringSequence OImageControlModel::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_IMAGECONTROL; return aSupported; } @@ -291,10 +291,10 @@ void OImageControlModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, con { // if that's an external graphic, i.e. one which has not been loaded by ourselves in response to a // new image URL, then also adjust our ImageURL. - ::rtl::OUString sNewImageURL; + OUString sNewImageURL; if ( m_xGraphicObject.is() ) { - sNewImageURL = ::rtl::OUString( "vnd.sun.star.GraphicObject:" ); + sNewImageURL = OUString( "vnd.sun.star.GraphicObject:" ); sNewImageURL = sNewImageURL + m_xGraphicObject->getUniqueID(); } m_sImageURL = sNewImageURL; @@ -340,7 +340,7 @@ void OImageControlModel::describeFixedProperties( Sequence< Property >& _rProps { BEGIN_DESCRIBE_PROPERTIES( 4, OBoundControlModel ) DECL_IFACE_PROP2( GRAPHIC, XGraphic, BOUND, TRANSIENT ); - DECL_PROP1 ( IMAGE_URL, ::rtl::OUString, BOUND ); + DECL_PROP1 ( IMAGE_URL, OUString, BOUND ); DECL_BOOL_PROP1 ( READONLY, BOUND ); DECL_PROP1 ( TABINDEX, sal_Int16, BOUND ); END_DESCRIBE_PROPERTIES(); @@ -357,7 +357,7 @@ void OImageControlModel::describeAggregateProperties( Sequence< Property >& /* [ } //------------------------------------------------------------------------------ -::rtl::OUString OImageControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString OImageControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_IMAGECONTROL; // old (non-sun) name for compatibility ! } @@ -412,7 +412,7 @@ void OImageControlModel::read(const Reference<XObjectInputStream>& _rxInStream) } //------------------------------------------------------------------------------ -sal_Bool OImageControlModel::impl_updateStreamForURL_lck( const ::rtl::OUString& _rURL, ValueChangeInstigator _eInstigator ) +sal_Bool OImageControlModel::impl_updateStreamForURL_lck( const OUString& _rURL, ValueChangeInstigator _eInstigator ) { // create a stream for the image specified by the URL ::std::auto_ptr< SvStream > pImageStream; @@ -465,7 +465,7 @@ sal_Bool OImageControlModel::impl_handleNewImageURL_lck( ValueChangeInstigator _ case ImageStoreLink: { - ::rtl::OUString sCommitURL( m_sImageURL ); + OUString sCommitURL( m_sImageURL ); if ( !m_sDocumentURL.isEmpty() ) sCommitURL = URIHelper::simpleNormalizedMakeRelative( m_sDocumentURL, sCommitURL ); OSL_ENSURE( m_xColumnUpdate.is(), "OImageControlModel::impl_handleNewImageURL_lck: no bound field, but ImageStoreLink?!" ); @@ -514,7 +514,7 @@ sal_Bool OImageControlModel::commitControlValueToDbColumn( bool _bPostReset ) //------------------------------------------------------------------------------ namespace { - bool lcl_isValidDocumentURL( const ::rtl::OUString& _rDocURL ) + bool lcl_isValidDocumentURL( const OUString& _rDocURL ) { return ( !_rDocURL.isEmpty() && _rDocURL != "private:object" ); } @@ -555,7 +555,7 @@ void OImageControlModel::onDisconnectedDbColumn() { OBoundControlModel::onDisconnectedDbColumn(); - m_sDocumentURL = ::rtl::OUString(); + m_sDocumentURL = OUString(); } //------------------------------------------------------------------------------ @@ -572,7 +572,7 @@ Any OImageControlModel::translateDbColumnToControlValue() } case ImageStoreLink: { - ::rtl::OUString sImageLink( m_xColumn->getString() ); + OUString sImageLink( m_xColumn->getString() ); if ( !m_sDocumentURL.isEmpty() ) sImageLink = INetURLObject::GetAbsURL( m_sDocumentURL, sImageLink ); return makeAny( sImageLink ); @@ -612,7 +612,7 @@ void OImageControlModel::doSetControlValue( const Any& _rValue ) case ImageStoreLink: { - ::rtl::OUString sImageURL; + OUString sImageURL; _rValue >>= sImageURL; GetImageProducer()->SetImage( sImageURL ); bStartProduction = true; @@ -749,7 +749,7 @@ StringSequence OImageControlControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_IMAGECONTROL; return aSupported; } @@ -789,18 +789,18 @@ void OImageControlControl::implClearGraphics( sal_Bool _bForce ) { if ( _bForce ) { - ::rtl::OUString sOldImageURL; + OUString sOldImageURL; xSet->getPropertyValue( PROPERTY_IMAGE_URL ) >>= sOldImageURL; if ( sOldImageURL.isEmpty() ) // the ImageURL is already empty, so simply setting a new empty one would not suffice // (since it would be ignored) - xSet->setPropertyValue( PROPERTY_IMAGE_URL, makeAny( ::rtl::OUString( "private:emptyImage" ) ) ); + xSet->setPropertyValue( PROPERTY_IMAGE_URL, makeAny( OUString( "private:emptyImage" ) ) ); // (the concrete URL we're passing here doens't matter. It's important that // the model cannot resolve it to a a valid resource describing an image stream } - xSet->setPropertyValue( PROPERTY_IMAGE_URL, makeAny( ::rtl::OUString() ) ); + xSet->setPropertyValue( PROPERTY_IMAGE_URL, makeAny( OUString() ) ); } } @@ -811,7 +811,7 @@ bool OImageControlControl::implInsertGraphics() if ( !xSet.is() ) return false; - ::rtl::OUString sTitle = FRM_RES_STRING(RID_STR_IMPORT_GRAPHIC); + OUString sTitle = FRM_RES_STRING(RID_STR_IMPORT_GRAPHIC); // build some arguments for the upcoming dialog try { @@ -858,7 +858,7 @@ bool OImageControlControl::implInsertGraphics() xSet->setPropertyValue( PROPERTY_GRAPHIC, makeAny( aGraphic.GetXGraphic() ) ); } else - xSet->setPropertyValue( PROPERTY_IMAGE_URL, makeAny( ::rtl::OUString( aDialog.GetPath() ) ) ); + xSet->setPropertyValue( PROPERTY_IMAGE_URL, makeAny( OUString( aDialog.GetPath() ) ) ); return true; } @@ -879,7 +879,7 @@ bool OImageControlControl::impl_isEmptyGraphics_nothrow() const { Reference< XPropertySet > xModelProps( const_cast< OImageControlControl* >( this )->getModel(), UNO_QUERY_THROW ); Reference< XGraphic > xGraphic; - OSL_VERIFY( xModelProps->getPropertyValue( ::rtl::OUString( "Graphic" ) ) >>= xGraphic ); + OSL_VERIFY( xModelProps->getPropertyValue( OUString( "Graphic" ) ) >>= xGraphic ); bIsEmpty = !xGraphic.is(); } catch( const Exception& ) diff --git a/forms/source/component/ImageControl.hxx b/forms/source/component/ImageControl.hxx index 3b9acd98b0e1..56f8952b2de4 100644 --- a/forms/source/component/ImageControl.hxx +++ b/forms/source/component/ImageControl.hxx @@ -52,10 +52,10 @@ class OImageControlModel ImageProducer* m_pImageProducer; bool m_bExternalGraphic; sal_Bool m_bReadOnly; - ::rtl::OUString m_sImageURL; + OUString m_sImageURL; ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject > m_xGraphicObject; - ::rtl::OUString m_sDocumentURL; + OUString m_sDocumentURL; protected: // UNO Anbindung @@ -84,7 +84,7 @@ public: virtual void SAL_CALL disposing(); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); @@ -138,7 +138,7 @@ protected: /** updates the binary stream, created from loading the file which the given URL points to, into our bound field, or the control itself if there is no bound field */ - sal_Bool impl_updateStreamForURL_lck( const ::rtl::OUString& _rURL, ValueChangeInstigator _eInstigator ); + sal_Bool impl_updateStreamForURL_lck( const OUString& _rURL, ValueChangeInstigator _eInstigator ); DECL_LINK( OnImageImportDone, ::Graphic* ); }; diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index ac526da62618..5b75332b090a 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -84,35 +84,35 @@ namespace frm namespace { //-------------------------------------------------------------------------- - struct RowSetValueToString : public ::std::unary_function< ORowSetValue, ::rtl::OUString > + struct RowSetValueToString : public ::std::unary_function< ORowSetValue, OUString > { - ::rtl::OUString operator()( const ORowSetValue& _value ) const + OUString operator()( const ORowSetValue& _value ) const { return _value.getString(); } }; //-------------------------------------------------------------------------- - struct AppendRowSetValueString : public ::std::unary_function< ::rtl::OUString, void > + struct AppendRowSetValueString : public ::std::unary_function< OUString, void > { - AppendRowSetValueString( ::rtl::OUString& _string ) + AppendRowSetValueString( OUString& _string ) :m_string( _string ) { } - void operator()( const ::rtl::OUString _append ) + void operator()( const OUString _append ) { m_string += _append; } private: - ::rtl::OUString& m_string; + OUString& m_string; }; //-------------------------------------------------------------------------- - Sequence< ::rtl::OUString > lcl_convertToStringSequence( const ValueList& _values ) + Sequence< OUString > lcl_convertToStringSequence( const ValueList& _values ) { - Sequence< ::rtl::OUString > aStrings( _values.size() ); + Sequence< OUString > aStrings( _values.size() ); ::std::transform( _values.begin(), _values.end(), @@ -212,7 +212,7 @@ namespace frm sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -302,7 +302,7 @@ namespace frm case PROPERTY_ID_LISTSOURCE: { // extract - Sequence< ::rtl::OUString > aListSource; + Sequence< OUString > aListSource; OSL_VERIFY( _rValue >>= aListSource ); // copy to member @@ -398,21 +398,21 @@ namespace frm } //------------------------------------------------------------------------------ - void SAL_CALL OListBoxModel::setPropertyValues( const Sequence< ::rtl::OUString >& _rPropertyNames, const Sequence< Any >& _rValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) + void SAL_CALL OListBoxModel::setPropertyValues( const Sequence< OUString >& _rPropertyNames, const Sequence< Any >& _rValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) { // if both SelectedItems and StringItemList are set, care for this // #i27024# const Any* pSelectSequenceValue = NULL; - const ::rtl::OUString* pStartPos = _rPropertyNames.getConstArray(); - const ::rtl::OUString* pEndPos = _rPropertyNames.getConstArray() + _rPropertyNames.getLength(); - const ::rtl::OUString* pSelectedItemsPos = ::std::find_if( + const OUString* pStartPos = _rPropertyNames.getConstArray(); + const OUString* pEndPos = _rPropertyNames.getConstArray() + _rPropertyNames.getLength(); + const OUString* pSelectedItemsPos = ::std::find_if( pStartPos, pEndPos, - ::std::bind2nd( ::std::equal_to< ::rtl::OUString >(), PROPERTY_SELECT_SEQ ) + ::std::bind2nd( ::std::equal_to< OUString >(), PROPERTY_SELECT_SEQ ) ); - const ::rtl::OUString* pStringItemListPos = ::std::find_if( + const OUString* pStringItemListPos = ::std::find_if( pStartPos, pEndPos, - ::std::bind2nd( ::std::equal_to< ::rtl::OUString >(), PROPERTY_STRINGITEMLIST ) + ::std::bind2nd( ::std::equal_to< OUString >(), PROPERTY_STRINGITEMLIST ) ); if ( ( pSelectedItemsPos != pEndPos ) && ( pStringItemListPos != pEndPos ) ) { @@ -443,7 +443,7 @@ namespace frm DECL_PROP1(LISTSOURCE, StringSequence, BOUND); DECL_PROP3(VALUE_SEQ, StringSequence, BOUND, READONLY, TRANSIENT); DECL_PROP1(DEFAULT_SELECT_SEQ, Sequence<sal_Int16>, BOUND); - DECL_PROP1(STRINGITEMLIST, Sequence< ::rtl::OUString >, BOUND); + DECL_PROP1(STRINGITEMLIST, Sequence< OUString >, BOUND); END_DESCRIBE_PROPERTIES(); } @@ -473,7 +473,7 @@ namespace frm } //------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL OListBoxModel::getServiceName() throw(RuntimeException) + OUString SAL_CALL OListBoxModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_LISTBOX; // old (non-sun) name for compatibility ! } @@ -562,7 +562,7 @@ namespace frm if (nVersion == 0x0001) { // Create ListSourceSeq from String - ::rtl::OUString sListSource; + OUString sListSource; _rxInStream >> sListSource; sal_Int32 nTokens = 1; @@ -652,7 +652,7 @@ namespace frm xFormProps->getPropertyValue( PROPERTY_ACTIVE_CONNECTION ) >>= xConnection; // PRE2: list source - ::rtl::OUString sListSource; + OUString sListSource; // if our list source type is no value list, we need to concatenate // the single list source elements ::std::for_each( @@ -696,8 +696,8 @@ namespace frm // do we have a bound column if yes we have to select it // and the displayed column is the first column othwhise we act as a combobox - ::rtl::OUString aFieldName; - ::rtl::OUString aBoundFieldName; + OUString aFieldName; + OUString aBoundFieldName; if ( !!aBoundColumn && ( *aBoundColumn >= 0 ) && xFieldsByIndex.is() ) { @@ -719,7 +719,7 @@ namespace frm { // otherwise look for the alias Reference< XColumnsSupplier > xSupplyFields; - xFormProps->getPropertyValue(::rtl::OUString("SingleSelectQueryComposer")) >>= xSupplyFields; + xFormProps->getPropertyValue(OUString("SingleSelectQueryComposer")) >>= xSupplyFields; // search the field DBG_ASSERT(xSupplyFields.is(), "OListBoxModel::loadData : invalid query composer !"); @@ -738,20 +738,20 @@ namespace frm break; Reference<XDatabaseMetaData> xMeta = xConnection->getMetaData(); - ::rtl::OUString aQuote = xMeta->getIdentifierQuoteString(); - ::rtl::OUString aStatement("SELECT "); + OUString aQuote = xMeta->getIdentifierQuoteString(); + OUString aStatement("SELECT "); if (aBoundFieldName.isEmpty()) // act like a combobox - aStatement += ::rtl::OUString("DISTINCT "); + aStatement += OUString("DISTINCT "); aStatement += quoteName(aQuote,aFieldName); if (!aBoundFieldName.isEmpty()) { - aStatement += ::rtl::OUString(", "); + aStatement += OUString(", "); aStatement += quoteName(aQuote, aBoundFieldName); } - aStatement += ::rtl::OUString(" FROM "); + aStatement += OUString(" FROM "); - ::rtl::OUString sCatalog, sSchema, sTable; + OUString sCatalog, sSchema, sTable; qualifiedNameComponents( xMeta, sListSource, sCatalog, sSchema, sTable, eInDataManipulation ); aStatement += composeTableNameForSelect( xConnection, sCatalog, sSchema, sTable ); @@ -841,7 +841,7 @@ namespace frm try { Reference< XPropertySet > xBoundField( xColumns->getByIndex( *aBoundColumn ), UNO_QUERY_THROW ); - OSL_VERIFY( xBoundField->getPropertyValue( ::rtl::OUString("Type") ) >>= m_nBoundColumnType ); + OSL_VERIFY( xBoundField->getPropertyValue( OUString("Type") ) >>= m_nBoundColumnType ); } catch( const Exception& ) { @@ -852,7 +852,7 @@ namespace frm // If the LB is bound to a field and empty entries are valid, we remember the position // for an empty entry RTL_LOGFILE_CONTEXT( aLogContext, "OListBoxModel::loadData: string collection" ); - ::rtl::OUString aStr; + OUString aStr; sal_Int16 entryPos = 0; ORowSetValue aBoundValue; Reference< XRow > xCursorRow( xListCursor, UNO_QUERY_THROW ); @@ -911,7 +911,7 @@ namespace frm if ( impl_hasBoundComponent() ) aValueList.insert( aValueList.begin(), ORowSetValue() ); - aDisplayList.insert( aDisplayList.begin(), ORowSetValue( ::rtl::OUString() ) ); + aDisplayList.insert( aDisplayList.begin(), ORowSetValue( OUString() ) ); m_nNULLPos = 0; } @@ -998,11 +998,11 @@ namespace frm return m_aConvertedBoundValues; } - Sequence< ::rtl::OUString > aStringItems( getStringItemList() ); + Sequence< OUString > aStringItems( getStringItemList() ); ValueList aValues( aStringItems.getLength() ); ValueList::iterator dst = aValues.begin(); - const ::rtl::OUString *src (aStringItems.getConstArray()); - const ::rtl::OUString * const end = src + aStringItems.getLength(); + const OUString *src (aStringItems.getConstArray()); + const OUString * const end = src + aStringItems.getLength(); for (; src < end; ++src, ++dst ) { *dst = *src; @@ -1222,14 +1222,14 @@ namespace frm case eEntryList: { // we can retrieve a string list from the binding for multiple selection - Sequence< ::rtl::OUString > aSelectEntries; + Sequence< OUString > aSelectEntries; OSL_VERIFY( _rExternalValue >>= aSelectEntries ); ::std::set< sal_Int16 > aSelectionSet; // find the selection entries in our item list - const ::rtl::OUString* pSelectEntries = aSelectEntries.getArray(); - const ::rtl::OUString* pSelectEntriesEnd = pSelectEntries + aSelectEntries.getLength(); + const OUString* pSelectEntries = aSelectEntries.getArray(); + const OUString* pSelectEntriesEnd = pSelectEntries + aSelectEntries.getLength(); while ( pSelectEntries != pSelectEntriesEnd ) { // the indexes where the current string appears in our string items @@ -1256,7 +1256,7 @@ namespace frm case eEntry: { - ::rtl::OUString sStringToSelect; + OUString sStringToSelect; OSL_VERIFY( _rExternalValue >>= sStringToSelect ); aSelectIndexes = findValue( getStringItemList(), sStringToSelect, sal_False ); @@ -1271,25 +1271,25 @@ namespace frm namespace { //................................................................ - struct ExtractStringFromSequence_Safe : public ::std::unary_function< sal_Int16, ::rtl::OUString > + struct ExtractStringFromSequence_Safe : public ::std::unary_function< sal_Int16, OUString > { protected: - const Sequence< ::rtl::OUString >& m_rList; + const Sequence< OUString >& m_rList; public: - ExtractStringFromSequence_Safe( const Sequence< ::rtl::OUString >& _rList ) : m_rList( _rList ) { } + ExtractStringFromSequence_Safe( const Sequence< OUString >& _rList ) : m_rList( _rList ) { } - ::rtl::OUString operator ()( sal_Int16 _nIndex ) + OUString operator ()( sal_Int16 _nIndex ) { OSL_ENSURE( _nIndex < m_rList.getLength(), "ExtractStringFromSequence_Safe: inconsistence!" ); if ( _nIndex < m_rList.getLength() ) return m_rList[ _nIndex ]; - return ::rtl::OUString(); + return OUString(); } }; //................................................................ - Any lcl_getSingleSelectedEntry( const Sequence< sal_Int16 >& _rSelectSequence, const Sequence< ::rtl::OUString >& _rStringList ) + Any lcl_getSingleSelectedEntry( const Sequence< sal_Int16 >& _rSelectSequence, const Sequence< OUString >& _rStringList ) { Any aReturn; @@ -1297,7 +1297,7 @@ namespace frm // binding does not support string lists if ( _rSelectSequence.getLength() <= 1 ) { - ::rtl::OUString sSelectedEntry; + OUString sSelectedEntry; if ( _rSelectSequence.getLength() == 1 ) sSelectedEntry = ExtractStringFromSequence_Safe( _rStringList )( _rSelectSequence[0] ); @@ -1309,9 +1309,9 @@ namespace frm } //................................................................ - Any lcl_getMultiSelectedEntries( const Sequence< sal_Int16 >& _rSelectSequence, const Sequence< ::rtl::OUString >& _rStringList ) + Any lcl_getMultiSelectedEntries( const Sequence< sal_Int16 >& _rSelectSequence, const Sequence< OUString >& _rStringList ) { - Sequence< ::rtl::OUString > aSelectedEntriesTexts( _rSelectSequence.getLength() ); + Sequence< OUString > aSelectedEntriesTexts( _rSelectSequence.getLength() ); ::std::transform( _rSelectSequence.getConstArray(), _rSelectSequence.getConstArray() + _rSelectSequence.getLength(), @@ -1406,8 +1406,8 @@ namespace frm Sequence< Type > aTypes(4); aTypes[0] = ::getCppuType( static_cast< Sequence< sal_Int32 >* >( NULL ) ); aTypes[1] = ::getCppuType( static_cast< sal_Int32* >( NULL ) ); - aTypes[2] = ::getCppuType( static_cast< Sequence< ::rtl::OUString >* >( NULL ) ); - aTypes[3] = ::getCppuType( static_cast< ::rtl::OUString* >( NULL ) ); + aTypes[2] = ::getCppuType( static_cast< Sequence< OUString >* >( NULL ) ); + aTypes[3] = ::getCppuType( static_cast< OUString* >( NULL ) ); return aTypes; } @@ -1563,7 +1563,7 @@ namespace frm StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_LISTBOX; return aSupported; } @@ -1757,14 +1757,14 @@ namespace frm } //-------------------------------------------------------------------- - void SAL_CALL OListBoxControl::addItem( const ::rtl::OUString& aItem, ::sal_Int16 nPos ) throw (RuntimeException) + void SAL_CALL OListBoxControl::addItem( const OUString& aItem, ::sal_Int16 nPos ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->addItem( aItem, nPos ); } //-------------------------------------------------------------------- - void SAL_CALL OListBoxControl::addItems( const Sequence< ::rtl::OUString >& aItems, ::sal_Int16 nPos ) throw (RuntimeException) + void SAL_CALL OListBoxControl::addItems( const Sequence< OUString >& aItems, ::sal_Int16 nPos ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->addItems( aItems, nPos ); @@ -1786,19 +1786,19 @@ namespace frm } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OListBoxControl::getItem( ::sal_Int16 nPos ) throw (RuntimeException) + OUString SAL_CALL OListBoxControl::getItem( ::sal_Int16 nPos ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getItem( nPos ); - return ::rtl::OUString( ); + return OUString( ); } //-------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL OListBoxControl::getItems( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL OListBoxControl::getItems( ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getItems(); - return Sequence< ::rtl::OUString >( ); + return Sequence< OUString >( ); } //-------------------------------------------------------------------- @@ -1818,19 +1818,19 @@ namespace frm } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OListBoxControl::getSelectedItem( ) throw (RuntimeException) + OUString SAL_CALL OListBoxControl::getSelectedItem( ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getSelectedItem(); - return ::rtl::OUString( ); + return OUString( ); } //-------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL OListBoxControl::getSelectedItems( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL OListBoxControl::getSelectedItems( ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getSelectedItems(); - return Sequence< ::rtl::OUString >( ); + return Sequence< OUString >( ); } //-------------------------------------------------------------------- @@ -1848,7 +1848,7 @@ namespace frm } //-------------------------------------------------------------------- - void SAL_CALL OListBoxControl::selectItem( const ::rtl::OUString& aItem, ::sal_Bool bSelect ) throw (RuntimeException) + void SAL_CALL OListBoxControl::selectItem( const OUString& aItem, ::sal_Bool bSelect ) throw (RuntimeException) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->selectItem( aItem, bSelect ); diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx index 1b2ad6510538..590a9cbd8577 100644 --- a/forms/source/component/ListBox.hxx +++ b/forms/source/component/ListBox.hxx @@ -101,10 +101,10 @@ public: protected: // XMultiPropertySet - virtual void SAL_CALL setPropertyValues(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setPropertyValues(const ::com::sun::star::uno::Sequence< OUString >& PropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL @@ -243,19 +243,19 @@ public: virtual void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addItem( const ::rtl::OUString& aItem, ::sal_Int16 nPos ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, ::sal_Int16 nPos ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addItem( const OUString& aItem, ::sal_Int16 nPos ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< OUString >& aItems, ::sal_Int16 nPos ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL removeItems( ::sal_Int16 nPos, ::sal_Int16 nCount ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int16 SAL_CALL getItemCount( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getItem( ::sal_Int16 nPos ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getItem( ::sal_Int16 nPos ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getItems( ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int16 SAL_CALL getSelectedItemPos( ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::sal_Int16 > SAL_CALL getSelectedItemsPos( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getSelectedItem( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSelectedItems( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getSelectedItem( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSelectedItems( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL selectItemPos( ::sal_Int16 nPos, ::sal_Bool bSelect ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL selectItemsPos( const ::com::sun::star::uno::Sequence< ::sal_Int16 >& aPositions, ::sal_Bool bSelect ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL selectItem( const ::rtl::OUString& aItem, ::sal_Bool bSelect ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL selectItem( const OUString& aItem, ::sal_Bool bSelect ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Bool SAL_CALL isMutipleMode( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMultipleMode( ::sal_Bool bMulti ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int16 SAL_CALL getDropDownLineCount( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx index 387413754611..679991159dfb 100644 --- a/forms/source/component/Numeric.cxx +++ b/forms/source/component/Numeric.cxx @@ -53,7 +53,7 @@ StringSequence ONumericControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_NUMERICFIELD; return aSupported; } @@ -124,7 +124,7 @@ StringSequence ONumericModel::getSupportedServiceNames() throw() sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -150,7 +150,7 @@ void ONumericModel::describeFixedProperties( Sequence< Property >& _rProps ) con } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL ONumericModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL ONumericModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_NUMERICFIELD; // old (non-sun) name for compatibility ! } diff --git a/forms/source/component/Numeric.hxx b/forms/source/component/Numeric.hxx index a8ce05fe2e56..542028ca485f 100644 --- a/forms/source/component/Numeric.hxx +++ b/forms/source/component/Numeric.hxx @@ -46,7 +46,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); // ::com::sun::star::io::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); // OControlModel's property handling virtual void describeFixedProperties( diff --git a/forms/source/component/Pattern.cxx b/forms/source/component/Pattern.cxx index e0da52961d61..8a6af8afb605 100644 --- a/forms/source/component/Pattern.cxx +++ b/forms/source/component/Pattern.cxx @@ -65,7 +65,7 @@ StringSequence OPatternControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_PATTERNFIELD; return aSupported; } @@ -122,7 +122,7 @@ StringSequence SAL_CALL OPatternModel::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 2); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-2] = FRM_SUN_COMPONENT_DATABASE_PATTERNFIELD; pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_PATTERNFIELD; return aSupported; @@ -133,7 +133,7 @@ StringSequence SAL_CALL OPatternModel::getSupportedServiceNames() throw() void OPatternModel::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_PROPERTIES( 4, OEditBaseModel ) - DECL_PROP2(DEFAULT_TEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT); + DECL_PROP2(DEFAULT_TEXT, OUString, BOUND, MAYBEDEFAULT); DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); DECL_PROP2(FILTERPROPOSAL, sal_Bool, BOUND, MAYBEDEFAULT); @@ -141,7 +141,7 @@ void OPatternModel::describeFixedProperties( Sequence< Property >& _rProps ) con } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OPatternModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OPatternModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_PATTERNFIELD; // old (non-sun) name for compatibility ! } @@ -153,7 +153,7 @@ sal_Bool OPatternModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) if ( aNewValue != m_aLastKnownValue ) { - ::rtl::OUString sNewValue; + OUString sNewValue; aNewValue >>= sNewValue; if ( !aNewValue.hasValue() @@ -207,7 +207,7 @@ Any OPatternModel::translateDbColumnToControlValue() if ( m_pFormattedValue.get() ) { - ::rtl::OUString sValue( m_pFormattedValue->getFormattedValue() ); + OUString sValue( m_pFormattedValue->getFormattedValue() ); if ( sValue.isEmpty() && m_pFormattedValue->getColumn().is() && m_pFormattedValue->getColumn()->wasNull() @@ -223,7 +223,7 @@ Any OPatternModel::translateDbColumnToControlValue() else m_aLastKnownValue.clear(); - return m_aLastKnownValue.hasValue() ? m_aLastKnownValue : makeAny( ::rtl::OUString() ); + return m_aLastKnownValue.hasValue() ? m_aLastKnownValue : makeAny( OUString() ); // (m_aLastKnownValue is alllowed to be VOID, the control value isn't) } diff --git a/forms/source/component/Pattern.hxx b/forms/source/component/Pattern.hxx index ca54b4698797..80aac87dfb9a 100644 --- a/forms/source/component/Pattern.hxx +++ b/forms/source/component/Pattern.hxx @@ -53,7 +53,7 @@ public: virtual StringSequence SAL_CALL getSupportedServiceNames() throw(); // ::com::sun::star::io::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); // OControlModel's property handling virtual void describeFixedProperties( diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx index 34466d2cf733..439462adf0f0 100644 --- a/forms/source/component/RadioButton.cxx +++ b/forms/source/component/RadioButton.cxx @@ -57,7 +57,7 @@ StringSequence SAL_CALL ORadioButtonControl::getSupportedServiceNames() throw(Ru StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_RADIOBUTTON; return aSupported; } @@ -78,7 +78,7 @@ void SAL_CALL ORadioButtonControl::createPeer(const Reference<starawt::XToolkit> // (formerly this switch-off was done in the toolkit - but the correct place is here ...) // Reference< XVclWindowPeer > xVclWindowPeer( getPeer(), UNO_QUERY ); // if (xVclWindowPeer.is()) -// xVclWindowPeer->setProperty(::rtl::OUString("AutoToggle"), ::cppu::bool2any(sal_False)); +// xVclWindowPeer->setProperty(OUString("AutoToggle"), ::cppu::bool2any(sal_False)); // new order: do _not_ switch off the auto toggle because: // * today, it is not necessary anymore to handle the toggling ourself (everything works fine without it) // * without auto toggle, the AccessibleEvents as fired by the radio buttons are @@ -136,7 +136,7 @@ StringSequence SAL_CALL ORadioButtonModel::getSupportedServiceNames() throw(Runt sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -153,10 +153,10 @@ StringSequence SAL_CALL ORadioButtonModel::getSupportedServiceNames() throw(Runt } //------------------------------------------------------------------------------ -void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, const Any& rValue) +void ORadioButtonModel::SetSiblingPropsTo(const OUString& rPropName, const Any& rValue) { // my name - ::rtl::OUString sMyGroup; + OUString sMyGroup; if (hasProperty(PROPERTY_GROUP_NAME, this)) this->getPropertyValue(PROPERTY_GROUP_NAME) >>= sMyGroup; if (sMyGroup.isEmpty()) @@ -168,7 +168,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons { Reference<XPropertySet> xMyProps; query_interface(static_cast<XWeak*>(this), xMyProps); - ::rtl::OUString sCurrentGroup; + OUString sCurrentGroup; sal_Int32 nNumSiblings = xIndexAccess->getCount(); for (sal_Int32 i=0; i<nNumSiblings; ++i) { @@ -237,7 +237,7 @@ void ORadioButtonModel::setControlSource() Reference<XIndexAccess> xIndexAccess(getParent(), UNO_QUERY); if (xIndexAccess.is()) { - ::rtl::OUString sName, sGroupName; + OUString sName, sGroupName; if (hasProperty(PROPERTY_GROUP_NAME, this)) this->getPropertyValue(PROPERTY_GROUP_NAME) >>= sGroupName; @@ -261,7 +261,7 @@ void ORadioButtonModel::setControlSource() // Only RadioButtons continue; - ::rtl::OUString sSiblingName, sSiblingGroupName; + OUString sSiblingName, sSiblingGroupName; if (hasProperty(PROPERTY_GROUP_NAME, xSiblingProperties)) xSiblingProperties->getPropertyValue(PROPERTY_GROUP_NAME) >>= sSiblingGroupName; xSiblingProperties->getPropertyValue(PROPERTY_NAME) >>= sSiblingName; @@ -287,7 +287,7 @@ void ORadioButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) } //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL ORadioButtonModel::getServiceName() throw(RuntimeException) +OUString SAL_CALL ORadioButtonModel::getServiceName() throw(RuntimeException) { return FRM_COMPONENT_RADIOBUTTON; // old (non-sun) name for compatibility ! } @@ -319,7 +319,7 @@ void SAL_CALL ORadioButtonModel::read(const Reference<XObjectInputStream>& _rxIn // Version sal_uInt16 nVersion = _rxInStream->readShort(); - ::rtl::OUString sReferenceValue; + OUString sReferenceValue; sal_Int16 nDefaultChecked( 0 ); switch (nVersion) { diff --git a/forms/source/component/RadioButton.hxx b/forms/source/component/RadioButton.hxx index 8da67de8330d..94e50eb11404 100644 --- a/forms/source/component/RadioButton.hxx +++ b/forms/source/component/RadioButton.hxx @@ -43,7 +43,7 @@ public: throw (::com::sun::star::uno::Exception); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL @@ -66,7 +66,7 @@ protected: translateExternalValueToControlValue( const ::com::sun::star::uno::Any& _rExternalValue ) const; protected: - void SetSiblingPropsTo(const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rValue); + void SetSiblingPropsTo(const OUString& rPropName, const ::com::sun::star::uno::Any& rValue); DECLARE_XCLONEABLE( ); diff --git a/forms/source/component/Time.cxx b/forms/source/component/Time.cxx index 346f09695089..7b7b56c2821c 100644 --- a/forms/source/component/Time.cxx +++ b/forms/source/component/Time.cxx @@ -75,7 +75,7 @@ StringSequence SAL_CALL OTimeControl::getSupportedServiceNames() throw() StringSequence aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 1); - ::rtl::OUString*pArray = aSupported.getArray(); + OUString*pArray = aSupported.getArray(); pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_TIMEFIELD; return aSupported; } @@ -97,7 +97,7 @@ StringSequence SAL_CALL OTimeModel::getSupportedServiceNames() throw() sal_Int32 nOldLen = aSupported.getLength(); aSupported.realloc( nOldLen + 8 ); - ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; + OUString* pStoreTo = aSupported.getArray() + nOldLen; *pStoreTo++ = BINDABLE_CONTROL_MODEL; *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; @@ -157,7 +157,7 @@ OTimeModel::~OTimeModel( ) IMPLEMENT_DEFAULT_CLONING( OTimeModel ) //------------------------------------------------------------------------------ -::rtl::OUString SAL_CALL OTimeModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) +OUString SAL_CALL OTimeModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) { return FRM_COMPONENT_TIMEFIELD; // old (non-sun) name for compatibility ! } diff --git a/forms/source/component/Time.hxx b/forms/source/component/Time.hxx index d0ee89a8cbcd..b36c3c612087 100644 --- a/forms/source/component/Time.hxx +++ b/forms/source/component/Time.hxx @@ -46,7 +46,7 @@ public: DECLARE_DEFAULT_LEAF_XTOR( OTimeModel ); // stario::XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); // ::com::sun::star::beans::XPropertySet virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const; diff --git a/forms/source/component/cachedrowset.cxx b/forms/source/component/cachedrowset.cxx index ce410092155f..4a2792bdf121 100644 --- a/forms/source/component/cachedrowset.cxx +++ b/forms/source/component/cachedrowset.cxx @@ -59,7 +59,7 @@ namespace frm struct CachedRowSet_Data { ::comphelper::ComponentContext aContext; - ::rtl::OUString sCommand; + OUString sCommand; sal_Bool bEscapeProcessing; Reference< XConnection > xConnection; @@ -91,7 +91,7 @@ namespace frm } //-------------------------------------------------------------------- - void CachedRowSet::setCommand( const ::rtl::OUString& _rCommand ) + void CachedRowSet::setCommand( const OUString& _rCommand ) { if ( m_pData->sCommand == _rCommand ) return; @@ -101,7 +101,7 @@ namespace frm } //-------------------------------------------------------------------- - void CachedRowSet::setCommandFromQuery( const ::rtl::OUString& _rQueryName ) + void CachedRowSet::setCommandFromQuery( const OUString& _rQueryName ) { Reference< XQueriesSupplier > xSupplyQueries( m_pData->xConnection, UNO_QUERY_THROW ); Reference< XNameAccess > xQueries ( xSupplyQueries->getQueries(), UNO_QUERY_THROW ); @@ -111,7 +111,7 @@ namespace frm OSL_VERIFY( xQuery->getPropertyValue( PROPERTY_ESCAPE_PROCESSING ) >>= bEscapeProcessing ); setEscapeProcessing( bEscapeProcessing ); - ::rtl::OUString sCommand; + OUString sCommand; OSL_VERIFY( xQuery->getPropertyValue( PROPERTY_COMMAND ) >>= sCommand ); setCommand( sCommand ); } diff --git a/forms/source/component/cachedrowset.hxx b/forms/source/component/cachedrowset.hxx index 15443e547cd8..7b7ece865b83 100644 --- a/forms/source/component/cachedrowset.hxx +++ b/forms/source/component/cachedrowset.hxx @@ -70,9 +70,9 @@ namespace frm @throws Exception */ - void setCommandFromQuery ( const ::rtl::OUString& _rQueryName ); + void setCommandFromQuery ( const OUString& _rQueryName ); - void setCommand ( const ::rtl::OUString& _rCommand ); + void setCommand ( const OUString& _rCommand ); void setEscapeProcessing ( const sal_Bool _bEscapeProcessing ); void setConnection ( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection ); diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx index 97b06d6b9309..93ef01e01053 100644 --- a/forms/source/component/clickableimage.cxx +++ b/forms/source/component/clickableimage.cxx @@ -77,7 +77,7 @@ namespace frm } //------------------------------------------------------------------------------ - OClickableImageBaseControl::OClickableImageBaseControl(const Reference<XMultiServiceFactory>& _rxFactory, const ::rtl::OUString& _aService) + OClickableImageBaseControl::OClickableImageBaseControl(const Reference<XMultiServiceFactory>& _rxFactory, const OUString& _aService) :OControl(_rxFactory, _aService) ,m_pThread(NULL) ,m_aSubmissionVetoListeners( m_aMutex ) @@ -296,7 +296,7 @@ namespace frm { m_pFeatureInterception->getTransformer().parseSmartWithAsciiProtocol( aURL, INET_FILE_SCHEME ); - ::rtl::OUString aTargetFrame; + OUString aTargetFrame; xSet->getPropertyValue(PROPERTY_TARGET_FRAME) >>= aTargetFrame; Reference< XDispatch > xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY)->queryDispatch( aURL, aTargetFrame, @@ -305,7 +305,7 @@ namespace frm Sequence<PropertyValue> aArgs(1); PropertyValue& rProp = aArgs.getArray()[0]; - rProp.Name = ::rtl::OUString("Referer"); + rProp.Name = OUString("Referer"); rProp.Value <<= xModel->getURL(); if (xDisp.is()) @@ -315,18 +315,18 @@ namespace frm { URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURLFromAscii( ".uno:OpenHyperlink" ); - Reference< XDispatch > xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY)->queryDispatch(aHyperLink, ::rtl::OUString() , 0); + Reference< XDispatch > xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY)->queryDispatch(aHyperLink, OUString() , 0); if ( xDisp.is() ) { Sequence<PropertyValue> aProps(3); - aProps[0].Name = ::rtl::OUString("URL"); + aProps[0].Name = OUString("URL"); aProps[0].Value <<= aURL.Complete; - aProps[1].Name = ::rtl::OUString("FrameName"); + aProps[1].Name = OUString("FrameName"); aProps[1].Value = xSet->getPropertyValue(PROPERTY_TARGET_FRAME); - aProps[2].Name = ::rtl::OUString("Referer"); + aProps[2].Name = OUString("Referer"); aProps[2].Value <<= xModel->getURL(); xDisp->dispatch( aHyperLink, aProps ); @@ -368,12 +368,12 @@ namespace frm } //-------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL OClickableImageBaseControl::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL OClickableImageBaseControl::getSupportedServiceNames( ) throw (RuntimeException) { - Sequence< ::rtl::OUString > aSupported = OControl::getSupportedServiceNames(); + Sequence< OUString > aSupported = OControl::getSupportedServiceNames(); aSupported.realloc( aSupported.getLength() + 1 ); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[ aSupported.getLength() - 1 ] = FRM_SUN_CONTROL_SUBMITBUTTON; return aSupported; @@ -429,7 +429,7 @@ namespace frm catch( const Exception& e ) { OSL_FAIL( "OClickableImageBaseControl::implSubmit: caught an unknown exception!" ); - throw WrappedTargetException( ::rtl::OUString(), *this, makeAny( e ) ); + throw WrappedTargetException( OUString(), *this, makeAny( e ) ); } } @@ -448,8 +448,8 @@ namespace frm //------------------------------------------------------------------ DBG_NAME( OClickableImageBaseModel ) //------------------------------------------------------------------ - OClickableImageBaseModel::OClickableImageBaseModel( const Reference< XMultiServiceFactory >& _rxFactory, const ::rtl::OUString& _rUnoControlModelTypeName, - const ::rtl::OUString& rDefault ) + OClickableImageBaseModel::OClickableImageBaseModel( const Reference< XMultiServiceFactory >& _rxFactory, const OUString& _rUnoControlModelTypeName, + const OUString& rDefault ) :OControlModel( _rxFactory, _rUnoControlModelTypeName, rDefault ) ,OPropertyChangeListener(m_aMutex) ,m_pMedium(NULL) @@ -562,12 +562,12 @@ namespace frm } //-------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL OClickableImageBaseModel::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL OClickableImageBaseModel::getSupportedServiceNames( ) throw (RuntimeException) { - Sequence< ::rtl::OUString > aSupported = OControlModel::getSupportedServiceNames(); + Sequence< OUString > aSupported = OControlModel::getSupportedServiceNames(); aSupported.realloc( aSupported.getLength() + 1 ); - ::rtl::OUString* pArray = aSupported.getArray(); + OUString* pArray = aSupported.getArray(); pArray[ aSupported.getLength() - 1 ] = FRM_SUN_COMPONENT_SUBMITBUTTON; return aSupported; @@ -678,8 +678,8 @@ namespace frm { ImageProducer *pImgProd = GetImageProducer(); // grab the ImageURL - rtl::OUString sURL; - getPropertyValue( rtl::OUString("ImageURL") ) >>= sURL; + OUString sURL; + getPropertyValue( OUString("ImageURL") ) >>= sURL; if (!m_pMedium) { if ( ::svt::GraphicAccess::isSupportedURL( sURL ) ) @@ -708,7 +708,7 @@ namespace frm } //------------------------------------------------------------------------------ - void OClickableImageBaseModel::SetURL( const ::rtl::OUString& rURL ) + void OClickableImageBaseModel::SetURL( const OUString& rURL ) { if (m_pMedium || rURL.isEmpty()) { @@ -853,7 +853,7 @@ namespace frm { case PROPERTY_ID_BUTTONTYPE : return makeAny( FormButtonType_PUSH ); case PROPERTY_ID_TARGET_URL : - case PROPERTY_ID_TARGET_FRAME : return makeAny( ::rtl::OUString() ); + case PROPERTY_ID_TARGET_FRAME : return makeAny( OUString() ); case PROPERTY_ID_DISPATCHURLINTERNAL : return makeAny( sal_False ); default: return OControlModel::getPropertyDefaultByHandle(nHandle); diff --git a/forms/source/component/clickableimage.hxx b/forms/source/component/clickableimage.hxx index 45e51157a275..4ce20fcd0349 100644 --- a/forms/source/component/clickableimage.hxx +++ b/forms/source/component/clickableimage.hxx @@ -59,8 +59,8 @@ namespace frm { protected: ::com::sun::star::form::FormButtonType m_eButtonType; // Art des Buttons (push,submit,reset) - ::rtl::OUString m_sTargetURL; // URL fuer den URL-Button - ::rtl::OUString m_sTargetFrame; // TargetFrame zum Oeffnen + OUString m_sTargetURL; // URL fuer den URL-Button + OUString m_sTargetFrame; // TargetFrame zum Oeffnen // ImageProducer stuff ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageProducer> m_xProducer; @@ -79,7 +79,7 @@ namespace frm inline ImageProducer* GetImageProducer() { return m_pProducer; } void StartProduction(); - void SetURL(const ::rtl::OUString& rURL); + void SetURL(const OUString& rURL); void DataAvailable(); void DownloadDone(); @@ -126,7 +126,7 @@ namespace frm virtual void SAL_CALL setSubmission( const ::com::sun::star::uno::Reference< ::com::sun::star::form::submission::XSubmission >& _submission ) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // XEventListener using OControlModel::disposing; @@ -159,7 +159,7 @@ namespace frm { if ( NULL == _rModel.getImageProducer( OClickableImageBaseModel::GuardAccess() ) ) throw ::com::sun::star::lang::DisposedException( - ::rtl::OUString(), + OUString(), static_cast< ::com::sun::star::form::XImageProducerSupplier* >( &_rModel ) ); } @@ -187,7 +187,7 @@ namespace frm protected: ::cppu::OInterfaceContainerHelper m_aApproveActionListeners; ::cppu::OInterfaceContainerHelper m_aActionListeners; - ::rtl::OUString m_aActionCommand; + OUString m_aActionCommand; // XSubmission virtual void SAL_CALL submit( ) throw (::com::sun::star::util::VetoException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); @@ -196,7 +196,7 @@ namespace frm virtual void SAL_CALL removeSubmissionVetoListener( const ::com::sun::star::uno::Reference< ::com::sun::star::form::submission::XSubmissionVetoListener >& listener ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // XEventListener using OControl::disposing; @@ -204,7 +204,7 @@ namespace frm public: OClickableImageBaseControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory, - const ::rtl::OUString& _aService); + const OUString& _aService); virtual ~OClickableImageBaseControl(); protected: diff --git a/forms/source/component/entrylisthelper.cxx b/forms/source/component/entrylisthelper.cxx index cf4a51750b4e..07df31f2e87a 100644 --- a/forms/source/component/entrylisthelper.cxx +++ b/forms/source/component/entrylisthelper.cxx @@ -117,12 +117,12 @@ namespace frm ) { // the entries *before* the insertion pos - Sequence< ::rtl::OUString > aKeepEntries( + Sequence< OUString > aKeepEntries( m_aStringItems.getConstArray(), _rEvent.Position ); // the entries *behind* the insertion pos - Sequence< ::rtl::OUString > aMovedEntries( + Sequence< OUString > aMovedEntries( m_aStringItems.getConstArray() + _rEvent.Position, m_aStringItems.getLength() - _rEvent.Position ); diff --git a/forms/source/component/entrylisthelper.hxx b/forms/source/component/entrylisthelper.hxx index 929b5a5cd1e5..72a159f0330a 100644 --- a/forms/source/component/entrylisthelper.hxx +++ b/forms/source/component/entrylisthelper.hxx @@ -51,7 +51,7 @@ namespace frm ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource > m_xListSource; /// our external list source - ::com::sun::star::uno::Sequence< ::rtl::OUString > + ::com::sun::star::uno::Sequence< OUString > m_aStringItems; /// "overridden" StringItemList property value ::cppu::OInterfaceContainerHelper m_aRefreshListeners; @@ -63,7 +63,7 @@ namespace frm virtual ~OEntryListHelper( ); /// returns the current string item list - inline const ::com::sun::star::uno::Sequence< ::rtl::OUString >& + inline const ::com::sun::star::uno::Sequence< OUString >& getStringItemList() const { return m_aStringItems; } inline const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource >& getExternalListEntrySource() const { return m_xListSource; } diff --git a/forms/source/component/errorbroadcaster.cxx b/forms/source/component/errorbroadcaster.cxx index a94efd6bc350..3fae840e2fa0 100644 --- a/forms/source/component/errorbroadcaster.cxx +++ b/forms/source/component/errorbroadcaster.cxx @@ -62,7 +62,7 @@ namespace frm } //------------------------------------------------------------------------------ - void SAL_CALL OErrorBroadcaster::onError( const SQLException& _rException, const ::rtl::OUString& _rContextDescription ) + void SAL_CALL OErrorBroadcaster::onError( const SQLException& _rException, const OUString& _rContextDescription ) { Any aError; if ( !_rContextDescription.isEmpty() ) diff --git a/forms/source/component/errorbroadcaster.hxx b/forms/source/component/errorbroadcaster.hxx index bf9fe4193484..398d86be3593 100644 --- a/forms/source/component/errorbroadcaster.hxx +++ b/forms/source/component/errorbroadcaster.hxx @@ -49,7 +49,7 @@ namespace frm void SAL_CALL disposing(); - void SAL_CALL onError( const ::com::sun::star::sdbc::SQLException& _rException, const ::rtl::OUString& _rContextDescription ); + void SAL_CALL onError( const ::com::sun::star::sdbc::SQLException& _rException, const OUString& _rContextDescription ); void SAL_CALL onError( const ::com::sun::star::sdb::SQLErrorEvent& _rException ); protected: diff --git a/forms/source/component/findpos.cxx b/forms/source/component/findpos.cxx index ac496760809a..08c15dc1be7a 100644 --- a/forms/source/component/findpos.cxx +++ b/forms/source/component/findpos.cxx @@ -32,11 +32,11 @@ namespace detail { sal_Int32 findPos( - const ::rtl::OUString& aStr, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rList) + const OUString& aStr, + const ::com::sun::star::uno::Sequence< OUString >& rList) { - const ::rtl::OUString* pStrList = rList.getConstArray(); - const ::rtl::OUString* pResult = ::std::lower_bound( + const OUString* pStrList = rList.getConstArray(); + const OUString* pResult = ::std::lower_bound( pStrList, pStrList + rList.getLength(), aStr ); if ( ( pResult != pStrList + rList.getLength() ) && ( *pResult == aStr ) ) return ( pResult - pStrList ); diff --git a/forms/source/component/findpos.hxx b/forms/source/component/findpos.hxx index 1f1057b55ec3..a179e0792b17 100644 --- a/forms/source/component/findpos.hxx +++ b/forms/source/component/findpos.hxx @@ -29,8 +29,8 @@ namespace rtl { class OUString; } namespace detail { sal_Int32 findPos( - const ::rtl::OUString& aStr, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rList); + const OUString& aStr, + const ::com::sun::star::uno::Sequence< OUString >& rList); } diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx index 963d70800b18..cd351e5b88a2 100644 --- a/forms/source/component/formcontrolfont.cxx +++ b/forms/source/component/formcontrolfont.cxx @@ -207,8 +207,8 @@ namespace frm DECL_PROP1 ( FONT_PITCH, sal_Int16, MAYBEDEFAULT ); DECL_PROP1 ( FONT_TYPE, sal_Int16, MAYBEDEFAULT ); DECL_PROP1 ( FONT_WIDTH, sal_Int16, MAYBEDEFAULT ); - DECL_PROP1 ( FONT_NAME, ::rtl::OUString, MAYBEDEFAULT ); - DECL_PROP1 ( FONT_STYLENAME, ::rtl::OUString, MAYBEDEFAULT ); + DECL_PROP1 ( FONT_NAME, OUString, MAYBEDEFAULT ); + DECL_PROP1 ( FONT_STYLENAME, OUString, MAYBEDEFAULT ); DECL_PROP1 ( FONT_FAMILY, sal_Int16, MAYBEDEFAULT ); DECL_PROP1 ( FONT_CHARSET, sal_Int16, MAYBEDEFAULT ); DECL_PROP1 ( FONT_HEIGHT, float, MAYBEDEFAULT ); @@ -499,7 +499,7 @@ namespace frm case PROPERTY_ID_FONT_NAME: case PROPERTY_ID_FONT_STYLENAME: - aReturn <<= ::rtl::OUString(); + aReturn <<= OUString(); case PROPERTY_ID_FONT_FAMILY: case PROPERTY_ID_FONT_CHARSET: diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index add795d7a94f..f2d7273585a0 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -226,7 +226,7 @@ void ImageProducer::removeConsumer( const ::com::sun::star::uno::Reference< ::co // ------------------------------------------------------------ -void ImageProducer::SetImage( const ::rtl::OUString& rPath ) +void ImageProducer::SetImage( const OUString& rPath ) { maURL = rPath; mpGraphic->Clear(); @@ -250,7 +250,7 @@ void ImageProducer::SetImage( const ::rtl::OUString& rPath ) void ImageProducer::SetImage( SvStream& rStm ) { - maURL = ::rtl::OUString(); + maURL = OUString(); mpGraphic->Clear(); mbConsInit = sal_False; @@ -262,7 +262,7 @@ void ImageProducer::SetImage( SvStream& rStm ) void ImageProducer::setImage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > & rInputStmRef ) { - maURL = ::rtl::OUString(); + maURL = OUString(); mpGraphic->Clear(); mbConsInit = sal_False; delete mpStm; @@ -548,7 +548,7 @@ void ImageProducer::initialize( const ::com::sun::star::uno::Sequence< ::com::su if ( aArguments.getLength() == 1 ) { ::com::sun::star::uno::Any aArg = aArguments.getConstArray()[0]; - rtl::OUString aURL; + OUString aURL; if ( aArg >>= aURL ) { SetImage( aURL ); diff --git a/forms/source/component/imgprod.hxx b/forms/source/component/imgprod.hxx index b6a33ec883e9..3bcbc3222632 100644 --- a/forms/source/component/imgprod.hxx +++ b/forms/source/component/imgprod.hxx @@ -52,7 +52,7 @@ private: typedef boost::ptr_vector< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > > ConsumerList_t; - ::rtl::OUString maURL; + OUString maURL; ConsumerList_t maConsList; Graphic* mpGraphic; SvStream* mpStm; @@ -70,7 +70,7 @@ public: ImageProducer(); ~ImageProducer(); - void SetImage( const ::rtl::OUString& rPath ); + void SetImage( const OUString& rPath ); void SetImage( SvStream& rStm ); void NewDataAvailable(); diff --git a/forms/source/component/navigationbar.cxx b/forms/source/component/navigationbar.cxx index f2f133688fa7..3d15e1326e3f 100644 --- a/forms/source/component/navigationbar.cxx +++ b/forms/source/component/navigationbar.cxx @@ -58,7 +58,7 @@ namespace frm DBG_NAME( ONavigationBarModel ) //------------------------------------------------------------------ ONavigationBarModel::ONavigationBarModel( const Reference< XMultiServiceFactory >& _rxFactory ) - :OControlModel( _rxFactory, ::rtl::OUString() ) + :OControlModel( _rxFactory, OUString() ) ,FontControlModel( true ) { DBG_CTOR( ONavigationBarModel, NULL ); @@ -159,31 +159,31 @@ namespace frm IMPLEMENT_DEFAULT_CLONING( ONavigationBarModel ) //------------------------------------------------------------------ - ::rtl::OUString SAL_CALL ONavigationBarModel::getImplementationName() throw(RuntimeException) + OUString SAL_CALL ONavigationBarModel::getImplementationName() throw(RuntimeException) { return getImplementationName_Static(); } //------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL ONavigationBarModel::getSupportedServiceNames() throw(RuntimeException) + Sequence< OUString > SAL_CALL ONavigationBarModel::getSupportedServiceNames() throw(RuntimeException) { return getSupportedServiceNames_Static(); } //------------------------------------------------------------------ - ::rtl::OUString SAL_CALL ONavigationBarModel::getImplementationName_Static() + OUString SAL_CALL ONavigationBarModel::getImplementationName_Static() { - return ::rtl::OUString( "com.sun.star.comp.form.ONavigationBarModel" ); + return OUString( "com.sun.star.comp.form.ONavigationBarModel" ); } //------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL ONavigationBarModel::getSupportedServiceNames_Static() + Sequence< OUString > SAL_CALL ONavigationBarModel::getSupportedServiceNames_Static() { - Sequence< ::rtl::OUString > aSupported = OControlModel::getSupportedServiceNames_Static(); + Sequence< OUString > aSupported = OControlModel::getSupportedServiceNames_Static(); aSupported.realloc( aSupported.getLength() + 2 ); - ::rtl::OUString* pArray = aSupported.getArray(); - pArray[ aSupported.getLength() - 2 ] = ::rtl::OUString( "com.sun.star.awt.UnoControlModel" ); + OUString* pArray = aSupported.getArray(); + pArray[ aSupported.getLength() - 2 ] = OUString( "com.sun.star.awt.UnoControlModel" ); pArray[ aSupported.getLength() - 1 ] = FRM_SUN_COMPONENT_NAVTOOLBAR; return aSupported; } @@ -201,7 +201,7 @@ namespace frm } //------------------------------------------------------------------ - ::rtl::OUString SAL_CALL ONavigationBarModel::getServiceName() throw ( RuntimeException ) + OUString SAL_CALL ONavigationBarModel::getServiceName() throw ( RuntimeException ) { return FRM_SUN_COMPONENT_NAVTOOLBAR; } @@ -447,12 +447,12 @@ namespace frm break; case PROPERTY_ID_DEFAULTCONTROL: - aDefault <<= ::rtl::OUString( "com.sun.star.form.control.NavigationToolBar" ); + aDefault <<= OUString( "com.sun.star.form.control.NavigationToolBar" ); break; case PROPERTY_ID_HELPTEXT: case PROPERTY_ID_HELPURL: - aDefault <<= ::rtl::OUString(); + aDefault <<= OUString(); break; case PROPERTY_ID_BORDER: diff --git a/forms/source/component/navigationbar.hxx b/forms/source/component/navigationbar.hxx index 46ddba0b586d..7a7278f89b18 100644 --- a/forms/source/component/navigationbar.hxx +++ b/forms/source/component/navigationbar.hxx @@ -52,9 +52,9 @@ namespace frm // <properties> ::com::sun::star::uno::Any m_aTabStop; ::com::sun::star::uno::Any m_aBackgroundColor; - ::rtl::OUString m_sDefaultControl; - ::rtl::OUString m_sHelpText; - ::rtl::OUString m_sHelpURL; + OUString m_sDefaultControl; + OUString m_sHelpText; + OUString m_sHelpURL; sal_Int16 m_nIconSize; sal_Int16 m_nBorder; sal_Int32 m_nDelay; @@ -72,8 +72,8 @@ namespace frm DECLARE_DEFAULT_LEAF_XTOR( ONavigationBarModel ); // XServiceInfo - static version - static ::rtl::OUString SAL_CALL getImplementationName_Static(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static(); + static OUString SAL_CALL getImplementationName_Static(); + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static(); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory ); protected: @@ -82,8 +82,8 @@ namespace frm virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); // XTypeProvider DECLARE_XTYPEPROVIDER() @@ -92,7 +92,7 @@ namespace frm virtual void SAL_CALL disposing(); // XPersistObject - virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); diff --git a/forms/source/component/propertybaghelper.cxx b/forms/source/component/propertybaghelper.cxx index 0806249447dd..fb4c0d99cc8d 100644 --- a/forms/source/component/propertybaghelper.cxx +++ b/forms/source/component/propertybaghelper.cxx @@ -108,7 +108,7 @@ namespace frm } //-------------------------------------------------------------------- - sal_Int32 PropertyBagHelper::impl_findFreeHandle( const ::rtl::OUString& _rPropertyName ) + sal_Int32 PropertyBagHelper::impl_findFreeHandle( const OUString& _rPropertyName ) { ::comphelper::OPropertyArrayAggregationHelper& rPropInfo( impl_ts_getArrayHelper() ); @@ -181,7 +181,7 @@ namespace frm } //-------------------------------------------------------------------- - void PropertyBagHelper::addProperty( const ::rtl::OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) + void PropertyBagHelper::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) { ::osl::MutexGuard aGuard( m_rContext.getMutex() ); impl_nts_checkDisposed_throw(); @@ -208,7 +208,7 @@ namespace frm } //-------------------------------------------------------------------- - void PropertyBagHelper::removeProperty( const ::rtl::OUString& _rName ) + void PropertyBagHelper::removeProperty( const OUString& _rName ) { ::osl::MutexGuard aGuard( m_rContext.getMutex() ); impl_nts_checkDisposed_throw(); @@ -228,15 +228,15 @@ namespace frm namespace { //---------------------------------------------------------------- - struct SelectNameOfProperty : public ::std::unary_function< Property, ::rtl::OUString > + struct SelectNameOfProperty : public ::std::unary_function< Property, OUString > { - const ::rtl::OUString& operator()( const Property& _rProp ) const { return _rProp.Name; } + const OUString& operator()( const Property& _rProp ) const { return _rProp.Name; } }; //---------------------------------------------------------------- - struct SelectNameOfPropertyValue : public ::std::unary_function< PropertyValue, ::rtl::OUString > + struct SelectNameOfPropertyValue : public ::std::unary_function< PropertyValue, OUString > { - const ::rtl::OUString& operator()( const PropertyValue& _rProp ) const { return _rProp.Name; } + const OUString& operator()( const PropertyValue& _rProp ) const { return _rProp.Name; } }; //---------------------------------------------------------------- @@ -265,7 +265,7 @@ namespace frm Reference< XPropertySetInfo > xPSI( xMe->getPropertySetInfo(), UNO_QUERY_THROW ); Sequence< Property > aProperties( xPSI->getProperties() ); - Sequence< ::rtl::OUString > aPropertyNames( aProperties.getLength() ); + Sequence< OUString > aPropertyNames( aProperties.getLength() ); ::std::transform( aProperties.getConstArray(), aProperties.getConstArray() + aProperties.getLength(), aPropertyNames.getArray(), SelectNameOfProperty() ); @@ -285,8 +285,8 @@ namespace frm Sequence< PropertyValue > aPropertyValues( aValues.getLength() ); PropertyValue* pPropertyValue = aPropertyValues.getArray(); - const ::rtl::OUString* pName = aPropertyNames.getConstArray(); - const ::rtl::OUString* pNameEnd = aPropertyNames.getConstArray() + aPropertyNames.getLength(); + const OUString* pName = aPropertyNames.getConstArray(); + const OUString* pNameEnd = aPropertyNames.getConstArray() + aPropertyNames.getLength(); const Any* pValue = aValues.getConstArray(); for ( ; pName != pNameEnd; ++pName, ++pValue, ++pPropertyValue ) { @@ -325,7 +325,7 @@ namespace frm // Now finally split into a Name and a Value sequence, and forward to // XMultiPropertySet::setPropertyValues - Sequence< ::rtl::OUString > aNames( nPropertyValues ); + Sequence< OUString > aNames( nPropertyValues ); ::std::transform( aSortedProps.getConstArray(), aSortedProps.getConstArray() + nPropertyValues, aNames.getArray(), SelectNameOfPropertyValue() ); diff --git a/forms/source/component/refvaluecomponent.cxx b/forms/source/component/refvaluecomponent.cxx index 4676cc28df77..f8825a556c2d 100644 --- a/forms/source/component/refvaluecomponent.cxx +++ b/forms/source/component/refvaluecomponent.cxx @@ -37,7 +37,7 @@ namespace frm //= //==================================================================== //-------------------------------------------------------------------- - OReferenceValueComponent::OReferenceValueComponent( const Reference< XMultiServiceFactory>& _rxFactory, const ::rtl::OUString& _rUnoControlModelTypeName, const ::rtl::OUString& _rDefault, sal_Bool _bSupportNoCheckRefValue ) + OReferenceValueComponent::OReferenceValueComponent( const Reference< XMultiServiceFactory>& _rxFactory, const OUString& _rUnoControlModelTypeName, const OUString& _rDefault, sal_Bool _bSupportNoCheckRefValue ) :OBoundControlModel( _rxFactory, _rUnoControlModelTypeName, _rDefault, sal_False, sal_True, sal_True ) ,m_eDefaultChecked( STATE_NOCHECK ) ,m_bSupportSecondRefValue( _bSupportNoCheckRefValue ) @@ -62,7 +62,7 @@ namespace frm } //-------------------------------------------------------------------- - void OReferenceValueComponent::setReferenceValue( const ::rtl::OUString& _rRefValue ) + void OReferenceValueComponent::setReferenceValue( const OUString& _rRefValue ) { m_sReferenceValue = _rRefValue; calculateExternalValueType(); @@ -151,11 +151,11 @@ namespace frm void OReferenceValueComponent::describeFixedProperties( Sequence< Property >& _rProps ) const { BEGIN_DESCRIBE_PROPERTIES( m_bSupportSecondRefValue ? 3 : 2, OBoundControlModel ) - DECL_PROP1( REFVALUE, ::rtl::OUString, BOUND ); + DECL_PROP1( REFVALUE, OUString, BOUND ); DECL_PROP1( DEFAULT_STATE, sal_Int16, BOUND ); if ( m_bSupportSecondRefValue ) { - DECL_PROP1( UNCHECKED_REFVALUE, ::rtl::OUString, BOUND ); + DECL_PROP1( UNCHECKED_REFVALUE, OUString, BOUND ); } END_DESCRIBE_PROPERTIES(); } @@ -167,7 +167,7 @@ namespace frm aTypes.push_back( ::getCppuType( static_cast< sal_Bool* >( NULL ) ) ); if ( !m_sReferenceValue.isEmpty() ) - aTypes.push_front( ::getCppuType( static_cast< ::rtl::OUString* >( NULL ) ) ); + aTypes.push_front( ::getCppuType( static_cast< OUString* >( NULL ) ) ); // push_front, because this is the preferred type Sequence< Type > aTypesRet( aTypes.size() ); @@ -181,7 +181,7 @@ namespace frm sal_Int16 nState = STATE_DONTKNOW; sal_Bool bExternalState = sal_False; - ::rtl::OUString sExternalValue; + OUString sExternalValue; if ( _rExternalValue >>= bExternalState ) { nState = ::sal::static_int_cast< sal_Int16 >( bExternalState ? STATE_CHECK : STATE_NOCHECK ); @@ -246,7 +246,7 @@ namespace frm } else if ( bStringExchange ) { - aExternalValue <<= (m_bSupportSecondRefValue ? m_sNoCheckReferenceValue : ::rtl::OUString()); + aExternalValue <<= (m_bSupportSecondRefValue ? m_sNoCheckReferenceValue : OUString()); } break; } diff --git a/forms/source/component/refvaluecomponent.hxx b/forms/source/component/refvaluecomponent.hxx index c0a10ea857d8..80c389004278 100644 --- a/forms/source/component/refvaluecomponent.hxx +++ b/forms/source/component/refvaluecomponent.hxx @@ -37,18 +37,18 @@ namespace frm { private: // <properties> - ::rtl::OUString m_sReferenceValue; // the reference value to use for data exchange - ::rtl::OUString m_sNoCheckReferenceValue; // the reference value to be exchanged when the control is not checked + OUString m_sReferenceValue; // the reference value to use for data exchange + OUString m_sNoCheckReferenceValue; // the reference value to be exchanged when the control is not checked ToggleState m_eDefaultChecked; // the default check state // </properties> sal_Bool m_bSupportSecondRefValue; // do we support the SecondaryRefValue property? protected: - const ::rtl::OUString& getReferenceValue() const { return m_sReferenceValue; } - void setReferenceValue( const ::rtl::OUString& _rRefValue ); + const OUString& getReferenceValue() const { return m_sReferenceValue; } + void setReferenceValue( const OUString& _rRefValue ); - const ::rtl::OUString& getNoCheckReferenceValue() const { return m_sNoCheckReferenceValue; } + const OUString& getNoCheckReferenceValue() const { return m_sNoCheckReferenceValue; } ToggleState getDefaultChecked() const { return m_eDefaultChecked; } void setDefaultChecked( ToggleState _eChecked ) { m_eDefaultChecked = _eChecked; } @@ -56,8 +56,8 @@ namespace frm protected: OReferenceValueComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory, - const ::rtl::OUString& _rUnoControlModelTypeName, - const ::rtl::OUString& _rDefault, + const OUString& _rUnoControlModelTypeName, + const OUString& _rDefault, sal_Bool _bSupportNoCheckRefValue = sal_False ); DECLARE_DEFAULT_CLONE_CTOR( OReferenceValueComponent ) diff --git a/forms/source/component/scrollbar.cxx b/forms/source/component/scrollbar.cxx index dd8a6673af9d..26035bddedfe 100644 --- a/forms/source/component/scrollbar.cxx +++ b/forms/source/component/scrollbar.cxx @@ -48,7 +48,7 @@ namespace frm //-------------------------------------------------------------------- Any translateExternalDoubleToControlIntValue( const Any& _rExternalValue, const Reference< XPropertySet >& _rxProperties, - const ::rtl::OUString& _rMinValueName, const ::rtl::OUString& _rMaxValueName ) + const OUString& _rMinValueName, const OUString& _rMaxValueName ) { OSL_ENSURE( _rxProperties.is(), "translateExternalDoubleToControlIntValue: no aggregate!?" ); @@ -59,7 +59,7 @@ namespace frm if ( ::rtl::math::isInf( nExternalValue ) ) { // set the minimum or maximum of the scroll values - ::rtl::OUString sLimitPropertyName = ::rtl::math::isSignBitSet( nExternalValue ) + OUString sLimitPropertyName = ::rtl::math::isSignBitSet( nExternalValue ) ? _rMinValueName : _rMaxValueName; if ( _rxProperties.is() ) _rxProperties->getPropertyValue( sLimitPropertyName ) >>= nControlValue; @@ -146,7 +146,7 @@ namespace frm BEGIN_DESCRIBE_PROPERTIES( 3, OControlModel ) DECL_PROP1( DEFAULT_SCROLL_VALUE, sal_Int32, BOUND ); DECL_PROP1( TABINDEX, sal_Int16, BOUND ); - DECL_PROP2( CONTROLSOURCEPROPERTY,::rtl::OUString, READONLY, TRANSIENT ); + DECL_PROP2( CONTROLSOURCEPROPERTY,OUString, READONLY, TRANSIENT ); END_DESCRIBE_PROPERTIES(); } @@ -238,7 +238,7 @@ namespace frm } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OScrollBarModel::getServiceName() throw( RuntimeException ) + OUString SAL_CALL OScrollBarModel::getServiceName() throw( RuntimeException ) { return FRM_SUN_COMPONENT_SCROLLBAR; } @@ -287,8 +287,8 @@ namespace frm Any OScrollBarModel::translateExternalValueToControlValue( const Any& _rExternalValue ) const { return translateExternalDoubleToControlIntValue( _rExternalValue, m_xAggregateSet, - ::rtl::OUString( "ScrollValueMin" ), - ::rtl::OUString( "ScrollValueMax" ) ); + OUString( "ScrollValueMin" ), + OUString( "ScrollValueMax" ) ); } //-------------------------------------------------------------------- diff --git a/forms/source/component/spinbutton.cxx b/forms/source/component/spinbutton.cxx index 77fe5439fa61..ced15e1d90ce 100644 --- a/forms/source/component/spinbutton.cxx +++ b/forms/source/component/spinbutton.cxx @@ -47,7 +47,7 @@ namespace frm // implemented elsewhere Any translateExternalDoubleToControlIntValue( const Any& _rExternalValue, const Reference< XPropertySet >& _rxProperties, - const ::rtl::OUString& _rMinValueName, const ::rtl::OUString& _rMaxValueName ); + const OUString& _rMinValueName, const OUString& _rMaxValueName ); Any translateControlIntToExternalDoubleValue( const Any& _rControlIntValue ); //==================================================================== @@ -102,7 +102,7 @@ namespace frm BEGIN_DESCRIBE_PROPERTIES( 3, OControlModel ) DECL_PROP1( DEFAULT_SPIN_VALUE, sal_Int32, BOUND ); DECL_PROP1( TABINDEX, sal_Int16, BOUND ); - DECL_PROP2( CONTROLSOURCEPROPERTY,::rtl::OUString, READONLY, TRANSIENT ); + DECL_PROP2( CONTROLSOURCEPROPERTY,OUString, READONLY, TRANSIENT ); END_DESCRIBE_PROPERTIES(); } @@ -194,7 +194,7 @@ namespace frm } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OSpinButtonModel::getServiceName() throw( RuntimeException ) + OUString SAL_CALL OSpinButtonModel::getServiceName() throw( RuntimeException ) { return FRM_SUN_COMPONENT_SPINBUTTON; } @@ -243,8 +243,8 @@ namespace frm Any OSpinButtonModel::translateExternalValueToControlValue( const Any& _rExternalValue ) const { return translateExternalDoubleToControlIntValue( _rExternalValue, m_xAggregateSet, - ::rtl::OUString( "SpinValueMin" ), - ::rtl::OUString( "SpinValueMax" ) ); + OUString( "SpinValueMin" ), + OUString( "SpinValueMax" ) ); } //-------------------------------------------------------------------- |