class OFormLayerXMLImport_Impl; //= OPropertyImport /** Helper class for importing property values
<p>Thisclassimportspropertieswhicharestoredasattributesaswellaspropertieswhich arestoredin</em><form:properties></em>elements.</p>
*/ class OPropertyImport : public SvXMLImportContext
{ friendclass OSinglePropertyContext; friendclass OListPropertyContext;
protected: typedef ::std::vector< css::beans::PropertyValue > PropertyValueArray;
PropertyValueArray m_aValues;
PropertyValueArray m_aGenericValues; // the values which the instance collects between StartElement and EndElement
// TODO: think about the restriction that the class does not know anything about the object it is importing. // Perhaps this object should be known to the class, so setting the properties ('normal' ones as well as // style properties) can be done in our own EndElement instead of letting derived classes do this.
/** determine if the element imported by the object had a given attribute. <p>Pleasebeawareofthefactthatthenamegivenmustbealocalname,i.e.notcontainanamespace. Allformrelevantattributesareinthesamenamespace,sothiswouldbearedundantinformation.</p>
*/ bool encounteredAttribute(sal_Int32 nElement) const;
/** enables the tracking of the encountered attributes <p>Thetrackingwillraisetheimportcostsalittlebit,butit'scheaperthan derivedclassestrackingthisthemself.</p>
*/ void enableTrackAttributes() { m_bTrackAttributes = true; }
//= OPropertyElementsContext /** helper class for importing the <form:properties> element
*/ class OPropertyElementsContext : public SvXMLImportContext
{
OPropertyImportRef m_xPropertyImporter; // to add the properties
//= OSinglePropertyContext /** helper class for importing a single <form:property> element
*/ class OSinglePropertyContext : public SvXMLImportContext
{
OPropertyImportRef m_xPropertyImporter; // to add the properties
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.