diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-06-16 09:23:08 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-07-15 11:01:30 +0200 |
commit | a3f09ab5b0ad192d62a1df6126726e4c3ffa3e0a (patch) | |
tree | 5a8861c86be3edb405eba9297f6841a880d12eb8 /emfio/inc/emfreader.hxx | |
parent | c7470f5be441d8fe80155ff29605d74d5838be26 (diff) |
emfplus: reorganized some old filter aspects
Change-Id: I1949e851c560a81a461ec42a992f3b2cb0d019f8
Diffstat (limited to 'emfio/inc/emfreader.hxx')
-rw-r--r-- | emfio/inc/emfreader.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/emfio/inc/emfreader.hxx b/emfio/inc/emfreader.hxx index c4f7e17e574d..c926ee0a317e 100644 --- a/emfio/inc/emfreader.hxx +++ b/emfio/inc/emfreader.hxx @@ -26,24 +26,27 @@ namespace emfio { class EmfReader : public MtfTools { - bool bRecordPath; - sal_Int32 nRecordCount; - bool bEMFPlus; + private: + sal_Int32 mnRecordCount; + + bool mbRecordPath : 1; + bool mbEMFPlus : 1; bool ReadHeader(); // reads and converts the rectangle static tools::Rectangle ReadRectangle(sal_Int32, sal_Int32, sal_Int32, sal_Int32); public: - EmfReader(SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile, FilterConfigItem* pConfigItem = nullptr); + EmfReader(SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile); ~EmfReader(); bool ReadEnhWMF(); + private: template <class T> void ReadAndDrawPolyPolygon(); template <class T> void ReadAndDrawPolyLine(); template <class T> tools::Polygon ReadPolygon(sal_uInt32 nStartIndex, sal_uInt32 nPoints); - template <class T, class Drawer> void ReadAndDrawPolygon(Drawer drawer, const bool skipFirst); + template <class T> tools::Polygon ReadPolygonWithSkip(const bool skipFirst); tools::Rectangle ReadRectangle(); void ReadEMFPlusComment(sal_uInt32 length, bool& bHaveDC); |