#83970# +getOfficeFormsAttributeName(/-space)

This commit is contained in:
Frank Schönheit 2001-03-20 12:33:39 +00:00
parent 473f82e13e
commit b07d4412ce
2 changed files with 49 additions and 4 deletions

View file

@ -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
*

View file

@ -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
*