Kaydet (Commit) 1a4d24b3 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: fix indentation in rtfsdrexport

Change-Id: I5499007c88659b2d235c765ba352e2bc4a8a3eb8
üst b05778b9
...@@ -32,9 +32,9 @@ class RtfAttributeOutput; ...@@ -32,9 +32,9 @@ class RtfAttributeOutput;
/// Handles export of drawings using RTF markup /// Handles export of drawings using RTF markup
class RtfSdrExport : public EscherEx class RtfSdrExport : public EscherEx
{ {
RtfExport &m_rExport; RtfExport& m_rExport;
RtfAttributeOutput &m_rAttrOutput; RtfAttributeOutput& m_rAttrOutput;
const SdrObject* m_pSdrObject; const SdrObject* m_pSdrObject;
...@@ -45,21 +45,21 @@ class RtfSdrExport : public EscherEx ...@@ -45,21 +45,21 @@ class RtfSdrExport : public EscherEx
sal_uInt32 m_nShapeFlags; sal_uInt32 m_nShapeFlags;
/// Remember style, the most important shape attribute ;-) /// Remember style, the most important shape attribute ;-)
OStringBuffer *m_pShapeStyle; OStringBuffer* m_pShapeStyle;
std::map<OString,OString> m_aShapeProps; std::map<OString,OString> m_aShapeProps;
/// Remember which shape types we had already written. /// Remember which shape types we had already written.
bool *m_pShapeTypeWritten; bool* m_pShapeTypeWritten;
public: public:
RtfSdrExport( RtfExport &rExport ); RtfSdrExport(RtfExport& rExport);
virtual ~RtfSdrExport(); virtual ~RtfSdrExport();
/// Export the sdr object as Sdr. /// Export the sdr object as Sdr.
/// ///
/// Call this when you need to export the object as Sdr in RTF. /// Call this when you need to export the object as Sdr in RTF.
sal_uInt32 AddSdrObject( const SdrObject& rObj ); sal_uInt32 AddSdrObject(const SdrObject& rObj);
protected: protected:
/// Start the shape for which we just collected the information. /// Start the shape for which we just collected the information.
...@@ -72,26 +72,26 @@ protected: ...@@ -72,26 +72,26 @@ protected:
/// ///
/// The parameter is just what we got from StartShape(). /// The parameter is just what we got from StartShape().
using EscherEx::EndShape; using EscherEx::EndShape;
void EndShape( sal_Int32 nShapeElement ); void EndShape(sal_Int32 nShapeElement);
virtual void Commit( EscherPropertyContainer& rProps, const Rectangle& rRect ) SAL_OVERRIDE; virtual void Commit(EscherPropertyContainer& rProps, const Rectangle& rRect) SAL_OVERRIDE;
private: private:
virtual void OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance = 0 ) SAL_OVERRIDE; virtual void OpenContainer(sal_uInt16 nEscherContainer, int nRecInstance = 0) SAL_OVERRIDE;
virtual void CloseContainer() SAL_OVERRIDE; virtual void CloseContainer() SAL_OVERRIDE;
virtual sal_uInt32 EnterGroup( const OUString& rShapeName, const Rectangle* pBoundRect = 0 ) SAL_OVERRIDE; virtual sal_uInt32 EnterGroup(const OUString& rShapeName, const Rectangle* pBoundRect = 0) SAL_OVERRIDE;
virtual void LeaveGroup() SAL_OVERRIDE; virtual void LeaveGroup() SAL_OVERRIDE;
virtual void AddShape( sal_uInt32 nShapeType, sal_uInt32 nShapeFlags, sal_uInt32 nShapeId = 0 ) SAL_OVERRIDE; virtual void AddShape(sal_uInt32 nShapeType, sal_uInt32 nShapeFlags, sal_uInt32 nShapeId = 0) SAL_OVERRIDE;
private: private:
/// Add starting and ending point of a line to the m_pShapeAttrList. /// Add starting and ending point of a line to the m_pShapeAttrList.
void AddLineDimensions( const Rectangle& rRectangle ); void AddLineDimensions(const Rectangle& rRectangle);
/// Add position and size to the OStringBuffer. /// Add position and size to the OStringBuffer.
void AddRectangleDimensions( OStringBuffer& rBuffer, const Rectangle& rRectangle ); void AddRectangleDimensions(OStringBuffer& rBuffer, const Rectangle& rRectangle);
void WriteOutliner(const OutlinerParaObject& rParaObj); void WriteOutliner(const OutlinerParaObject& rParaObj);
......
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