LibreOffice Module xmloff (master) 1
|
upperclass for variable/user-set, var/user-input, and sequence fields inds field master of appropriate type and attaches field to it. More...
#include <txtvfldi.hxx>
Public Member Functions | |
XMLSetVarFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, VarType eVarType, bool bFormula, bool bFormulaDefault, bool bDescription, bool bHelp, bool bHint, bool bVisible, bool bDisplayFormula, bool bType, bool bStyle, bool bValue, bool bPresentation) | |
Public Member Functions inherited from XMLVarFieldImportContext | |
XMLVarFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, bool bFormula, bool bFormulaDefault, bool bDescription, bool bHelp, bool bHint, bool bVisible, bool bDisplayFormula, bool bType, bool bStyle, bool bValue, bool bPresentation) | |
set presentation frm elem. content? More... | |
Public Member Functions inherited from XMLTextFieldImportContext | |
XMLTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, OUString aService) | |
whether this field is valid ? More... | |
virtual void SAL_CALL | characters (const OUString &sContent) override |
name of SO API service More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
parses attributes and calls ProcessAttribute More... | |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
create XTextField and insert into document; calls PrepareTextField More... | |
Public Member Functions inherited from SvXMLImportContext | |
SvXMLImportContext (SvXMLImport &rImport) | |
A contexts constructor does anything that is required if an element starts. More... | |
virtual | ~SvXMLImportContext () |
A contexts destructor does anything that is required if an element ends. More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | endFastElement (sal_Int32 Element) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) override |
virtual css::uno::Reference< XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
This method is called for all characters that are contained in the current element. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) final override |
virtual void SAL_CALL | acquire () noexcept final override |
virtual void SAL_CALL | release () noexcept final override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () final override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () final override |
Protected Member Functions | |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
see XMLTextFieldImportContext More... | |
bool | FindFieldMaster (css::uno::Reference< css::beans::XPropertySet > &xMaster) |
find appropriate field master More... | |
Protected Member Functions inherited from XMLVarFieldImportContext | |
virtual void | ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue) override |
set presentation from elem. content More... | |
virtual void | PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override |
prepare XTextField for insertion into document More... | |
const OUString & | GetName () const |
bool | IsStringValue () const |
Protected Member Functions inherited from XMLTextFieldImportContext | |
XMLTextImportHelper & | GetImportHelper () |
get helper More... | |
const OUString & | GetServiceName () const |
void | SetServiceName (const OUString &sStr) |
OUString const & | GetContent () |
virtual void | ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue)=0 |
process attribute values More... | |
virtual void | PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)=0 |
prepare XTextField for insertion into document More... | |
bool | CreateField (css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName) |
create field from ServiceName More... | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Private Attributes | |
const VarType | eFieldType |
Additional Inherited Members | |
Static Public Member Functions inherited from XMLTextFieldImportContext | |
static XMLTextFieldImportContext * | CreateTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement) |
create the appropriate field context from (for use in paragraph import) More... | |
Static Protected Member Functions inherited from XMLTextFieldImportContext | |
static void | ForceUpdate (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet) |
force an update of the field's value call update on optional XUpdatable interface; (disable Fixed property) More... | |
Protected Attributes inherited from XMLTextFieldImportContext | |
OUString | sServicePrefix |
the import helper More... | |
bool | bValid |
upperclass for variable/user-set, var/user-input, and sequence fields inds field master of appropriate type and attaches field to it.
Definition at line 223 of file txtvfldi.hxx.
XMLSetVarFieldImportContext::XMLSetVarFieldImportContext | ( | SvXMLImport & | rImport, |
XMLTextImportHelper & | rHlp, | ||
const OUString & | pServiceName, | ||
VarType | eVarType, | ||
bool | bFormula, | ||
bool | bFormulaDefault, | ||
bool | bDescription, | ||
bool | bHelp, | ||
bool | bHint, | ||
bool | bVisible, | ||
bool | bDisplayFormula, | ||
bool | bType, | ||
bool | bStyle, | ||
bool | bValue, | ||
bool | bPresentation | ||
) |
rHlp | see XMLTextFieldImportContext |
pServiceName | see XMLTextFieldImportContext |
eVarType | see XMLTextFieldImportContext |
bFormula | variable type |
bFormulaDefault | see XMLTextFieldImportContext |
bDescription | see XMLTextFieldImportContext |
bHelp | see XMLTextFieldImportContext |
bHint | see XMLTextFieldImportContext |
bVisible | see XMLTextFieldImportContext |
bDisplayFormula | see XMLTextFieldImportContext |
bType | see XMLTextFieldImportContext |
bStyle | see XMLTextFieldImportContext |
bValue | see XMLTextFieldImportContext |
bPresentation | see XMLTextFieldImportContext |
Definition at line 247 of file txtvfldi.cxx.
References bVisible.
|
overrideprotectedvirtual |
create XTextField, attach master and insert into document; also calls PrepareTextField
Reimplemented from XMLTextFieldImportContext.
Definition at line 261 of file txtvfldi.cxx.
References XMLTextFieldImportContext::bValid, XMLTextFieldImportContext::CreateField(), DBG_ASSERT, FindFieldMaster(), XMLTextFieldImportContext::GetContent(), XMLTextFieldImportContext::GetImportHelper(), XMLVarFieldImportContext::GetName(), XMLTextFieldImportContext::GetServiceName(), XMLTextImportHelper::InsertString(), XMLTextImportHelper::InsertTextContent(), and XMLVarFieldImportContext::PrepareField().
|
protected |
find appropriate field master
Definition at line 313 of file txtvfldi.cxx.
References eFieldType, XMLVariableDeclImportContext::FindFieldMaster(), SvXMLImportContext::GetImport(), XMLTextFieldImportContext::GetImportHelper(), and XMLVarFieldImportContext::GetName().
Referenced by endFastElement().
|
private |
Definition at line 225 of file txtvfldi.hxx.
Referenced by FindFieldMaster().