StarObjectSmallGraphic.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/* libstaroffice
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 convert a small graphic zone/OLE in a StarOffice document
36 *
37 */
38#ifndef STAR_OBJECT_SMALL_GRAPHIC
39# define STAR_OBJECT_SMALL_GRAPHIC
40
41#include <vector>
42
44#include "StarObject.hxx"
45
47{
48class GluePoint;
49class OutlinerParaObject;
50
51class Graphic;
52// SDR graphic
53class SdrGraphic;
54class SdrGraphicAttribute;
55class SdrGraphicCaption;
56class SdrGraphicCircle;
57class SdrGraphicEdge;
58class SdrGraphicGraph;
59class SdrGraphicGroup;
60class SdrGraphicMeasure;
61class SdrGraphicOLE;
62class SdrGraphicPath;
63class SdrGraphicRect;
64class SdrGraphicText;
65
66// SDR User data
67class SDRUserData;
68
69struct State;
70}
71
72class STOFFFrameStyle;
73
74class StarZone;
75
82{
83public:
85 StarObjectSmallGraphic(StarObject const &orig, bool duplicateState);
87 ~StarObjectSmallGraphic() override;
89 bool readSdrObject(StarZone &zone);
91 bool send(STOFFListenerPtr &listener, STOFFFrameStyle const &pos, StarObject &object, bool inPageMaster=false);
93 friend std::ostream &operator<<(std::ostream &o, StarObjectSmallGraphic const &graphic);
94
95protected:
96 //
97 // low level
98 //
100 std::shared_ptr<StarObjectSmallGraphicInternal::SdrGraphic> readSVDRObject(StarZone &zone, int identifier);
125
129 bool readSDRGluePointList(StarZone &zone, std::vector<StarObjectSmallGraphicInternal::GluePoint> &listPoints);
137 std::shared_ptr<StarObjectSmallGraphicInternal::SDRUserData> readSDRUserData(StarZone &zone, bool inRecord);
139 bool readSDRUserDataList(StarZone &zone, bool inRecord,
140 std::vector<std::shared_ptr<StarObjectSmallGraphicInternal::SDRUserData> > &data);
141
143 std::shared_ptr<StarObjectSmallGraphicInternal::Graphic> readFmFormObject(StarZone &zone, int identifier);
144
146 std::shared_ptr<StarObjectSmallGraphicInternal::SDRUserData> readSCHUObject(StarZone &zone, int identifier);
147
149 std::shared_ptr<StarObjectSmallGraphicInternal::SDRUserData> readSDUDObject(StarZone &zone, int identifier);
150
151protected:
152 //
153 // data
154 //
155
157 std::shared_ptr<StarObjectSmallGraphicInternal::State> m_graphicState;
158private:
160};
161#endif
162// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:46
Internal: virtual class to store a glue point.
Definition: StarObjectSmallGraphic.cxx:70
Internal: virtual class to store a outliner paragraph object.
Definition: StarObjectSmallGraphic.cxx:105
Internal: virtual class to store a Sdr graphic attribute.
Definition: StarObjectSmallGraphic.cxx:389
Internal: virtual class to store a Sdr graphic caption.
Definition: StarObjectSmallGraphic.cxx:691
Internal: virtual class to store a Sdr graphic circle.
Definition: StarObjectSmallGraphic.cxx:757
Internal: virtual class to store a Sdr graphic edge.
Definition: StarObjectSmallGraphic.cxx:837
Internal: virtual class to store a Sdr graphic graph.
Definition: StarObjectSmallGraphic.cxx:945
Internal: virtual class to store a Sdr graphic group.
Definition: StarObjectSmallGraphic.cxx:455
Internal: virtual class to store a Sdr graphic edge.
Definition: StarObjectSmallGraphic.cxx:1050
Internal: virtual class to store a Sdr graphic OLE.
Definition: StarObjectSmallGraphic.cxx:1125
Internal: virtual class to store a Sdr graphic path.
Definition: StarObjectSmallGraphic.cxx:1276
Internal: virtual class to store a Sdr graphic rectangle.
Definition: StarObjectSmallGraphic.cxx:632
Internal: virtual class to store a Sdr graphic text.
Definition: StarObjectSmallGraphic.cxx:528
Internal: virtual class to store a Sdr graphic.
Definition: StarObjectSmallGraphic.cxx:287
the main class to read a small StarOffice graphic zone
Definition: StarObjectSmallGraphic.hxx:82
bool readSVDRObjectOLE(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicOLE &graphic)
try to read the object OLE zone
Definition: StarObjectSmallGraphic.cxx:2672
bool readSVDRObjectAttrib(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicAttribute &graphic)
try to read the object attrib zone
Definition: StarObjectSmallGraphic.cxx:2000
bool readSDRUserDataList(StarZone &zone, bool inRecord, std::vector< std::shared_ptr< StarObjectSmallGraphicInternal::SDRUserData > > &data)
try to read a SDR userData list
Definition: StarObjectSmallGraphic.cxx:3312
bool readSVDRObjectCircle(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicCircle &graphic)
try to read the object circle zone
Definition: StarObjectSmallGraphic.cxx:2128
bool readSVDRObjectMeasure(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicMeasure &graphic)
try to read the object measure zone
Definition: StarObjectSmallGraphic.cxx:2630
friend std::ostream & operator<<(std::ostream &o, StarObjectSmallGraphic const &graphic)
small operator<< to print the content of the small graphic object
Definition: StarObjectSmallGraphic.cxx:1717
std::shared_ptr< StarObjectSmallGraphicInternal::SDRUserData > readSDUDObject(StarZone &zone, int identifier)
try to read a SDDU object
Definition: StarObjectSmallGraphic.cxx:3468
bool readSDROutlinerParaObject(StarZone &zone, StarObjectSmallGraphicInternal::OutlinerParaObject &object)
try to read a outliner para object
Definition: StarObjectSmallGraphic.cxx:3045
std::shared_ptr< StarObjectSmallGraphicInternal::State > m_graphicState
the state
Definition: StarObjectSmallGraphic.hxx:157
StarObjectSmallGraphic & operator=(StarObjectSmallGraphic const &orig)=delete
bool readSVDRObjectRect(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicRect &graphic)
try to read the object rect zone
Definition: StarObjectSmallGraphic.cxx:2839
bool readSDRObjectSurrogate(StarZone &zone)
try to read a SDR object surrogate
Definition: StarObjectSmallGraphic.cxx:2999
bool readSDRGluePointList(StarZone &zone, std::vector< StarObjectSmallGraphicInternal::GluePoint > &listPoints)
try to read a SDR gluepoint list
Definition: StarObjectSmallGraphic.cxx:3211
bool readSVDRObjectEdge(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicEdge &graphic)
try to read the object edge zone
Definition: StarObjectSmallGraphic.cxx:2171
std::shared_ptr< StarObjectSmallGraphicInternal::SDRUserData > readSDRUserData(StarZone &zone, bool inRecord)
try to read a SDR userData
Definition: StarObjectSmallGraphic.cxx:3243
bool readSVDRObjectGraph(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicGraph &graphic)
try to read the object graph zone
Definition: StarObjectSmallGraphic.cxx:2396
bool readSDRObjectConnection(StarZone &zone)
try to read a SDR object connection
Definition: StarObjectSmallGraphic.cxx:2949
bool send(STOFFListenerPtr &listener, STOFFFrameStyle const &pos, StarObject &object, bool inPageMaster=false)
try to send a object to the listener
Definition: StarObjectSmallGraphic.cxx:1724
std::shared_ptr< StarObjectSmallGraphicInternal::SdrGraphic > readSVDRObject(StarZone &zone, int identifier)
try to read a SVDr object
Definition: StarObjectSmallGraphic.cxx:1824
~StarObjectSmallGraphic() override
destructor
Definition: StarObjectSmallGraphic.cxx:1713
bool readSVDRObjectPath(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicPath &graphic)
try to read the object path zone
Definition: StarObjectSmallGraphic.cxx:2744
bool readSVDRObjectText(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicText &graphic)
try to read the object text zone
Definition: StarObjectSmallGraphic.cxx:2867
bool readSdrObject(StarZone &zone)
try to read a object zone: "DrOb'
Definition: StarObjectSmallGraphic.cxx:1745
bool readSVDRObjectGroup(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicGroup &graphic)
try to read the object group zone
Definition: StarObjectSmallGraphic.cxx:2539
bool readSDRGluePoint(StarZone &zone, StarObjectSmallGraphicInternal::GluePoint &point)
try to read a SDR gluepoint
Definition: StarObjectSmallGraphic.cxx:3180
std::shared_ptr< StarObjectSmallGraphicInternal::Graphic > readFmFormObject(StarZone &zone, int identifier)
try to read a FM01 object
Definition: StarObjectSmallGraphic.cxx:3347
bool readSVDRObjectCaption(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicCaption &graphic)
try to read the object caption zone
Definition: StarObjectSmallGraphic.cxx:2075
std::shared_ptr< StarObjectSmallGraphicInternal::SDRUserData > readSCHUObject(StarZone &zone, int identifier)
try to read a SCHU object
Definition: StarObjectSmallGraphic.cxx:3407
bool readSVDRObjectHeader(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphic &graphic)
try to read the first zone of SVDr object
Definition: StarObjectSmallGraphic.cxx:2293
an object corresponding to an OLE directory
Definition: StarObject.hxx:65
a zone in a StarOffice file
Definition: StarZone.hxx:57
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:491
Internal: the structures of a StarObjectSmallGraphic.
Definition: StarObjectSmallGraphic.cxx:66

Generated on Fri Apr 14 2023 04:41:10 for libstaroffice by doxygen 1.9.6