Kaydet (Commit) 6e045a02 authored tarafından Luboš Luňák's avatar Luboš Luňák

const version of GetExport()

üst 532a8cac
...@@ -568,6 +568,9 @@ public: ...@@ -568,6 +568,9 @@ public:
/// Return the right export class. /// Return the right export class.
virtual MSWordExportBase& GetExport() = 0; virtual MSWordExportBase& GetExport() = 0;
/// @overload
const MSWordExportBase& GetExport() const { return const_cast< AttributeOutputBase* >( this )->GetExport(); }
/// Call the right virtual function according to the type of the item. /// Call the right virtual function according to the type of the item.
void OutputItem( const SfxPoolItem& rHt ); void OutputItem( const SfxPoolItem& rHt );
......
...@@ -587,6 +587,7 @@ public: ...@@ -587,6 +587,7 @@ public:
/// Return the right export class. /// Return the right export class.
virtual MSWordExportBase& GetExport(); virtual MSWordExportBase& GetExport();
using AttributeOutputBase::GetExport;
/// For eg. the output of the styles, we need to switch the serializer to enother one. /// For eg. the output of the styles, we need to switch the serializer to enother one.
void SetSerializer( ::sax_fastparser::FSHelperPtr pSerializer ) { m_pSerializer = pSerializer; } void SetSerializer( ::sax_fastparser::FSHelperPtr pSerializer ) { m_pSerializer = pSerializer; }
......
...@@ -88,6 +88,7 @@ class DocxExport : public MSWordExportBase ...@@ -88,6 +88,7 @@ class DocxExport : public MSWordExportBase
public: public:
DocxExportFilter& GetFilter() { return *m_pFilter; }; DocxExportFilter& GetFilter() { return *m_pFilter; };
const DocxExportFilter& GetFilter() const { return *m_pFilter; };
/// Access to the attribute output class. /// Access to the attribute output class.
virtual AttributeOutputBase& AttrOutput() const; virtual AttributeOutputBase& AttrOutput() const;
......
...@@ -543,6 +543,7 @@ public: ...@@ -543,6 +543,7 @@ public:
/// Return the right export class. /// Return the right export class.
virtual MSWordExportBase& GetExport(); virtual MSWordExportBase& GetExport();
using AttributeOutputBase::GetExport;
rtl::OStringBuffer m_aTabStop; rtl::OStringBuffer m_aTabStop;
......
...@@ -428,6 +428,7 @@ public: ...@@ -428,6 +428,7 @@ public:
/// Return the right export class. /// Return the right export class.
virtual MSWordExportBase& GetExport() { return m_rWW8Export; } virtual MSWordExportBase& GetExport() { return m_rWW8Export; }
using AttributeOutputBase::GetExport;
protected: protected:
/// Output the bold etc. attributes /// Output the bold etc. attributes
......
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