PowerPoint7Text.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3/* libmwaw
4* Version: MPL 2.0 / LGPLv2+
5*
6* The contents of this file are subject to the Mozilla Public License Version
7* 2.0 (the "License"); you may not use this file except in compliance with
8* the License or as specified alternatively below. You may obtain a copy of
9* the License at http://www.mozilla.org/MPL/
10*
11* Software distributed under the License is distributed on an "AS IS" basis,
12* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13* for the specific language governing rights and limitations under the
14* License.
15*
16* Major Contributor(s):
17* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20* Copyright (C) 2006, 2007 Andrew Ziem
21* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22*
23*
24* All Rights Reserved.
25*
26* For minor contributions see the git repository.
27*
28* Alternatively, the contents of this file may be used under the terms of
29* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30* in which case the provisions of the LGPLv2+ are applicable
31* instead of those above.
32*/
33
34/*
35 * Parser to PowerPoint 95 document ( text part )
36 *
37 */
38#ifndef POWER_POINT7_TEXT
39# define POWER_POINT7_TEXT
40
41#include <set>
42#include <string>
43#include <vector>
44
45#include <librevenge/librevenge.h>
46
47#include "libmwaw_internal.hxx"
48
49#include "MWAWDebug.hxx"
50#include "MWAWInputStream.hxx"
51
53{
54struct Ruler;
55struct TextZone;
56
57struct State;
58}
59
61
68{
69 friend class PowerPoint7Parser;
70
71public:
73 explicit PowerPoint7Text(PowerPoint7Parser &parser);
75 virtual ~PowerPoint7Text();
76
78 int version() const;
80 void setFontFamily(std::string const &family);
82 bool sendText(int textId);
83
84protected:
86 bool readFontCollection(int level, long endPos);
88 bool readFieldList(int level, long endPos);
90 bool readTextZoneContainer(int level, long endPos, PowerPoint7TextInternal::TextZone &zone);
92 bool readTextZone(int level, long endPos, PowerPoint7TextInternal::TextZone &zone);
93
95 bool readTextMasterProp(int level, long endPos, int &textId);
97 bool readTextMasterPropAtom(int level, long endPos);
99 bool readRulerList(int level, long endPos);
101 bool readRuler(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler);
103 bool readRulerSetId(int level, long endPos, int &id);
105 bool readFontContainer(int level, long endPos, std::string &fName);
107 bool readFont(int level, long endPos, std::string &fName);
109 bool readFontEmbedded(int level, long endPos);
111 bool readExternalHyperlinkAtom(int level, long endPos);
113 bool readExternalHyperlinkData(int level, long endPos);
115 bool readFieldDef(int level, long endPos, int &format);
117 bool readZone4064(int level, long endPos,int rId,int &textId);
119 bool readZone4066(int level, long endPos);
121 bool readZone4067(int level, long endPos);
123 bool readExternalHyperlink9(int level, long endPos, int &tId);
125 bool readRulerContainer(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler);
127 bool readRulerTabs(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler);
128
129 //
130 // Intermediate level
131 //
132
133 //
134 // low level
135 //
136
137private:
138 PowerPoint7Text(PowerPoint7Text const &orig) = delete;
140
141protected:
142 //
143 // data
144 //
147
149 std::shared_ptr<PowerPoint7TextInternal::State> m_state;
150
153};
154#endif
155// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
the main class to read a Microsoft PowerPoint 95 files (Windows)
Definition: PowerPoint7Parser.hxx:62
the main class to read the text part of a PowerPoint 95 file
Definition: PowerPoint7Text.hxx:68
MWAWParserStatePtr m_parserState
the parser state
Definition: PowerPoint7Text.hxx:146
bool readFontEmbedded(int level, long endPos)
try to read an embedded font container zone 4024
Definition: PowerPoint7Text.cxx:892
int version() const
returns the file version
Definition: PowerPoint7Text.cxx:148
bool readTextMasterProp(int level, long endPos, int &textId)
try to read the master text prop atom zone 4002
Definition: PowerPoint7Text.cxx:650
bool readExternalHyperlink9(int level, long endPos, int &tId)
try to read the external hyper link zone: 4068
Definition: PowerPoint7Text.cxx:1142
bool readRulerContainer(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler)
try to read the ruler container zone: 4069
Definition: PowerPoint7Text.cxx:1311
std::shared_ptr< PowerPoint7TextInternal::State > m_state
the state
Definition: PowerPoint7Text.hxx:149
bool readExternalHyperlinkAtom(int level, long endPos)
try to read the external hyper link atom zone: 4051
Definition: PowerPoint7Text.cxx:919
PowerPoint7Parser * m_mainParser
the main parser;
Definition: PowerPoint7Text.hxx:152
bool readRuler(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler)
try to read the ruler margins zone 4019
Definition: PowerPoint7Text.cxx:1265
bool readTextZone(int level, long endPos, PowerPoint7TextInternal::TextZone &zone)
try to read a text zone 2030
Definition: PowerPoint7Text.cxx:280
bool readExternalHyperlinkData(int level, long endPos)
try to read the external hyper link atom zone: 4055
Definition: PowerPoint7Text.cxx:952
bool readRulerTabs(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler)
try to read the tab list zone: 4070
Definition: PowerPoint7Text.cxx:1360
bool readRulerSetId(int level, long endPos, int &id)
try to read the ruler set id zone 4021
Definition: PowerPoint7Text.cxx:767
bool readTextMasterPropAtom(int level, long endPos)
try to read the text master prop atom zone 4003
Definition: PowerPoint7Text.cxx:716
bool readTextZoneContainer(int level, long endPos, PowerPoint7TextInternal::TextZone &zone)
try to read a text zone container, zone 2028
Definition: PowerPoint7Text.cxx:235
virtual ~PowerPoint7Text()
destructor
Definition: PowerPoint7Text.cxx:145
void setFontFamily(std::string const &family)
sets the default font family
Definition: PowerPoint7Text.cxx:153
bool readRulerList(int level, long endPos)
try to read the list of rulers zone 4016
Definition: PowerPoint7Text.cxx:1201
bool readFieldList(int level, long endPos)
try to read the field definition list zone 2027
Definition: PowerPoint7Text.cxx:1418
bool sendText(int textId)
try to send the text content
Definition: PowerPoint7Text.cxx:1526
bool readFontCollection(int level, long endPos)
try to read the font collection zone 2005
Definition: PowerPoint7Text.cxx:163
bool readZone4064(int level, long endPos, int rId, int &textId)
try to read the zone 4064: child of MasterTextPropAtom,ExternalHyperlink9
Definition: PowerPoint7Text.cxx:985
bool readFieldDef(int level, long endPos, int &format)
try to read the field definition zone 4056
Definition: PowerPoint7Text.cxx:1482
bool readFontContainer(int level, long endPos, std::string &fName)
try to read the font container zone 4022
Definition: PowerPoint7Text.cxx:798
PowerPoint7Text(PowerPoint7Text const &orig)=delete
bool readFont(int level, long endPos, std::string &fName)
try to read the font entity atom zone 4023
Definition: PowerPoint7Text.cxx:850
bool readZone4067(int level, long endPos)
try to read the zone 4067: child of 4064
Definition: PowerPoint7Text.cxx:1095
PowerPoint7Text & operator=(PowerPoint7Text const &orig)=delete
bool readZone4066(int level, long endPos)
try to read the zone 4066: child of 4064
Definition: PowerPoint7Text.cxx:1051
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
Internal: the structures of a PowerPoint7Text.
Definition: PowerPoint7Text.cxx:57
Internal: a ruler of a PowerPoint7Text.
Definition: PowerPoint7Text.cxx:59
Internal: a text zone of a PowerPoint7Text.
Definition: PowerPoint7Text.cxx:84

Generated on Wed May 3 2023 07:18:29 for libmwaw by doxygen 1.9.6