Kaydet (Commit) 49e897ad authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS frmcontrols04 (1.21.96); FILE MERGED

2004/06/15 21:35:27 fs 1.21.96.2: RESYNC: (1.21-1.22); FILE MERGED
2004/05/06 12:25:38 fs 1.21.96.1: #i26047# import and export of the ImagePosition property
üst 698d0fd8
......@@ -2,9 +2,9 @@
*
* $RCSfile: elementimport.hxx,v $
*
* $Revision: 1.22 $
* $Revision: 1.23 $
*
* last change: $Author: rt $ $Date: 2004-05-07 15:59:41 $
* last change: $Author: obo $ $Date: 2004-07-05 16:08:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -336,6 +336,39 @@ namespace xmloff
OControlElement::ElementType _eType);
};
// TODO:
// this whole mechanism doesn't scale. Instead of deriving even more classes for every new attribute,
// we should have dedicated attribute handlers
// The rest of xmloff implements it this way - why don't we do, too?
//=====================================================================
//= OImagePositionImport
//=====================================================================
class OImagePositionImport : public OControlImport
{
sal_Int16 m_nImagePosition;
sal_Int16 m_nImageAlign;
sal_Bool m_bHaveImagePosition;
public:
OImagePositionImport(
IFormsImportContext& _rImport, IEventAttacherManager& _rEventManager, sal_uInt16 _nPrefix, const ::rtl::OUString& _rName,
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& _rxParentContainer,
OControlElement::ElementType _eType
);
protected:
// SvXMLImportContext overridables
virtual void StartElement(
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& _rxAttrList);
// OPropertyImport overridables
virtual void handleAttribute( sal_uInt16 _nNamespaceKey,
const ::rtl::OUString& _rLocalName,
const ::rtl::OUString& _rValue
);
};
//=====================================================================
//= OReferredControlImport
//=====================================================================
......@@ -382,7 +415,7 @@ namespace xmloff
//=====================================================================
//= ORadioImport
//=====================================================================
class ORadioImport : public OControlImport
class ORadioImport : public OImagePositionImport
{
public:
ORadioImport(
......@@ -404,7 +437,7 @@ namespace xmloff
/** a specialized version of the <type>OControlImport</type> class, which is able
to handle attributes which denote URLs (and stored relative)
*/
class OURLReferenceImport : public OControlImport
class OURLReferenceImport : public OImagePositionImport
{
public:
OURLReferenceImport(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment