diff options
author | Tor Lillqvist <tml@collabora.com> | 2020-12-09 14:04:07 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-12-09 15:16:43 +0100 |
commit | e04bf67bba3a6410f49fd311fe499456c2f9dc7d (patch) | |
tree | 72c6d18557debe8444eb6fe7991c9524d4b5c3da | |
parent | 16976c40821f9d5a8c98ea801e749e5198640e29 (diff) |
Add some documentation for magic numbers
Change-Id: Ic26a18b703408634dc6fb7582159090e0ce5d229
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107469
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 14573121ab1e..64952eb92710 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -17,6 +17,19 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . --> <!DOCTYPE oor:component-data SYSTEM "../../../../../component-update.dtd"> + +<!-- The meaning of the bits of the magic numbers in the "Properties" things can be found: + +In framework/source/uielement/uicommanddescription.cxx: +bit 0 (0x1): const sal_Int32 COMMAND_PROPERTY_IMAGE = 1; +bit 1 (0x2): const sal_Int32 COMMAND_PROPERTY_ROTATE = 2; +bit 2 (0x4): const sal_Int32 COMMAND_PROPERTY_MIRROR = 4; + +In framework/inc/properties.h +bit 3 (0x8): #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8 + +--> + <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:install="http://openoffice.org/2004/installation" oor:name="GenericCommands" oor:package="org.openoffice.Office.UI"> <node oor:name="UserInterface"> <node oor:name="Commands"> |