LibreOffice Module sfx2 (master) 1
newhelp.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
20#define INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
21
22#include <com/sun/star/uno/Reference.h>
23#include <com/sun/star/frame/XFrame2.hpp>
24
25#include <rtl/ustrbuf.hxx>
26#include <vcl/builderpage.hxx>
27#include <vcl/dockwin.hxx>
28#include <vcl/idle.hxx>
29#include <vcl/keycod.hxx>
30#include <vcl/weld.hxx>
31#include <vcl/window.hxx>
32
33#include <srchdlg.hxx>
34
35// context menu ids
36#define MID_OPEN 1
37#define MID_RENAME 2
38#define MID_DELETE 3
39
40namespace com::sun::star::awt { class XWindow; }
41namespace com::sun::star::i18n { class XBreakIterator; }
42namespace com::sun::star::text { class XTextRange; }
43
44// class HelpTabPage_Impl ------------------------------------------------
45
47
49{
50protected:
52
53public:
55 const OUString& rID, const OUString& rUIXMLDescription);
56 virtual ~HelpTabPage_Impl() override;
57};
58
59// class ContentTabPage_Impl ---------------------------------------------
60
62{
63private:
64 std::unique_ptr<weld::TreeView> m_xContentBox;
65 std::unique_ptr<weld::TreeIter> m_xScratchIter;
69
71
72 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
73 DECL_LINK(ExpandingHdl, const weld::TreeIter&, bool);
74 DECL_LINK(CollapsingHdl, const weld::TreeIter&, bool);
75
76 void ClearChildren(const weld::TreeIter* pParent);
77 void InitRoot();
78public:
80 virtual ~ContentTabPage_Impl() override;
81
83 OUString GetSelectedEntry() const;
84 void SetFocusOnBox() { m_xContentBox->grab_focus(); }
85};
86
88{
89private:
90 std::unique_ptr<weld::Entry> m_xIndexEntry;
91 std::unique_ptr<weld::TreeView> m_xIndexList;
92 std::unique_ptr<weld::Button> m_xOpenBtn;
93
98
99 OUString sFactory;
100 OUString sKeyword;
101
105 sal_uInt16 nLastCharCode;
106
107 void InitializeIndex();
108 void ClearIndex();
109
111
112 DECL_LINK(OpenHdl, weld::Button&, void);
113 DECL_LINK(IdleHdl, Timer*, void);
114 DECL_LINK(AutoCompleteHdl, Timer*, void);
115 DECL_LINK(TimeoutHdl, Timer*, void);
116 DECL_LINK(TreeChangeHdl, weld::TreeView&, void);
117 DECL_LINK(EntryChangeHdl, weld::Entry&, void);
118 DECL_LINK(ActivateHdl, weld::Entry&, bool);
119 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
120 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
122 DECL_LINK(CustomRenderHdl, weld::TreeView::render_args, void);
123 DECL_LINK(ResizeHdl, const Size&, void);
124
125 int starts_with(const OUString& rStr, int nStartRow, bool bCaseSensitive);
126
127public:
129 virtual ~IndexTabPage_Impl() override;
130
131 virtual void Activate() override;
132
134 void SetFactory( const OUString& rFactory );
135 const OUString& GetFactory() const { return sFactory; }
136 OUString GetSelectedEntry() const;
137 void SetFocusOnBox() { m_xIndexEntry->grab_focus(); }
138 bool HasFocusOnEdit() const { return m_xIndexEntry->has_focus(); }
139
141 void SetKeyword( const OUString& rKeyword );
142 bool HasKeyword() const;
144 void OpenKeyword();
145
147};
148
150{
151private:
152 std::unique_ptr<weld::ComboBox> m_xSearchED;
153 std::unique_ptr<weld::Button> m_xSearchBtn;
154 std::unique_ptr<weld::CheckButton> m_xFullWordsCB;
155 std::unique_ptr<weld::CheckButton> m_xScopeCB;
156 std::unique_ptr<weld::TreeView> m_xResultsLB;
157 std::unique_ptr<weld::Button> m_xOpenBtn;
158
160
161 OUString aFactory;
162
163 css::uno::Reference< css::i18n::XBreakIterator >
165
166 void ClearSearchResults();
167 void RememberSearchText( const OUString& rSearchText );
168 void Search();
169
170 DECL_LINK(ClickHdl, weld::Button&, void);
171 DECL_LINK(OpenHdl, weld::Button&, void);
172 DECL_LINK(ModifyHdl, weld::ComboBox&, void);
173 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
174 DECL_LINK(ActivateHdl, weld::ComboBox&, bool);
175
176public:
178 virtual ~SearchTabPage_Impl() override;
179
181 void SetFactory( const OUString& rFactory ) { aFactory = rFactory; }
182 OUString GetSelectedEntry() const;
183 void ClearPage();
184 void SetFocusOnBox() { m_xResultsLB->grab_focus(); }
185 bool HasFocusOnEdit() const { return m_xSearchED->has_focus(); }
186 OUString GetSearchText() const { return m_xSearchED->get_active_text(); }
187 bool IsFullWordSearch() const { return m_xFullWordsCB->get_active(); }
188 bool OpenKeyword( const OUString& rKeyword );
189};
190
192{
193private:
194 std::unique_ptr<weld::TreeView> m_xBookmarksBox;
195 std::unique_ptr<weld::Button> m_xBookmarksPB;
196
198
199 DECL_LINK(OpenHdl, weld::Button&, void);
200 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
201 DECL_LINK(CommandHdl, const CommandEvent&, bool);
202 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
203
204 void DoAction(std::u16string_view rAction);
205
206public:
208 virtual ~BookmarksTabPage_Impl() override;
209
211 OUString GetSelectedEntry() const;
212 void AddBookmarks( const OUString& rTitle, const OUString& rURL );
213 void SetFocusOnBox() { m_xBookmarksBox->grab_focus(); }
214};
215
216// class SfxHelpIndexWindow_Impl -----------------------------------------
217
219
221{
222private:
223 std::unique_ptr<weld::Builder> m_xBuilder;
224 std::unique_ptr<weld::Container> m_xContainer;
225 std::unique_ptr<weld::ComboBox> m_xActiveLB;
226 std::unique_ptr<weld::Notebook> m_xTabCtrl;
227
229
233 OUString sKeyword;
234
236
237 std::unique_ptr<ContentTabPage_Impl> xCPage;
238 std::unique_ptr<IndexTabPage_Impl> xIPage;
239 std::unique_ptr<SearchTabPage_Impl> xSPage;
240 std::unique_ptr<BookmarksTabPage_Impl> xBPage;
241
243
244 void Initialize();
245 void SetActiveFactory();
246 HelpTabPage_Impl* GetPage(std::u16string_view );
247
252
253 DECL_LINK(ActivatePageHdl, const OUString&, void);
254 DECL_LINK(SelectHdl, weld::ComboBox&, void);
255 DECL_LINK(InitHdl, Timer *, void);
256 DECL_LINK(SelectFactoryHdl, Timer *, void);
257 DECL_LINK(KeywordHdl, IndexTabPage_Impl&, void);
258 DECL_LINK(ContentTabPageDoubleClickHdl, LinkParamNone*, void);
259 DECL_LINK(TabPageDoubleClickHdl, LinkParamNone*, void);
260 DECL_LINK(IndexTabPageDoubleClickHdl, LinkParamNone*, void);
261
262public:
263 explicit SfxHelpIndexWindow_Impl(SfxHelpWindow_Impl* pParent, weld::Container* pContainer);
265
268 void SetFactory( const OUString& rFactory, bool bActive );
269 OUString const & GetFactory() const { return xIPage->GetFactory(); }
270 OUString GetSelectedEntry() const;
271 void AddBookmarks( const OUString& rTitle, const OUString& rURL );
272 bool IsValidFactory( std::u16string_view _rFactory );
273 OUString GetActiveFactoryTitle() const { return m_xActiveLB->get_active_text(); }
274 void ClearSearchPage();
275 void GrabFocusBack();
276 bool HasFocusOnEdit() const;
277 OUString GetSearchText() const;
278 bool IsFullWordSearch() const;
279 void OpenKeyword( const OUString& rKeyword );
281
282 weld::Window* GetFrameWeld() const;
283};
284
285// inlines ---------------------------------------------------------------
286
288{
289 if (!xCPage)
290 {
291 xCPage.reset(new ContentTabPage_Impl(m_xTabCtrl->get_page("contents"), this));
292 xCPage->SetDoubleClickHdl(LINK(this, SfxHelpIndexWindow_Impl, ContentTabPageDoubleClickHdl));
293 }
294 return xCPage.get();
295}
296
298{
299 if (!xIPage)
300 {
301 xIPage.reset(new IndexTabPage_Impl(m_xTabCtrl->get_page("index"), this));
302 xIPage->SetDoubleClickHdl( LINK(this, SfxHelpIndexWindow_Impl, IndexTabPageDoubleClickHdl) );
303 xIPage->SetKeywordHdl( aIndexKeywordLink );
304 }
305 return xIPage.get();
306}
307
309{
310 if (!xSPage)
311 {
312 xSPage.reset(new SearchTabPage_Impl(m_xTabCtrl->get_page("find"), this));
313 xSPage->SetDoubleClickHdl( LINK(this, SfxHelpIndexWindow_Impl, TabPageDoubleClickHdl) );
314 }
315 return xSPage.get();
316}
317
319{
320 if (!xBPage)
321 {
322 xBPage.reset(new BookmarksTabPage_Impl(m_xTabCtrl->get_page("bookmarks"), this));
323 xBPage->SetDoubleClickHdl( LINK(this, SfxHelpIndexWindow_Impl, TabPageDoubleClickHdl) );
324 }
325 return xBPage.get();
326}
327
328// class TextWin_Impl ----------------------------------------------------
330{
331public:
332 explicit TextWin_Impl( vcl::Window* pParent );
333
334 virtual bool EventNotify( NotifyEvent& rNEvt ) override;
335};
336
337// class SfxHelpTextWindow_Impl ------------------------------------------
338
339class SvtMiscOptions;
341
343{
344private:
345 std::unique_ptr<weld::Toolbar> xToolBox;
346 std::unique_ptr<weld::CheckButton> xOnStartupCB;
347 std::unique_ptr<weld::Menu> xMenu;
351 OUString aIndexOnText;
353 OUString aSearchText;
356
359 std::shared_ptr<sfx2::SearchDialog> m_xSrchDlg;
360 css::uno::Reference < css::frame::XFrame2 >
362 css::uno::Reference< css::i18n::XBreakIterator >
364 css::uno::Reference< css::uno::XInterface >
370
371 bool HasSelection() const;
372 void InitToolBoxImages();
373 void InitOnStartupBox();
374
375 css::uno::Reference< css::i18n::XBreakIterator > const &
377 css::uno::Reference< css::text::XTextRange >
378 getCursor() const;
379 bool isHandledKey( const vcl::KeyCode& _rKeyCode );
380
381 DECL_LINK( SelectHdl, Timer *, void);
382 DECL_LINK( NotifyHdl, LinkParamNone*, void );
384 DECL_LINK( CloseHdl, LinkParamNone*, void );
385 DECL_LINK( CheckHdl, weld::Toggleable&, void );
387
388public:
389 explicit SfxHelpTextWindow_Impl(SfxHelpWindow_Impl* pHelpWin, weld::Builder& rBuilder, vcl::Window* pParent);
390 virtual ~SfxHelpTextWindow_Impl() override;
391 virtual void dispose() override;
392
393 virtual void Resize() override;
394 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
395 virtual void GetFocus() override;
396 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
397
398 const css::uno::Reference < css::frame::XFrame2 >&
399 getFrame() const { return xFrame; }
400
401 void SetSelectHdl(const Link<const OUString&, void>& rLink) { xToolBox->connect_clicked(rLink); }
402 void ToggleIndex( bool bOn );
403 void SelectSearchText( const OUString& rSearchText, bool _bIsFullWordSearch );
404 void SetPageStyleHeaderOff() const;
406 void CloseFrame();
407 void DoSearch();
408};
409
410// class SfxHelpWindow_Impl ----------------------------------------------
411
415{
416private:
418
419 std::unique_ptr<weld::Builder> m_xBuilder;
420 std::unique_ptr<weld::Paned> m_xContainer;
421 std::unique_ptr<weld::Container> m_xHelpPaneWindow;
422 std::unique_ptr<weld::Container> m_xHelpTextWindow;
423 css::uno::Reference<css::awt::XWindow> m_xHelpTextXWindow;
424
425 css::uno::Reference < css::awt::XWindow >
427 css::uno::Reference < css::frame::XFrame2 >
429
430 std::unique_ptr<SfxHelpIndexWindow_Impl> xIndexWin;
434
435 bool bIndex;
437 bool bSplit;
442 OUString sTitle;
443
444 virtual void GetFocus() override;
445
446 void MakeLayout();
447 void LoadConfig();
448 void SaveConfig();
449 void ShowStartPage();
450 void Split();
451
452 DECL_LINK(SelectHdl, const OUString&, void);
453 DECL_LINK(OpenHdl, LinkParamNone*, void);
454 DECL_LINK(SelectFactoryHdl, SfxHelpIndexWindow_Impl*, void);
455 DECL_LINK(ChangeHdl, HelpListener_Impl&, void);
456 DECL_LINK(ResizeHdl, const Size&, void);
457
458public:
459 SfxHelpWindow_Impl( const css::uno::Reference < css::frame::XFrame2 >& rFrame,
460 vcl::Window* pParent );
461 virtual ~SfxHelpWindow_Impl() override;
462 virtual void dispose() override;
463
464 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
465
466 void setContainerWindow( const css::uno::Reference < css::awt::XWindow >& xWin );
467 css::uno::Reference < css::frame::XFrame2 > const &
468 getTextFrame() const { return pTextWin->getFrame(); }
469
470 void SetFactory( const OUString& rFactory );
471 void SetHelpURL( std::u16string_view rURL );
472 void DoAction(std::u16string_view rAction);
473 void CloseWindow();
474
476
477 void UpdateToolbox();
478 void OpenKeyword( const OUString& rKeyword ) { xIndexWin->OpenKeyword( rKeyword ); }
479
480 bool HasHistoryPredecessor() const; // forward to interceptor
481 bool HasHistorySuccessor() const; // forward to interceptor
482
483 void openDone(std::u16string_view sURL ,
484 bool bSuccess);
485
486 static OUString buildHelpURL(std::u16string_view sFactory ,
487 std::u16string_view sContent ,
488 std::u16string_view sAnchor);
489
490 void loadHelpContent(const OUString& sHelpURL ,
491 bool bAddToHistory = true);
492};
493
495{
496private:
497 std::unique_ptr<weld::Entry> m_xTitleED;
498 std::unique_ptr<weld::Label> m_xAltTitle;
499public:
500 SfxAddHelpBookmarkDialog_Impl(weld::Widget* pParent, bool bRename);
501
502 void SetTitle( const OUString& rTitle );
503 OUString GetTitle() const { return m_xTitleED->get_text(); }
504};
505
507void AppendConfigToken(OUStringBuffer& rURL, bool bQuestionMark);
508
509#endif // INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
510
511/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
BookmarksTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *pIdxWin)
Definition: newhelp.cxx:1148
DECL_LINK(CommandHdl, const CommandEvent &, bool)
std::unique_ptr< weld::TreeView > m_xBookmarksBox
Definition: newhelp.hxx:194
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
Definition: newhelp.cxx:1196
OUString GetSelectedEntry() const
Definition: newhelp.cxx:1201
std::unique_ptr< weld::Button > m_xBookmarksPB
Definition: newhelp.hxx:195
virtual ~BookmarksTabPage_Impl() override
Definition: newhelp.cxx:1170
DECL_LINK(OpenHdl, weld::Button &, void)
Link< LinkParamNone *, void > aDoubleClickHdl
Definition: newhelp.hxx:197
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void AddBookmarks(const OUString &rTitle, const OUString &rURL)
Definition: newhelp.cxx:1206
void DoAction(std::u16string_view rAction)
Definition: newhelp.cxx:1083
OUString aClosedBookImage
Definition: newhelp.hxx:67
std::unique_ptr< weld::TreeIter > m_xScratchIter
Definition: newhelp.hxx:65
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
Definition: newhelp.cxx:352
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
OUString aOpenBookImage
Definition: newhelp.hxx:66
void SetFocusOnBox()
Definition: newhelp.hxx:84
ContentTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *_pIdxWin)
Definition: newhelp.cxx:328
void ClearChildren(const weld::TreeIter *pParent)
Definition: newhelp.cxx:235
Link< LinkParamNone *, void > aDoubleClickHdl
Definition: newhelp.hxx:70
std::unique_ptr< weld::TreeView > m_xContentBox
Definition: newhelp.hxx:64
virtual ~ContentTabPage_Impl() override
Definition: newhelp.cxx:357
OUString aDocumentImage
Definition: newhelp.hxx:68
DECL_LINK(ExpandingHdl, const weld::TreeIter &, bool)
DECL_LINK(CollapsingHdl, const weld::TreeIter &, bool)
OUString GetSelectedEntry() const
Definition: newhelp.cxx:306
HelpTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *_pIdxWin, const OUString &rID, const OUString &rUIXMLDescription)
Definition: newhelp.cxx:316
SfxHelpIndexWindow_Impl * m_pIdxWin
Definition: newhelp.hxx:51
virtual ~HelpTabPage_Impl() override
Definition: newhelp.cxx:323
bool HasFocusOnEdit() const
Definition: newhelp.hxx:138
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
DECL_LINK(OpenHdl, weld::Button &, void)
DECL_LINK(IdleHdl, Timer *, void)
void SelectExecutableEntry()
Definition: newhelp.cxx:369
OUString GetSelectedEntry() const
Definition: newhelp.cxx:825
Link< IndexTabPage_Impl &, void > aKeywordLink
Definition: newhelp.hxx:97
std::unique_ptr< weld::TreeView > m_xIndexList
Definition: newhelp.hxx:91
void SetKeywordHdl(const Link< IndexTabPage_Impl &, void > &rLink)
Definition: newhelp.hxx:140
std::unique_ptr< weld::Button > m_xOpenBtn
Definition: newhelp.hxx:92
OUString sKeyword
Definition: newhelp.hxx:100
Idle aAutoCompleteIdle
Definition: newhelp.hxx:95
bool HasKeyword() const
Definition: newhelp.cxx:845
Link< LinkParamNone *, void > aDoubleClickHdl
Definition: newhelp.hxx:110
bool HasKeywordIgnoreCase()
Definition: newhelp.cxx:858
void InitializeIndex()
Definition: newhelp.cxx:564
sal_uInt16 nLastCharCode
Definition: newhelp.hxx:105
DECL_LINK(CustomGetSizeHdl, weld::TreeView::get_size_args, Size)
DECL_LINK(ActivateHdl, weld::Entry &, bool)
const OUString & GetFactory() const
Definition: newhelp.hxx:135
void SetFocusOnBox()
Definition: newhelp.hxx:137
DECL_LINK(TimeoutHdl, Timer *, void)
OUString sFactory
Definition: newhelp.hxx:99
DECL_LINK(TreeChangeHdl, weld::TreeView &, void)
DECL_LINK(AutoCompleteHdl, Timer *, void)
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
Definition: newhelp.cxx:799
DECL_LINK(CustomRenderHdl, weld::TreeView::render_args, void)
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
int starts_with(const OUString &rStr, int nStartRow, bool bCaseSensitive)
Definition: newhelp.cxx:721
std::unique_ptr< weld::Entry > m_xIndexEntry
Definition: newhelp.hxx:90
void OpenKeyword()
Definition: newhelp.cxx:879
virtual void Activate() override
Definition: newhelp.cxx:790
DECL_LINK(ResizeHdl, const Size &, void)
void SetFactory(const OUString &rFactory)
Definition: newhelp.cxx:804
virtual ~IndexTabPage_Impl() override
Definition: newhelp.cxx:554
DECL_LINK(EntryChangeHdl, weld::Entry &, void)
Timer aKeywordTimer
Definition: newhelp.hxx:96
IndexTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *pIdxWin)
Definition: newhelp.cxx:390
void SetKeyword(const OUString &rKeyword)
Definition: newhelp.cxx:834
DECL_LINK(OpenHdl, weld::Button &, void)
DECL_LINK(ClickHdl, weld::Button &, void)
bool HasFocusOnEdit() const
Definition: newhelp.hxx:185
DECL_LINK(ActivateHdl, weld::ComboBox &, bool)
OUString GetSearchText() const
Definition: newhelp.hxx:186
std::unique_ptr< weld::Button > m_xOpenBtn
Definition: newhelp.hxx:157
OUString aFactory
Definition: newhelp.hxx:161
std::unique_ptr< weld::CheckButton > m_xFullWordsCB
Definition: newhelp.hxx:154
Link< LinkParamNone *, void > aDoubleClickHdl
Definition: newhelp.hxx:159
void ClearSearchResults()
Definition: newhelp.cxx:971
void SetFactory(const OUString &rFactory)
Definition: newhelp.hxx:181
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
void RememberSearchText(const OUString &rSearchText)
Definition: newhelp.cxx:976
std::unique_ptr< weld::Button > m_xSearchBtn
Definition: newhelp.hxx:153
std::unique_ptr< weld::CheckButton > m_xScopeCB
Definition: newhelp.hxx:155
OUString GetSelectedEntry() const
Definition: newhelp.cxx:1055
std::unique_ptr< weld::ComboBox > m_xSearchED
Definition: newhelp.hxx:152
DECL_LINK(ModifyHdl, weld::ComboBox &, void)
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
Definition: newhelp.cxx:1050
bool IsFullWordSearch() const
Definition: newhelp.hxx:187
SearchTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *pIdxWin)
Definition: newhelp.cxx:897
css::uno::Reference< css::i18n::XBreakIterator > xBreakIterator
Definition: newhelp.hxx:164
virtual ~SearchTabPage_Impl() override
Definition: newhelp.cxx:942
void SetFocusOnBox()
Definition: newhelp.hxx:184
bool OpenKeyword(const OUString &rKeyword)
Definition: newhelp.cxx:1066
std::unique_ptr< weld::TreeView > m_xResultsLB
Definition: newhelp.hxx:156
SfxAddHelpBookmarkDialog_Impl(weld::Widget *pParent, bool bRename)
Definition: newhelp.cxx:2651
std::unique_ptr< weld::Entry > m_xTitleED
Definition: newhelp.hxx:497
std::unique_ptr< weld::Label > m_xAltTitle
Definition: newhelp.hxx:498
OUString GetTitle() const
Definition: newhelp.hxx:503
void SetTitle(const OUString &rTitle)
Definition: newhelp.cxx:2660
HelpTabPage_Impl * GetPage(std::u16string_view)
Definition: newhelp.cxx:1367
DECL_LINK(ActivatePageHdl, const OUString &, void)
void OpenKeyword(const OUString &rKeyword)
Definition: newhelp.cxx:1557
BookmarksTabPage_Impl * GetBookmarksPage()
Definition: newhelp.hxx:318
std::unique_ptr< weld::Builder > m_xBuilder
Definition: newhelp.hxx:223
SearchTabPage_Impl * GetSearchPage()
Definition: newhelp.hxx:308
bool HasFocusOnEdit() const
Definition: newhelp.cxx:1528
Link< LinkParamNone *, void > aPageDoubleClickLink
Definition: newhelp.hxx:231
DECL_LINK(SelectFactoryHdl, Timer *, void)
std::unique_ptr< weld::Notebook > m_xTabCtrl
Definition: newhelp.hxx:226
std::unique_ptr< weld::Container > m_xContainer
Definition: newhelp.hxx:224
void SetSelectFactoryHdl(const Link< SfxHelpIndexWindow_Impl *, void > &rLink)
Definition: newhelp.hxx:267
Link< SfxHelpIndexWindow_Impl *, void > aSelectFactoryLink
Definition: newhelp.hxx:230
DECL_LINK(InitHdl, Timer *, void)
std::unique_ptr< ContentTabPage_Impl > xCPage
Definition: newhelp.hxx:237
bool IsFullWordSearch() const
Definition: newhelp.cxx:1548
void AddBookmarks(const OUString &rTitle, const OUString &rURL)
Definition: newhelp.cxx:1488
void SetFactory(const OUString &rFactory, bool bActive)
Definition: newhelp.cxx:1449
std::unique_ptr< SearchTabPage_Impl > xSPage
Definition: newhelp.hxx:239
DECL_LINK(IndexTabPageDoubleClickHdl, LinkParamNone *, void)
ContentTabPage_Impl * GetContentPage()
Definition: newhelp.hxx:287
SfxHelpIndexWindow_Impl(SfxHelpWindow_Impl *pParent, weld::Container *pContainer)
Definition: newhelp.cxx:1277
Link< IndexTabPage_Impl &, void > aIndexKeywordLink
Definition: newhelp.hxx:232
OUString GetSelectedEntry() const
Definition: newhelp.cxx:1462
IndexTabPage_Impl * GetIndexPage()
Definition: newhelp.hxx:297
VclPtr< SfxHelpWindow_Impl > pParentWin
Definition: newhelp.hxx:235
std::unique_ptr< BookmarksTabPage_Impl > xBPage
Definition: newhelp.hxx:240
DECL_LINK(SelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xActiveLB
Definition: newhelp.hxx:225
std::unique_ptr< IndexTabPage_Impl > xIPage
Definition: newhelp.hxx:238
weld::Window * GetFrameWeld() const
Definition: newhelp.cxx:1571
DECL_LINK(KeywordHdl, IndexTabPage_Impl &, void)
OUString const & GetFactory() const
Definition: newhelp.hxx:269
OUString GetActiveFactoryTitle() const
Definition: newhelp.hxx:273
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
Definition: newhelp.cxx:1434
bool IsValidFactory(std::u16string_view _rFactory)
Definition: newhelp.cxx:1493
DECL_LINK(TabPageDoubleClickHdl, LinkParamNone *, void)
DECL_LINK(ContentTabPageDoubleClickHdl, LinkParamNone *, void)
OUString GetSearchText() const
Definition: newhelp.cxx:1539
virtual void GetFocus() override
Definition: newhelp.cxx:2061
css::uno::Reference< css::frame::XFrame2 > xFrame
Definition: newhelp.hxx:361
bool HasSelection() const
Definition: newhelp.cxx:1665
virtual void Resize() override
Definition: newhelp.cxx:1957
void FindHdl(sfx2::SearchDialog *)
Definition: newhelp.cxx:1856
void SetSelectHdl(const Link< const OUString &, void > &rLink)
Definition: newhelp.hxx:401
SfxHelpTextWindow_Impl(SfxHelpWindow_Impl *pHelpWin, weld::Builder &rBuilder, vcl::Window *pParent)
Definition: newhelp.cxx:1598
std::shared_ptr< sfx2::SearchDialog > m_xSrchDlg
Definition: newhelp.hxx:359
VclPtr< vcl::Window > pTextWin
Definition: newhelp.hxx:358
bool isHandledKey(const vcl::KeyCode &_rKeyCode)
Definition: newhelp.cxx:1788
DECL_LINK(CheckHdl, weld::Toggleable &, void)
void SelectSearchText(const OUString &rSearchText, bool _bIsFullWordSearch)
Definition: newhelp.cxx:2110
weld::Toolbar & GetToolBox()
Definition: newhelp.hxx:405
void SetPageStyleHeaderOff() const
Definition: newhelp.cxx:2118
void ToggleIndex(bool bOn)
Definition: newhelp.cxx:2095
virtual ~SfxHelpTextWindow_Impl() override
Definition: newhelp.cxx:1648
DECL_LINK(NotifyHdl, LinkParamNone *, void)
OUString sCurrentFactory
Definition: newhelp.hxx:355
css::uno::Reference< css::text::XTextRange > getCursor() const
Definition: newhelp.cxx:1757
VclPtr< SfxHelpWindow_Impl > xHelpWin
Definition: newhelp.hxx:357
DECL_LINK(SelectHdl, Timer *, void)
css::uno::Reference< css::i18n::XBreakIterator > const & GetBreakIterator()
Definition: newhelp.cxx:1749
DECL_LINK(FindHdl, sfx2::SearchDialog &, void)
css::uno::Reference< css::uno::XInterface > xConfiguration
Definition: newhelp.hxx:365
std::unique_ptr< weld::Toolbar > xToolBox
Definition: newhelp.hxx:345
virtual void dispose() override
Definition: newhelp.cxx:1653
const css::uno::Reference< css::frame::XFrame2 > & getFrame() const
Definition: newhelp.hxx:399
css::uno::Reference< css::i18n::XBreakIterator > xBreakIterator
Definition: newhelp.hxx:363
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
Definition: newhelp.cxx:2082
std::unique_ptr< weld::Menu > xMenu
Definition: newhelp.hxx:347
DECL_LINK(CloseHdl, LinkParamNone *, void)
virtual bool PreNotify(NotifyEvent &rNEvt) override
Definition: newhelp.cxx:1963
std::unique_ptr< weld::CheckButton > xOnStartupCB
Definition: newhelp.hxx:346
DECL_LINK(SelectHdl, const OUString &, void)
DECL_LINK(ResizeHdl, const Size &, void)
bool HasHistorySuccessor() const
Definition: newhelp.cxx:2644
css::uno::Reference< css::awt::XWindow > m_xHelpTextXWindow
Definition: newhelp.hxx:423
std::unique_ptr< SfxHelpIndexWindow_Impl > xIndexWin
Definition: newhelp.hxx:430
void SetFactory(const OUString &rFactory)
Definition: newhelp.cxx:2514
virtual void GetFocus() override
Definition: newhelp.cxx:2205
virtual ~SfxHelpWindow_Impl() override
Definition: newhelp.cxx:2454
DECL_LINK(OpenHdl, LinkParamNone *, void)
std::unique_ptr< weld::Paned > m_xContainer
Definition: newhelp.hxx:420
HelpInterceptor_Impl * pHelpInterceptor
Definition: newhelp.hxx:432
DECL_LINK(ChangeHdl, HelpListener_Impl &, void)
std::unique_ptr< weld::Container > m_xHelpPaneWindow
Definition: newhelp.hxx:421
void SetHelpURL(std::u16string_view rURL)
Definition: newhelp.cxx:2519
std::unique_ptr< weld::Builder > m_xBuilder
Definition: newhelp.hxx:419
void openDone(std::u16string_view sURL, bool bSuccess)
Definition: newhelp.cxx:2357
css::uno::Reference< css::awt::XWindow > xWindow
Definition: newhelp.hxx:426
void OpenKeyword(const OUString &rKeyword)
Definition: newhelp.hxx:478
std::unique_ptr< weld::Container > m_xHelpTextWindow
Definition: newhelp.hxx:422
weld::Container * GetContainer()
Definition: newhelp.hxx:475
virtual bool PreNotify(NotifyEvent &rNEvt) override
Definition: newhelp.cxx:2476
static OUString buildHelpURL(std::u16string_view sFactory, std::u16string_view sContent, std::u16string_view sAnchor)
Definition: newhelp.cxx:1212
void DoAction(std::u16string_view rAction)
Definition: newhelp.cxx:2526
virtual void dispose() override
Definition: newhelp.cxx:2459
void loadHelpContent(const OUString &sHelpURL, bool bAddToHistory=true)
Definition: newhelp.cxx:1224
css::uno::Reference< css::frame::XFrame2 > const & getTextFrame() const
Definition: newhelp.hxx:468
void setContainerWindow(const css::uno::Reference< css::awt::XWindow > &xWin)
Definition: newhelp.cxx:2500
bool bGrabFocusToToolBox
Definition: newhelp.hxx:436
rtl::Reference< HelpListener_Impl > pHelpListener
Definition: newhelp.hxx:433
bool HasHistoryPredecessor() const
Definition: newhelp.cxx:2638
css::uno::Reference< css::frame::XFrame2 > xFrame
Definition: newhelp.hxx:428
SfxHelpWindow_Impl(const css::uno::Reference< css::frame::XFrame2 > &rFrame, vcl::Window *pParent)
Definition: newhelp.cxx:2409
DECL_LINK(SelectFactoryHdl, SfxHelpIndexWindow_Impl *, void)
VclPtr< SfxHelpTextWindow_Impl > pTextWin
Definition: newhelp.hxx:431
virtual bool EventNotify(NotifyEvent &rNEvt) override
Definition: newhelp.cxx:1581
TextWin_Impl(vcl::Window *pParent)
Definition: newhelp.cxx:1577
std::tuple< vcl::RenderContext &, const tools::Rectangle &, bool, const OUString & > render_args
std::pair< vcl::RenderContext &, const OUString & > get_size_args
void AppendConfigToken(OUStringBuffer &rURL, bool bQuestionMark)
Appends ?Language=xy&System=abc to the help URL in rURL.
Definition: sfxhelp.cxx:267