19#ifndef INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
20#define INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
22#include <com/sun/star/uno/Reference.h>
23#include <com/sun/star/frame/XFrame2.hpp>
25#include <rtl/ustrbuf.hxx>
55 const OUString& rID,
const OUString& rUIXMLDescription);
125 int starts_with(
const OUString& rStr,
int nStartRow,
bool bCaseSensitive);
163 css::uno::Reference< css::i18n::XBreakIterator >
204 void DoAction(std::u16string_view rAction);
212 void AddBookmarks(
const OUString& rTitle,
const OUString& rURL );
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;
268 void SetFactory(
const OUString& rFactory,
bool bActive );
271 void AddBookmarks(
const OUString& rTitle,
const OUString& rURL );
360 css::uno::Reference < css::frame::XFrame2 >
362 css::uno::Reference< css::i18n::XBreakIterator >
364 css::uno::Reference< css::uno::XInterface >
375 css::uno::Reference< css::i18n::XBreakIterator >
const &
377 css::uno::Reference< css::text::XTextRange >
391 virtual void dispose()
override;
393 virtual void Resize()
override;
398 const css::uno::Reference < css::frame::XFrame2 >&
403 void SelectSearchText(
const OUString& rSearchText,
bool _bIsFullWordSearch );
425 css::uno::Reference < css::awt::XWindow >
427 css::uno::Reference < css::frame::XFrame2 >
462 virtual void dispose()
override;
467 css::uno::Reference < css::frame::XFrame2 >
const &
472 void DoAction(std::u16string_view rAction);
483 void openDone(std::u16string_view sURL ,
486 static OUString
buildHelpURL(std::u16string_view sFactory ,
487 std::u16string_view sContent ,
488 std::u16string_view sAnchor);
491 bool bAddToHistory =
true);
502 void SetTitle(
const OUString& rTitle );
BookmarksTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *pIdxWin)
DECL_LINK(CommandHdl, const CommandEvent &, bool)
std::unique_ptr< weld::TreeView > m_xBookmarksBox
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
OUString GetSelectedEntry() const
std::unique_ptr< weld::Button > m_xBookmarksPB
virtual ~BookmarksTabPage_Impl() override
DECL_LINK(OpenHdl, weld::Button &, void)
Link< LinkParamNone *, void > aDoubleClickHdl
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void AddBookmarks(const OUString &rTitle, const OUString &rURL)
void DoAction(std::u16string_view rAction)
OUString aClosedBookImage
std::unique_ptr< weld::TreeIter > m_xScratchIter
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
ContentTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *_pIdxWin)
void ClearChildren(const weld::TreeIter *pParent)
Link< LinkParamNone *, void > aDoubleClickHdl
std::unique_ptr< weld::TreeView > m_xContentBox
virtual ~ContentTabPage_Impl() override
DECL_LINK(ExpandingHdl, const weld::TreeIter &, bool)
DECL_LINK(CollapsingHdl, const weld::TreeIter &, bool)
OUString GetSelectedEntry() const
HelpTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *_pIdxWin, const OUString &rID, const OUString &rUIXMLDescription)
SfxHelpIndexWindow_Impl * m_pIdxWin
virtual ~HelpTabPage_Impl() override
bool HasFocusOnEdit() const
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
DECL_LINK(OpenHdl, weld::Button &, void)
DECL_LINK(IdleHdl, Timer *, void)
void SelectExecutableEntry()
OUString GetSelectedEntry() const
Link< IndexTabPage_Impl &, void > aKeywordLink
std::unique_ptr< weld::TreeView > m_xIndexList
void SetKeywordHdl(const Link< IndexTabPage_Impl &, void > &rLink)
std::unique_ptr< weld::Button > m_xOpenBtn
Link< LinkParamNone *, void > aDoubleClickHdl
bool HasKeywordIgnoreCase()
DECL_LINK(CustomGetSizeHdl, weld::TreeView::get_size_args, Size)
DECL_LINK(ActivateHdl, weld::Entry &, bool)
const OUString & GetFactory() const
DECL_LINK(TimeoutHdl, Timer *, void)
DECL_LINK(TreeChangeHdl, weld::TreeView &, void)
DECL_LINK(AutoCompleteHdl, Timer *, void)
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
DECL_LINK(CustomRenderHdl, weld::TreeView::render_args, void)
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
int starts_with(const OUString &rStr, int nStartRow, bool bCaseSensitive)
std::unique_ptr< weld::Entry > m_xIndexEntry
virtual void Activate() override
DECL_LINK(ResizeHdl, const Size &, void)
void SetFactory(const OUString &rFactory)
virtual ~IndexTabPage_Impl() override
DECL_LINK(EntryChangeHdl, weld::Entry &, void)
IndexTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *pIdxWin)
void SetKeyword(const OUString &rKeyword)
DECL_LINK(OpenHdl, weld::Button &, void)
DECL_LINK(ClickHdl, weld::Button &, void)
bool HasFocusOnEdit() const
DECL_LINK(ActivateHdl, weld::ComboBox &, bool)
OUString GetSearchText() const
std::unique_ptr< weld::Button > m_xOpenBtn
std::unique_ptr< weld::CheckButton > m_xFullWordsCB
Link< LinkParamNone *, void > aDoubleClickHdl
void ClearSearchResults()
void SetFactory(const OUString &rFactory)
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
void RememberSearchText(const OUString &rSearchText)
std::unique_ptr< weld::Button > m_xSearchBtn
std::unique_ptr< weld::CheckButton > m_xScopeCB
OUString GetSelectedEntry() const
std::unique_ptr< weld::ComboBox > m_xSearchED
DECL_LINK(ModifyHdl, weld::ComboBox &, void)
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
bool IsFullWordSearch() const
SearchTabPage_Impl(weld::Widget *pParent, SfxHelpIndexWindow_Impl *pIdxWin)
css::uno::Reference< css::i18n::XBreakIterator > xBreakIterator
virtual ~SearchTabPage_Impl() override
bool OpenKeyword(const OUString &rKeyword)
std::unique_ptr< weld::TreeView > m_xResultsLB
SfxAddHelpBookmarkDialog_Impl(weld::Widget *pParent, bool bRename)
std::unique_ptr< weld::Entry > m_xTitleED
std::unique_ptr< weld::Label > m_xAltTitle
OUString GetTitle() const
void SetTitle(const OUString &rTitle)
HelpTabPage_Impl * GetPage(std::u16string_view)
DECL_LINK(ActivatePageHdl, const OUString &, void)
void OpenKeyword(const OUString &rKeyword)
BookmarksTabPage_Impl * GetBookmarksPage()
std::unique_ptr< weld::Builder > m_xBuilder
SearchTabPage_Impl * GetSearchPage()
bool HasFocusOnEdit() const
Link< LinkParamNone *, void > aPageDoubleClickLink
DECL_LINK(SelectFactoryHdl, Timer *, void)
void SelectExecutableEntry()
std::unique_ptr< weld::Notebook > m_xTabCtrl
std::unique_ptr< weld::Container > m_xContainer
void SetSelectFactoryHdl(const Link< SfxHelpIndexWindow_Impl *, void > &rLink)
Link< SfxHelpIndexWindow_Impl *, void > aSelectFactoryLink
DECL_LINK(InitHdl, Timer *, void)
~SfxHelpIndexWindow_Impl()
std::unique_ptr< ContentTabPage_Impl > xCPage
bool IsFullWordSearch() const
void AddBookmarks(const OUString &rTitle, const OUString &rURL)
void SetFactory(const OUString &rFactory, bool bActive)
std::unique_ptr< SearchTabPage_Impl > xSPage
DECL_LINK(IndexTabPageDoubleClickHdl, LinkParamNone *, void)
ContentTabPage_Impl * GetContentPage()
SfxHelpIndexWindow_Impl(SfxHelpWindow_Impl *pParent, weld::Container *pContainer)
Link< IndexTabPage_Impl &, void > aIndexKeywordLink
OUString GetSelectedEntry() const
IndexTabPage_Impl * GetIndexPage()
VclPtr< SfxHelpWindow_Impl > pParentWin
std::unique_ptr< BookmarksTabPage_Impl > xBPage
DECL_LINK(SelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xActiveLB
std::unique_ptr< IndexTabPage_Impl > xIPage
weld::Window * GetFrameWeld() const
DECL_LINK(KeywordHdl, IndexTabPage_Impl &, void)
OUString const & GetFactory() const
OUString GetActiveFactoryTitle() const
void SetDoubleClickHdl(const Link< LinkParamNone *, void > &rLink)
bool IsValidFactory(std::u16string_view _rFactory)
DECL_LINK(TabPageDoubleClickHdl, LinkParamNone *, void)
DECL_LINK(ContentTabPageDoubleClickHdl, LinkParamNone *, void)
OUString GetSearchText() const
virtual void GetFocus() override
css::uno::Reference< css::frame::XFrame2 > xFrame
bool HasSelection() const
virtual void Resize() override
void FindHdl(sfx2::SearchDialog *)
void SetSelectHdl(const Link< const OUString &, void > &rLink)
SfxHelpTextWindow_Impl(SfxHelpWindow_Impl *pHelpWin, weld::Builder &rBuilder, vcl::Window *pParent)
std::shared_ptr< sfx2::SearchDialog > m_xSrchDlg
VclPtr< vcl::Window > pTextWin
bool isHandledKey(const vcl::KeyCode &_rKeyCode)
DECL_LINK(CheckHdl, weld::Toggleable &, void)
void SelectSearchText(const OUString &rSearchText, bool _bIsFullWordSearch)
weld::Toolbar & GetToolBox()
void SetPageStyleHeaderOff() const
void ToggleIndex(bool bOn)
virtual ~SfxHelpTextWindow_Impl() override
DECL_LINK(NotifyHdl, LinkParamNone *, void)
css::uno::Reference< css::text::XTextRange > getCursor() const
VclPtr< SfxHelpWindow_Impl > xHelpWin
DECL_LINK(SelectHdl, Timer *, void)
css::uno::Reference< css::i18n::XBreakIterator > const & GetBreakIterator()
DECL_LINK(FindHdl, sfx2::SearchDialog &, void)
css::uno::Reference< css::uno::XInterface > xConfiguration
std::unique_ptr< weld::Toolbar > xToolBox
virtual void dispose() override
const css::uno::Reference< css::frame::XFrame2 > & getFrame() const
css::uno::Reference< css::i18n::XBreakIterator > xBreakIterator
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
std::unique_ptr< weld::Menu > xMenu
DECL_LINK(CloseHdl, LinkParamNone *, void)
virtual bool PreNotify(NotifyEvent &rNEvt) override
std::unique_ptr< weld::CheckButton > xOnStartupCB
DECL_LINK(SelectHdl, const OUString &, void)
DECL_LINK(ResizeHdl, const Size &, void)
bool HasHistorySuccessor() const
css::uno::Reference< css::awt::XWindow > m_xHelpTextXWindow
std::unique_ptr< SfxHelpIndexWindow_Impl > xIndexWin
void SetFactory(const OUString &rFactory)
virtual void GetFocus() override
virtual ~SfxHelpWindow_Impl() override
DECL_LINK(OpenHdl, LinkParamNone *, void)
std::unique_ptr< weld::Paned > m_xContainer
HelpInterceptor_Impl * pHelpInterceptor
DECL_LINK(ChangeHdl, HelpListener_Impl &, void)
std::unique_ptr< weld::Container > m_xHelpPaneWindow
void SetHelpURL(std::u16string_view rURL)
std::unique_ptr< weld::Builder > m_xBuilder
void openDone(std::u16string_view sURL, bool bSuccess)
css::uno::Reference< css::awt::XWindow > xWindow
void OpenKeyword(const OUString &rKeyword)
std::unique_ptr< weld::Container > m_xHelpTextWindow
weld::Container * GetContainer()
virtual bool PreNotify(NotifyEvent &rNEvt) override
static OUString buildHelpURL(std::u16string_view sFactory, std::u16string_view sContent, std::u16string_view sAnchor)
void DoAction(std::u16string_view rAction)
virtual void dispose() override
void loadHelpContent(const OUString &sHelpURL, bool bAddToHistory=true)
css::uno::Reference< css::frame::XFrame2 > const & getTextFrame() const
void setContainerWindow(const css::uno::Reference< css::awt::XWindow > &xWin)
rtl::Reference< HelpListener_Impl > pHelpListener
bool HasHistoryPredecessor() const
css::uno::Reference< css::frame::XFrame2 > xFrame
SfxHelpWindow_Impl(const css::uno::Reference< css::frame::XFrame2 > &rFrame, vcl::Window *pParent)
DECL_LINK(SelectFactoryHdl, SfxHelpIndexWindow_Impl *, void)
VclPtr< SfxHelpTextWindow_Impl > pTextWin
virtual bool EventNotify(NotifyEvent &rNEvt) override
TextWin_Impl(vcl::Window *pParent)
std::tuple< vcl::RenderContext &, const tools::Rectangle &, bool, const OUString & > render_args
std::pair< vcl::RenderContext &, const OUString & > get_size_args
#define LINK(Instance, Class, Member)
void AppendConfigToken(OUStringBuffer &rURL, bool bQuestionMark)
Appends ?Language=xy&System=abc to the help URL in rURL.