20 #include <com/sun/star/uno/Any.hxx>
21 #include <com/sun/star/uno/Sequence.hxx>
22 #include <osl/diagnose.h>
41 bMoveSelection =
true;
43 bExtendFormat =
false;
46 mbSortRefUpdate =
true;
50 bReplCellsWarn =
true;
51 bLegacyCellSelection =
false;
52 bEnterPasteMode =
false;
57 #define CFGPATH_INPUT "Office.Calc/Input"
59 #define SCINPUTOPT_MOVEDIR 0
60 #define SCINPUTOPT_MOVESEL 1
61 #define SCINPUTOPT_EDTEREDIT 2
62 #define SCINPUTOPT_EXTENDFMT 3
63 #define SCINPUTOPT_RANGEFIND 4
64 #define SCINPUTOPT_EXPANDREFS 5
65 #define SCINPUTOPT_SORT_REF_UPDATE 6
66 #define SCINPUTOPT_MARKHEADER 7
67 #define SCINPUTOPT_USETABCOL 8
68 #define SCINPUTOPT_TEXTWYSIWYG 9
69 #define SCINPUTOPT_REPLCELLSWARN 10
70 #define SCINPUTOPT_LEGACY_CELL_SELECTION 11
71 #define SCINPUTOPT_ENTER_PASTE_MODE 12
75 return {
"MoveSelectionDirection",
81 "UpdateReferenceOnSort",
85 "ReplaceCellsWarning",
86 "LegacyCellSelection",
97 OSL_ENSURE(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
98 if(aValues.getLength() != aNames.getLength())
101 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
103 OSL_ENSURE(pValues[nProp].hasValue(),
"property value missing");
104 if(pValues[nProp].hasValue())
106 sal_Int32 nIntVal = 0;
110 if ( pValues[nProp] >>= nIntVal )
111 SetMoveDir( static_cast<sal_uInt16>(nIntVal) );
160 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
165 pValues[nProp] <<=
static_cast<sal_Int32
>(
GetMoveDir());
210 OSL_FAIL(
"properties have been changed");
bool EnableNotification(const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
bool PutProperties(const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
css::uno::Sequence< css::uno::Any > GetProperties(const css::uno::Sequence< OUString > &rNames)
const PropertyValue * pValues
static bool GetBoolFromAny(const css::uno::Any &aAny)