00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __WXCANEXT_H__
00012 #define __WXCANEXT_H__
00013
00014 #ifndef WX_PRECOMP
00015 #include "wx/wx.h"
00016 #endif
00017
00018 #include "wx/canvas/canprim.h"
00019 #include "wx/canvas/candoc.h"
00020 #include "wx/editor/sttool.h"
00021
00022
00023
00024
00025
00026
00027
00028 class A2DEDITORDLLEXP a2dTextGroup: public a2dCanvasObject
00029 {
00030 public:
00031
00032 a2dTextGroup();
00033
00034 a2dTextGroup(double x, double y);
00035 ~a2dTextGroup();
00036 a2dTextGroup( const a2dTextGroup &other, CloneOptions options );
00037
00038 virtual a2dObject* Clone( CloneOptions options ) const;
00039
00040 private:
00041
00042
00043 virtual void RenderChildObjectsOneLayer( a2dIterC& ic, RenderChild& whichchilds, OVERLAP clipparent );
00044
00045 DECLARE_DYNAMIC_CLASS(a2dTextGroup)
00046
00047 private:
00048
00049 a2dTextGroup( const a2dTextGroup &other );
00050 };
00051
00052
00053
00054
00055
00056 class A2DEDITORDLLEXP a2dDrawingFrame: public a2dPolygonLClipper2
00057 {
00058 public:
00059
00060
00061
00062
00063
00064
00065
00066
00067 a2dDrawingFrame( double x = 0 , double y = 0, double width = 100, double height = 100 );
00068
00069
00070 a2dDrawingFrame( const a2dDrawingFrame &other, CloneOptions options );
00071
00072
00073 virtual ~a2dDrawingFrame();
00074
00075 virtual a2dObject* Clone( CloneOptions options ) const;
00076
00077 DECLARE_DYNAMIC_CLASS(a2dDrawingFrame)
00078
00079 A2D_DECLARE_EVENT_TABLE()
00080
00081 protected:
00082
00083 virtual void DoWalker( wxObject* parent, a2dWalkerIOHandler& handler );
00084
00085 bool DoStartEdit( wxUint16 editmode, wxEditStyle editstyle );
00086
00087 void OnCanvasObjectMouseEvent( a2dCanvasObjectMouseEvent& event );
00088
00089 bool DoIsHitWorld( a2dIterC& ic, a2dHitEvent& hitEvent );
00090
00091 #if wxART2D_USE_CVGIO
00092 virtual void DoSave( wxObject* parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts , a2dObjectList* towrite );
00093
00094 void DoLoad( wxObject* parent, a2dIOHandlerXmlSerIn& parser, a2dXmlSer_flag xmlparts );
00095 #endif //wxART2D_USE_CVGIO
00096
00097 void DoRender( a2dIterC& ic, OVERLAP clipparent );
00098
00099 private:
00100
00101 a2dDrawingFrame( const a2dDrawingFrame &other );
00102 };
00103
00104 #endif
00105