StarObjectDraw.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 -*- */
/* libstaroffice
* 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 convert StarOffice's draw
*
*/
#ifndef STAR_OBJECT_DRAW
# define STAR_OBJECT_DRAW
#include <vector>
#include <string>
#include "libstaroffice_internal.hxx"
#include "StarObject.hxx"
namespace StarObjectDrawInternal
{
struct State;
}
class StarObject;
class StarZone;
class StarObjectDraw : public StarObject
{
public:
StarObjectDraw(StarObject const &orig, bool duplicateState);
~StarObjectDraw() override;
bool parse();
bool updatePageSpans(std::vector<STOFFPageSpan> &pageSpan, int &numPages) const;
bool sendPages(STOFFGraphicListenerPtr listener);
bool sendMasterPages(STOFFGraphicListenerPtr listener);
protected:
bool readDrawDocument(STOFFInputStreamPtr input, std::string const &fileName);
bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &fileName);
static bool readSdrCustomShow(StarZone &zone);
static bool readSdrFrameView(StarZone &zone);
static bool readSdrView(StarZone &zone);
static bool readSdrHelpLine(StarZone &zone);
static bool readSdrHelpLineSet(StarZone &zone);
static bool readPresentationData(StarZone &zone);
protected:
//
// data
//
std::shared_ptr<StarObjectDrawInternal::State> m_drawState;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
StarObject.hxx
StarObjectDraw::readSdrCustomShow
static bool readSdrCustomShow(StarZone &zone)
try to read a SdCustomShow
Definition StarObjectDraw.cxx:485
StarObjectDraw::readSdrView
static bool readSdrView(StarZone &zone)
try to read a SdrView
Definition StarObjectDraw.cxx:772
StarObjectDraw::readSdrHelpLine
static bool readSdrHelpLine(StarZone &zone)
try to read a SdrHelpLine
Definition StarObjectDraw.cxx:539
StarObjectDraw::readSdrFrameView
static bool readSdrFrameView(StarZone &zone)
try to read a SdrFrameView
Definition StarObjectDraw.cxx:619
StarObjectDraw::sendMasterPages
bool sendMasterPages(STOFFGraphicListenerPtr listener)
try to send the master pages
Definition StarObjectDraw.cxx:108
StarObjectDraw::sendPages
bool sendPages(STOFFGraphicListenerPtr listener)
try to send the different page
Definition StarObjectDraw.cxx:115
StarObjectDraw::readPresentationData
static bool readPresentationData(StarZone &zone)
try to read the presentation data
Definition StarObjectDraw.cxx:235
StarObjectDraw::readSdrHelpLineSet
static bool readSdrHelpLineSet(StarZone &zone)
try to read a SdrHelpLine list
Definition StarObjectDraw.cxx:577
StarObjectDraw::m_drawState
std::shared_ptr< StarObjectDrawInternal::State > m_drawState
the state
Definition StarObjectDraw.hxx:104
StarObjectDraw::readSfxStyleSheets
bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &fileName)
try to read a draw style zone: SfxStyleSheets
Definition StarObjectDraw.cxx:428
StarObjectDraw::parse
bool parse()
try to parse the current object
Definition StarObjectDraw.cxx:125
StarObjectDraw::updatePageSpans
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages) const
try to update the page span (to create draw document)
Definition StarObjectDraw.cxx:97
StarObjectDraw::StarObjectDraw
StarObjectDraw(StarObject const &orig, bool duplicateState)
constructor
Definition StarObjectDraw.cxx:80
StarObjectDraw::readDrawDocument
bool readDrawDocument(STOFFInputStreamPtr input, std::string const &fileName)
try to read a spreadsheet zone: StarDrawDocument .sdd
Definition StarObjectDraw.cxx:188
StarObjectDraw::~StarObjectDraw
~StarObjectDraw() override
destructor
Definition StarObjectDraw.cxx:86
StarObject
an object corresponding to an OLE directory
Definition StarObject.hxx:65
StarObject::StarObject
StarObject(char const *passwd, std::shared_ptr< STOFFOLEParser > &oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > &directory)
constructor
Definition StarObject.cxx:80
StarZone
a zone in a StarOffice file
Definition StarZone.hxx:57
libstaroffice_internal.hxx
STOFFGraphicListenerPtr
std::shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition libstaroffice_internal.hxx:487
STOFFInputStreamPtr
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition libstaroffice_internal.hxx:489
StarObjectDrawInternal
Internal: the structures of a StarObjectDraw.
Definition StarObjectDraw.cxx:59
StarObjectDrawInternal::State
Internal: the state of a StarObjectDraw.
Definition StarObjectDraw.cxx:62