LibreOffice Module cui (master)  1
Classes | Macros | 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 <svx/dialogs.hrc>
#include <svx/svxids.hrc>
#include <unotools/resmgr.hxx>
#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 <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/languageoptions.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <svx/databaseregistrationui.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/urlobj.hxx>
#include <tools/diagnose_ex.h>
#include <unotools/configmgr.hxx>
#include <unotools/moduleoptions.hxx>
#include <unotools/optionsdlg.hxx>
#include <unotools/viewoptions.hxx>
#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
 

Macros

#define INI_LIST()
 

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 OUString getCurrentFactory_Impl (const Reference< XFrame > &_xFrame)
 
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 []
 

Macro Definition Documentation

#define INI_LIST ( )
Value:
, m_pParent ( pParent )\
, sTitle ( m_xDialog->get_title() )\
, bForgetSelection ( false )\
, bIsFromExtensionManager( false ) \
, bIsForSetDocumentLanguage( false ) \
, bNeedsRestart ( false ) \
, eRestartReason( svtools::RESTART_REASON_NONE )
RESTART_REASON_NONE
Reference< XExecutableDialog > m_xDialog

Definition at line 467 of file treeopt.cxx.

Function Documentation

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

Definition at line 270 of file treeopt.cxx.

References SfxCommonPrintOptionsTabPage::Create(), SvxPersonalizationTabPage::Create(), SvxOpenCLTabPage::Create(), SvxAccessibilityOptionsTabPage::Create(), SvxCTLOptionsPage::Create(), OfaMSFilterTabPage::Create(), SvxBasicIDEOptionsPage::Create(), offapp::ConnectionPoolOptionsPage::Create(), OfaHtmlTabPage::Create(), SvxAsianLayoutPage::Create(), SvxColorOptionsTabPage::Create(), SvxFontSubstTabPage::Create(), SvxJSearchOptionsPage::Create(), SvxOnlineUpdateTabPage::Create(), SvxPathTabPage::Create(), SvxGeneralTabPage::Create(), OfaMiscTabPage::Create(), SvxProxyTabPage::Create(), OfaMSFilterTabPage2::Create(), SvxSaveTabPage::Create(), SvxDefaultColorOptPage::Create(), svx::DbRegistrationOptionsPage::Create(), SvxJavaOptionsPage::Create(), SvxSecurityTabPage::Create(), OfaViewTabPage::Create(), SvxLinguTabPage::Create(), SvxEMailTabPage::Create(), OfaLanguagesTabPage::Create(), 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_INET_MAIL, RID_SVXPAGE_INET_PROXY, RID_SVXPAGE_INET_SECURITY, RID_SVXPAGE_JSEARCH_OPTIONS, RID_SVXPAGE_ONLINEUPDATE, RID_SVXPAGE_OPENCL, RID_SVXPAGE_OPTIONS_CTL, RID_SVXPAGE_OPTIONS_JAVA, and RID_SVXPAGE_PERSONALIZATION.

Referenced by OfaTreeOptionsDialog::SelectHdl_Impl().

static void deleteGroupNames ( )
static

Definition at line 208 of file treeopt.cxx.

Referenced by OfaTreeOptionsDialog::~OfaTreeOptionsDialog().

static OUString getCurrentFactory_Impl ( const Reference< XFrame > &  _xFrame)
static
static OUString getGroupName ( std::u16string_view  rModule,
bool  bForced 
)
static

Definition at line 176 of file treeopt.cxx.

References CuiResId(), first, and u.

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

static sal_uInt16 getGroupNodeId ( std::u16string_view  rModule)
static

Definition at line 214 of file treeopt.cxx.

Referenced by lcl_insertLeaf().

static OUString GetViewOptUserItem ( const SvtViewOptions rOpt)
static

Definition at line 129 of file treeopt.cxx.

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

Referenced by OfaTreeOptionsDialog::SelectHdl_Impl().

IMPL_LINK ( OfaTreeOptionsDialog  ,
ApplyHdl_Impl  ,
weld::Button ,
rButton  ,
void   
)
IMPL_LINK_NOARG ( OfaTreeOptionsDialog  ,
ShowPageHdl_Impl  ,
weld::TreeView ,
void   
)

Definition at line 614 of file treeopt.cxx.

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

Definition at line 637 of file treeopt.cxx.

IMPL_LINK_NOARG ( OfaTreeOptionsDialog  ,
HelpHdl_Impl  ,
weld::Widget ,
bool   
)
static bool isNodeActive ( OptionsNode const *  pNode,
Module pModule 
)
static
static sal_uInt16 lcl_getGroupId ( std::u16string_view  rGroupName,
const weld::TreeView rTreeLB 
)
static
static bool lcl_getStringFromID ( sal_uInt16  _nPageId,
OUString &  _rGroupName,
OUString &  _rPageName 
)
static

Definition at line 408 of file treeopt.cxx.

Referenced by lcl_isOptionHidden().

static void lcl_insertLeaf ( OfaTreeOptionsDialog pDlg,
OptionsNode const *  pNode,
OptionsLeaf const *  pLeaf,
const weld::TreeView rTreeLB 
)
static
static bool lcl_isOptionHidden ( sal_uInt16  _nPageId,
const SvtOptionsDialogOptions _rOptOptions 
)
static
static void setGroupName ( std::u16string_view  rModule,
const OUString &  rGroupName 
)
static

Definition at line 164 of file treeopt.cxx.

Referenced by OfaTreeOptionsDialog::Initialize().

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

Variable Documentation

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 148 of file treeopt.cxx.

OptionsMapping_Impl const OptionsMap_Impl[]

Definition at line 325 of file treeopt.cxx.

constexpr OUStringLiteral VIEWOPT_DATANAME = u"page data"

Definition at line 122 of file treeopt.cxx.

Referenced by GetViewOptUserItem(), and SetViewOptUserItem().