LibreOffice Module sc (master) 1
Macros | Functions | Variables
appoptio.cxx File Reference
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <appoptio.hxx>
#include <global.hxx>
#include <userlist.hxx>
#include <formula/compiler.hxx>
#include <miscuno.hxx>
#include <vector>
#include <osl/diagnose.h>
Include dependency graph for appoptio.cxx:

Go to the source code of this file.

Macros

#define SCLAYOUTOPT_MEASURE   0
 
#define SCLAYOUTOPT_STATUSBAR   1
 
#define SCLAYOUTOPT_ZOOMVAL   2
 
#define SCLAYOUTOPT_ZOOMTYPE   3
 
#define SCLAYOUTOPT_SYNCZOOM   4
 
#define SCLAYOUTOPT_STATUSBARMULTI   5
 
#define SCINPUTOPT_LASTFUNCS   0
 
#define SCINPUTOPT_AUTOINPUT   1
 
#define SCINPUTOPT_DET_AUTO   2
 
#define SCREVISOPT_CHANGE   0
 
#define SCREVISOPT_INSERTION   1
 
#define SCREVISOPT_DELETION   2
 
#define SCREVISOPT_MOVEDENTRY   3
 
#define SCCONTENTOPT_LINK   0
 
#define SCSORTLISTOPT_LIST   0
 
#define SCMISCOPT_DEFOBJWIDTH   0
 
#define SCMISCOPT_DEFOBJHEIGHT   1
 
#define SCMISCOPT_SHOWSHAREDDOCWARN   2
 
#define SCCOMPATOPT_KEY_BINDING   0
 
#define SCLAYOUTOPT_STATUSBARMULTI_DEFAULTVAL   514
 
#define SCLAYOUTOPT_STATUSBAR_DEFAULTVAL   1
 
#define SCLAYOUTOPT_STATUSBAR_DEFAULTVAL_LEGACY   9
 

Functions

static void lcl_GetLastFunctions (Any &rDest, const ScAppOptions &rOpt)
 
static void lcl_GetSortList (Any &rDest)
 
static sal_uInt32 lcl_ConvertStatusBarFuncSetToSingle (sal_uInt32 nFuncSet)
 
 IMPL_LINK_NOARG (ScAppCfg, LayoutCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, LayoutNotifyHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, InputCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, InputNotifyHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, RevisionCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, RevisionNotifyHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, ContentCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, ContentNotifyHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, SortListCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, SortListNotifyHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, MiscCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, MiscNotifyHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, CompatCommitHdl, ScLinkConfigItem &, void)
 
 IMPL_LINK_NOARG (ScAppCfg, CompatNotifyHdl, ScLinkConfigItem &, void)
 

Variables

constexpr OUStringLiteral CFGPATH_LAYOUT = u"Office.Calc/Layout"
 
constexpr OUStringLiteral CFGPATH_INPUT = u"Office.Calc/Input"
 
constexpr OUStringLiteral CFGPATH_REVISION = u"Office.Calc/Revision/Color"
 
constexpr OUStringLiteral CFGPATH_CONTENT = u"Office.Calc/Content/Update"
 
constexpr OUStringLiteral CFGPATH_SORTLIST = u"Office.Calc/SortList"
 
constexpr OUStringLiteral CFGPATH_MISC = u"Office.Calc/Misc"
 
constexpr OUStringLiteral CFGPATH_COMPAT = u"Office.Calc/Compatibility"
 

Macro Definition Documentation

◆ SCCOMPATOPT_KEY_BINDING

#define SCCOMPATOPT_KEY_BINDING   0

Definition at line 194 of file appoptio.cxx.

◆ SCCONTENTOPT_LINK

#define SCCONTENTOPT_LINK   0

Definition at line 180 of file appoptio.cxx.

◆ SCINPUTOPT_AUTOINPUT

#define SCINPUTOPT_AUTOINPUT   1

Definition at line 168 of file appoptio.cxx.

◆ SCINPUTOPT_DET_AUTO

#define SCINPUTOPT_DET_AUTO   2

Definition at line 169 of file appoptio.cxx.

◆ SCINPUTOPT_LASTFUNCS

#define SCINPUTOPT_LASTFUNCS   0

Definition at line 167 of file appoptio.cxx.

◆ SCLAYOUTOPT_MEASURE

#define SCLAYOUTOPT_MEASURE   0

Definition at line 158 of file appoptio.cxx.

◆ SCLAYOUTOPT_STATUSBAR

#define SCLAYOUTOPT_STATUSBAR   1

Definition at line 159 of file appoptio.cxx.

◆ SCLAYOUTOPT_STATUSBAR_DEFAULTVAL

#define SCLAYOUTOPT_STATUSBAR_DEFAULTVAL   1

Definition at line 199 of file appoptio.cxx.

◆ SCLAYOUTOPT_STATUSBAR_DEFAULTVAL_LEGACY

#define SCLAYOUTOPT_STATUSBAR_DEFAULTVAL_LEGACY   9

Definition at line 202 of file appoptio.cxx.

◆ SCLAYOUTOPT_STATUSBARMULTI

#define SCLAYOUTOPT_STATUSBARMULTI   5

Definition at line 163 of file appoptio.cxx.

◆ SCLAYOUTOPT_STATUSBARMULTI_DEFAULTVAL

#define SCLAYOUTOPT_STATUSBARMULTI_DEFAULTVAL   514

Definition at line 197 of file appoptio.cxx.

◆ SCLAYOUTOPT_SYNCZOOM

#define SCLAYOUTOPT_SYNCZOOM   4

Definition at line 162 of file appoptio.cxx.

◆ SCLAYOUTOPT_ZOOMTYPE

#define SCLAYOUTOPT_ZOOMTYPE   3

Definition at line 161 of file appoptio.cxx.

◆ SCLAYOUTOPT_ZOOMVAL

#define SCLAYOUTOPT_ZOOMVAL   2

Definition at line 160 of file appoptio.cxx.

◆ SCMISCOPT_DEFOBJHEIGHT

#define SCMISCOPT_DEFOBJHEIGHT   1

Definition at line 189 of file appoptio.cxx.

◆ SCMISCOPT_DEFOBJWIDTH

#define SCMISCOPT_DEFOBJWIDTH   0

Definition at line 188 of file appoptio.cxx.

◆ SCMISCOPT_SHOWSHAREDDOCWARN

#define SCMISCOPT_SHOWSHAREDDOCWARN   2

Definition at line 190 of file appoptio.cxx.

◆ SCREVISOPT_CHANGE

#define SCREVISOPT_CHANGE   0

Definition at line 173 of file appoptio.cxx.

◆ SCREVISOPT_DELETION

#define SCREVISOPT_DELETION   2

Definition at line 175 of file appoptio.cxx.

◆ SCREVISOPT_INSERTION

#define SCREVISOPT_INSERTION   1

Definition at line 174 of file appoptio.cxx.

◆ SCREVISOPT_MOVEDENTRY

#define SCREVISOPT_MOVEDENTRY   3

Definition at line 176 of file appoptio.cxx.

◆ SCSORTLISTOPT_LIST

#define SCSORTLISTOPT_LIST   0

Definition at line 184 of file appoptio.cxx.

Function Documentation

◆ IMPL_LINK_NOARG() [1/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
CompatCommitHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 616 of file appoptio.cxx.

References Any, pValues, and SCCOMPATOPT_KEY_BINDING.

◆ IMPL_LINK_NOARG() [2/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
CompatNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 634 of file appoptio.cxx.

◆ IMPL_LINK_NOARG() [3/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
ContentCommitHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 550 of file appoptio.cxx.

References Any, pValues, and SCCONTENTOPT_LINK.

◆ IMPL_LINK_NOARG() [4/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
ContentNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 568 of file appoptio.cxx.

◆ IMPL_LINK_NOARG() [5/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
InputCommitHdl  ,
ScLinkConfigItem ,
void   
)

◆ IMPL_LINK_NOARG() [6/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
InputNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 519 of file appoptio.cxx.

◆ IMPL_LINK_NOARG() [7/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
LayoutCommitHdl  ,
ScLinkConfigItem ,
void   
)

◆ IMPL_LINK_NOARG() [8/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
LayoutNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 493 of file appoptio.cxx.

◆ IMPL_LINK_NOARG() [9/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
MiscCommitHdl  ,
ScLinkConfigItem ,
void   
)

◆ IMPL_LINK_NOARG() [10/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
MiscNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 614 of file appoptio.cxx.

◆ IMPL_LINK_NOARG() [11/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
RevisionCommitHdl  ,
ScLinkConfigItem ,
void   
)

◆ IMPL_LINK_NOARG() [12/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
RevisionNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 548 of file appoptio.cxx.

◆ IMPL_LINK_NOARG() [13/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
SortListCommitHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 570 of file appoptio.cxx.

References Any, lcl_GetSortList(), pValues, and SCSORTLISTOPT_LIST.

◆ IMPL_LINK_NOARG() [14/14]

IMPL_LINK_NOARG ( ScAppCfg  ,
SortListNotifyHdl  ,
ScLinkConfigItem ,
void   
)

Definition at line 588 of file appoptio.cxx.

◆ lcl_ConvertStatusBarFuncSetToSingle()

static sal_uInt32 lcl_ConvertStatusBarFuncSetToSingle ( sal_uInt32  nFuncSet)
static

Definition at line 204 of file appoptio.cxx.

Referenced by IMPL_LINK_NOARG().

◆ lcl_GetLastFunctions()

static void lcl_GetLastFunctions ( Any &  rDest,
const ScAppOptions rOpt 
)
static

Definition at line 124 of file appoptio.cxx.

References aSeq, ScAppOptions::GetLRUFuncList(), ScAppOptions::GetLRUFuncListCount(), i, and nCount.

Referenced by IMPL_LINK_NOARG().

◆ lcl_GetSortList()

static void lcl_GetSortList ( Any &  rDest)
static

Definition at line 140 of file appoptio.cxx.

References aSeq, ScGlobal::GetUserList(), i, nCount, and ScUserList::size().

Referenced by IMPL_LINK_NOARG().

Variable Documentation

◆ CFGPATH_COMPAT

constexpr OUStringLiteral CFGPATH_COMPAT = u"Office.Calc/Compatibility"
constexpr

Definition at line 192 of file appoptio.cxx.

◆ CFGPATH_CONTENT

constexpr OUStringLiteral CFGPATH_CONTENT = u"Office.Calc/Content/Update"
constexpr

Definition at line 178 of file appoptio.cxx.

◆ CFGPATH_INPUT

constexpr OUStringLiteral CFGPATH_INPUT = u"Office.Calc/Input"
constexpr

Definition at line 165 of file appoptio.cxx.

◆ CFGPATH_LAYOUT

constexpr OUStringLiteral CFGPATH_LAYOUT = u"Office.Calc/Layout"
constexpr

Definition at line 156 of file appoptio.cxx.

◆ CFGPATH_MISC

constexpr OUStringLiteral CFGPATH_MISC = u"Office.Calc/Misc"
constexpr

Definition at line 186 of file appoptio.cxx.

◆ CFGPATH_REVISION

constexpr OUStringLiteral CFGPATH_REVISION = u"Office.Calc/Revision/Color"
constexpr

Definition at line 171 of file appoptio.cxx.

◆ CFGPATH_SORTLIST

constexpr OUStringLiteral CFGPATH_SORTLIST = u"Office.Calc/SortList"
constexpr

Definition at line 182 of file appoptio.cxx.