diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-04-18 23:36:33 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-04-18 23:40:20 +0300 |
commit | 1ab7d31a6842ad680351e804990f7a0493f93b46 (patch) | |
tree | b4a02fd067b91cf336005821098fc4f7180e4dd6 | |
parent | 49bd0e4e6bb0ed0671de72d84700ddcc49828f69 (diff) |
Add comment describing the meanings of the filter flag bits
-rw-r--r-- | comphelper/inc/comphelper/documentconstants.hxx | 29 | ||||
-rw-r--r-- | filter/source/config/cache/constant.hxx | 4 |
2 files changed, 33 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/documentconstants.hxx b/comphelper/inc/comphelper/documentconstants.hxx index 06653b023002..d65ced0ffebe 100644 --- a/comphelper/inc/comphelper/documentconstants.hxx +++ b/comphelper/inc/comphelper/documentconstants.hxx @@ -114,6 +114,35 @@ // filter flags // TODO/LATER: The flags should be part of the UNO specification + +// Note that these flag bits have parallel names in +// filter/source/config/cache/constant.hxx. Some of the bits are +// missing from there, and some have different names. But the meaning +// is presumably the same, and the values are the same. + +// http://www.mail-archive.com/dev@openoffice.org/msg05047.html says: + +// I can just sum up what comes into my mind, hope I don't miss one: + +// Import - should be self explaining +// Export - should be self explaining +// Template - deprecated +// TemplatePath - filter for a documenttemplate +// Own - one of the OOo file formats +// Alien - no zip container based format +// Preferred - preferred filter for a particular type +// Asynchron - deprecated, only HTML-filter isn't synchron +// 3rdPartyFilter - implemented as a UNO component +// Default - default filter for this document type +// NotInFileDialog - should be self explaining +// NotInChooser - as above + +// (The 3rdPartyFilter flag is here called StarONE) + +// At some point (4.0?) we should drop the duplicate set of names over +// in filter, and rename the obscure ones to describe their meaning +// using terms that are understandable. + #define SFX_FILTER_IMPORT 0x00000001L #define SFX_FILTER_EXPORT 0x00000002L #define SFX_FILTER_TEMPLATE 0x00000004L diff --git a/filter/source/config/cache/constant.hxx b/filter/source/config/cache/constant.hxx index 7632068d6815..91618033fcbb 100644 --- a/filter/source/config/cache/constant.hxx +++ b/filter/source/config/cache/constant.hxx @@ -115,6 +115,10 @@ extern rtl::OUString pFilterStrings[]; #define CFGDIRECTKEY_FORMATVERSION _FILTER_CONFIG_FROM_ASCII_("/org.openoffice.Setup/Product/ooXMLFileFormatVersion" ) #define CFGDIRECTKEY_PRODUCTNAME _FILTER_CONFIG_FROM_ASCII_("/org.openoffice.Setup/Product/ooName" ) +// Note that these flag bits have parallel names in +// comphelper/inc/comphelper/documentconstants.hxx . See that file for +// documentation on their meaning. + /** @short names of filter flags, sorted in alphabetical order */ #define FLAGNAME_3RDPARTYFILTER _FILTER_CONFIG_FROM_ASCII_("3RDPARTYFILTER" ) #define FLAGNAME_ALIEN _FILTER_CONFIG_FROM_ASCII_("ALIEN" ) |