IWORKTextRecorder.h Source File documentation

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

- File List
- File Members

IWORKTextRecorder.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 IWORKTEXTRECORDER_H_INCLUDED
11 #define IWORKTEXTRECORDER_H_INCLUDED
12
13 #include <string>
14
15 #include <boost/shared_ptr.hpp>
16
17 #include "IWORKStyle_fwd.h"
18
19 namespace libetonyek
20 {
21
22 class IWORKText;
23
24 class IWORKTextRecorder
25 {
26 public:
27 IWORKTextRecorder();
28
29 void replay(IWORKText &text) const;
30
31 void pushBaseLayoutStyle(const IWORKStylePtr_t &style);
32 void pushBaseParagraphStyle(const IWORKStylePtr_t &style);
33
34 void setLayoutStyle(const IWORKStylePtr_t &style);
35 void flushLayout();
36
37 void setListStyle(const IWORKStylePtr_t &style);
38 void setListLevel(const unsigned level);
39 void flushList();
40
41 void setParagraphStyle(const IWORKStylePtr_t &style);
42 void flushParagraph();
43
44 void setSpanStyle(const IWORKStylePtr_t &style);
45 void setLanguage(const IWORKStylePtr_t &style);
46 void flushSpan();
47
48 void openLink(const std::string &url);
49 void closeLink();
50
51 void insertText(const std::string &text);
52 void insertTab();
53 void insertSpace();
54 void insertLineBreak();
55
56 private:
57 struct Impl;
58
59 private:
60 boost::shared_ptr<Impl> m_impl;
61 };
62
63 }
64
65 #endif // IWORKTEXTRECORDER_H_INCLUDED
66
67 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKStyle_fwd.h
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::IWORKTextRecorder::insertTab
void insertTab()
Definition: IWORKTextRecorder.cpp:385
libetonyek::IWORKTextRecorder::m_impl
boost::shared_ptr< Impl > m_impl
Definition: IWORKTextRecorder.h:57
libetonyek::IWORKTextRecorder::openLink
void openLink(const std::string &url)
Definition: IWORKTextRecorder.cpp:370
libetonyek::IWORKTextRecorder::insertText
void insertText(const std::string &text)
Definition: IWORKTextRecorder.cpp:380
libetonyek::IWORKStylePtr_t
boost::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORKTextRecorder::flushSpan
void flushSpan()
Definition: IWORKTextRecorder.cpp:365
libetonyek::IWORKText
Definition: IWORKText.h:32
libetonyek::IWORKTextRecorder::pushBaseLayoutStyle
void pushBaseLayoutStyle(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:310
libetonyek::IWORKToken::text
Definition: IWORKToken.h:270
libetonyek::IWORKTextRecorder::setSpanStyle
void setSpanStyle(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:355
libetonyek::IWORKTextRecorder::flushParagraph
void flushParagraph()
Definition: IWORKTextRecorder.cpp:350
libetonyek::IWORKTextRecorder::insertSpace
void insertSpace()
Definition: IWORKTextRecorder.cpp:390
libetonyek::IWORKToken::style
Definition: IWORKToken.h:254
libetonyek::IWORKTextRecorder::replay
void replay(IWORKText &text) const
Definition: IWORKTextRecorder.cpp:303
libetonyek::IWORKTextRecorder::insertLineBreak
void insertLineBreak()
Definition: IWORKTextRecorder.cpp:395
libetonyek::KEY1Token::level
Definition: KEY1Token.h:133
libetonyek::IWORKTextRecorder::setLanguage
void setLanguage(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:360
libetonyek::IWORKTextRecorder::flushList
void flushList()
Definition: IWORKTextRecorder.cpp:340
libetonyek::IWORKTextRecorder::setLayoutStyle
void setLayoutStyle(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:320
libetonyek::IWORKTextRecorder::pushBaseParagraphStyle
void pushBaseParagraphStyle(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:315
libetonyek::IWORKTextRecorder::setListStyle
void setListStyle(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:330
libetonyek::IWORKTextRecorder::Impl
Definition: IWORKTextRecorder.cpp:286
libetonyek::IWORKToken::string
Definition: IWORKToken.h:252
libetonyek::IWORKTextRecorder::setParagraphStyle
void setParagraphStyle(const IWORKStylePtr_t &style)
Definition: IWORKTextRecorder.cpp:345
libetonyek::IWORKTextRecorder::flushLayout
void flushLayout()
Definition: IWORKTextRecorder.cpp:325
libetonyek::IWORKTextRecorder::setListLevel
void setListLevel(const unsigned level)
Definition: IWORKTextRecorder.cpp:335
libetonyek::IWORKTextRecorder::IWORKTextRecorder
IWORKTextRecorder()
Definition: IWORKTextRecorder.cpp:298
libetonyek::IWORKTextRecorder::closeLink
void closeLink()
Definition: IWORKTextRecorder.cpp:375
libetonyek::IWORKTextRecorder
Definition: IWORKTextRecorder.h:24