LibreOffice Module xmloff (master) 1
|
#include "xformsapi.hxx"
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/xforms/XFormsSupplier.hpp>
#include <com/sun/star/xforms/XDataTypeRepository.hpp>
#include <com/sun/star/xforms/Model.hpp>
#include <com/sun/star/xforms/XModel2.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/xsd/DataTypeClass.hpp>
#include <comphelper/processfactory.hxx>
#include <sal/log.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltkmap.hxx>
Go to the source code of this file.
Functions | |
Reference< XModel2 > | xforms_createXFormsModel () |
void | xforms_addXFormsModel (const Reference< frame::XModel > &xDocument, const Reference< xforms::XModel2 > &xModel) |
static Reference< XPropertySet > | lcl_findXFormsBindingOrSubmission (Reference< frame::XModel > const &xDocument, const OUString &rBindingID, bool bBinding) |
Reference< XPropertySet > | xforms_findXFormsBinding (Reference< frame::XModel > const &xDocument, const OUString &rBindingID) |
Reference< XPropertySet > | xforms_findXFormsSubmission (Reference< frame::XModel > const &xDocument, const OUString &rBindingID) |
void | xforms_setValueAny (Reference< XPropertySet > const &xPropertySet, const OUString &rName, const Any &rAny) |
sal_uInt16 | xforms_getTypeClass (const Reference< XDataTypeRepository > &xRepository, const SvXMLNamespaceMap &rNamespaceMap, const OUString &rXMLName) |
OUString | xforms_getTypeName (const Reference< XDataTypeRepository > &xRepository, const SvXMLNamespaceMap &rNamespaceMap, const OUString &rXMLName) |
OUString | xforms_getBasicTypeName (const Reference< XDataTypeRepository > &xRepository, const SvXMLNamespaceMap &rNamespaceMap, const OUString &rXMLName) |
Variables | |
const SvXMLTokenMapEntry | aTypes [] |
|
static |
Definition at line 96 of file xformsapi.cxx.
References Exception, and xModel.
Referenced by xforms_findXFormsBinding(), and xforms_findXFormsSubmission().
void xforms_addXFormsModel | ( | const Reference< frame::XModel > & | xDocument, |
const Reference< xforms::XModel2 > & | xModel | ||
) |
Definition at line 67 of file xformsapi.cxx.
References Any, Exception, SAL_WARN_IF, sName, and xModel.
Referenced by XFormsModelContext::endFastElement().
Reference< XModel2 > xforms_createXFormsModel | ( | ) |
Definition at line 60 of file xformsapi.cxx.
References comphelper::getProcessComponentContext(), and xModel.
Reference< XPropertySet > xforms_findXFormsBinding | ( | Reference< frame::XModel > const & | xDocument, |
const OUString & | rBindingID | ||
) |
Definition at line 152 of file xformsapi.cxx.
References lcl_findXFormsBindingOrSubmission().
Referenced by bindXFormsListBinding(), and bindXFormsValueBinding().
Reference< XPropertySet > xforms_findXFormsSubmission | ( | Reference< frame::XModel > const & | xDocument, |
const OUString & | rBindingID | ||
) |
Definition at line 159 of file xformsapi.cxx.
References lcl_findXFormsBindingOrSubmission().
Referenced by bindXFormsSubmission().
OUString xforms_getBasicTypeName | ( | const Reference< XDataTypeRepository > & | xRepository, |
const SvXMLNamespaceMap & | rNamespaceMap, | ||
const OUString & | rXMLName | ||
) |
Definition at line 275 of file xformsapi.cxx.
References Exception, TOOLS_WARN_EXCEPTION, and xforms_getTypeClass().
Referenced by SchemaRestrictionContext::CreateDataType(), and xforms_getTypeName().
sal_uInt16 xforms_getTypeClass | ( | const Reference< XDataTypeRepository > & | xRepository, |
const SvXMLNamespaceMap & | rNamespaceMap, | ||
const OUString & | rXMLName | ||
) |
Definition at line 190 of file xformsapi.cxx.
References aMap, aTypes, SvXMLNamespaceMap::GetKeyByAttrValueQName(), nToken, SAL_WARN_IF, xmloff::token::XML_ANYURI, xmloff::token::XML_BOOLEAN, xmloff::token::XML_DATE, xmloff::token::XML_DATETIME_XSD, xmloff::token::XML_DAY, xmloff::token::XML_DECIMAL, xmloff::token::XML_DOUBLE, xmloff::token::XML_FLOAT, xmloff::token::XML_MONTH, xmloff::token::XML_STRING, xmloff::token::XML_TIME, XML_TOK_UNKNOWN, and xmloff::token::XML_YEAR.
Referenced by SchemaRestrictionContext::HandleChild(), and xforms_getBasicTypeName().
OUString xforms_getTypeName | ( | const Reference< XDataTypeRepository > & | xRepository, |
const SvXMLNamespaceMap & | rNamespaceMap, | ||
const OUString & | rXMLName | ||
) |
Definition at line 261 of file xformsapi.cxx.
References aMap, aTypes, SvXMLNamespaceMap::GetKeyByAttrValueQName(), nToken, xforms_getBasicTypeName(), and XML_TOK_UNKNOWN.
Referenced by XFormsBindContext::HandleAttribute().
void xforms_setValueAny | ( | Reference< XPropertySet > const & | xPropertySet, |
const OUString & | rName, | ||
const Any & | rAny | ||
) |
Definition at line 166 of file xformsapi.cxx.
const SvXMLTokenMapEntry aTypes[] |
Definition at line 173 of file xformsapi.cxx.
Referenced by xforms_getTypeClass(), and xforms_getTypeName().