FHCollector.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

FHCollector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libfreehand project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef __FHCOLLECTOR_H__
11 #define __FHCOLLECTOR_H__
12
13 #include <map>
14 #include "FHCollector.h"
15 #include "FHTransform.h"
16 #include "FHTypes.h"
17 #include "FHPath.h"
18
19 namespace libfreehand
20 {
21
22 class FHCollector
23 {
24 public:
25 FHCollector(::librevenge::RVNGDrawingInterface *painter, const FHPageInfo &pageInfo);
26 virtual ~FHCollector();
27
28 // collector functions
29 void collectUString(unsigned recordId, const std::vector<unsigned short> &ustr);
30 void collectMName(unsigned recordId, const librevenge::RVNGString &name);
31 void collectPath(unsigned recordId, unsigned short graphicStyle, unsigned short layer,
32 unsigned short xform, const FHPath &path, bool evenodd);
33 void collectXform(unsigned recordId, double m11, double m21,
34 double m12, double m22, double m13, double m23);
35
36 void collectOffsetX(double) {}
37 void collectOffsetY(double) {}
38 void collectPageWidth(double) {}
39 void collectPageHeight(double) {}
40
41 private:
42 FHCollector(const FHCollector &);
43 FHCollector &operator=(const FHCollector &);
44
45 void _normalizePath(FHPath &path);
46
47 librevenge::RVNGDrawingInterface *m_painter;
48 const FHPageInfo &m_pageInfo;
49 std::map<unsigned, FHTransform> m_transforms;
50 };
51
52 } // namespace libfreehand
53
54 #endif /* __FHCOLLECTOR_H__ */
55 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libfreehand::FHPageInfo
Definition: FHTypes.h:16
libfreehand::FHCollector::operator=
FHCollector & operator=(const FHCollector &)
libfreehand::FHCollector::collectOffsetX
void collectOffsetX(double)
Definition: FHCollector.h:36
libfreehand::FHCollector::~FHCollector
virtual ~FHCollector()
Definition: FHCollector.cpp:23
libfreehand
Definition: FHCollector.h:19
FHPath.h
libfreehand::FHCollector::_normalizePath
void _normalizePath(FHPath &path)
Definition: FHCollector.cpp:72
libfreehand::FHCollector::m_transforms
std::map< unsigned, FHTransform > m_transforms
Definition: FHCollector.h:49
FHCollector.h
libfreehand::FHCollector
Definition: FHCollector.h:22
libfreehand::FHCollector::collectPageWidth
void collectPageWidth(double)
Definition: FHCollector.h:38
libfreehand::FHCollector::collectPath
void collectPath(unsigned recordId, unsigned short graphicStyle, unsigned short layer, unsigned short xform, const FHPath &path, bool evenodd)
Definition: FHCollector.cpp:37
libfreehand::FHCollector::collectUString
void collectUString(unsigned recordId, const std::vector< unsigned short > &ustr)
Definition: FHCollector.cpp:29
libfreehand::FHCollector::m_pageInfo
const FHPageInfo & m_pageInfo
Definition: FHCollector.h:48
libfreehand::FHCollector::collectOffsetY
void collectOffsetY(double)
Definition: FHCollector.h:37
libfreehand::FHCollector::collectPageHeight
void collectPageHeight(double)
Definition: FHCollector.h:39
FHTransform.h
libfreehand::FHCollector::m_painter
librevenge::RVNGDrawingInterface * m_painter
Definition: FHCollector.h:47
FHTypes.h
libfreehand::FHCollector::collectXform
void collectXform(unsigned recordId, double m11, double m21, double m12, double m22, double m13, double m23)
Definition: FHCollector.cpp:66
libfreehand::FHCollector::FHCollector
FHCollector(::librevenge::RVNGDrawingInterface *painter, const FHPageInfo &pageInfo)
libfreehand::FHPath
Definition: FHPath.h:32
libfreehand::FHCollector::collectMName
void collectMName(unsigned recordId, const librevenge::RVNGString &name)
Definition: FHCollector.cpp:33