LibreOffice Module cui (master) 1
Functions
cfg.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <cassert>
#include <stdlib.h>
#include <typeinfo>
#include <utility>
#include <vcl/stdtext.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/event.hxx>
#include <vcl/graph.hxx>
#include <vcl/graphicfilter.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/weld.hxx>
#include <vcl/decoview.hxx>
#include <vcl/virdev.hxx>
#include <sfx2/minfitem.hxx>
#include <sfx2/sfxhelp.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/sfxsids.hrc>
#include <svl/stritem.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/debug.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <algorithm>
#include <strings.hrc>
#include <acccfg.hxx>
#include <cfg.hxx>
#include <CustomNotebookbarGenerator.hxx>
#include <SvxMenuConfigPage.hxx>
#include <SvxToolbarConfigPage.hxx>
#include <SvxNotebookbarConfigPage.hxx>
#include <SvxConfigPageHelper.hxx>
#include "eventdlg.hxx"
#include <dialmgr.hxx>
#include <unotools/configmgr.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/FileSystemStorageFactory.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/XFrames.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/theUICommandDescription.hpp>
#include <com/sun/star/graphic/GraphicProvider.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/ui/ItemType.hpp>
#include <com/sun/star/ui/ItemStyle.hpp>
#include <com/sun/star/ui/ImageManager.hpp>
#include <com/sun/star/ui/theModuleUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XUIConfigurationPersistence.hpp>
#include <com/sun/star/ui/XUIElement.hpp>
#include <com/sun/star/ui/UIElementType.hpp>
#include <com/sun/star/ui/ImageType.hpp>
#include <com/sun/star/ui/theWindowStateConfiguration.hpp>
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp>
#include <com/sun/star/util/thePathSettings.hpp>
#include <comphelper/documentinfo.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/processfactory.hxx>
#include <config_features.h>
Include dependency graph for cfg.cxx:

Go to the source code of this file.

Functions

void printPropertySet (const OUString &prefix, const uno::Reference< beans::XPropertySet > &xPropSet)
 
void printProperties (const OUString &prefix, const uno::Sequence< beans::PropertyValue > &aProp)
 
void printEntries (SvxEntries *entries)
 
static std::unique_ptr< SfxTabPageCreateSvxMenuConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static std::unique_ptr< SfxTabPageCreateSvxContextMenuConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static std::unique_ptr< SfxTabPageCreateKeyboardConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static std::unique_ptr< SfxTabPageCreateSvxNotebookbarConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static std::unique_ptr< SfxTabPageCreateSvxToolbarConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static std::unique_ptr< SfxTabPageCreateSvxEventConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
 IMPL_LINK (SvxMenuEntriesListBox, KeyInputHdl, const KeyEvent &, rKeyEvent, bool)
 
 IMPL_LINK (SvxMenuEntriesListBox, QueryTooltip, const weld::TreeIter &, rIter, OUString)
 
 IMPL_LINK_NOARG (SvxConfigPage, SelectElementHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SvxConfigPage, SelectSaveInLocation, weld::ComboBox &, void)
 
 IMPL_LINK (SvxConfigPage, MoveHdl, weld::Button &, rButton, void)
 
 IMPL_LINK_NOARG (SvxConfigPage, FunctionDoubleClickHdl, weld::TreeView &, bool)
 
 IMPL_LINK_NOARG (SvxConfigPage, SelectFunctionHdl, weld::TreeView &, void)
 
 IMPL_LINK_NOARG (SvxConfigPage, ImplUpdateDataHdl, Timer *, void)
 
 IMPL_LINK_NOARG (SvxConfigPage, SearchUpdateHdl, weld::Entry &, void)
 
 IMPL_LINK_NOARG (SvxConfigPage, FocusOut_Impl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (SvxMainMenuOrganizerDialog, ModifyHdl, weld::Entry &, void)
 
 IMPL_LINK_NOARG (SvxMainMenuOrganizerDialog, SelectHdl, weld::TreeView &, void)
 
 IMPL_LINK (SvxMainMenuOrganizerDialog, MoveHdl, weld::Button &, rButton, void)
 
 IMPL_LINK_NOARG (SvxIconSelectorDialog, SelectHdl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxIconSelectorDialog, ImportHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SvxIconSelectorDialog, DeleteHdl, weld::Button &, void)
 

Function Documentation

◆ CreateKeyboardConfigPage()

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

Definition at line 180 of file cfg.cxx.

References rSet.

Referenced by SvxConfigDialog::SvxConfigDialog().

◆ CreateSvxContextMenuConfigPage()

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

Definition at line 175 of file cfg.cxx.

References rSet.

Referenced by SvxConfigDialog::SvxConfigDialog().

◆ CreateSvxEventConfigPage()

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

Definition at line 196 of file cfg.cxx.

References rSet.

Referenced by SvxConfigDialog::SvxConfigDialog().

◆ CreateSvxMenuConfigPage()

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

Definition at line 170 of file cfg.cxx.

References rSet.

Referenced by SvxConfigDialog::SvxConfigDialog().

◆ CreateSvxNotebookbarConfigPage()

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

Definition at line 185 of file cfg.cxx.

References rSet.

Referenced by SvxConfigDialog::SvxConfigDialog().

◆ CreateSvxToolbarConfigPage()

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

Definition at line 191 of file cfg.cxx.

References rSet.

Referenced by SvxConfigDialog::SvxConfigDialog().

◆ IMPL_LINK() [1/4]

IMPL_LINK ( SvxConfigPage  ,
MoveHdl  ,
weld::Button ,
rButton  ,
void   
)

Definition at line 1625 of file cfg.cxx.

◆ IMPL_LINK() [2/4]

IMPL_LINK ( SvxMainMenuOrganizerDialog  ,
MoveHdl  ,
weld::Button ,
rButton  ,
void   
)

Definition at line 1884 of file cfg.cxx.

References sId.

◆ IMPL_LINK() [3/4]

IMPL_LINK ( SvxMenuEntriesListBox  ,
KeyInputHdl  ,
const KeyEvent ,
rKeyEvent  ,
bool   
)

Definition at line 955 of file cfg.cxx.

References vcl::KeyCode::GetCode(), vcl::KeyCode::IsMod1(), KEY_DELETE, KEY_DOWN, and KEY_UP.

◆ IMPL_LINK() [4/4]

IMPL_LINK ( SvxMenuEntriesListBox  ,
QueryTooltip  ,
const weld::TreeIter ,
rIter  ,
OUString   
)

◆ IMPL_LINK_NOARG() [1/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
FocusOut_Impl  ,
weld::Widget ,
void   
)

Definition at line 1697 of file cfg.cxx.

◆ IMPL_LINK_NOARG() [2/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
FunctionDoubleClickHdl  ,
weld::TreeView ,
bool   
)

Definition at line 1630 of file cfg.cxx.

◆ IMPL_LINK_NOARG() [3/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
ImplUpdateDataHdl  ,
Timer ,
void   
)

Definition at line 1685 of file cfg.cxx.

◆ IMPL_LINK_NOARG() [4/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
SearchUpdateHdl  ,
weld::Entry ,
void   
)

Definition at line 1692 of file cfg.cxx.

◆ IMPL_LINK_NOARG() [5/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
SelectElementHdl  ,
weld::ComboBox ,
void   
)

Definition at line 1047 of file cfg.cxx.

◆ IMPL_LINK_NOARG() [6/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
SelectFunctionHdl  ,
weld::TreeView ,
void   
)

◆ IMPL_LINK_NOARG() [7/12]

IMPL_LINK_NOARG ( SvxConfigPage  ,
SelectSaveInLocation  ,
weld::ComboBox ,
void   
)

Definition at line 1357 of file cfg.cxx.

References Init(), notebookbarTabScope, and sId.

◆ IMPL_LINK_NOARG() [8/12]

IMPL_LINK_NOARG ( SvxIconSelectorDialog  ,
DeleteHdl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [9/12]

IMPL_LINK_NOARG ( SvxIconSelectorDialog  ,
ImportHdl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [10/12]

IMPL_LINK_NOARG ( SvxIconSelectorDialog  ,
SelectHdl  ,
ValueSet ,
void   
)

Definition at line 2885 of file cfg.cxx.

References SvxConfigPageHelper::GetImageType(), and nId.

◆ IMPL_LINK_NOARG() [11/12]

IMPL_LINK_NOARG ( SvxMainMenuOrganizerDialog  ,
ModifyHdl  ,
weld::Entry ,
void   
)

Definition at line 1853 of file cfg.cxx.

References SvxConfigEntry::GetName(), and SvxConfigEntry::SetName().

◆ IMPL_LINK_NOARG() [12/12]

IMPL_LINK_NOARG ( SvxMainMenuOrganizerDialog  ,
SelectHdl  ,
weld::TreeView ,
void   
)

Definition at line 1871 of file cfg.cxx.

◆ printEntries()

void printEntries ( SvxEntries entries)

Definition at line 154 of file cfg.cxx.

References SAL_WARN.

◆ printProperties()

void printProperties ( const OUString &  prefix,
const uno::Sequence< beans::PropertyValue > &  aProp 
)

Definition at line 140 of file cfg.cxx.

References prefix, and SAL_WARN.

◆ printPropertySet()

void printPropertySet ( const OUString &  prefix,
const uno::Reference< beans::XPropertySet > &  xPropSet 
)

Definition at line 106 of file cfg.cxx.

References a, prefix, and SAL_WARN.