LibreOffice Module sfx2 (master) 1
Functions | Variables
sfxhelp.cxx File Reference
#include <config_folders.h>
#include <sfx2/sfxhelp.hxx>
#include <string_view>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <sal/log.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/UnknownModuleException.hpp>
#include <com/sun/star/frame/XFrame2.hpp>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/awt/XTopWindow.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <toolkit/helper/vclunohelper.hxx>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <unotools/configmgr.hxx>
#include <unotools/moduleoptions.hxx>
#include <tools/urlobj.hxx>
#include <ucbhelper/content.hxx>
#include <unotools/pathoptions.hxx>
#include <rtl/byteseq.hxx>
#include <rtl/ustring.hxx>
#include <o3tl/string_view.hxx>
#include <officecfg/Office/Common.hxx>
#include <osl/process.h>
#include <osl/file.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/securityoptions.hxx>
#include <rtl/uri.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/keycod.hxx>
#include <vcl/settings.hxx>
#include <vcl/locktoplevels.hxx>
#include <vcl/weld.hxx>
#include <openuriexternally.hxx>
#include <comphelper/lok.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <sfx2/viewsh.hxx>
#include "newhelp.hxx"
#include <sfx2/flatpak.hxx>
#include <sfx2/sfxresid.hxx>
#include <helper.hxx>
#include <sfx2/strings.hrc>
#include <vcl/svapp.hxx>
#include <rtl/string.hxx>
#include <svtools/langtab.hxx>
#include <comphelper/diagnose_ex.hxx>
Include dependency graph for sfxhelp.cxx:

Go to the source code of this file.

Functions

 IMPL_STATIC_LINK_NOARG (NoHelpErrorBox, HelpRequestHdl, weld::Widget &, bool)
 
static OUString const & HelpLocaleString ()
 Return the locale we prefer for displaying help. More...
 
void AppendConfigToken (OUStringBuffer &rURL, bool bQuestionMark)
 Appends ?Language=xy&System=abc to the help URL in rURL. More...
 
static bool GetHelpAnchor_Impl (std::u16string_view _rURL, OUString &_rAnchor)
 
static OUString getDefaultModule_Impl ()
 
static OUString getCurrentModuleIdentifier_Impl ()
 
static SfxHelpWindow_Implimpl_createHelp (Reference< XFrame2 > &rHelpTask, Reference< XFrame > &rHelpContent)
 
static bool impl_showOnlineHelp (const OUString &rURL, weld::Widget *pDialogParent)
 Redirect the vnd.sun.star.help:// urls to http://help.libreoffice.org. More...
 
static bool impl_showOfflineHelp (const OUString &rURL, weld::Widget *pDialogParent)
 

Variables

constexpr OUStringLiteral SHTML1 = u"<!DOCTYPE HTML><html lang=\"en-US\"><head><meta charset=\"UTF-8\">"
 
constexpr OUStringLiteral SHTML2 = u"<noscript><meta http-equiv=\"refresh\" content=\"0; url='"
 
constexpr OUStringLiteral SHTML3 = u"/noscript.html'\"></noscript><meta http-equiv=\"refresh\" content=\"1; url='"
 
constexpr OUStringLiteral SHTML4 = u"'\"><script type=\"text/javascript\"> window.location.href = \""
 
constexpr OUStringLiteral SHTML5 = u"\";</script><title>Help Page Redirection</title></head><body></body></html>"
 

Function Documentation

◆ AppendConfigToken()

void AppendConfigToken ( OUStringBuffer &  rURL,
bool  bQuestionMark 
)

◆ getCurrentModuleIdentifier_Impl()

static OUString getCurrentModuleIdentifier_Impl ( )
static

◆ getDefaultModule_Impl()

static OUString getDefaultModule_Impl ( )
static

◆ GetHelpAnchor_Impl()

static bool GetHelpAnchor_Impl ( std::u16string_view  _rURL,
OUString &  _rAnchor 
)
static

◆ HelpLocaleString()

static OUString const & HelpLocaleString ( )
static

◆ impl_createHelp()

static SfxHelpWindow_Impl * impl_createHelp ( Reference< XFrame2 > &  rHelpTask,
Reference< XFrame > &  rHelpContent 
)
static

◆ impl_showOfflineHelp()

static bool impl_showOfflineHelp ( const OUString &  rURL,
weld::Widget pDialogParent 
)
static

◆ impl_showOnlineHelp()

static bool impl_showOnlineHelp ( const OUString &  rURL,
weld::Widget pDialogParent 
)
static

◆ IMPL_STATIC_LINK_NOARG()

IMPL_STATIC_LINK_NOARG ( NoHelpErrorBox  ,
HelpRequestHdl  ,
weld::Widget ,
bool   
)

Definition at line 112 of file sfxhelp.cxx.

Variable Documentation

◆ SHTML1

constexpr OUStringLiteral SHTML1 = u"<!DOCTYPE HTML><html lang=\"en-US\"><head><meta charset=\"UTF-8\">"
constexpr

Definition at line 931 of file sfxhelp.cxx.

Referenced by impl_showOfflineHelp().

◆ SHTML2

constexpr OUStringLiteral SHTML2 = u"<noscript><meta http-equiv=\"refresh\" content=\"0; url='"
constexpr

Definition at line 932 of file sfxhelp.cxx.

Referenced by impl_showOfflineHelp().

◆ SHTML3

constexpr OUStringLiteral SHTML3 = u"/noscript.html'\"></noscript><meta http-equiv=\"refresh\" content=\"1; url='"
constexpr

Definition at line 933 of file sfxhelp.cxx.

Referenced by impl_showOfflineHelp().

◆ SHTML4

constexpr OUStringLiteral SHTML4 = u"'\"><script type=\"text/javascript\"> window.location.href = \""
constexpr

Definition at line 934 of file sfxhelp.cxx.

Referenced by impl_showOfflineHelp().

◆ SHTML5

constexpr OUStringLiteral SHTML5 = u"\";</script><title>Help Page Redirection</title></head><body></body></html>"
constexpr

Definition at line 935 of file sfxhelp.cxx.

Referenced by impl_showOfflineHelp().