LibreOffice Module xmloff (master) 1
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.

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 []
 

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:
=
{
}
constexpr sal_uInt16 XML_NAMESPACE_XSD
#define XML_TOKEN_MAP_END
Definition: xmltkmap.hxx:33

Definition at line 173 of file xformsapi.cxx.

Referenced by xforms_getTypeClass(), and xforms_getTypeName().