[Libreoffice-commits] .: svtools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 1 04:52:23 PST 2013


 svtools/source/config/miscopt.cxx |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

New commits:
commit 4ae569eb3e6d587aed6885b46c78f0d9bcbbb0b2
Author: LeMoyne Castle <lemoyne.castle at gmail.com>
Date:   Mon Dec 31 00:18:35 2012 -0700

    Minimal fix fdo#58766 Macro Recorder opt not saved
    
    Load of the last Misc. config item is skipped due to
    its index  == # of strings in array in GetPropertyNames.
    Omission in middle drops last item -
    never gets to the Enable Macro Recorder option.
    
    Change-Id: If99e0aa89e82ffc362f5e4bda712881a546e510a
    Reviewed-on: https://gerrit.libreoffice.org/1523
    Reviewed-by: Tor Lillqvist <tml at iki.fi>
    Tested-by: Tor Lillqvist <tml at iki.fi>

diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index c3666d0..d79ad29 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -43,28 +43,29 @@ using namespace ::com::sun::star;
 #define ASCII_STR(s)                        OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
 #define ROOTNODE_MISC                       ASCII_STR("Office.Common/Misc")
 
+// PROPERTYHANDLE defines must be sequential from zero for Commit/Load
 #define PROPERTYNAME_PLUGINSENABLED         ASCII_STR("PluginsEnabled")
-#define PROPERTYHANDLE_PLUGINSENABLED       0
+#define PROPERTYHANDLE_PLUGINSENABLED           0
 #define PROPERTYNAME_SYMBOLSET              ASCII_STR("SymbolSet")
-#define PROPERTYHANDLE_SYMBOLSET            1
+#define PROPERTYHANDLE_SYMBOLSET                1
 #define PROPERTYNAME_TOOLBOXSTYLE           ASCII_STR("ToolboxStyle")
-#define PROPERTYHANDLE_TOOLBOXSTYLE         2
+#define PROPERTYHANDLE_TOOLBOXSTYLE             2
 #define PROPERTYNAME_USESYSTEMFILEDIALOG    ASCII_STR("UseSystemFileDialog")
-#define PROPERTYHANDLE_USESYSTEMFILEDIALOG  3
+#define PROPERTYHANDLE_USESYSTEMFILEDIALOG      3
 #define PROPERTYNAME_SYMBOLSTYLE            ASCII_STR("SymbolStyle")
-#define PROPERTYHANDLE_SYMBOLSTYLE          4
+#define PROPERTYHANDLE_SYMBOLSTYLE              4
 #define PROPERTYNAME_USESYSTEMPRINTDIALOG   ASCII_STR("UseSystemPrintDialog")
-#define PROPERTYHANDLE_USESYSTEMPRINTDIALOG 5
+#define PROPERTYHANDLE_USESYSTEMPRINTDIALOG     5
 #define PROPERTYNAME_SHOWLINKWARNINGDIALOG  ASCII_STR("ShowLinkWarningDialog")
-#define PROPERTYHANDLE_SHOWLINKWARNINGDIALOG 7
+#define PROPERTYHANDLE_SHOWLINKWARNINGDIALOG    6
 #define PROPERTYNAME_DISABLEUICUSTOMIZATION ASCII_STR("DisableUICustomization")
-#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION           8
+#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION   7
 #define PROPERTYNAME_ALWAYSALLOWSAVE        ASCII_STR("AlwaysAllowSave")
-#define PROPERTYHANDLE_ALWAYSALLOWSAVE      9
+#define PROPERTYHANDLE_ALWAYSALLOWSAVE          8
 #define PROPERTYNAME_EXPERIMENTALMODE       ASCII_STR("ExperimentalMode")
-#define PROPERTYHANDLE_EXPERIMENTALMODE     10
+#define PROPERTYHANDLE_EXPERIMENTALMODE         9
 #define PROPERTYNAME_MACRORECORDERMODE       ASCII_STR("MacroRecorderMode")
-#define PROPERTYHANDLE_MACRORECORDERMODE    11
+#define PROPERTYHANDLE_MACRORECORDERMODE        10
 
 #define VCL_TOOLBOX_STYLE_FLAT              ((sal_uInt16)0x0004) // from <vcl/toolbox.hxx>
 


More information about the Libreoffice-commits mailing list