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

writerfilter: fix indentation in rtfsdrimport

Change-Id: Ibecedba7a8a6e6b3218f64aefdd05897a6612a71
üst 164c89b5
...@@ -14,43 +14,45 @@ ...@@ -14,43 +14,45 @@
#include <rtfdocumentimpl.hxx> #include <rtfdocumentimpl.hxx>
namespace writerfilter { namespace writerfilter
namespace rtftok { {
/// Handles the import of drawings using RTF markup. namespace rtftok
class RTFSdrImport {
{ /// Handles the import of drawings using RTF markup.
public: class RTFSdrImport
RTFSdrImport(RTFDocumentImpl& rImport, uno::Reference<lang::XComponent> const& xDstDoc); {
virtual ~RTFSdrImport(); public:
RTFSdrImport(RTFDocumentImpl& rImport, uno::Reference<lang::XComponent> const& xDstDoc);
void resolve(RTFShape& rShape, bool bClose); virtual ~RTFSdrImport();
void close();
void append(const OUString& aKey, const OUString& aValue); void resolve(RTFShape& rShape, bool bClose);
/// Append property on the current parent. void close();
void appendGroupProperty(const OUString& aKey, const OUString& aValue); void append(const OUString& aKey, const OUString& aValue);
void resolveDhgt(uno::Reference<beans::XPropertySet> xPropertySet, sal_Int32 nZOrder, bool bOldStyle); /// Append property on the current parent.
void resolveFLine(uno::Reference<beans::XPropertySet> xPropertySet, sal_Int32 nFLine); void appendGroupProperty(const OUString& aKey, const OUString& aValue);
/** void resolveDhgt(uno::Reference<beans::XPropertySet> xPropertySet, sal_Int32 nZOrder, bool bOldStyle);
* These are the default in Word, but not in Writer. void resolveFLine(uno::Reference<beans::XPropertySet> xPropertySet, sal_Int32 nFLine);
* /**
* @param bNew if the frame is new-style or old-style. * These are the default in Word, but not in Writer.
*/ *
std::vector<beans::PropertyValue> getTextFrameDefaults(bool bNew); * @param bNew if the frame is new-style or old-style.
/// Push a new group shape to the parent stack. */
void pushParent(uno::Reference<drawing::XShapes> xParent); std::vector<beans::PropertyValue> getTextFrameDefaults(bool bNew);
/// Pop the current group shape from the parent stack. /// Push a new group shape to the parent stack.
void popParent(); void pushParent(uno::Reference<drawing::XShapes> xParent);
private: /// Pop the current group shape from the parent stack.
void createShape(const OUString& aService, uno::Reference<drawing::XShape>& xShape, uno::Reference<beans::XPropertySet>& xPropertySet); void popParent();
void applyProperty(uno::Reference<drawing::XShape> xShape, const OUString& aKey, const OUString& aValue); private:
void createShape(const OUString& aService, uno::Reference<drawing::XShape>& xShape, uno::Reference<beans::XPropertySet>& xPropertySet);
RTFDocumentImpl& m_rImport; void applyProperty(uno::Reference<drawing::XShape> xShape, const OUString& aKey, const OUString& aValue);
std::stack< uno::Reference<drawing::XShapes> > m_aParents;
uno::Reference<drawing::XShape> m_xShape; RTFDocumentImpl& m_rImport;
/// If m_xShape is imported as a Writer text frame (instead of a drawinglayer rectangle). std::stack< uno::Reference<drawing::XShapes> > m_aParents;
bool m_bTextFrame; uno::Reference<drawing::XShape> m_xShape;
}; /// If m_xShape is imported as a Writer text frame (instead of a drawinglayer rectangle).
} // namespace rtftok bool m_bTextFrame;
};
} // namespace rtftok
} // namespace writerfilter } // namespace writerfilter
#endif // _RTFSDRIPORT_HXX_ #endif // _RTFSDRIPORT_HXX_
......
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