25#include <com/sun/star/xsd/XDataType.hpp>
26#include <com/sun/star/beans/XPropertySet.hpp>
47 ::osl::Mutex& _rMutex,
48 const css::uno::Reference< css::beans::XPropertySet >& _rxIntrospectee,
49 const css::uno::Reference< css::frame::XModel >& _rxContextDocument
88 bool cloneDataType( const ::rtl::Reference< XSDDataType >& _pDataType,
const OUString& _rNewName )
const;
100 void copyDataType(
const OUString& _rFromModel,
const OUString& _rToModel,
101 const OUString& _rDataTypeName )
const;
111 css::uno::Reference< css::xforms::XDataTypeRepository >
116 css::uno::Reference< css::xforms::XDataTypeRepository >
121 css::uno::Reference< css::xsd::XDataType >
129 const css::uno::Reference< css::xforms::XDataTypeRepository >& _rxRepository
css::uno::Reference< css::xsd::XDataType > getDataType(const OUString &_rName) const
retrieves the data type object for the given name
::rtl::Reference< XSDDataType > getDataTypeByName(const OUString &_rName) const
retrieves a particular data type given by name
void findDefaultFormatForIntrospectee()
finds (and sets) a default format for the formatted field we're inspecting, according to the current ...
void setValidatingDataTypeByName(const OUString &_rName) const
binds the validator to a new data type
OUString getValidatingDataTypeName() const
retrieves the name of the data type which the control model is currently validated against
css::uno::Reference< css::xforms::XDataTypeRepository > getDataTypeRepository() const
retrieves the data type repository associated with the current model
static OUString getBasicTypeNameForClass(sal_Int16 _nClass, const css::uno::Reference< css::xforms::XDataTypeRepository > &_rxRepository)
retrieves the name of the basic data type which has the given class, in the given repository
bool isInspectingFormattedField() const
bool removeDataTypeFromRepository(const OUString &_rName) const
removes the data type given by name from the data type repository
XSDValidationHelper(::osl::Mutex &_rMutex, const css::uno::Reference< css::beans::XPropertySet > &_rxIntrospectee, const css::uno::Reference< css::frame::XModel > &_rxContextDocument)
::rtl::Reference< XSDDataType > getValidatingDataType() const
retrieves the DataType instance which the control model is currently validated against
bool cloneDataType(const ::rtl::Reference< XSDDataType > &_pDataType, const OUString &_rNewName) const
creates a new data type, which is a clone of an existing data type
bool m_bInspectingFormattedField
void getAvailableDataTypeNames(std::vector< OUString > &_rNames) const
retrieves the names of all XForms models in the document the control lives in
void copyDataType(const OUString &_rFromModel, const OUString &_rToModel, const OUString &_rDataTypeName) const
copy a data type from one model to another
OUString getBasicTypeNameForClass(sal_Int16 _eClass) const
retrieves the name of the basic data type which has the given class
a property handler for any virtual string properties