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 
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 &);
44 
45  void _normalizePath(FHPath &path);
46 
47  librevenge::RVNGDrawingInterface *m_painter;
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: */
Definition: FHTypes.h:16
FHCollector & operator=(const FHCollector &)
void collectOffsetX(double)
Definition: FHCollector.h:36
virtual ~FHCollector()
Definition: FHCollector.cpp:23
Definition: FHCollector.h:19
void _normalizePath(FHPath &path)
Definition: FHCollector.cpp:72
std::map< unsigned, FHTransform > m_transforms
Definition: FHCollector.h:49
Definition: FHCollector.h:22
void collectPageWidth(double)
Definition: FHCollector.h:38
void collectPath(unsigned recordId, unsigned short graphicStyle, unsigned short layer, unsigned short xform, const FHPath &path, bool evenodd)
Definition: FHCollector.cpp:37
void collectUString(unsigned recordId, const std::vector< unsigned short > &ustr)
Definition: FHCollector.cpp:29
const FHPageInfo & m_pageInfo
Definition: FHCollector.h:48
void collectOffsetY(double)
Definition: FHCollector.h:37
void collectPageHeight(double)
Definition: FHCollector.h:39
librevenge::RVNGDrawingInterface * m_painter
Definition: FHCollector.h:47
void collectXform(unsigned recordId, double m11, double m21, double m12, double m22, double m13, double m23)
Definition: FHCollector.cpp:66
FHCollector(::librevenge::RVNGDrawingInterface *painter, const FHPageInfo &pageInfo)
Definition: FHPath.h:32
void collectMName(unsigned recordId, const librevenge::RVNGString &name)
Definition: FHCollector.cpp:33

Generated for libfreehand by doxygen 1.8.11