PowerPoint7Text.hxx
Go to the documentation of this file.
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libmwaw
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
* Copyright (C) 2006, 2007 Andrew Ziem
* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the LGPLv2+ are applicable
* instead of those above.
*/
/*
* Parser to PowerPoint 95 document ( text part )
*
*/
#ifndef POWER_POINT7_TEXT
# define POWER_POINT7_TEXT
#include <set>
#include <string>
#include <vector>
#include <librevenge/librevenge.h>
#include "libmwaw_internal.hxx"
#include "MWAWDebug.hxx"
#include "MWAWInputStream.hxx"
namespace PowerPoint7TextInternal
{
struct Ruler;
struct TextZone;
struct State;
}
class PowerPoint7Parser;
class PowerPoint7Text
{
friend class PowerPoint7Parser;
public:
explicit PowerPoint7Text(PowerPoint7Parser &parser);
virtual ~PowerPoint7Text();
int version() const;
void setFontFamily(std::string const &family);
bool sendText(int textId);
protected:
bool readFontCollection(int level, long endPos);
bool readFieldList(int level, long endPos);
bool readTextZoneContainer(int level, long endPos, PowerPoint7TextInternal::TextZone &zone);
bool readTextZone(int level, long endPos, PowerPoint7TextInternal::TextZone &zone);
bool readTextMasterProp(int level, long endPos, int &textId);
bool readTextMasterPropAtom(int level, long endPos);
bool readRulerList(int level, long endPos);
bool readRuler(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler);
bool readRulerSetId(int level, long endPos, int &id);
bool readFontContainer(int level, long endPos, std::string &fName);
bool readFont(int level, long endPos, std::string &fName);
bool readFontEmbedded(int level, long endPos);
bool readExternalHyperlinkAtom(int level, long endPos);
bool readExternalHyperlinkData(int level, long endPos);
bool readFieldDef(int level, long endPos, int &format);
bool readZone4064(int level, long endPos,int rId,int &textId);
bool readZone4066(int level, long endPos);
bool readZone4067(int level, long endPos);
bool readExternalHyperlink9(int level, long endPos, int &tId);
bool readRulerContainer(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler);
bool readRulerTabs(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler);
//
// Intermediate level
//
//
// low level
//
private:
PowerPoint7Text(PowerPoint7Text const &orig) = delete;
PowerPoint7Text &operator=(PowerPoint7Text const &orig) = delete;
protected:
//
// data
//
MWAWParserStatePtr m_parserState;
std::shared_ptr<PowerPoint7TextInternal::State> m_state;
PowerPoint7Parser *m_mainParser;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWDebug.hxx
MWAWInputStream.hxx
PowerPoint7Parser
the main class to read a Microsoft PowerPoint 95 files (Windows)
Definition PowerPoint7Parser.hxx:62
PowerPoint7Text::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition PowerPoint7Text.hxx:146
PowerPoint7Text::readFontEmbedded
bool readFontEmbedded(int level, long endPos)
try to read an embedded font container zone 4024
Definition PowerPoint7Text.cxx:892
PowerPoint7Text::version
int version() const
returns the file version
Definition PowerPoint7Text.cxx:148
PowerPoint7Text::readTextMasterProp
bool readTextMasterProp(int level, long endPos, int &textId)
try to read the master text prop atom zone 4002
Definition PowerPoint7Text.cxx:650
PowerPoint7Text::PowerPoint7Text
PowerPoint7Text(PowerPoint7Parser &parser)
constructor
Definition PowerPoint7Text.cxx:138
PowerPoint7Text::readExternalHyperlink9
bool readExternalHyperlink9(int level, long endPos, int &tId)
try to read the external hyper link zone: 4068
Definition PowerPoint7Text.cxx:1142
PowerPoint7Text::readRulerContainer
bool readRulerContainer(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler)
try to read the ruler container zone: 4069
Definition PowerPoint7Text.cxx:1311
PowerPoint7Text::m_state
std::shared_ptr< PowerPoint7TextInternal::State > m_state
the state
Definition PowerPoint7Text.hxx:149
PowerPoint7Text::readExternalHyperlinkAtom
bool readExternalHyperlinkAtom(int level, long endPos)
try to read the external hyper link atom zone: 4051
Definition PowerPoint7Text.cxx:919
PowerPoint7Text::m_mainParser
PowerPoint7Parser * m_mainParser
the main parser;
Definition PowerPoint7Text.hxx:152
PowerPoint7Text::readRuler
bool readRuler(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler)
try to read the ruler margins zone 4019
Definition PowerPoint7Text.cxx:1265
PowerPoint7Text::readTextZone
bool readTextZone(int level, long endPos, PowerPoint7TextInternal::TextZone &zone)
try to read a text zone 2030
Definition PowerPoint7Text.cxx:280
PowerPoint7Text::readExternalHyperlinkData
bool readExternalHyperlinkData(int level, long endPos)
try to read the external hyper link atom zone: 4055
Definition PowerPoint7Text.cxx:952
PowerPoint7Text::readRulerTabs
bool readRulerTabs(int level, long endPos, PowerPoint7TextInternal::Ruler &ruler)
try to read the tab list zone: 4070
Definition PowerPoint7Text.cxx:1360
PowerPoint7Text::PowerPoint7Parser
friend class PowerPoint7Parser
Definition PowerPoint7Text.hxx:69
PowerPoint7Text::readRulerSetId
bool readRulerSetId(int level, long endPos, int &id)
try to read the ruler set id zone 4021
Definition PowerPoint7Text.cxx:767
PowerPoint7Text::readTextMasterPropAtom
bool readTextMasterPropAtom(int level, long endPos)
try to read the text master prop atom zone 4003
Definition PowerPoint7Text.cxx:716
PowerPoint7Text::readTextZoneContainer
bool readTextZoneContainer(int level, long endPos, PowerPoint7TextInternal::TextZone &zone)
try to read a text zone container, zone 2028
Definition PowerPoint7Text.cxx:235
PowerPoint7Text::~PowerPoint7Text
virtual ~PowerPoint7Text()
destructor
Definition PowerPoint7Text.cxx:145
PowerPoint7Text::setFontFamily
void setFontFamily(std::string const &family)
sets the default font family
Definition PowerPoint7Text.cxx:153
PowerPoint7Text::readRulerList
bool readRulerList(int level, long endPos)
try to read the list of rulers zone 4016
Definition PowerPoint7Text.cxx:1201
PowerPoint7Text::readFieldList
bool readFieldList(int level, long endPos)
try to read the field definition list zone 2027
Definition PowerPoint7Text.cxx:1418
PowerPoint7Text::sendText
bool sendText(int textId)
try to send the text content
Definition PowerPoint7Text.cxx:1526
PowerPoint7Text::readFontCollection
bool readFontCollection(int level, long endPos)
try to read the font collection zone 2005
Definition PowerPoint7Text.cxx:163
PowerPoint7Text::readZone4064
bool readZone4064(int level, long endPos, int rId, int &textId)
try to read the zone 4064: child of MasterTextPropAtom,ExternalHyperlink9
Definition PowerPoint7Text.cxx:985
PowerPoint7Text::readFieldDef
bool readFieldDef(int level, long endPos, int &format)
try to read the field definition zone 4056
Definition PowerPoint7Text.cxx:1482
PowerPoint7Text::readFontContainer
bool readFontContainer(int level, long endPos, std::string &fName)
try to read the font container zone 4022
Definition PowerPoint7Text.cxx:798
PowerPoint7Text::PowerPoint7Text
PowerPoint7Text(PowerPoint7Text const &orig)=delete
PowerPoint7Text::readFont
bool readFont(int level, long endPos, std::string &fName)
try to read the font entity atom zone 4023
Definition PowerPoint7Text.cxx:850
PowerPoint7Text::readZone4067
bool readZone4067(int level, long endPos)
try to read the zone 4067: child of 4064
Definition PowerPoint7Text.cxx:1095
PowerPoint7Text::operator=
PowerPoint7Text & operator=(PowerPoint7Text const &orig)=delete
PowerPoint7Text::readZone4066
bool readZone4066(int level, long endPos)
try to read the zone 4066: child of 4064
Definition PowerPoint7Text.cxx:1051
libmwaw_internal.hxx
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition libmwaw_internal.hxx:557
PowerPoint7TextInternal
Internal: the structures of a PowerPoint7Text.
Definition PowerPoint7Text.cxx:57
PowerPoint7TextInternal::Ruler
Internal: a ruler of a PowerPoint7Text.
Definition PowerPoint7Text.cxx:59
PowerPoint7TextInternal::State
Internal: the state of a PowerPoint7Text.
Definition PowerPoint7Text.cxx:113
PowerPoint7TextInternal::TextZone
Internal: a text zone of a PowerPoint7Text.
Definition PowerPoint7Text.cxx:84