diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-14 17:40:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-15 09:11:36 +0200 |
commit | e4915084e55ed06378486cdb943efdbb2b744048 (patch) | |
tree | 79feba38b7071249a3b9b4903ea5d6e3aa311c87 /include | |
parent | 3994dd5e347d140c4fa7d6f962b2e4089f1c6153 (diff) |
convert include/svtools/inettbc.hxx from String to OUString
Change-Id: Id33704ec35eb9d76988d367f02bee303bbf7c24d
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/inettbc.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index 3b8dbca8ff4b..104143696ec1 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -34,8 +34,8 @@ class SVT_DLLPUBLIC SvtURLBox : public ComboBox friend class SvtMatchContext_Impl; friend class SvtURLBox_Impl; Link aOpenHdl; - String aBaseURL; - String aPlaceHolder; + OUString aBaseURL; + OUString aPlaceHolder; rtl::Reference< SvtMatchContext_Impl > pCtx; SvtURLBox_Impl* pImp; INetProtocol eSmartProtocol; @@ -64,8 +64,8 @@ public: SvtURLBox( Window* pParent, const ResId& _rResId, INetProtocol eSmart = INET_PROT_NOT_VALID, bool bSetDefaultHelpID = true ); ~SvtURLBox(); - void SetBaseURL( const String& rURL ); - const String& GetBaseURL() const { return aBaseURL; } + void SetBaseURL( const OUString& rURL ); + const OUString& GetBaseURL() const { return aBaseURL; } void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; } const Link& GetOpenHdl() const { return aOpenHdl; } void SetOnlyDirectories( sal_Bool bDir = sal_True ); @@ -74,20 +74,22 @@ public: void SetSmartProtocol( INetProtocol eProt ); sal_Bool IsCtrlOpen() { return bCtrlClick; } - String GetURL(); + OUString GetURL(); void DisableHistory(); void UpdatePickList( ); - static String ParseSmart( String aText, String aBaseURL, String aWorkDir ); + static OUString ParseSmart( OUString aText, OUString aBaseURL, const OUString& aWorkDir ); - void SetFilter(const String& _sFilter); + void SetFilter(const OUString& _sFilter); inline void EnableAutocompletion( sal_Bool _bEnable = sal_True ) { bIsAutoCompleteEnabled = _bEnable; } - void SetPlaceHolder( const String& sPlaceHolder ) { aPlaceHolder = sPlaceHolder; } - String GetPlaceHolder() { return aPlaceHolder; } - bool MatchesPlaceHolder( const String& sToMatch ) { return ( ( aPlaceHolder.Len() > 0 ) && ( aPlaceHolder == sToMatch ) ); } + void SetPlaceHolder( const OUString& sPlaceHolder ) + { aPlaceHolder = sPlaceHolder; } + OUString GetPlaceHolder() { return aPlaceHolder; } + bool MatchesPlaceHolder( const OUString& sToMatch ) const + { return ( !aPlaceHolder.isEmpty() ) && ( aPlaceHolder == sToMatch ); } }; #endif |