IWAText.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

IWAText.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 libetonyek 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 IWATEXT_H_INCLUDED
11 #define IWATEXT_H_INCLUDED
12
13 #include <map>
14 #include <string>
15
16 #include <librevenge/librevenge.h>
17
18 #include "IWORKStyle_fwd.h"
19
20 namespace libetonyek
21 {
22
23 class IWORKLanguageManager;
24 class IWORKText;
25
26 class IWAText
27 {
28 public:
29 IWAText(const std::string text, IWORKLanguageManager &langManager);
30
31 void setParagraphs(const std::map<unsigned, IWORKStylePtr_t> &paras);
32 void setSpans(const std::map<unsigned, IWORKStylePtr_t> &spans);
33 void setLanguages(const std::map<unsigned, std::string> &langs);
34 void setLinks(const std::map<unsigned, std::string> &links);
35 void setListLevels(const std::map<unsigned, unsigned> &levels);
36 void setLists(const std::map<unsigned, IWORKStylePtr_t> &lists);
37
38 void parse(IWORKText &collector);
39
40 private:
41 const librevenge::RVNGString m_text;
42 IWORKLanguageManager &m_langManager;
43
44 std::map<unsigned, IWORKStylePtr_t> m_paras;
45 std::map<unsigned, IWORKStylePtr_t> m_spans;
46 std::map<unsigned, std::string> m_langs;
47 std::map<unsigned, std::string> m_links;
48 std::map<unsigned, IWORKStylePtr_t> m_lists;
49 std::map<unsigned, unsigned> m_listLevels;
50 };
51
52 }
53
54 #endif
55
56 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKStyle_fwd.h
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::IWAText::m_langs
std::map< unsigned, std::string > m_langs
Definition: IWAText.h:46
libetonyek::IWAText::IWAText
IWAText(const std::string text, IWORKLanguageManager &langManager)
Definition: IWAText.cpp:44
libetonyek::IWAText::setLinks
void setLinks(const std::map< unsigned, std::string > &links)
Definition: IWAText.cpp:71
libetonyek::IWORKText
Definition: IWORKText.h:32
libetonyek::IWAText::m_paras
std::map< unsigned, IWORKStylePtr_t > m_paras
Definition: IWAText.h:44
libetonyek::IWAText::m_text
const librevenge::RVNGString m_text
Definition: IWAText.h:41
libetonyek::IWAText::m_langManager
IWORKLanguageManager & m_langManager
Definition: IWAText.h:42
libetonyek::IWORKToken::text
Definition: IWORKToken.h:270
libetonyek::IWAText::setParagraphs
void setParagraphs(const std::map< unsigned, IWORKStylePtr_t > &paras)
Definition: IWAText.cpp:56
libetonyek::IWAText::m_links
std::map< unsigned, std::string > m_links
Definition: IWAText.h:47
libetonyek::IWAText::m_spans
std::map< unsigned, IWORKStylePtr_t > m_spans
Definition: IWAText.h:45
libetonyek::IWAText::setListLevels
void setListLevels(const std::map< unsigned, unsigned > &levels)
Definition: IWAText.cpp:76
libetonyek::IWAText::setLists
void setLists(const std::map< unsigned, IWORKStylePtr_t > &lists)
Definition: IWAText.cpp:81
libetonyek::IWAText::setSpans
void setSpans(const std::map< unsigned, IWORKStylePtr_t > &spans)
Definition: IWAText.cpp:61
libetonyek::IWAText
Definition: IWAText.h:26
libetonyek::IWAText::setLanguages
void setLanguages(const std::map< unsigned, std::string > &langs)
Definition: IWAText.cpp:66
libetonyek::IWAText::m_lists
std::map< unsigned, IWORKStylePtr_t > m_lists
Definition: IWAText.h:48
libetonyek::IWORKLanguageManager
Definition: IWORKLanguageManager.h:24
libetonyek::IWORKToken::string
Definition: IWORKToken.h:252
libetonyek::IWAText::m_listLevels
std::map< unsigned, unsigned > m_listLevels
Definition: IWAText.h:49
libetonyek::IWAText::parse
void parse(IWORKText &collector)
Definition: IWAText.cpp:86