diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-03-20 12:33:39 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-03-20 12:33:39 +0000 |
commit | b07d4412cebc2f2c6e161e623a2dd1dea109ec60 (patch) | |
tree | 3801002bc2b6c076c1f6e34a91e735a75c56c839 /xmloff | |
parent | 473f82e13e67a6f227511c159c13ec6b85978631 (diff) |
#83970# +getOfficeFormsAttributeName(/-space)
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/formattributes.cxx | 27 | ||||
-rw-r--r-- | xmloff/source/forms/formattributes.hxx | 26 |
2 files changed, 49 insertions, 4 deletions
diff --git a/xmloff/source/forms/formattributes.cxx b/xmloff/source/forms/formattributes.cxx index e82c1a93f3c0..b59df72b2a35 100644 --- a/xmloff/source/forms/formattributes.cxx +++ b/xmloff/source/forms/formattributes.cxx @@ -2,9 +2,9 @@ * * $RCSfile: formattributes.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: fs $ $Date: 2001-03-20 08:02:29 $ + * last change: $Author: fs $ $Date: 2001-03-20 13:33:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -226,6 +226,26 @@ namespace xmloff return XML_NAMESPACE_FORM; } + //--------------------------------------------------------------------- + const sal_Char* OAttributeMetaData::getOfficeFormsAttributeName(OfficeFormsAttributes _eAttrib) + { + switch (_eAttrib) + { + case ofaAutomaticFocus: return "automatic-focus"; + case ofaApplyDesignMode: return "apply-design-mode"; + default: + OSL_ENSURE(sal_False, "OAttributeMetaData::getOfficeFormsAttributeName: invalid id!"); + } + return ""; + } + + //--------------------------------------------------------------------- + sal_uInt16 OAttributeMetaData::getOfficeFormsAttributeNamespace(OfficeFormsAttributes /* _eAttrib */) + { + // nothing special here + return XML_NAMESPACE_FORM; + } + //===================================================================== //= OAttribute2Property //===================================================================== @@ -320,6 +340,9 @@ namespace xmloff /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.7 2001/03/20 08:02:29 fs + * #85114# #85115# corrected attributed names for encoding type and detail fields + * * Revision 1.6 2001/02/13 13:44:41 fs * tab_index -> tab-index * diff --git a/xmloff/source/forms/formattributes.hxx b/xmloff/source/forms/formattributes.hxx index d95de6743300..eb55e5aa7b27 100644 --- a/xmloff/source/forms/formattributes.hxx +++ b/xmloff/source/forms/formattributes.hxx @@ -2,9 +2,9 @@ * * $RCSfile: formattributes.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: fs $ $Date: 2000-12-12 12:01:05 $ + * last change: $Author: fs $ $Date: 2001-03-20 13:33:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -160,6 +160,13 @@ namespace xmloff #define SCA_IS_TRISTATE 0x00000800 #define SCA_STATE 0x00001000 + // attributes of the office:forms element + enum OfficeFormsAttributes + { + ofaAutomaticFocus, + ofaApplyDesignMode + }; + //===================================================================== //= OAttributeMetaData //===================================================================== @@ -225,6 +232,18 @@ namespace xmloff the id of the attribute. Has to be one of the SCA_* constants. */ static sal_uInt16 getSpecialAttributeNamespace(sal_Int32 _nId); + + /** calculates the xml attribute representation of a attribute of the office:forms element + @param _nId + the id of the attribute + */ + static const sal_Char* getOfficeFormsAttributeName(OfficeFormsAttributes _eAttrib); + + /** calculates the xml namedspace key of a attribute of the office:forms element + @param _nId + the id of the attribute + */ + static sal_uInt16 getOfficeFormsAttributeNamespace(OfficeFormsAttributes _eAttrib); }; //===================================================================== @@ -349,6 +368,9 @@ namespace xmloff /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.4 2000/12/12 12:01:05 fs + * new implementations for the import - still under construction + * * Revision 1.3 2000/12/06 17:28:05 fs * changes for the formlayer import - still under construction * |