LibreOffice Module sfx2 (master) 1
|
#include "newhelp.hxx"
#include <sfx2/sfxresid.hxx>
#include "helpinterceptor.hxx"
#include <helper.hxx>
#include <srchdlg.hxx>
#include <sfx2/sfxhelp.hxx>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <o3tl/string_view.hxx>
#include <sfx2/strings.hrc>
#include <helpids.h>
#include <bitmaps.hlst>
#include <rtl/ustrbuf.hxx>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/frame/XComponentLoader.hpp>
#include <com/sun/star/frame/XTitle.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/Frame.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/text/XText.hpp>
#include <com/sun/star/text/XTextCursor.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/text/XTextViewCursor.hpp>
#include <com/sun/star/text/XTextViewCursorSupplier.hpp>
#include <com/sun/star/ucb/CommandAbortedException.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/util/XSearchable.hpp>
#include <com/sun/star/util/XSearchDescriptor.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/XModifiable.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/util/CloseVetoException.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <com/sun/star/view/XViewSettingsSupplier.hpp>
#include <unotools/historyoptions.hxx>
#include <unotools/viewoptions.hxx>
#include <tools/urlobj.hxx>
#include <svtools/imagemgr.hxx>
#include <svtools/miscopt.hxx>
#include <utility>
#include <vcl/commandevent.hxx>
#include <vcl/event.hxx>
#include <vcl/i18nhelp.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/unohelp.hxx>
#include <vcl/weld.hxx>
#include <ucbhelper/content.hxx>
#include <unotools/ucbhelper.hxx>
#include <string_view>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | sfx2 |
Typedefs | |
typedef std::unordered_map< OUString, int > | sfx2::KeywordInfo |
Variables | |
constexpr OUStringLiteral | CONFIGNAME_HELPWIN = u"OfficeHelp" |
constexpr OUStringLiteral | CONFIGNAME_INDEXWIN = u"OfficeHelpIndex" |
constexpr OUStringLiteral | CONFIGNAME_SEARCHPAGE = u"OfficeHelpSearch" |
constexpr OUStringLiteral | IMAGE_URL = u"private:factory/" |
constexpr OUStringLiteral | PROPERTY_KEYWORDLIST = u"KeywordList" |
constexpr OUStringLiteral | PROPERTY_KEYWORDREF = u"KeywordRef" |
constexpr OUStringLiteral | PROPERTY_ANCHORREF = u"KeywordAnchorForRef" |
constexpr OUStringLiteral | PROPERTY_TITLEREF = u"KeywordTitleForRef" |
constexpr OUStringLiteral | PROPERTY_TITLE = u"Title" |
constexpr OUStringLiteral | HELP_URL = u"vnd.sun.star.help://" |
constexpr OUStringLiteral | HELP_SEARCH_TAG = u"/?Query=" |
constexpr OUStringLiteral | USERITEM_NAME = u"UserItem" |
constexpr OUStringLiteral | PACKAGE_SETUP = u"/org.openoffice.Setup" |
constexpr OUStringLiteral | PATH_OFFICE_FACTORIES = u"Office/Factories/" |
constexpr OUStringLiteral | KEY_HELP_ON_OPEN = u"ooSetupFactoryHelpOnOpen" |
constexpr OUStringLiteral | KEY_UI_NAME = u"ooSetupFactoryUIName" |
IMPL_LINK | ( | BookmarksTabPage_Impl | , |
CommandHdl | , | ||
const CommandEvent & | , | ||
rCEvt | , | ||
bool | |||
) |
Definition at line 1121 of file newhelp.cxx.
References Application::CreateBuilder().
IMPL_LINK | ( | BookmarksTabPage_Impl | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 1135 of file newhelp.cxx.
References KEY_DELETE, and u.
IMPL_LINK | ( | ContentTabPage_Impl | , |
CollapsingHdl | , | ||
const weld::TreeIter & | , | ||
rIter | , | ||
bool | |||
) |
Definition at line 297 of file newhelp.cxx.
IMPL_LINK | ( | ContentTabPage_Impl | , |
ExpandingHdl | , | ||
const weld::TreeIter & | , | ||
rIter | , | ||
bool | |||
) |
Definition at line 248 of file newhelp.cxx.
References Any, aTargetURL, aURL, Exception, SfxContentHelper::GetHelpTreeViewContents(), o3tl::getToken(), sId, weld::toId(), and TOOLS_WARN_EXCEPTION.
IMPL_LINK | ( | IndexTabPage_Impl | , |
CustomRenderHdl | , | ||
weld::TreeView::render_args | , | ||
aPayload | , | ||
void | |||
) |
Definition at line 430 of file newhelp.cxx.
References Point::AdjustX(), Point::AdjustY(), OutputDevice::DrawText(), StyleSettings::GetDialogTextColor(), StyleSettings::GetHighlightTextColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), OutputDevice::GetTextHeight(), nIndex, nPos, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetTextColor(), and vcl::TEXTCOLOR.
IMPL_LINK | ( | IndexTabPage_Impl | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 487 of file newhelp.cxx.
References vcl::KeyCode::GetCode(), vcl::KeyCode::GetModifier(), KEY_DOWN, KEY_PAGEDOWN, KEY_PAGEUP, KEY_UP, nCount, and nIndex.
IMPL_LINK | ( | IndexTabPage_Impl | , |
ResizeHdl | , | ||
const Size & | , | ||
rSize | , | ||
void | |||
) |
Definition at line 420 of file newhelp.cxx.
IMPL_LINK | ( | IndexTabPage_Impl | , |
TimeoutHdl | , | ||
Timer * | , | ||
pTimer | , | ||
void | |||
) |
Definition at line 784 of file newhelp.cxx.
IMPL_LINK | ( | SearchTabPage_Impl | , |
ModifyHdl | , | ||
weld::ComboBox & | , | ||
rComboBox | , | ||
void | |||
) |
Definition at line 1035 of file newhelp.cxx.
References Search, and comphelper::string::strip().
IMPL_LINK | ( | SfxHelpIndexWindow_Impl | , |
ActivatePageHdl | , | ||
const OUString & | , | ||
rPage | , | ||
void | |||
) |
Definition at line 1272 of file newhelp.cxx.
IMPL_LINK | ( | SfxHelpTextWindow_Impl | , |
FindHdl | , | ||
sfx2::SearchDialog & | , | ||
rDlg | , | ||
void | |||
) |
Definition at line 1852 of file newhelp.cxx.
IMPL_LINK | ( | SfxHelpWindow_Impl | , |
ChangeHdl | , | ||
HelpListener_Impl & | , | ||
rListener | , | ||
void | |||
) |
Definition at line 2351 of file newhelp.cxx.
IMPL_LINK | ( | SfxHelpWindow_Impl | , |
ResizeHdl | , | ||
const Size & | , | ||
rSize | , | ||
void | |||
) |
Definition at line 2220 of file newhelp.cxx.
References m_xContainer, round, and Split.
IMPL_LINK | ( | SfxHelpWindow_Impl | , |
SelectFactoryHdl | , | ||
SfxHelpIndexWindow_Impl * | , | ||
pWin | , | ||
void | |||
) |
Definition at line 2336 of file newhelp.cxx.
References xFrame.
IMPL_LINK | ( | SfxHelpWindow_Impl | , |
SelectHdl | , | ||
const OUString & | , | ||
rCurItem | , | ||
void | |||
) |
Definition at line 2297 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | BookmarksTabPage_Impl | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 1190 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | BookmarksTabPage_Impl | , |
OpenHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1185 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | ContentTabPage_Impl | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 346 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
ActivateHdl | , | ||
weld::Entry & | , | ||
bool | |||
) |
Definition at line 704 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
AutoCompleteHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 739 of file newhelp.cxx.
References nPos, and starts_with().
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
CustomGetSizeHdl | , | ||
weld::TreeView::get_size_args | , | ||
Size | |||
) |
Definition at line 425 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 710 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
EntryChangeHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 469 of file newhelp.cxx.
References KEY_BACKSPACE, and KEY_DELETE.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
IdleHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 716 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
OpenHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 699 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | IndexTabPage_Impl | , |
TreeChangeHdl | , | ||
weld::TreeView & | , | ||
void | |||
) |
Definition at line 464 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SearchTabPage_Impl | , |
ActivateHdl | , | ||
weld::ComboBox & | , | ||
bool | |||
) |
Definition at line 889 of file newhelp.cxx.
References Search.
IMPL_LINK_NOARG | ( | SearchTabPage_Impl | , |
ClickHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 990 of file newhelp.cxx.
References Search.
IMPL_LINK_NOARG | ( | SearchTabPage_Impl | , |
DoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 1044 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SearchTabPage_Impl | , |
OpenHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1030 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
ContentTabPageDoubleClickHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 1439 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
IndexTabPageDoubleClickHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 1429 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
InitHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 1390 of file newhelp.cxx.
References LINK.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
KeywordHdl | , | ||
IndexTabPage_Impl & | , | ||
void | |||
) |
Definition at line 1410 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
SelectFactoryHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 1400 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
SelectHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 1385 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpIndexWindow_Impl | , |
TabPageDoubleClickHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 1444 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpTextWindow_Impl | , |
CheckHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 1939 of file newhelp.cxx.
References Any, Exception, KEY_HELP_ON_OPEN, PATH_OFFICE_FACTORIES, and TOOLS_WARN_EXCEPTION.
IMPL_LINK_NOARG | ( | SfxHelpTextWindow_Impl | , |
CloseHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 1934 of file newhelp.cxx.
IMPL_LINK_NOARG | ( | SfxHelpTextWindow_Impl | , |
NotifyHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 1846 of file newhelp.cxx.
References Resize.
IMPL_LINK_NOARG | ( | SfxHelpTextWindow_Impl | , |
SelectHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 1809 of file newhelp.cxx.
References Any, Exception, sfx2::PrepareSearchString(), TOOLS_WARN_EXCEPTION, xController, and xFrame.
IMPL_LINK_NOARG | ( | SfxHelpWindow_Impl | , |
OpenHdl | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 2303 of file newhelp.cxx.
References SfxHelpWindow_Impl::buildHelpURL(), o3tl::getToken(), and comphelper::string::getTokenCount().
|
static |
Definition at line 1591 of file newhelp.cxx.
References xFrame.
Referenced by SfxHelpTextWindow_Impl::SfxHelpTextWindow_Impl().
|
constexpr |
Definition at line 113 of file newhelp.cxx.
Referenced by SfxHelpWindow_Impl::LoadConfig(), and SfxHelpWindow_Impl::SaveConfig().
|
constexpr |
Definition at line 114 of file newhelp.cxx.
Referenced by SfxHelpIndexWindow_Impl::SfxHelpIndexWindow_Impl(), and SfxHelpIndexWindow_Impl::~SfxHelpIndexWindow_Impl().
|
constexpr |
Definition at line 115 of file newhelp.cxx.
Referenced by SearchTabPage_Impl::SearchTabPage_Impl(), and SearchTabPage_Impl::~SearchTabPage_Impl().
|
constexpr |
Definition at line 124 of file newhelp.cxx.
Referenced by SearchTabPage_Impl::Search().
|
constexpr |
Definition at line 123 of file newhelp.cxx.
Referenced by SfxHelpWindow_Impl::buildHelpURL(), SfxHelpIndexWindow_Impl::Initialize(), IndexTabPage_Impl::InitializeIndex(), and SearchTabPage_Impl::Search().
|
constexpr |
Definition at line 116 of file newhelp.cxx.
Referenced by BookmarksTabPage_Impl::AddBookmarks(), and BookmarksTabPage_Impl::DoAction().
|
constexpr |
Definition at line 129 of file newhelp.cxx.
Referenced by IMPL_LINK_NOARG(), and SfxHelpTextWindow_Impl::InitOnStartupBox().
|
constexpr |
Definition at line 130 of file newhelp.cxx.
Referenced by SfxHelpTextWindow_Impl::InitOnStartupBox().
|
constexpr |
Definition at line 127 of file newhelp.cxx.
Referenced by SfxHelpTextWindow_Impl::InitOnStartupBox().
|
constexpr |
Definition at line 128 of file newhelp.cxx.
Referenced by IMPL_LINK_NOARG(), and SfxHelpTextWindow_Impl::InitOnStartupBox().
|
constexpr |
Definition at line 120 of file newhelp.cxx.
Referenced by IndexTabPage_Impl::InitializeIndex().
|
constexpr |
Definition at line 118 of file newhelp.cxx.
Referenced by IndexTabPage_Impl::InitializeIndex().
|
constexpr |
Definition at line 119 of file newhelp.cxx.
Referenced by IndexTabPage_Impl::InitializeIndex().
|
constexpr |
Definition at line 122 of file newhelp.cxx.
Referenced by SfxHelpWindow_Impl::DoAction().
|
constexpr |
Definition at line 121 of file newhelp.cxx.
Referenced by IndexTabPage_Impl::InitializeIndex().
|
constexpr |
Definition at line 125 of file newhelp.cxx.
Referenced by SfxHelpWindow_Impl::LoadConfig(), SfxHelpWindow_Impl::SaveConfig(), SearchTabPage_Impl::SearchTabPage_Impl(), and SearchTabPage_Impl::~SearchTabPage_Impl().