PMDPage.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libpagemaker project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef __PMDPAGE_H__
00011 #define __PMDPAGE_H__
00012 
00013 #include "geometry.h"
00014 
00015 #include <vector>
00016 #include <boost/shared_ptr.hpp>
00017 #include <librevenge/librevenge.h>
00018 
00019 namespace libpagemaker
00020 {
00021 
00022 class PMDPage
00023 {
00024   std::vector<boost::shared_ptr<PMDLineSet> > m_shapes;
00025 public:
00026   PMDPage() : m_shapes()
00027   { }
00028 
00029   void addShape(const boost::shared_ptr<PMDLineSet> &shape)
00030   {
00031     m_shapes.push_back(shape);
00032   }
00033 
00034   unsigned numShapes() const
00035   {
00036     return m_shapes.size();
00037   }
00038 
00039   boost::shared_ptr<const PMDLineSet> getShape(unsigned i) const
00040   {
00041     return m_shapes.at(i);
00042   }
00043 };
00044 
00045 }
00046 
00047 #endif /* __PMDPAGE_H__ */
00048 
00049 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */