Kaydet (Commit) 376023dc authored tarafından Ricardo Montania's avatar Ricardo Montania Kaydeden (comit) Olivier Hallot

rtl::OUString to OUString in unotools

Change-Id: I9d045c6947fa2acb86befdb9bf43c666f82e8858
Reviewed-on: https://gerrit.libreoffice.org/670Reviewed-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
Tested-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
üst 1556bbad
......@@ -29,7 +29,7 @@ struct SvtAcceleratorConfigItem
{
sal_uInt16 nCode;
sal_uInt16 nModifier;
::rtl::OUString aCommand;
OUString aCommand;
};
#include <list>
......
......@@ -35,20 +35,20 @@ namespace utl {
struct AtomDescription
{
int atom;
::rtl::OUString description;
OUString description;
};
class AtomProvider
{
int m_nAtoms;
::boost::unordered_map< int, ::rtl::OUString, ::boost::hash< int > > m_aStringMap;
::boost::unordered_map< ::rtl::OUString, int, ::rtl::OUStringHash > m_aAtomMap;
::boost::unordered_map< int, OUString, ::boost::hash< int > > m_aStringMap;
::boost::unordered_map< OUString, int, OUStringHash > m_aAtomMap;
public:
AtomProvider();
~AtomProvider();
int getAtom( const ::rtl::OUString&, sal_Bool bCreate = sal_False );
const ::rtl::OUString& getString( int ) const;
int getAtom( const OUString&, sal_Bool bCreate = sal_False );
const OUString& getString( int ) const;
};
......@@ -59,9 +59,9 @@ namespace utl {
MultiAtomProvider();
~MultiAtomProvider();
int getAtom( int atomClass, const ::rtl::OUString& rString, sal_Bool bCreate = sal_False );
int getAtom( int atomClass, const OUString& rString, sal_Bool bCreate = sal_False );
const ::rtl::OUString& getString( int atomClass, int atom ) const;
const OUString& getString( int atomClass, int atom ) const;
};
}
......
......@@ -47,7 +47,7 @@ namespace utl
static rtl::OUString getProductKey(rtl::OUString const& _sDefault);
/// retrieve the product source (MWS name)
static ::rtl::OUString getProductSource(rtl::OUString const& _sDefault);
static rtl::OUString getProductSource(rtl::OUString const& _sDefault);
/// retrieve the BUILDID information item; uses the given default, if not found
static rtl::OUString getBuildIdData(rtl::OUString const& _sDefault);
......
......@@ -58,9 +58,9 @@ public:
// wrapper implementations of XCalendar
void loadDefaultCalendar( const ::com::sun::star::lang::Locale& rLocale );
void loadCalendar( const ::rtl::OUString& rUniqueID, const ::com::sun::star::lang::Locale& rLocale );
::com::sun::star::uno::Sequence< ::rtl::OUString > getAllCalendars( const ::com::sun::star::lang::Locale& rLocale ) const;
::rtl::OUString getUniqueID() const;
void loadCalendar( const OUString& rUniqueID, const ::com::sun::star::lang::Locale& rLocale );
::com::sun::star::uno::Sequence< OUString > getAllCalendars( const ::com::sun::star::lang::Locale& rLocale ) const;
OUString getUniqueID() const;
/// set UTC date/time
void setDateTime( double nTimeInDays );
/// get UTC date/time
......
......@@ -161,19 +161,19 @@ public:
// Wrapper implementations of class CharacterClassification
::rtl::OUString uppercase( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
::rtl::OUString lowercase( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
::rtl::OUString titlecase( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
OUString uppercase( const OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
OUString lowercase( const OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
OUString titlecase( const OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
::rtl::OUString uppercase( const ::rtl::OUString& _rStr ) const
OUString uppercase( const OUString& _rStr ) const
{
return uppercase(_rStr, 0, _rStr.getLength());
}
::rtl::OUString lowercase( const ::rtl::OUString& _rStr ) const
OUString lowercase( const OUString& _rStr ) const
{
return lowercase(_rStr, 0, _rStr.getLength());
}
::rtl::OUString titlecase( const ::rtl::OUString& _rStr ) const
OUString titlecase( const OUString& _rStr ) const
{
return titlecase(_rStr, 0, _rStr.getLength());
}
......
......@@ -110,7 +110,7 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
@onerror -
*//*-*****************************************************************************************************/
sal_Bool Lookup( CmdOption eOption, const ::rtl::OUString& aCommandURL ) const;
sal_Bool Lookup( CmdOption eOption, const OUString& aCommandURL ) const;
/*-****************************************************************************************************//**
@short register an office frame, which must update its dispatches if
......
......@@ -49,9 +49,9 @@ class UNOTOOLS_DLLPUBLIC CollatorWrapper
sal_Int32
compareString (
const ::rtl::OUString& s1, const ::rtl::OUString& s2) const;
const OUString& s1, const OUString& s2) const;
::com::sun::star::uno::Sequence< ::rtl::OUString >
::com::sun::star::uno::Sequence< OUString >
listCollatorAlgorithms (
const ::com::sun::star::lang::Locale& rLocale) const;
......@@ -61,7 +61,7 @@ class UNOTOOLS_DLLPUBLIC CollatorWrapper
sal_Int32
loadCollatorAlgorithm (
const ::rtl::OUString& rAlgorithm,
const OUString& rAlgorithm,
const ::com::sun::star::lang::Locale& rLocale, sal_Int32 nOption);
protected:
......
......@@ -137,7 +137,7 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
void Clear();
void SetDefault( ::rtl::OUString sName, bool bValue );
void SetDefault( OUString sName, bool bValue );
/*-****************************************************************************************************//**
@short return complete specified list
......@@ -168,8 +168,8 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
@onerror -
*//*-*****************************************************************************************************/
void AppendItem( const ::rtl::OUString& sName,
const ::rtl::OUString& sModule,
void AppendItem( const OUString& sName,
const OUString& sModule,
bool bUsePrtMetrics,
bool bAddSpacing,
bool bAddSpacingAtPages,
......
......@@ -69,7 +69,7 @@ namespace utl
friend class ConfigChangeListener_Impl;
friend class ConfigManager;
const rtl::OUString sSubTree;
const OUString sSubTree;
com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess>
m_xHierarchyAccess;
com::sun::star::uno::Reference< com::sun::star::util::XChangesListener >
......@@ -79,7 +79,7 @@ namespace utl
ConfigItem();//
void RemoveChangesListener();
void CallNotify(
const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
const com::sun::star::uno::Sequence<OUString>& aPropertyNames);
//***********************************************************************************************************************
// In special mode ALL_LOCALES we must support reading/writing of localized cfg entries as Sequence< PropertyValue >.
......@@ -92,32 +92,32 @@ namespace utl
// LOCALE VALUE
// "de" "Mein Name"
// "en-US" "my name"
void impl_packLocalizedProperties ( const com::sun::star::uno::Sequence< rtl::OUString >& lInNames ,
void impl_packLocalizedProperties ( const com::sun::star::uno::Sequence< OUString >& lInNames ,
const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& lInValues ,
com::sun::star::uno::Sequence< com::sun::star::uno::Any >& lOutValues );
void impl_unpackLocalizedProperties ( const com::sun::star::uno::Sequence< rtl::OUString >& lInNames ,
void impl_unpackLocalizedProperties ( const com::sun::star::uno::Sequence< OUString >& lInNames ,
const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& lInValues ,
com::sun::star::uno::Sequence< rtl::OUString >& lOutNames ,
com::sun::star::uno::Sequence< OUString >& lOutNames ,
com::sun::star::uno::Sequence< com::sun::star::uno::Any >& lOutValues );
com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess>
GetTree();
protected:
ConfigItem(const rtl::OUString &rSubTree,
ConfigItem(const OUString &rSubTree,
sal_Int16 nMode = CONFIG_MODE_DELAYED_UPDATE);
void SetModified (); // mark item as modified
void ClearModified(); // reset state after commit!
com::sun::star::uno::Sequence< com::sun::star::uno::Any>
GetProperties(const com::sun::star::uno::Sequence< rtl::OUString >& rNames);
GetProperties(const com::sun::star::uno::Sequence< OUString >& rNames);
com::sun::star::uno::Sequence< sal_Bool >
GetReadOnlyStates(const com::sun::star::uno::Sequence< rtl::OUString >& rNames);
GetReadOnlyStates(const com::sun::star::uno::Sequence< OUString >& rNames);
sal_Bool PutProperties(
const com::sun::star::uno::Sequence< rtl::OUString >& rNames,
const com::sun::star::uno::Sequence< OUString >& rNames,
const com::sun::star::uno::Sequence< com::sun::star::uno::Any>& rValues);
/** enables notifications about changes on selected sub nodes/values
......@@ -128,7 +128,7 @@ namespace utl
@see Notify
@see DisableNotification
*/
sal_Bool EnableNotification(const com::sun::star::uno::Sequence< rtl::OUString >& rNames,
sal_Bool EnableNotification(const com::sun::star::uno::Sequence< OUString >& rNames,
sal_Bool bEnableInternalNotification = sal_False);
/** disables notifications about changes on sub nodes/values, which previosly had
been enabled with EnableNotification
......@@ -139,22 +139,22 @@ namespace utl
sal_Bool IsInternalNotification()const {return IsInValueChange();}
//returns all members of a node in a specific format
com::sun::star::uno::Sequence< rtl::OUString >
GetNodeNames(const rtl::OUString& rNode);
com::sun::star::uno::Sequence< OUString >
GetNodeNames(const OUString& rNode);
//returns all members of a node in a specific format
com::sun::star::uno::Sequence< rtl::OUString >
GetNodeNames(const rtl::OUString& rNode, ConfigNameFormat eFormat);
com::sun::star::uno::Sequence< OUString >
GetNodeNames(const OUString& rNode, ConfigNameFormat eFormat);
// remove all members of a set
sal_Bool ClearNodeSet(const rtl::OUString& rNode);
sal_Bool ClearNodeSet(const OUString& rNode);
// remove selected members of a set
sal_Bool ClearNodeElements(const rtl::OUString& rNode,
com::sun::star::uno::Sequence< rtl::OUString >& rElements);
sal_Bool ClearNodeElements(const OUString& rNode,
com::sun::star::uno::Sequence< OUString >& rElements);
// change or add members to a set
sal_Bool SetSetProperties(const rtl::OUString& rNode, com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues);
sal_Bool SetSetProperties(const OUString& rNode, com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues);
// remove, change or add members of a set
sal_Bool ReplaceSetProperties(const rtl::OUString& rNode, com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues);
sal_Bool ReplaceSetProperties(const OUString& rNode, com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues);
// add a new node without setting any properties
sal_Bool AddNode(const rtl::OUString& rNode, const rtl::OUString& rNewNode);
sal_Bool AddNode(const OUString& rNode, const OUString& rNewNode);
/** get a name for a new element of a set node
@param _rSetNode
......@@ -165,16 +165,16 @@ namespace utl
</ul>
@return <TRUE/> if a free name could be generated
*/
sal_Bool getUniqueSetElementName( const rtl::OUString& _rSetNode, rtl::OUString& _rBaseName);
sal_Bool getUniqueSetElementName( const OUString& _rSetNode, OUString& _rBaseName);
public:
virtual ~ConfigItem();
/** is called from the ConfigManager before application ends of from the
PropertyChangeListener if the sub tree broadcasts changes. */
virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames)=0;
virtual void Notify( const com::sun::star::uno::Sequence<OUString>& aPropertyNames)=0;
const rtl::OUString& GetSubTreeName() const {return sSubTree;}
const OUString& GetSubTreeName() const {return sSubTree;}
sal_Bool IsModified() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment