LibreOffice Module xmloff (master) 1
Macros | Typedefs | Functions | Variables
xformsexport.cxx File Reference
#include <xmloff/xformsexport.hxx>
#include "XFormsModelExport.hxx"
#include <xmloff/xmlexp.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/namespacemap.hxx>
#include <DomExport.hxx>
#include <sax/tools/converter.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <sal/log.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/document/NamedPropertyValues.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/form/binding/XBindableValue.hpp>
#include <com/sun/star/form/binding/XListEntrySink.hpp>
#include <com/sun/star/form/submission/XSubmissionSupplier.hpp>
#include <com/sun/star/xforms/XModel.hpp>
#include <com/sun/star/xforms/XDataTypeRepository.hpp>
#include <com/sun/star/xforms/XFormsSupplier.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/xsd/WhiteSpaceTreatment.hpp>
#include <com/sun/star/xsd/DataTypeClass.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/util/Duration.hpp>
Include dependency graph for xformsexport.cxx:

Go to the source code of this file.

Macros

#define TABLE_END   { nullptr, 0, 0, nullptr }
 

Typedefs

typedef OUString(* convert_t) (const Any &)
 

Functions

void exportXForms (SvXMLExport &rExport)
 export an XForms model. More...
 
static void exportXFormsInstance (SvXMLExport &, const Sequence< PropertyValue > &)
 
static void exportXFormsBinding (SvXMLExport &, const Reference< XPropertySet > &)
 
static void exportXFormsSubmission (SvXMLExport &, const Reference< XPropertySet > &)
 
static void exportXFormsSchemas (SvXMLExport &, const Reference< css::xforms::XModel > &)
 
static void lcl_export (const Reference< XPropertySet > &rPropertySet, SvXMLExport &rExport, const ExportTable *pTable)
 
static OUString xforms_string (const Any &)
 
static OUString xforms_bool (const Any &)
 
static OUString xforms_whitespace (const Any &)
 
template<typename T , void(*)(OUStringBuffer &, T) FUNC>
static OUString xforms_convert (const Any &)
 
template<typename T , void(*)(OUStringBuffer &, const T &) FUNC>
static OUString xforms_convertRef (const Any &)
 
static void xforms_formatDate (OUStringBuffer &aBuffer, const util::Date &aDate)
 
static void xforms_formatTime (OUStringBuffer &aBuffer, const css::util::Time &aTime)
 
static void xforms_formatDateTime (OUStringBuffer &aBuffer, const util::DateTime &aDateTime)
 
static void convertNumber (OUStringBuffer &b, sal_Int32 n)
 
static OUString lcl_getXSDType (SvXMLExport const &rExport, const Reference< XPropertySet > &xType)
 
void exportXFormsModel (SvXMLExport &rExport, const Reference< XPropertySet > &xModelPropSet)
 
static void lcl_exportDataTypeFacets (SvXMLExport &rExport, const Reference< XPropertySet > &rPropertySet, const ExportTable *pTable)
 
static void lcl_exportDataType (SvXMLExport &rExport, const Reference< XPropertySet > &xType)
 
template<typename T , void(*)(OUStringBuffer &, T) FUNC>
OUString xforms_convert (const Any &rAny)
 
template<typename T , void(*)(OUStringBuffer &, const T &) FUNC>
OUString xforms_convertRef (const Any &rAny)
 
static OUString lcl_getXFormsBindName (const Reference< XPropertySet > &xBinding)
 return name of Binding More...
 
OUString getXFormsBindName (const Reference< XPropertySet > &xControl)
 
OUString getXFormsListBindName (const Reference< XPropertySet > &xControl)
 
OUString getXFormsSubmissionName (const Reference< XPropertySet > &xBinding)
 
void getXFormsSettings (const Reference< XNameAccess > &_rXForms, Sequence< PropertyValue > &_out_rSettings)
 

Variables

convert_t const xforms_int32 = &xforms_convert<sal_Int32,&convertNumber>
 
convert_t const xforms_double = &xforms_convert<double,&::sax::Converter::convertDouble>
 
convert_t const xforms_dateTime = &xforms_convertRef<util::DateTime,&xforms_formatDateTime>
 
convert_t const xforms_date = &xforms_convertRef<util::Date,&xforms_formatDate>
 
convert_t const xforms_time = &xforms_convertRef<css::util::Time,&xforms_formatTime>
 
const ExportTable aXFormsModelTable []
 
const ExportTable aXFormsBindingTable []
 
const ExportTable aXFormsSubmissionTable []
 
const ExportTable aDataTypeFacetTable []
 

Macro Definition Documentation

◆ TABLE_END

#define TABLE_END   { nullptr, 0, 0, nullptr }

Definition at line 125 of file xformsexport.cxx.

Typedef Documentation

◆ convert_t

typedef OUString(* convert_t) (const Any &)

Definition at line 107 of file xformsexport.cxx.

Function Documentation

◆ convertNumber()

static void convertNumber ( OUStringBuffer &  b,
sal_Int32  n 
)
static

Definition at line 138 of file xformsexport.cxx.

References n.

◆ exportXForms()

void exportXForms ( SvXMLExport rExport)

export an XForms model.

Definition at line 80 of file xformsexport.cxx.

References exportXFormsModel(), SvXMLExport::GetModel(), and xModel.

◆ exportXFormsBinding()

void exportXFormsBinding ( SvXMLExport rExport,
const Reference< XPropertySet > &  xBinding 
)
static

◆ exportXFormsInstance()

void exportXFormsInstance ( SvXMLExport rExport,
const Sequence< PropertyValue > &  xInstance 
)
static

◆ exportXFormsModel()

void exportXFormsModel ( SvXMLExport rExport,
const Reference< XPropertySet > &  xModelPropSet 
)

◆ exportXFormsSchemas()

void exportXFormsSchemas ( SvXMLExport rExport,
const Reference< css::xforms::XModel > &  xModel 
)
static

◆ exportXFormsSubmission()

void exportXFormsSubmission ( SvXMLExport rExport,
const Reference< XPropertySet > &  xSubmission 
)
static

◆ getXFormsBindName()

OUString getXFormsBindName ( const Reference< XPropertySet > &  xControl)

◆ getXFormsListBindName()

OUString getXFormsListBindName ( const Reference< XPropertySet > &  xControl)

◆ getXFormsSettings()

void getXFormsSettings ( const Reference< XNameAccess > &  _rXForms,
Sequence< PropertyValue > &  _out_rSettings 
)

◆ getXFormsSubmissionName()

OUString getXFormsSubmissionName ( const Reference< XPropertySet > &  xBinding)

◆ lcl_export()

static void lcl_export ( const Reference< XPropertySet > &  rPropertySet,
SvXMLExport rExport,
const ExportTable *  pTable 
)
static

◆ lcl_exportDataType()

static void lcl_exportDataType ( SvXMLExport rExport,
const Reference< XPropertySet > &  xType 
)
static

◆ lcl_exportDataTypeFacets()

static void lcl_exportDataTypeFacets ( SvXMLExport rExport,
const Reference< XPropertySet > &  rPropertySet,
const ExportTable *  pTable 
)
static

◆ lcl_getXFormsBindName()

static OUString lcl_getXFormsBindName ( const Reference< XPropertySet > &  xBinding)
static

return name of Binding

Definition at line 706 of file xformsexport.cxx.

Referenced by getXFormsBindName(), and getXFormsListBindName().

◆ lcl_getXSDType()

static OUString lcl_getXSDType ( SvXMLExport const &  rExport,
const Reference< XPropertySet > &  xType 
)
static

◆ xforms_bool()

OUString xforms_bool ( const Any &  rAny)
static

◆ xforms_convert() [1/2]

template<typename T , void(*)(OUStringBuffer &, T) FUNC>
static OUString xforms_convert ( const Any &  rAny)
static

Definition at line 621 of file xformsexport.cxx.

References aBuffer, and aData.

◆ xforms_convert() [2/2]

template<typename T , void(*)(OUStringBuffer &, T) FUNC>
OUString xforms_convert ( const Any &  rAny)

Definition at line 621 of file xformsexport.cxx.

References aBuffer, and aData.

◆ xforms_convertRef() [1/2]

template<typename T , void(*)(OUStringBuffer &, const T &) FUNC>
static OUString xforms_convertRef ( const Any &  rAny)
static

Definition at line 633 of file xformsexport.cxx.

References aBuffer, and aData.

◆ xforms_convertRef() [2/2]

template<typename T , void(*)(OUStringBuffer &, const T &) FUNC>
OUString xforms_convertRef ( const Any &  rAny)

Definition at line 633 of file xformsexport.cxx.

References aBuffer, and aData.

◆ xforms_formatDate()

void xforms_formatDate ( OUStringBuffer &  aBuffer,
const util::Date aDate 
)
static

Definition at line 660 of file xformsexport.cxx.

References aBuffer.

◆ xforms_formatDateTime()

void xforms_formatDateTime ( OUStringBuffer &  aBuffer,
const util::DateTime aDateTime 
)
static

Definition at line 677 of file xformsexport.cxx.

References aBuffer, and sax::Converter::convertDateTime().

◆ xforms_formatTime()

void xforms_formatTime ( OUStringBuffer &  aBuffer,
const css::util::Time aTime 
)
static

Definition at line 667 of file xformsexport.cxx.

References aBuffer, and sax::Converter::convertDuration().

◆ xforms_string()

OUString xforms_string ( const Any &  rAny)
static

Definition at line 644 of file xformsexport.cxx.

◆ xforms_whitespace()

OUString xforms_whitespace ( const Any &  rAny)
static

Variable Documentation

◆ aDataTypeFacetTable

const ExportTable aDataTypeFacetTable[]

Definition at line 401 of file xformsexport.cxx.

Referenced by lcl_exportDataType().

◆ aXFormsBindingTable

const ExportTable aXFormsBindingTable[]
Initial value:

Definition at line 255 of file xformsexport.cxx.

Referenced by exportXFormsBinding().

◆ aXFormsModelTable

const ExportTable aXFormsModelTable[]
Initial value:

Definition at line 156 of file xformsexport.cxx.

Referenced by exportXFormsModel().

◆ aXFormsSubmissionTable

const ExportTable aXFormsSubmissionTable[]
Initial value:
=
{
}
@ XML_INCLUDENAMESPACEPREFIXES
Definition: xmltoken.hxx:2835
@ XML_OMIT_XML_DECLARATION
Definition: xmltoken.hxx:2824
@ XML_CDATA_SECTION_ELEMENTS
Definition: xmltoken.hxx:2826
static OUString xforms_bool(const Any &)

Definition at line 369 of file xformsexport.cxx.

Referenced by exportXFormsSubmission().

◆ xforms_date

Definition at line 145 of file xformsexport.cxx.

◆ xforms_dateTime

Definition at line 144 of file xformsexport.cxx.

◆ xforms_double

convert_t const xforms_double = &xforms_convert<double,&::sax::Converter::convertDouble>

Definition at line 143 of file xformsexport.cxx.

◆ xforms_int32

convert_t const xforms_int32 = &xforms_convert<sal_Int32,&convertNumber>

Definition at line 142 of file xformsexport.cxx.

◆ xforms_time

Definition at line 146 of file xformsexport.cxx.