IWORKListstyleElement.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 libetonyek 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 IWORKLISTSTYLEELEMENT_H_INCLUDED
00011 #define IWORKLISTSTYLEELEMENT_H_INCLUDED
00012 
00013 #include <deque>
00014 
00015 #include "IWORKPropertyHandler.h"
00016 #include "IWORKTypes.h"
00017 #include "IWORKXMLContextBase.h"
00018 
00019 namespace libetonyek
00020 {
00021 
00022 class IWORKListstyleElement : public IWORKXMLElementContextBase, public IWORKPropertyHandler
00023 {
00024 public:
00025   IWORKListstyleElement(IWORKXMLParserState &state, IWORKListStyle_t &style);
00026 
00027 private:
00028   virtual IWORKXMLContextPtr_t element(int name);
00029   virtual void endOfElement();
00030 
00031   virtual IWORKXMLContextPtr_t handle(int name);
00032 
00033 private:
00034   IWORKListStyle_t &m_style;
00035   std::deque<IWORKListLabelGeometry> m_labelGeometries;
00036   std::deque<IWORKListLabelTypeInfo_t> m_typeInfos;
00037   std::deque<double> m_labelIndents;
00038   std::deque<double> m_textIndents;
00039 };
00040 
00041 }
00042 
00043 #endif // IWORKLISTSTYLEELEMENT_H_INCLUDED
00044 
00045 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */