LibreOffice Module xmloff (master) 1
Macros | Functions | Variables
xformsapi.cxx File Reference
#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>
Include dependency graph for xformsapi.cxx:

Go to the source code of this file.

Macros

#define TOKEN_MAP_ENTRY(NAMESPACE, TOKEN)   { XML_NAMESPACE_##NAMESPACE, xmloff::token::XML_##TOKEN, xmloff::token::XML_##TOKEN }
 

Functions

Reference< XModel2 > xforms_createXFormsModel ()
 
void xforms_addXFormsModel (const Reference< frame::XModel > &xDocument, const Reference< xforms::XModel2 > &xModel)
 
static Reference< XPropertySetlcl_findXFormsBindingOrSubmission (Reference< frame::XModel > const &xDocument, const OUString &rBindingID, bool bBinding)
 
Reference< XPropertySetxforms_findXFormsBinding (Reference< frame::XModel > const &xDocument, const OUString &rBindingID)
 
Reference< XPropertySetxforms_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 []
 

Macro Definition Documentation

◆ TOKEN_MAP_ENTRY

#define TOKEN_MAP_ENTRY (   NAMESPACE,
  TOKEN 
)    { XML_NAMESPACE_##NAMESPACE, xmloff::token::XML_##TOKEN, xmloff::token::XML_##TOKEN }

Definition at line 173 of file xformsapi.cxx.

Function Documentation

◆ lcl_findXFormsBindingOrSubmission()

static Reference< XPropertySet > lcl_findXFormsBindingOrSubmission ( Reference< frame::XModel > const &  xDocument,
const OUString &  rBindingID,
bool  bBinding 
)
static

Definition at line 96 of file xformsapi.cxx.

References Exception, and xModel.

Referenced by xforms_findXFormsBinding(), and xforms_findXFormsSubmission().

◆ xforms_addXFormsModel()

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().

◆ xforms_createXFormsModel()

Reference< XModel2 > xforms_createXFormsModel ( )

Definition at line 60 of file xformsapi.cxx.

References comphelper::getProcessComponentContext(), and xModel.

◆ xforms_findXFormsBinding()

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().

◆ xforms_findXFormsSubmission()

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().

◆ xforms_getBasicTypeName()

OUString xforms_getBasicTypeName ( const Reference< XDataTypeRepository > &  xRepository,
const SvXMLNamespaceMap rNamespaceMap,
const OUString &  rXMLName 
)

◆ xforms_getTypeClass()

sal_uInt16 xforms_getTypeClass ( const Reference< XDataTypeRepository > &  xRepository,
const SvXMLNamespaceMap rNamespaceMap,
const OUString &  rXMLName 
)

◆ xforms_getTypeName()

OUString xforms_getTypeName ( const Reference< XDataTypeRepository > &  xRepository,
const SvXMLNamespaceMap rNamespaceMap,
const OUString &  rXMLName 
)

◆ xforms_setValueAny()

void xforms_setValueAny ( Reference< XPropertySet > const &  xPropertySet,
const OUString &  rName,
const Any &  rAny 
)

Definition at line 166 of file xformsapi.cxx.

Variable Documentation

◆ aTypes

const SvXMLTokenMapEntry aTypes[]
Initial value:
=
{
TOKEN_MAP_ENTRY( XSD, STRING ),
TOKEN_MAP_ENTRY( XSD, DECIMAL ),
TOKEN_MAP_ENTRY( XSD, DOUBLE ),
TOKEN_MAP_ENTRY( XSD, FLOAT ),
TOKEN_MAP_ENTRY( XSD, BOOLEAN ),
TOKEN_MAP_ENTRY( XSD, ANYURI ),
TOKEN_MAP_ENTRY( XSD, DATETIME_XSD ),
TOKEN_MAP_ENTRY( XSD, DATE ),
TOKEN_MAP_ENTRY( XSD, TIME ),
TOKEN_MAP_ENTRY( XSD, YEAR ),
TOKEN_MAP_ENTRY( XSD, MONTH ),
TOKEN_MAP_ENTRY( XSD, DAY ),
}
#define TOKEN_MAP_ENTRY(NAMESPACE, TOKEN)
Definition: xformsapi.cxx:173
#define XML_TOKEN_MAP_END
Definition: xmltkmap.hxx:33

Definition at line 174 of file xformsapi.cxx.

Referenced by xforms_getTypeClass(), and xforms_getTypeName().