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 <osl/diagnose.h>
#include <sal/log.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_setValue (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

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

Definition at line 174 of file xformsapi.cxx.

Function Documentation

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

Definition at line 97 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 68 of file xformsapi.cxx.

References Exception, makeAny(), SAL_WARN_IF, and sName.

Referenced by XFormsModelContext::EndElement().

Reference<XModel2> xforms_createXFormsModel ( )

Definition at line 61 of file xformsapi.cxx.

References comphelper::getProcessComponentContext(), and xModel.

Reference<XPropertySet> xforms_findXFormsBinding ( Reference< frame::XModel > const &  xDocument,
const OUString &  rBindingID 
)

Definition at line 153 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 160 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 277 of file xformsapi.cxx.

References 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 
)
OUString xforms_getTypeName ( const Reference< XDataTypeRepository > &  xRepository,
const SvXMLNamespaceMap rNamespaceMap,
const OUString &  rXMLName 
)
void xforms_setValue ( Reference< XPropertySet > const &  xPropertySet,
const OUString &  rName,
const Any &  rAny 
)

Variable Documentation

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 XML_TOKEN_MAP_END
Definition: xmltkmap.hxx:33
#define TOKEN_MAP_ENTRY(NAMESPACE, TOKEN)
Definition: xformsapi.cxx:174

Definition at line 175 of file xformsapi.cxx.