Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef STAR_OBJECT_SMALL_GRAPHIC
00039 # define STAR_OBJECT_SMALL_GRAPHIC
00040
00041 #include <vector>
00042
00043 #include "libstaroffice_internal.hxx"
00044 #include "StarObject.hxx"
00045
00046 namespace StarObjectSmallGraphicInternal
00047 {
00048 class GluePoint;
00049 class OutlinerParaObject;
00050
00051 class Graphic;
00052
00053 class SdrGraphic;
00054 class SdrGraphicAttribute;
00055 class SdrGraphicCaption;
00056 class SdrGraphicCircle;
00057 class SdrGraphicEdge;
00058 class SdrGraphicGraph;
00059 class SdrGraphicGroup;
00060 class SdrGraphicMeasure;
00061 class SdrGraphicOLE;
00062 class SdrGraphicPath;
00063 class SdrGraphicRect;
00064 class SdrGraphicText;
00065
00066 struct State;
00067 }
00068
00069 class StarZone;
00070
00076 class StarObjectSmallGraphic : public StarObject
00077 {
00078 public:
00080 StarObjectSmallGraphic(StarObject const &orig, bool duplicateState);
00082 virtual ~StarObjectSmallGraphic();
00084 bool readSdrObject(StarZone &zone);
00086 bool send(STOFFListenerPtr listener, STOFFPosition const &pos, StarObject &object, bool inPageMaster=false);
00088 friend std::ostream &operator<<(std::ostream &o, StarObjectSmallGraphic const &graphic);
00089
00090 protected:
00091
00092
00093
00095 shared_ptr<StarObjectSmallGraphicInternal::SdrGraphic> readSVDRObject(StarZone &zone, int identifier);
00097 bool readSVDRObjectHeader(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphic &graphic);
00099 bool readSVDRObjectAttrib(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicAttribute &graphic);
00101 bool readSVDRObjectText(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicText &graphic);
00103 bool readSVDRObjectRect(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicRect &graphic);
00105 bool readSVDRObjectCaption(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicCaption &graphic);
00107 bool readSVDRObjectCircle(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicCircle &graphic);
00109 bool readSVDRObjectEdge(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicEdge &graphic);
00111 bool readSVDRObjectGraph(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicGraph &graphic);
00113 bool readSVDRObjectGroup(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicGroup &graphic);
00115 bool readSVDRObjectMeasure(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicMeasure &graphic);
00117 bool readSVDRObjectOLE(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicOLE &graphic);
00119 bool readSVDRObjectPath(StarZone &zone, StarObjectSmallGraphicInternal::SdrGraphicPath &graphic);
00120
00122 bool readSDRGluePoint(StarZone &zone, StarObjectSmallGraphicInternal::GluePoint &point);
00124 bool readSDRGluePointList(StarZone &zone, std::vector<StarObjectSmallGraphicInternal::GluePoint> &listPoints);
00126 bool readSDRObjectConnection(StarZone &zone);
00128 bool readSDRObjectSurrogate(StarZone &zone);
00130 bool readSDROutlinerParaObject(StarZone &zone, StarObjectSmallGraphicInternal::OutlinerParaObject &object);
00132 bool readSDRUserData(StarZone &zone, bool inRecord);
00134 bool readSDRUserDataList(StarZone &zone, bool inRecord);
00135
00137 shared_ptr<StarObjectSmallGraphicInternal::Graphic> readFmFormObject(StarZone &zone, int identifier);
00138
00140 shared_ptr<StarObjectSmallGraphicInternal::Graphic> readSCHUObject(StarZone &zone, int identifier);
00141
00143 shared_ptr<StarObjectSmallGraphicInternal::Graphic> readSDUDObject(StarZone &zone, int identifier);
00144
00145 protected:
00146
00147
00148
00149
00151 shared_ptr<StarObjectSmallGraphicInternal::State> m_graphicState;
00152 private:
00153 StarObjectSmallGraphic &operator=(StarObjectSmallGraphic const &orig);
00154 };
00155 #endif
00156