Kaydet (Commit) 5d5b0c20 authored tarafından Noel Grandin's avatar Noel Grandin

convert sfx2/source/appl/newhelp.hxx from String to OUString

Change-Id: I6991c168b5732dc228c113c5a834a43f691c0eed
üst 25d610c0
...@@ -405,7 +405,7 @@ long ContentListBox_Impl::Notify( NotifyEvent& rNEvt ) ...@@ -405,7 +405,7 @@ long ContentListBox_Impl::Notify( NotifyEvent& rNEvt )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
String ContentListBox_Impl::GetSelectEntry() const OUString ContentListBox_Impl::GetSelectEntry() const
{ {
String aRet; String aRet;
SvTreeListEntry* pEntry = FirstSelected(); SvTreeListEntry* pEntry = FirstSelected();
...@@ -716,7 +716,7 @@ void IndexTabPage_Impl::InitializeIndex() ...@@ -716,7 +716,7 @@ void IndexTabPage_Impl::InitializeIndex()
aIndexCB.SetUpdateMode( sal_True ); aIndexCB.SetUpdateMode( sal_True );
if ( sKeyword.Len() > 0 ) if ( !sKeyword.isEmpty() )
aKeywordLink.Call( this ); aKeywordLink.Call( this );
} }
...@@ -747,7 +747,7 @@ IMPL_LINK( IndexTabPage_Impl, TimeoutHdl, Timer*, pTimer ) ...@@ -747,7 +747,7 @@ IMPL_LINK( IndexTabPage_Impl, TimeoutHdl, Timer*, pTimer )
{ {
if ( &aFactoryTimer == pTimer ) if ( &aFactoryTimer == pTimer )
InitializeIndex(); InitializeIndex();
else if ( &aKeywordTimer == pTimer && sKeyword.Len() > 0 ) else if ( &aKeywordTimer == pTimer && !sKeyword.isEmpty() )
aKeywordLink.Call( this ); aKeywordLink.Call( this );
return 0; return 0;
} }
...@@ -812,13 +812,13 @@ void IndexTabPage_Impl::SetDoubleClickHdl( const Link& rLink ) ...@@ -812,13 +812,13 @@ void IndexTabPage_Impl::SetDoubleClickHdl( const Link& rLink )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void IndexTabPage_Impl::SetFactory( const String& rFactory ) void IndexTabPage_Impl::SetFactory( const OUString& rFactory )
{ {
String sNewFactory( rFactory ); OUString sNewFactory( rFactory );
DBG_ASSERT( sNewFactory.Len() > 0, "empty factory" ); DBG_ASSERT( !sNewFactory.isEmpty(), "empty factory" );
bool bValid = m_pIdxWin->IsValidFactory( rFactory ); bool bValid = m_pIdxWin->IsValidFactory( rFactory );
if ( sFactory.Len() == 0 && !bValid ) if ( sFactory.isEmpty() && !bValid )
{ {
sNewFactory = SfxHelp::GetDefaultHelpModule(); sNewFactory = SfxHelp::GetDefaultHelpModule();
bValid = true; bValid = true;
...@@ -835,7 +835,7 @@ void IndexTabPage_Impl::SetFactory( const String& rFactory ) ...@@ -835,7 +835,7 @@ void IndexTabPage_Impl::SetFactory( const String& rFactory )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
String IndexTabPage_Impl::GetSelectEntry() const OUString IndexTabPage_Impl::GetSelectEntry() const
{ {
String aRet; String aRet;
IndexEntry_Impl* pEntry = (IndexEntry_Impl*)(sal_uIntPtr)aIndexCB.GetEntryData( aIndexCB.GetEntryPos( aIndexCB.GetText() ) ); IndexEntry_Impl* pEntry = (IndexEntry_Impl*)(sal_uIntPtr)aIndexCB.GetEntryData( aIndexCB.GetEntryPos( aIndexCB.GetText() ) );
...@@ -846,7 +846,7 @@ String IndexTabPage_Impl::GetSelectEntry() const ...@@ -846,7 +846,7 @@ String IndexTabPage_Impl::GetSelectEntry() const
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void IndexTabPage_Impl::SetKeyword( const String& rKeyword ) void IndexTabPage_Impl::SetKeyword( const OUString& rKeyword )
{ {
sKeyword = rKeyword; sKeyword = rKeyword;
...@@ -861,7 +861,7 @@ void IndexTabPage_Impl::SetKeyword( const String& rKeyword ) ...@@ -861,7 +861,7 @@ void IndexTabPage_Impl::SetKeyword( const String& rKeyword )
sal_Bool IndexTabPage_Impl::HasKeyword() const sal_Bool IndexTabPage_Impl::HasKeyword() const
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
if ( sKeyword.Len() > 0 ) if ( !sKeyword.isEmpty() )
{ {
sal_uInt16 nPos = aIndexCB.GetEntryPos( sKeyword ); sal_uInt16 nPos = aIndexCB.GetEntryPos( sKeyword );
bRet = ( nPos != LISTBOX_ENTRY_NOTFOUND ); bRet = ( nPos != LISTBOX_ENTRY_NOTFOUND );
...@@ -875,7 +875,7 @@ sal_Bool IndexTabPage_Impl::HasKeyword() const ...@@ -875,7 +875,7 @@ sal_Bool IndexTabPage_Impl::HasKeyword() const
sal_Bool IndexTabPage_Impl::HasKeywordIgnoreCase() sal_Bool IndexTabPage_Impl::HasKeywordIgnoreCase()
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
if ( sKeyword.Len() > 0 ) if ( !sKeyword.isEmpty() )
{ {
sal_uInt16 nEntries = aIndexCB.GetEntryCount(); sal_uInt16 nEntries = aIndexCB.GetEntryCount();
String sIndexItem; String sIndexItem;
...@@ -898,11 +898,11 @@ sal_Bool IndexTabPage_Impl::HasKeywordIgnoreCase() ...@@ -898,11 +898,11 @@ sal_Bool IndexTabPage_Impl::HasKeywordIgnoreCase()
void IndexTabPage_Impl::OpenKeyword() void IndexTabPage_Impl::OpenKeyword()
{ {
if ( sKeyword.Len() > 0 ) if ( !sKeyword.isEmpty() )
{ {
aIndexCB.SetText( sKeyword ); aIndexCB.SetText( sKeyword );
aIndexCB.GetDoubleClickHdl().Call( NULL ); aIndexCB.GetDoubleClickHdl().Call( NULL );
sKeyword.Erase(); sKeyword = "";
} }
} }
...@@ -1037,7 +1037,7 @@ void SearchTabPage_Impl::ClearSearchResults() ...@@ -1037,7 +1037,7 @@ void SearchTabPage_Impl::ClearSearchResults()
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SearchTabPage_Impl::RememberSearchText( const String& rSearchText ) void SearchTabPage_Impl::RememberSearchText( const OUString& rSearchText )
{ {
for ( sal_uInt16 i = 0; i < aSearchED.GetEntryCount(); ++i ) for ( sal_uInt16 i = 0; i < aSearchED.GetEntryCount(); ++i )
{ {
...@@ -1177,7 +1177,7 @@ void SearchTabPage_Impl::SetDoubleClickHdl( const Link& rLink ) ...@@ -1177,7 +1177,7 @@ void SearchTabPage_Impl::SetDoubleClickHdl( const Link& rLink )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
String SearchTabPage_Impl::GetSelectEntry() const OUString SearchTabPage_Impl::GetSelectEntry() const
{ {
String aRet; String aRet;
String* pData = (String*)(sal_uIntPtr)aResultsLB.GetEntryData( aResultsLB.GetSelectEntryPos() ); String* pData = (String*)(sal_uIntPtr)aResultsLB.GetEntryData( aResultsLB.GetSelectEntryPos() );
...@@ -1196,7 +1196,7 @@ void SearchTabPage_Impl::ClearPage() ...@@ -1196,7 +1196,7 @@ void SearchTabPage_Impl::ClearPage()
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
sal_Bool SearchTabPage_Impl::OpenKeyword( const String& rKeyword ) sal_Bool SearchTabPage_Impl::OpenKeyword( const OUString& rKeyword )
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
aSearchED.SetText( rKeyword ); aSearchED.SetText( rKeyword );
...@@ -1439,18 +1439,18 @@ void BookmarksTabPage_Impl::SetDoubleClickHdl( const Link& rLink ) ...@@ -1439,18 +1439,18 @@ void BookmarksTabPage_Impl::SetDoubleClickHdl( const Link& rLink )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
String BookmarksTabPage_Impl::GetSelectEntry() const OUString BookmarksTabPage_Impl::GetSelectEntry() const
{ {
String aRet; OUString aRet;
String* pData = (String*)(sal_uIntPtr)aBookmarksBox.GetEntryData( aBookmarksBox.GetSelectEntryPos() ); String* pData = (String*)(sal_uIntPtr)aBookmarksBox.GetEntryData( aBookmarksBox.GetSelectEntryPos() );
if ( pData ) if ( pData )
aRet = String( *pData ); aRet = *pData;
return aRet; return aRet;
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void BookmarksTabPage_Impl::AddBookmarks( const String& rTitle, const String& rURL ) void BookmarksTabPage_Impl::AddBookmarks( const OUString& rTitle, const OUString& rURL )
{ {
OUString aImageURL = IMAGE_URL; OUString aImageURL = IMAGE_URL;
aImageURL += INetURLObject( rURL ).GetHost(); aImageURL += INetURLObject( rURL ).GetHost();
...@@ -1848,9 +1848,9 @@ void SfxHelpIndexWindow_Impl::SetDoubleClickHdl( const Link& rLink ) ...@@ -1848,9 +1848,9 @@ void SfxHelpIndexWindow_Impl::SetDoubleClickHdl( const Link& rLink )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxHelpIndexWindow_Impl::SetFactory( const String& rFactory, sal_Bool bActive ) void SfxHelpIndexWindow_Impl::SetFactory( const OUString& rFactory, sal_Bool bActive )
{ {
if ( rFactory.Len() > 0 ) if ( !rFactory.isEmpty() )
{ {
GetIndexPage()->SetFactory( rFactory ); GetIndexPage()->SetFactory( rFactory );
// the index page did a check if rFactory is valid, // the index page did a check if rFactory is valid,
...@@ -1863,9 +1863,9 @@ void SfxHelpIndexWindow_Impl::SetFactory( const String& rFactory, sal_Bool bActi ...@@ -1863,9 +1863,9 @@ void SfxHelpIndexWindow_Impl::SetFactory( const String& rFactory, sal_Bool bActi
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
String SfxHelpIndexWindow_Impl::GetSelectEntry() const OUString SfxHelpIndexWindow_Impl::GetSelectEntry() const
{ {
String sRet; OUString sRet;
switch ( aTabCtrl.GetCurPageId() ) switch ( aTabCtrl.GetCurPageId() )
{ {
...@@ -1891,14 +1891,14 @@ String SfxHelpIndexWindow_Impl::GetSelectEntry() const ...@@ -1891,14 +1891,14 @@ String SfxHelpIndexWindow_Impl::GetSelectEntry() const
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxHelpIndexWindow_Impl::AddBookmarks( const String& rTitle, const String& rURL ) void SfxHelpIndexWindow_Impl::AddBookmarks( const OUString& rTitle, const OUString& rURL )
{ {
GetBookmarksPage()->AddBookmarks( rTitle, rURL ); GetBookmarksPage()->AddBookmarks( rTitle, rURL );
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
bool SfxHelpIndexWindow_Impl::IsValidFactory( const String& _rFactory ) bool SfxHelpIndexWindow_Impl::IsValidFactory( const OUString& _rFactory )
{ {
bool bValid = false; bool bValid = false;
for ( sal_uInt16 i = 0; i < aActiveLB.GetEntryCount(); ++i ) for ( sal_uInt16 i = 0; i < aActiveLB.GetEntryCount(); ++i )
...@@ -1949,7 +1949,7 @@ sal_Bool SfxHelpIndexWindow_Impl::HasFocusOnEdit() const ...@@ -1949,7 +1949,7 @@ sal_Bool SfxHelpIndexWindow_Impl::HasFocusOnEdit() const
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
String SfxHelpIndexWindow_Impl::GetSearchText() const OUString SfxHelpIndexWindow_Impl::GetSearchText() const
{ {
String sRet; String sRet;
if ( aTabCtrl.GetCurPageId() == HELP_INDEX_PAGE_SEARCH && pSPage ) if ( aTabCtrl.GetCurPageId() == HELP_INDEX_PAGE_SEARCH && pSPage )
...@@ -1969,7 +1969,7 @@ sal_Bool SfxHelpIndexWindow_Impl::IsFullWordSearch() const ...@@ -1969,7 +1969,7 @@ sal_Bool SfxHelpIndexWindow_Impl::IsFullWordSearch() const
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxHelpIndexWindow_Impl::OpenKeyword( const String& rKeyword ) void SfxHelpIndexWindow_Impl::OpenKeyword( const OUString& rKeyword )
{ {
sKeyword = rKeyword; sKeyword = rKeyword;
DBG_ASSERT( pIPage, "invalid index page" ); DBG_ASSERT( pIPage, "invalid index page" );
...@@ -2683,7 +2683,7 @@ void SfxHelpTextWindow_Impl::ToggleIndex( sal_Bool bOn ) ...@@ -2683,7 +2683,7 @@ void SfxHelpTextWindow_Impl::ToggleIndex( sal_Bool bOn )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxHelpTextWindow_Impl::SelectSearchText( const String& rSearchText, sal_Bool _bIsFullWordSearch ) void SfxHelpTextWindow_Impl::SelectSearchText( const OUString& rSearchText, sal_Bool _bIsFullWordSearch )
{ {
aSearchText = rSearchText; aSearchText = rSearchText;
bIsFullWordSearch = _bIsFullWordSearch; bIsFullWordSearch = _bIsFullWordSearch;
...@@ -3227,14 +3227,14 @@ void SfxHelpWindow_Impl::setContainerWindow( Reference < ::com::sun::star::awt:: ...@@ -3227,14 +3227,14 @@ void SfxHelpWindow_Impl::setContainerWindow( Reference < ::com::sun::star::awt::
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxHelpWindow_Impl::SetFactory( const String& rFactory ) void SfxHelpWindow_Impl::SetFactory( const OUString& rFactory )
{ {
pIndexWin->SetFactory( rFactory, sal_True ); pIndexWin->SetFactory( rFactory, sal_True );
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxHelpWindow_Impl::SetHelpURL( const String& rURL ) void SfxHelpWindow_Impl::SetHelpURL( const OUString& rURL )
{ {
INetURLObject aObj( rURL ); INetURLObject aObj( rURL );
if ( aObj.GetProtocol() == INET_PROT_VND_SUN_STAR_HELP ) if ( aObj.GetProtocol() == INET_PROT_VND_SUN_STAR_HELP )
...@@ -3418,10 +3418,10 @@ SfxAddHelpBookmarkDialog_Impl::~SfxAddHelpBookmarkDialog_Impl() ...@@ -3418,10 +3418,10 @@ SfxAddHelpBookmarkDialog_Impl::~SfxAddHelpBookmarkDialog_Impl()
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxAddHelpBookmarkDialog_Impl::SetTitle( const String& rTitle ) void SfxAddHelpBookmarkDialog_Impl::SetTitle( const OUString& rTitle )
{ {
aTitleED.SetText( rTitle ); aTitleED.SetText( rTitle );
aTitleED.SetSelection( Selection( 0, rTitle.Len() ) ); aTitleED.SetSelection( Selection( 0, rTitle.getLength() ) );
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -52,7 +52,7 @@ private: ...@@ -52,7 +52,7 @@ private:
sal_Bool m_bFinished; sal_Bool m_bFinished;
sal_Bool m_bSuccess; sal_Bool m_bSuccess;
Link m_aOpenLink; Link m_aOpenLink;
String m_sURL; OUString m_sURL;
public: public:
OpenStatusListener_Impl() : m_bFinished( sal_False ), m_bSuccess( sal_False ) {} OpenStatusListener_Impl() : m_bFinished( sal_False ), m_bSuccess( sal_False ) {}
...@@ -62,8 +62,8 @@ public: ...@@ -62,8 +62,8 @@ public:
inline sal_Bool IsFinished() const { return m_bFinished; } inline sal_Bool IsFinished() const { return m_bFinished; }
inline sal_Bool IsSuccessful() const { return m_bSuccess; } inline sal_Bool IsSuccessful() const { return m_bSuccess; }
inline void SetURL( const String& rURL ) { m_sURL = rURL; } inline void SetURL( const OUString& rURL ) { m_sURL = rURL; }
inline String GetURL() const { return m_sURL; } inline OUString GetURL() const { return m_sURL; }
inline void SetOpenHdl( const Link& rLink ) { m_aOpenLink = rLink; } inline void SetOpenHdl( const Link& rLink ) { m_aOpenLink = rLink; }
}; };
...@@ -88,7 +88,7 @@ public: ...@@ -88,7 +88,7 @@ public:
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
inline void SetOpenHdl( const Link& rLink ) { SetDoubleClickHdl( rLink ); } inline void SetOpenHdl( const Link& rLink ) { SetDoubleClickHdl( rLink ); }
String GetSelectEntry() const; OUString GetSelectEntry() const;
}; };
// class HelpTabPage_Impl ------------------------------------------------ // class HelpTabPage_Impl ------------------------------------------------
...@@ -121,7 +121,7 @@ public: ...@@ -121,7 +121,7 @@ public:
virtual Control* GetLastFocusControl(); virtual Control* GetLastFocusControl();
inline void SetOpenHdl( const Link& rLink ) { aContentBox.SetOpenHdl( rLink ); } inline void SetOpenHdl( const Link& rLink ) { aContentBox.SetOpenHdl( rLink ); }
inline String GetSelectEntry() const { return aContentBox.GetSelectEntry(); } inline OUString GetSelectEntry() const { return aContentBox.GetSelectEntry(); }
inline void SetFocusOnBox() { aContentBox.GrabFocus(); } inline void SetFocusOnBox() { aContentBox.GrabFocus(); }
}; };
...@@ -149,8 +149,8 @@ private: ...@@ -149,8 +149,8 @@ private:
Timer aKeywordTimer; Timer aKeywordTimer;
Link aKeywordLink; Link aKeywordLink;
String sFactory; OUString sFactory;
String sKeyword; OUString sKeyword;
long nMinWidth; long nMinWidth;
sal_Bool bIsActivated; sal_Bool bIsActivated;
...@@ -170,14 +170,14 @@ public: ...@@ -170,14 +170,14 @@ public:
virtual Control* GetLastFocusControl(); virtual Control* GetLastFocusControl();
void SetDoubleClickHdl( const Link& rLink ); void SetDoubleClickHdl( const Link& rLink );
void SetFactory( const String& rFactory ); void SetFactory( const OUString& rFactory );
inline String GetFactory() const { return sFactory; } inline OUString GetFactory() const { return sFactory; }
String GetSelectEntry() const; OUString GetSelectEntry() const;
inline void SetFocusOnBox() { aIndexCB.GrabFocus(); } inline void SetFocusOnBox() { aIndexCB.GrabFocus(); }
inline sal_Bool HasFocusOnEdit() const { return aIndexCB.HasChildPathFocus(); } inline sal_Bool HasFocusOnEdit() const { return aIndexCB.HasChildPathFocus(); }
inline void SetKeywordHdl( const Link& rLink ) { aKeywordLink = rLink; } inline void SetKeywordHdl( const Link& rLink ) { aKeywordLink = rLink; }
void SetKeyword( const String& rKeyword ); void SetKeyword( const OUString& rKeyword );
sal_Bool HasKeyword() const; sal_Bool HasKeyword() const;
sal_Bool HasKeywordIgnoreCase(); sal_Bool HasKeywordIgnoreCase();
void OpenKeyword(); void OpenKeyword();
...@@ -222,13 +222,13 @@ private: ...@@ -222,13 +222,13 @@ private:
PushButton aOpenBtn; PushButton aOpenBtn;
Size aMinSize; Size aMinSize;
String aFactory; OUString aFactory;
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator >
xBreakIterator; xBreakIterator;
void ClearSearchResults(); void ClearSearchResults();
void RememberSearchText( const String& rSearchText ); void RememberSearchText( const OUString& rSearchText );
DECL_LINK(SearchHdl, void *); DECL_LINK(SearchHdl, void *);
DECL_LINK(OpenHdl, void *); DECL_LINK(OpenHdl, void *);
...@@ -243,14 +243,14 @@ public: ...@@ -243,14 +243,14 @@ public:
virtual Control* GetLastFocusControl(); virtual Control* GetLastFocusControl();
void SetDoubleClickHdl( const Link& rLink ); void SetDoubleClickHdl( const Link& rLink );
inline void SetFactory( const String& rFactory ) { aFactory = rFactory; } inline void SetFactory( const OUString& rFactory ) { aFactory = rFactory; }
String GetSelectEntry() const; OUString GetSelectEntry() const;
void ClearPage(); void ClearPage();
inline void SetFocusOnBox() { aResultsLB.GrabFocus(); } inline void SetFocusOnBox() { aResultsLB.GrabFocus(); }
inline sal_Bool HasFocusOnEdit() const { return aSearchED.HasChildPathFocus(); } inline sal_Bool HasFocusOnEdit() const { return aSearchED.HasChildPathFocus(); }
inline String GetSearchText() const { return aSearchED.GetText(); } inline OUString GetSearchText() const { return aSearchED.GetText(); }
inline sal_Bool IsFullWordSearch() const { return aFullWordsCB.IsChecked(); } inline sal_Bool IsFullWordSearch() const { return aFullWordsCB.IsChecked(); }
sal_Bool OpenKeyword( const String& rKeyword ); sal_Bool OpenKeyword( const OUString& rKeyword );
}; };
// class BookmarksTabPage_Impl ------------------------------------------- // class BookmarksTabPage_Impl -------------------------------------------
...@@ -286,8 +286,8 @@ public: ...@@ -286,8 +286,8 @@ public:
virtual Control* GetLastFocusControl(); virtual Control* GetLastFocusControl();
void SetDoubleClickHdl( const Link& rLink ); void SetDoubleClickHdl( const Link& rLink );
String GetSelectEntry() const; OUString GetSelectEntry() const;
void AddBookmarks( const String& rTitle, const String& rURL ); void AddBookmarks( const OUString& rTitle, const OUString& rURL );
inline void SetFocusOnBox() { aBookmarksBox.GrabFocus(); } inline void SetFocusOnBox() { aBookmarksBox.GrabFocus(); }
}; };
...@@ -307,7 +307,7 @@ private: ...@@ -307,7 +307,7 @@ private:
Link aSelectFactoryLink; Link aSelectFactoryLink;
Link aPageDoubleClickLink; Link aPageDoubleClickLink;
Link aIndexKeywordLink; Link aIndexKeywordLink;
String sKeyword; OUString sKeyword;
SfxHelpWindow_Impl* pParentWin; SfxHelpWindow_Impl* pParentWin;
...@@ -345,19 +345,19 @@ public: ...@@ -345,19 +345,19 @@ public:
void SetDoubleClickHdl( const Link& rLink ); void SetDoubleClickHdl( const Link& rLink );
inline void SetSelectFactoryHdl( const Link& rLink ) { aSelectFactoryLink = rLink; } inline void SetSelectFactoryHdl( const Link& rLink ) { aSelectFactoryLink = rLink; }
void SetFactory( const String& rFactory, sal_Bool bActive ); void SetFactory( const OUString& rFactory, sal_Bool bActive );
inline String GetFactory() const { return pIPage->GetFactory(); } inline OUString GetFactory() const { return pIPage->GetFactory(); }
String GetSelectEntry() const; OUString GetSelectEntry() const;
void AddBookmarks( const String& rTitle, const String& rURL ); void AddBookmarks( const OUString& rTitle, const OUString& rURL );
bool IsValidFactory( const String& _rFactory ); bool IsValidFactory( const OUString& _rFactory );
inline String GetActiveFactoryTitle() const { return aActiveLB.GetSelectEntry(); } inline OUString GetActiveFactoryTitle() const { return aActiveLB.GetSelectEntry(); }
inline void UpdateTabControl() { aTabCtrl.Invalidate(); } inline void UpdateTabControl() { aTabCtrl.Invalidate(); }
void ClearSearchPage(); void ClearSearchPage();
void GrabFocusBack(); void GrabFocusBack();
sal_Bool HasFocusOnEdit() const; sal_Bool HasFocusOnEdit() const;
String GetSearchText() const; OUString GetSearchText() const;
sal_Bool IsFullWordSearch() const; sal_Bool IsFullWordSearch() const;
void OpenKeyword( const String& rKeyword ); void OpenKeyword( const OUString& rKeyword );
void SelectExecutableEntry(); void SelectExecutableEntry();
inline bool WasCursorLeftOrRight(); inline bool WasCursorLeftOrRight();
}; };
...@@ -435,11 +435,11 @@ private: ...@@ -435,11 +435,11 @@ private:
Timer aSelectTimer; Timer aSelectTimer;
Image aIndexOnImage; Image aIndexOnImage;
Image aIndexOffImage; Image aIndexOffImage;
String aIndexOnText; OUString aIndexOnText;
String aIndexOffText; OUString aIndexOffText;
String aSearchText; OUString aSearchText;
String aOnStartupText; OUString aOnStartupText;
OUString sCurrentFactory; OUString sCurrentFactory;
SfxHelpWindow_Impl* pHelpWin; SfxHelpWindow_Impl* pHelpWin;
Window* pTextWin; Window* pTextWin;
...@@ -487,7 +487,7 @@ public: ...@@ -487,7 +487,7 @@ public:
inline void SetSelectHdl( const Link& rLink ) { aToolBox.SetSelectHdl( rLink ); } inline void SetSelectHdl( const Link& rLink ) { aToolBox.SetSelectHdl( rLink ); }
void ToggleIndex( sal_Bool bOn ); void ToggleIndex( sal_Bool bOn );
void SelectSearchText( const String& rSearchText, sal_Bool _bIsFullWordSearch ); void SelectSearchText( const OUString& rSearchText, sal_Bool _bIsFullWordSearch );
void SetPageStyleHeaderOff() const; void SetPageStyleHeaderOff() const;
inline ToolBox& GetToolBox() { return aToolBox; } inline ToolBox& GetToolBox() { return aToolBox; }
void CloseFrame(); void CloseFrame();
...@@ -524,7 +524,7 @@ friend class SfxHelpIndexWindow_Impl; ...@@ -524,7 +524,7 @@ friend class SfxHelpIndexWindow_Impl;
sal_Bool bGrabFocusToToolBox; sal_Bool bGrabFocusToToolBox;
Point aWinPos; Point aWinPos;
OUString sTitle; OUString sTitle;
String sKeyword; OUString sKeyword;
virtual void Resize(); virtual void Resize();
virtual void Split(); virtual void Split();
...@@ -555,14 +555,14 @@ public: ...@@ -555,14 +555,14 @@ public:
inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XDispatchResultListener > inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XDispatchResultListener >
getOpenListener() const { return xOpenListener; } getOpenListener() const { return xOpenListener; }
void SetFactory( const String& rFactory ); void SetFactory( const OUString& rFactory );
void SetHelpURL( const String& rURL ); void SetHelpURL( const OUString& rURL );
void DoAction( sal_uInt16 nActionId ); void DoAction( sal_uInt16 nActionId );
void CloseWindow(); void CloseWindow();
void UpdateToolbox(); void UpdateToolbox();
inline void OpenKeyword( const String& rKeyword ) { pIndexWin->OpenKeyword( rKeyword ); } inline void OpenKeyword( const OUString& rKeyword ) { pIndexWin->OpenKeyword( rKeyword ); }
inline String GetFactory() const { return pIndexWin->GetFactory(); } inline OUString GetFactory() const { return pIndexWin->GetFactory(); }
sal_Bool HasHistoryPredecessor() const; // forward to interceptor sal_Bool HasHistoryPredecessor() const; // forward to interceptor
sal_Bool HasHistorySuccessor() const; // forward to interceptor sal_Bool HasHistorySuccessor() const; // forward to interceptor
...@@ -592,8 +592,8 @@ public: ...@@ -592,8 +592,8 @@ public:
SfxAddHelpBookmarkDialog_Impl( Window* pParent, sal_Bool bRename = sal_True ); SfxAddHelpBookmarkDialog_Impl( Window* pParent, sal_Bool bRename = sal_True );
~SfxAddHelpBookmarkDialog_Impl(); ~SfxAddHelpBookmarkDialog_Impl();
void SetTitle( const String& rTitle ); void SetTitle( const OUString& rTitle );
inline String GetTitle() const { return aTitleED.GetText(); } inline OUString GetTitle() const { return aTitleED.GetText(); }
}; };
/// Appends ?Language=xy&System=abc to the help URL in rURL /// Appends ?Language=xy&System=abc to the help URL in rURL
......
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