LibreOffice Module cui (master) 1
Classes | Functions | Variables
treeopt.cxx File Reference
#include <memory>
#include <string_view>
#include <config_features.h>
#include <config_feature_opencl.h>
#include <config_feature_desktop.h>
#include <config_gpgme.h>
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Writer.hxx>
#include <svx/dialogs.hrc>
#include <svx/svxids.hrc>
#include <treeopt.hrc>
#include <helpids.h>
#include "cfgchart.hxx"
#include "connpoolconfig.hxx"
#include "connpooloptions.hxx"
#include <cuioptgenrl.hxx>
#include <dbregister.hxx>
#include "dbregisterednamesconfig.hxx"
#include <dialmgr.hxx>
#include "fontsubs.hxx"
#include "optaccessibility.hxx"
#include <optasian.hxx>
#include "optchart.hxx"
#include "optcolor.hxx"
#include "optctl.hxx"
#include "optfltr.hxx"
#include "optgdlg.hxx"
#include "opthtml.hxx"
#include "optinet2.hxx"
#include "optjava.hxx"
#include "optjsearch.hxx"
#include <optlingu.hxx>
#include <optpath.hxx>
#include "optsave.hxx"
#include "optupdt.hxx"
#include "personalization.hxx"
#include <treeopt.hxx>
#include "optbasic.hxx"
#include "optlanguagetool.hxx"
#include "optdeepl.hxx"
#include <com/sun/star/awt/XContainerWindowEventHandler.hpp>
#include <com/sun/star/awt/ContainerWindowProvider.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/UnknownModuleException.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/linguistic2/LinguProperties.hpp>
#include <com/sun/star/setup/UpdateCheck.hpp>
#include <comphelper/getexpandeduri.hxx>
#include <comphelper/processfactory.hxx>
#include <editeng/langitem.hxx>
#include <editeng/optitems.hxx>
#include <editeng/unolingu.hxx>
#include <linguistic/misc.hxx>
#include <officecfg/Office/OptionsDialog.hxx>
#include <sfx2/app.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/module.hxx>
#include <sfx2/printopt.hxx>
#include <sfx2/shell.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/flagitem.hxx>
#include <svl/intitem.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <svx/databaseregistrationui.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/urlobj.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/moduleoptions.hxx>
#include <unotools/optionsdlg.hxx>
#include <unotools/viewoptions.hxx>
#include <utility>
#include <vcl/help.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weldutils.hxx>
#include <vcl/window.hxx>
#include <sal/log.hxx>
Include dependency graph for treeopt.cxx:

Go to the source code of this file.

Classes

struct  OptionsPageInfo
 
struct  OptionsGroupInfo
 

Functions

static void SetViewOptUserItem (SvtViewOptions &rOpt, const OUString &rData)
 
static OUString GetViewOptUserItem (const SvtViewOptions &rOpt)
 
static void setGroupName (std::u16string_view rModule, const OUString &rGroupName)
 
static OUString getGroupName (std::u16string_view rModule, bool bForced)
 
static void deleteGroupNames ()
 
static sal_uInt16 getGroupNodeId (std::u16string_view rModule)
 
static std::unique_ptr< SfxTabPageCreateGeneralTabPage (sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
static bool lcl_getStringFromID (sal_uInt16 _nPageId, OUString &_rGroupName, OUString &_rPageName)
 
static bool lcl_isOptionHidden (sal_uInt16 _nPageId, const SvtOptionsDialogOptions &_rOptOptions)
 
 IMPL_LINK_NOARG (OfaTreeOptionsDialog, ShowPageHdl_Impl, weld::TreeView &, void)
 
 IMPL_LINK_NOARG (OfaTreeOptionsDialog, BackHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (OfaTreeOptionsDialog, HelpHdl_Impl, weld::Widget &, bool)
 
 IMPL_LINK (OfaTreeOptionsDialog, ApplyHdl_Impl, weld::Button &, rButton, void)
 
static bool isNodeActive (OptionsNode const *pNode, Module *pModule)
 
static sal_uInt16 lcl_getGroupId (std::u16string_view rGroupName, const weld::TreeView &rTreeLB)
 
static void lcl_insertLeaf (OfaTreeOptionsDialog *pDlg, OptionsNode const *pNode, OptionsLeaf const *pLeaf, const weld::TreeView &rTreeLB)
 

Variables

constexpr OUStringLiteral VIEWOPT_DATANAME = u"page data"
 
static ModuleToGroupNameMap_Impl ModuleMap []
 
OptionsMapping_Impl const OptionsMap_Impl []
 

Function Documentation

◆ CreateGeneralTabPage()

static std::unique_ptr< SfxTabPage > CreateGeneralTabPage ( sal_uInt16  nId,
weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

Definition at line 242 of file treeopt.cxx.

References SfxCommonPrintOptionsTabPage::Create(), offapp::ConnectionPoolOptionsPage::Create(), SvxGeneralTabPage::Create(), SvxAsianLayoutPage::Create(), SvxFontSubstTabPage::Create(), SvxAccessibilityOptionsTabPage::Create(), SvxColorOptionsTabPage::Create(), SvxCTLOptionsPage::Create(), OptDeeplTabPage::Create(), OfaMSFilterTabPage::Create(), OfaMSFilterTabPage2::Create(), OfaMiscTabPage::Create(), OfaViewTabPage::Create(), OfaLanguagesTabPage::Create(), OfaHtmlTabPage::Create(), SvxProxyTabPage::Create(), SvxSecurityTabPage::Create(), SvxEMailTabPage::Create(), OptLanguageToolTabPage::Create(), SvxSaveTabPage::Create(), SvxDefaultColorOptPage::Create(), svx::DbRegistrationOptionsPage::Create(), SvxLinguTabPage::Create(), SvxPathTabPage::Create(), SvxBasicIDEOptionsPage::Create(), SvxJavaOptionsPage::Create(), SvxJSearchOptionsPage::Create(), SvxOpenCLTabPage::Create(), SvxOnlineUpdateTabPage::Create(), SvxPersonalizationTabPage::Create(), nId, OFA_TP_LANGUAGES, OFA_TP_MISC, OFA_TP_VIEW, RID_OFAPAGE_HTMLOPT, RID_OFAPAGE_MSFILTEROPT2, RID_OPTPAGE_CHART_DEFCOLORS, RID_SFXPAGE_GENERAL, RID_SFXPAGE_LINGU, RID_SFXPAGE_PATH, RID_SFXPAGE_PRINTOPTIONS, RID_SFXPAGE_SAVE, RID_SVX_FONT_SUBSTITUTION, RID_SVXPAGE_ACCESSIBILITYCONFIG, RID_SVXPAGE_ASIAN_LAYOUT, RID_SVXPAGE_BASICIDE_OPTIONS, RID_SVXPAGE_COLORCONFIG, RID_SVXPAGE_DEEPL_OPTIONS, RID_SVXPAGE_INET_MAIL, RID_SVXPAGE_INET_PROXY, RID_SVXPAGE_INET_SECURITY, RID_SVXPAGE_JSEARCH_OPTIONS, RID_SVXPAGE_LANGTOOL_OPTIONS, RID_SVXPAGE_ONLINEUPDATE, RID_SVXPAGE_OPENCL, RID_SVXPAGE_OPTIONS_CTL, RID_SVXPAGE_OPTIONS_JAVA, RID_SVXPAGE_PERSONALIZATION, and rSet.

Referenced by OfaTreeOptionsDialog::SelectHdl_Impl().

◆ deleteGroupNames()

static void deleteGroupNames ( )
static

Definition at line 210 of file treeopt.cxx.

Referenced by OfaTreeOptionsDialog::~OfaTreeOptionsDialog().

◆ getGroupName()

static OUString getGroupName ( std::u16string_view  rModule,
bool  bForced 
)
static

Definition at line 178 of file treeopt.cxx.

References CuiResId(), first, and u.

Referenced by isNodeActive(), and OfaTreeOptionsDialog::LoadNodes().

◆ getGroupNodeId()

static sal_uInt16 getGroupNodeId ( std::u16string_view  rModule)
static

Definition at line 216 of file treeopt.cxx.

Referenced by lcl_insertLeaf().

◆ GetViewOptUserItem()

static OUString GetViewOptUserItem ( const SvtViewOptions rOpt)
static

Definition at line 131 of file treeopt.cxx.

References Any, SvtViewOptions::GetUserItem(), and VIEWOPT_DATANAME.

Referenced by OfaTreeOptionsDialog::SelectHdl_Impl().

◆ IMPL_LINK()

IMPL_LINK ( OfaTreeOptionsDialog  ,
ApplyHdl_Impl  ,
weld::Button ,
rButton  ,
void   
)

◆ IMPL_LINK_NOARG() [1/3]

IMPL_LINK_NOARG ( OfaTreeOptionsDialog  ,
BackHdl_Impl  ,
weld::Button ,
void   
)

Definition at line 610 of file treeopt.cxx.

◆ IMPL_LINK_NOARG() [2/3]

IMPL_LINK_NOARG ( OfaTreeOptionsDialog  ,
HelpHdl_Impl  ,
weld::Widget ,
bool   
)

◆ IMPL_LINK_NOARG() [3/3]

IMPL_LINK_NOARG ( OfaTreeOptionsDialog  ,
ShowPageHdl_Impl  ,
weld::TreeView ,
void   
)

Definition at line 587 of file treeopt.cxx.

◆ isNodeActive()

static bool isNodeActive ( OptionsNode const *  pNode,
Module pModule 
)
static

◆ lcl_getGroupId()

static sal_uInt16 lcl_getGroupId ( std::u16string_view  rGroupName,
const weld::TreeView rTreeLB 
)
static

◆ lcl_getStringFromID()

static bool lcl_getStringFromID ( sal_uInt16  _nPageId,
OUString &  _rGroupName,
OUString &  _rPageName 
)
static

Definition at line 382 of file treeopt.cxx.

References OptionsMap_Impl.

Referenced by lcl_isOptionHidden().

◆ lcl_insertLeaf()

static void lcl_insertLeaf ( OfaTreeOptionsDialog pDlg,
OptionsNode const *  pNode,
OptionsLeaf const *  pLeaf,
const weld::TreeView rTreeLB 
)
static

◆ lcl_isOptionHidden()

static bool lcl_isOptionHidden ( sal_uInt16  _nPageId,
const SvtOptionsDialogOptions _rOptOptions 
)
static

◆ setGroupName()

static void setGroupName ( std::u16string_view  rModule,
const OUString &  rGroupName 
)
static

Definition at line 166 of file treeopt.cxx.

Referenced by OfaTreeOptionsDialog::Initialize().

◆ SetViewOptUserItem()

static void SetViewOptUserItem ( SvtViewOptions rOpt,
const OUString &  rData 
)
static

Variable Documentation

◆ ModuleMap

ModuleToGroupNameMap_Impl ModuleMap[]
static
Initial value:
=
{
{ u"ProductName", OUString(), SID_GENERAL_OPTIONS },
{ u"LanguageSettings", OUString(), SID_LANGUAGE_OPTIONS },
{ u"Internet", OUString(), SID_INET_DLG },
{ u"LoadSave", OUString(), SID_FILTER_DLG },
{ u"Writer", OUString(), SID_SW_EDITOPTIONS },
{ u"WriterWeb", OUString(), SID_SW_ONLINEOPTIONS },
{ u"Math", OUString(), SID_SM_EDITOPTIONS },
{ u"Calc", OUString(), SID_SC_EDITOPTIONS },
{ u"Impress", OUString(), SID_SD_EDITOPTIONS },
{ u"Draw", OUString(), SID_SD_GRAPHIC_OPTIONS },
{ u"Charts", OUString(), SID_SCH_EDITOPTIONS },
{ u"Base", OUString(), SID_SB_STARBASEOPTIONS },
}
float u

Definition at line 150 of file treeopt.cxx.

◆ OptionsMap_Impl

OptionsMapping_Impl const OptionsMap_Impl[]

Definition at line 299 of file treeopt.cxx.

Referenced by lcl_getStringFromID().

◆ VIEWOPT_DATANAME

constexpr OUStringLiteral VIEWOPT_DATANAME = u"page data"
constexpr

Definition at line 124 of file treeopt.cxx.

Referenced by GetViewOptUserItem(), and SetViewOptUserItem().