// HeeksCADInterface.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.

// include this in your dynamic library to interface with HeeksCAD

#pragma once

class HeeksObj;
class wxFrame;
class wxAuiManager;
class Observer;
class wxPoint;
class CInputMode;
class TiXmlElement;
class TiXmlNode;
class TiXmlText;
class TiXmlDocument;
class HeeksColor;
class wxMenuBar;
class wxMenu;
class wxToolBar;
class wxString;
class wxFileName;
class wxCommandEvent;
class wxUpdateUIEvent;
class wxSizeEvent;
class wxMouseEvent;
class wxToolBarBase;
class CNurbSurfaceParams;
class Plugin;
class CoordinateSystem;
class Undoable;
class Tool;


#define HEEKSCAD_VERSION_MAIN "1"
#define HEEKSCAD_VERSION_SUB "5"

//#define FREE_VERSION

#include "SketchOrder.h"

class TopoDS_Shape;
class TopoDS_Edge;
class TopoDS_Wire;
class TopoDS_Solid;
class gp_Lin;
class gp_Pnt;
class gp_Dir;
class gp_Circ;

#include <list>

class CHeeksCADInterface{
public:
	CHeeksCADInterface(){}
	~CHeeksCADInterface(){}

	virtual double GetTolerance();
	virtual void RefreshProperties();
	virtual void RefreshOptions();
	virtual void RefreshInput();
	virtual void Repaint(bool soon = false);
	virtual bool GetCamera(double* pos, double* target, double* up, bool& perspective, double& field_of_view, double& near_plane, double& far_plane);
	virtual wxFrame* GetMainFrame();
	virtual wxWindow* GetGraphicsCanvas();
#ifdef WIN32
	virtual HGLRC GetRC();
#endif
	virtual wxMenuBar* GetMenuBar();
	virtual wxMenu* GetWindowMenu();
	virtual wxMenu* GetHelpMenu();
	virtual wxAuiManager* GetAuiManager();
	virtual void AddToolBarButton(wxToolBar* toolbar, const wxString& title, const wxBitmap& bitmap, const wxString& caption, void(*onButtonFunction)(wxCommandEvent&), void(*onUpdateButtonFunction)(wxUpdateUIEvent&) = NULL);
	virtual void StartToolBarFlyout(const wxString& title_and_bitmap);
	virtual void AddFlyoutButton(const wxString& title, const wxBitmap& bitmap, const wxString& tooltip, void(*onButtonFunction)(wxCommandEvent&));
	virtual void EndToolBarFlyout(wxToolBar* toolbar);
	virtual float GetToolImageButtonScale();
	virtual int GetToolImageBitmapSize();
	virtual int AddMenuItem(wxMenu* menu, const wxString& title, const wxBitmap& bitmap, void(*onButtonFunction)(wxCommandEvent&), void(*onUpdateButtonFunction)(wxUpdateUIEvent&) = NULL, wxMenu* submenu = NULL, bool check_item = false);
	virtual wxString GetExeFolder();
	virtual wxString GetResFolder();
	virtual void AddUndoably(HeeksObj* object, HeeksObj* owner);
	virtual void DeleteUndoably(HeeksObj* object);
	virtual void CopyUndoably(HeeksObj* object, HeeksObj* copy_with_new_data);
	virtual void DoUndoable(Undoable *);
	virtual void StartHistory();
	virtual void EndHistory(void);
	virtual HeeksObj* GetMainObject();
	virtual const std::list<HeeksObj*>& GetMarkedList();
	virtual unsigned long GetMarkedListSize();
	virtual HeeksObj* GetFirstMarkedObject();
	virtual HeeksObj* GetNextMarkedObject();
	virtual bool GetArcCentre(HeeksObj* object, double* c);
	virtual bool GetArcRadius(HeeksObj* object, double* r);
	virtual bool GetArcAxis(HeeksObj* object, double* a);
	virtual double GetArcIncludedAngle(HeeksObj* object);
	virtual double CircleGetRadius(HeeksObj* object);
	virtual void get_2d_arc_segments(double xs, double ys, double xe, double ye, double xc, double yc, bool dir, bool want_start, double pixels_per_mm, void(*callbackfunc)(const double* xy));
	virtual bool GetSegmentVector(HeeksObj* object, double fraction, double* v);
	virtual double GetPixelScale();
	virtual void Mark(HeeksObj* object);
	virtual void Unmark(HeeksObj* object);
	virtual bool ObjectMarked(HeeksObj* object);
	virtual void SetMarkingFilter(long filter);
	virtual long GetMarkingFilter();
	virtual void ClearMarkedList();
	virtual CInputMode* GetSelectMode();
	virtual void SetLineDrawingMode();
	virtual void SetInputMode(CInputMode* input_mode);
	virtual int PickObjects(const wxChar* str, long marking_filter = -1, bool m_just_one = false);
	virtual bool PickPosition(const wxChar* str, double* pos);
	virtual bool Digitize(const wxPoint &point, double* pos);
	virtual bool GetLastClickPosition(double *pos);
	virtual bool GetLastDigitizePosition(double *pos);
	virtual bool GetReferencePoint(double *pos);
	virtual HeeksObj* GetFirstObject();
	virtual HeeksObj* GetNextObject();
	virtual void DrawObjectsOnFront(const std::list<HeeksObj*> &list);
	virtual HeeksObj* NewSketch();
	virtual HeeksObj* NewLine(const double* s, const double* e);
	virtual HeeksObj* NewILine(const double* s, const double* e);
	virtual HeeksObj* NewPoint(const double* p);
	virtual HeeksObj* NewArc(const double* s, const double* e, const double* c, const double* up); // set up to (0, 0, -1) for a clockwise arc
	virtual HeeksObj* NewArc(const double* c, const double* u, double r, double s, double e); // set up to (0, 0, -1) for a clockwise arc
	virtual HeeksObj* NewCircle(const double *c, double r);
	virtual HeeksObj* NewCuboid(const double *c, double x, double y, double z);
	virtual HeeksObj* NewCylinder(const double*c, double r, double h);
        virtual HeeksObj* NewCylinderEx(const double* pos, const double* dir, double r, double h);
	virtual HeeksObj* NewCone(const double*c, double r1, double r2, double h);
	virtual HeeksObj* NewSphere(const double*pos, double radius);
	virtual HeeksObj* NewGroup();
	virtual HeeksObj* NewSolid(const TopoDS_Solid &solid, const wxChar* title, const HeeksColor& col);
	virtual HeeksObj* NewCoordinateSystem(const double* pos, const double* x, const double* y);
	virtual HeeksObj* Fuse(std::list<HeeksObj*> objects);
	virtual HeeksObj* Cut(std::list<HeeksObj*> objects);
	virtual HeeksObj* Common(std::list<HeeksObj*> objects);
	virtual void AddText(const wxChar *text);
	virtual void RotateObject(HeeksObj*, const double*p,const double*u,double r);
	virtual void TranslateObject(HeeksObj*,const double* c);
	virtual void ScaleObject(HeeksObj*, const double* c, double scale);
	virtual void RegisterObserver(Observer* observer);
	virtual void RemoveObserver(Observer* observer);
	virtual bool TangentialArc(const double* p0, const double* v0, const double* p1, double *c, double *a); // given p0, v0, p1, returns true if an arc found and sets c and a ( centre and axis direction ), false for a straight line
	virtual void RegisterHideableWindow(wxWindow* w);
	virtual void RemoveHideableWindow(wxWindow* w);
	virtual HeeksObj* ReadXMLElement(TiXmlElement* pElem);
	virtual TiXmlElement* NewXMLElement(const char* value);
	virtual TiXmlText* NewXMLText(const char* value);
	virtual TiXmlDocument* NewXMLDocument();
	virtual TiXmlElement* FirstXMLChildElement(TiXmlElement* pElem);
	virtual TiXmlElement* FirstNamedXMLChildElement(TiXmlElement* pElem, const char* name);
	virtual TiXmlElement* NextXMLSiblingElement(TiXmlElement* pElem);
	virtual void LinkXMLEndChild(TiXmlNode* root, TiXmlElement* pElem);
	virtual void RemoveXMLChild(TiXmlNode* pElem, TiXmlElement* child);
	virtual void OpendxfFile(const wxChar *filepath);
	virtual void RegisterReadXMLfunction(const char* type_name, HeeksObj*(*read_xml_function)(TiXmlElement* pElem));
	virtual void OpenXMLFile(const wxChar *filepath, HeeksObj* paste_into = NULL);
	virtual void ObjectWriteBaseXML(HeeksObj* object, TiXmlElement* element);
	virtual void ObjectReadBaseXML(HeeksObj* object, TiXmlElement* element);
	virtual std::list<HeeksObj*> GetIDObjects(int type, int id);
	virtual HeeksObj* GetIDObject(int type, int id);
	virtual void SetObjectID(HeeksObj* object, int id); // check for existing id using GetIDObject and call DeleteUndoably first
	virtual void SaveXMLFile(const std::list<HeeksObj*>& objects, const wxChar *filepath, bool for_clipboard);
	virtual void Remove(HeeksObj* obj);
	virtual void Add(HeeksObj* object, HeeksObj* other);
	virtual const Plugin* GetFirstPlugin();
	virtual const Plugin* GetNextPlugin();

	virtual int GetNextID(int type);
	virtual bool InOpenFile();
	virtual bool FileOpenTypeHeeks();
	virtual bool InPaste();
	virtual void RemoveID(HeeksObj* object); // only call this from ObjList::Remove()
	virtual const wxString GetProjectTitle() const;
	virtual const wxFileName GetProjectFileName() const;
	virtual void SetViewBox(const double* b);
	virtual void ViewExtents(bool rotate);
	virtual void XYZView(bool recalculate_gl_lists);
	virtual void SaveSTLFile(const std::list<HeeksObj*>& objects, const wxChar *filepath, double facet_tolerance = -1, double* scale = NULL, bool binary = true);

	// sketches
	virtual SketchOrderType GetSketchOrder(HeeksObj* sketch);
	virtual bool ReOrderSketch(HeeksObj* sketch, SketchOrderType new_order); // returns true if done
	virtual void ExtractSeparateSketches(HeeksObj* sketch, std::list<HeeksObj*> &new_separate_sketches, const bool allow_individual_objects);
	virtual HeeksObj* ExtrudeSketch(HeeksObj* sketch, double height, bool try_to_make_solid);
	virtual HeeksObj* RevolveSketch(HeeksObj* sketch, double angle, bool try_to_make_solid);
	virtual HeeksObj* LineArcsToWire(std::list<HeeksObj*> list);
	virtual HeeksObj* MakePipe(HeeksObj* spine, HeeksObj* profile);
	virtual HeeksObj* MakeRuled(std::list<HeeksObj*> list, bool make_solid);
	virtual bool ConvertSketchToFaceOrWire(HeeksObj* object, std::list<TopoDS_Shape> &face_or_wire, bool face_not_wire);
	virtual bool ConvertWireToSketch(const TopoDS_Wire& wire, HeeksObj* sketch, double deviation);
	virtual HeeksObj* GetSketchFromName(const wxChar* name);
	virtual bool ConvertSketchToEdges(HeeksObj *object, std::list< std::vector<TopoDS_Edge> > &edges);
	virtual HeeksObj* ConvertEdgesToSketch(const std::list<HeeksObj*> &edges, double deviation);
	virtual bool FilletSketchAtPoint(HeeksObj* sketch, const double* d3, double rad);
	 // get coordinate system/datum  parameters
	virtual double GetDatumPosX(HeeksObj* c);
	virtual double GetDatumPosY(HeeksObj* c);
	virtual double GetDatumPosZ(HeeksObj* c);

	virtual double GetDatumDirx_X(HeeksObj* c);
	virtual double GetDatumDirx_Y(HeeksObj* c);
	virtual double GetDatumDirx_Z(HeeksObj* c);

	virtual double GetDatumDiry_X(HeeksObj* c);
	virtual double GetDatumDiry_Y(HeeksObj* c);
	virtual double GetDatumDiry_Z(HeeksObj* c);

	// body functions
	virtual long BodyGetNumFaces(HeeksObj* body);
	virtual HeeksObj* BodyGetFirstFace(HeeksObj* body);
	virtual HeeksObj* BodyGetNextFace(HeeksObj* body);
	virtual HeeksObj* BodyGetPickedFace(HeeksObj* body);
	virtual long BodyGetNumEdges(HeeksObj* body);
	virtual HeeksObj* BodyGetFirstEdge(HeeksObj* body);
	virtual HeeksObj* BodyGetNextEdge(HeeksObj* body);
	virtual long BodyGetNumVertices(HeeksObj* body);
	virtual HeeksObj* BodyGetFirstVertex(HeeksObj* body);
	virtual HeeksObj* BodyGetNextVertex(HeeksObj* body);
	virtual bool BodyGetExtents(HeeksObj* body, double* extents, const double* orig = NULL, const double* xdir = NULL, const double* ydir = NULL, const double* zdir = NULL);
	virtual long BodyGetColor(HeeksObj* body);
	virtual int BodyGetShapeType(HeeksObj* body);
	virtual float BodyGetOpacity(HeeksObj* body); // 0.0 to 1.0
	virtual void BodySetOpacity(HeeksObj* body, float opacity); // 0.0 to 1.0

	// face functions
	virtual void FaceSetTempAttribute(HeeksObj* face, int attr);
	virtual int FaceGetTempAttribute(HeeksObj* face);
	virtual int FaceGetSurfaceType(HeeksObj* face);// 0 - GeomAbs_Plane // 1 - GeomAbs_Cylinder // 2 - GeomAbs_Cone // 3 - GeomAbs_Sphere // 4 - GeomAbs_Torus // 5 - GeomAbs_BezierSurface // 6 - GeomAbs_BSplineSurface // 7 - GeomAbs_SurfaceOfRevolution // 8 - GeomAbs_SurfaceOfExtrusion // 9 - GeomAbs_OffsetSurface // 10- GeomAbs_OtherSurface
	virtual bool FaceIsAPlane(HeeksObj* face, double* normal3);// returns true if the face is a plane, or approximates to a plane, return the normal in normal3 if normal3 is not NULL
	virtual void FaceGetUVBox(HeeksObj* face, double *uv_box);// 4 doubles - umin, umax, vmin, vmax
	virtual void FaceGetSurfaceUVPeriod(HeeksObj* face, double *uv, bool *isUPeriodic, bool *isVPeriodic);// 2 doubles
	virtual void FaceGetPointAndNormalAtUV(HeeksObj* face, double u, double v, double* p, double* norm);
	virtual bool FaceGetUVAtPoint(HeeksObj* face, const double *pos, double *u, double *v);
	virtual bool FaceGetClosestPoint(HeeksObj* face, const double *pos, double *closest_pnt);
	virtual bool FaceGetSurfaceClosestPoint(HeeksObj* face, const double *pos, double *closest_pnt);
	virtual void FaceGetPlaneParams(HeeksObj* face, double *d, double *norm);
	virtual void FaceGetCylinderParams(HeeksObj* face, double *pos, double *dir, double *radius);
	virtual void FaceGetSphereParams(HeeksObj* face, double *pos, double *radius);
	virtual void FaceGetConeParams(HeeksObj* face, double *pos, double *dir, double *radius, double* half_angle);
	virtual void FaceGetTorusParams(HeeksObj* face, double *pos, double *dir, double *majorRadius, double *minorRadius);
	virtual bool FaceGetNurbSurfaceParams(HeeksObj* face, CNurbSurfaceParams* params);
	virtual int FaceGetEdgeCount(HeeksObj* face);
	virtual HeeksObj* FaceGetFirstEdge(HeeksObj* face);
	virtual HeeksObj* FaceGetNextEdge(HeeksObj* face);
	virtual HeeksObj* FaceGetFirstLoop(HeeksObj* face);
	virtual HeeksObj* FaceGetNextLoop(HeeksObj* face);
	virtual bool FaceOrientation(HeeksObj* face);
	virtual HeeksObj* FaceGetParentBody(HeeksObj* face);
	virtual HeeksObj* FaceMakeSketch(HeeksObj* face, double deviation);

	// edge functions
	virtual int EdgeGetCurveType(HeeksObj* edge);
	virtual int EdgeGetFaceCount(HeeksObj* edge);
	virtual HeeksObj* EdgeGetFirstFace(HeeksObj* edge);
	virtual HeeksObj* EdgeGetNextFace(HeeksObj* edge);
	virtual HeeksObj* EdgeGetVertex0(HeeksObj* edge);
	virtual HeeksObj* EdgeGetVertex1(HeeksObj* edge);
	virtual void EdgeGetCurveParams(HeeksObj* edge, double* start, double* end, double* uStart, double* uEnd, int* Reversed);
	virtual void EdgeGetCurveParams2(HeeksObj* edge, double *uStart, double *uEnd, int *isClosed, int *isPeriodic);
	virtual bool EdgeInFaceSense(HeeksObj* edge, HeeksObj* face);
	virtual void EdgeEvaluate(HeeksObj* edge, double u, double *p, double *tangent);
	virtual bool EdgeGetLineParams(HeeksObj* edge, double* d6);
	virtual bool EdgeGetCircleParams(HeeksObj* edge, double* d6);
	virtual bool EdgeGetEllipseParams(HeeksObj* edge, double* d11);
	virtual void EdgeSetTempAttribute(HeeksObj* edge, int attr);
	virtual int EdgeGetTempAttribute(HeeksObj* edge);
	virtual double EdgeGetLength(HeeksObj* edge);
	virtual double EdgeGetLength2(HeeksObj* edge, double uStart, double uEnd);
	virtual bool EdgeGetClosestPoint(HeeksObj* edge, const double *pos, double *closest_pnt, double &u);
	virtual HeeksObj* EdgeGetParentBody(HeeksObj* edge);

	// loop functions
	virtual long LoopGetEdgeCount(HeeksObj* loop);
	virtual HeeksObj* LoopGetFirstEdge(HeeksObj* loop);
	virtual HeeksObj* LoopGetNextEdge(HeeksObj* loop);
	virtual HeeksObj* LoopGetEdge(HeeksObj* loop, int index);
	virtual HeeksObj* LoopGetFace(HeeksObj* loop);
	virtual HeeksObj* LoopMakeSketch(HeeksObj* loop, double deviation);
	virtual bool LoopIsOuter(HeeksObj* loop);

	// vertex functions
	virtual void VertexGetPoint(HeeksObj* vertex, double *d3);
	virtual HeeksObj* VertexGetFirstEdge(HeeksObj* vertex);
	virtual HeeksObj* VertexGetNextEdge(HeeksObj* vertex);

	virtual const wxChar* GetRevisionNumber();
	virtual void RegisterOnGLCommands( void(*callbackfunc)() );
	virtual void RemoveOnGLCommands( void(*callbackfunc)() );
	virtual void RegisterOnGraphicsSize( void(*callbackfunc)(wxSizeEvent& evt) );
	virtual void RemoveOnGraphicsSize( void(*callbackfunc)(wxSizeEvent& evt) );
	virtual void RegisterOnMouseFn( void(*callbackfunc)(wxMouseEvent&) );
	virtual void RemoveOnMouseFn( void(*callbackfunc)(wxMouseEvent&) );
	virtual void RegisterOnSaveFn( void(*callbackfunc)(bool from_changed_prompt) );
	virtual void RegisterIsModifiedFn( bool(*callbackfunc)() );
	virtual void RegisterToolBar( wxToolBarBase*, const wxString& name, const wxString& caption );
	virtual void RemoveToolBar( wxToolBarBase* );
	virtual void RegisterAddToolBars( void(*callbackfunc)() );
	virtual void RemoveMainToolbar();
	virtual void RemoveGeometryToolbar();
	virtual void RemoveSolidToolbar();
	virtual void RemoveViewingToolbar();
	virtual void RemoveOptionsWindow();
	virtual void RemovePropertiesWindow();
	virtual void RemoveLogWindow();
	virtual void RemoveObjectsWindow();
	virtual void RemoveInputWindow();
	virtual void PropertiesOnApply2();// don't need to press tick to make changes
	virtual void AddToAboutBox(const wxChar* str);
	virtual HeeksObj* NewSTLSolid();
	virtual void STLSolidAddTriangle(HeeksObj* stl_solid, float* t);
	virtual const HeeksColor& GetBackgroundColor();
	virtual void SetColor(int r, int b, int g);
	virtual bool InputDouble(const wxChar* prompt, const wxChar* value_name, double &value);
	virtual bool InputLength(const wxChar* prompt, const wxChar* value_name, double &value);
	virtual double GetViewUnits(); //1.0 for mm, 25.4 for inches
	virtual void SetViewUnits(double units, bool write_to_config);
	virtual void SplineToBiarcs(HeeksObj* spline, std::list<HeeksObj*> &new_spans, double tolerance);
	virtual HeeksObj* SketchSplineToBiarcs(HeeksObj* sketch, double tolerance);
	virtual HeeksObj* NewSplineFromPoints(unsigned int num_points, const double* d3); // list of 3 doubles

	// Geometry functions
	virtual bool Intersect(const gp_Lin& lin, const gp_Lin& lin2, gp_Pnt &pnt);
	virtual bool Intersect(const gp_Pnt& pnt, const gp_Lin& lin);
	virtual bool Intersect(const gp_Pnt& pnt, const gp_Circ& cir);
	virtual void Intersect(const gp_Lin& line, const gp_Circ& circle, std::list<gp_Pnt> &list);
	virtual void Intersect(const gp_Circ& c1, const gp_Circ& c2, std::list<gp_Pnt> &list);

	virtual void OnMoveTranslateButton();
	virtual void OnCopyTranslateButton();
	virtual void OnMoveRotateButton();
	virtual void OnCopyRotateButton();
	virtual void OnMoveMirrorButton();
	virtual void OnCopyMirrorButton();
	virtual void OnMoveScaleButton();

	virtual void OnMagExtentsButton();
	virtual void OnMagNoRotButton();
	virtual void OnMagButton();
	virtual void OnMagPreviousButton();
	virtual void OnFullScreenButton();

	virtual void OnMagXYButton();
	virtual void OnMagXYMButton();
	virtual void OnMagXZButton();
	virtual void OnMagXZMButton();
	virtual void OnMagYZButton();
	virtual void OnMagYZMButton();
	virtual void OnMagXYZButton();

	virtual void OnViewRotateButton();
	virtual void OnViewZoomButton();
	virtual void OnViewPanButton();

	virtual void ShowModalOptions();
	virtual void ShowSectioningDialog();

	virtual void RegisterOnBuildTexture( void(*callbackfunc)() );
	virtual int LoadIconsTexture(const wxChar *filepath);

	virtual bool RegisterFileOpenHandler( const std::list<wxString> file_extensions, void (*fileopen_handler)(const wxChar *path) );
	virtual bool UnregisterFileOpenHandler( void (*fileopen_handler)(const wxChar *path) );
	virtual void RegisterOnBeforeNewOrOpen(void(*callbackfunc)(int, int));
	virtual void RegisterOnBeforeFrameDelete(void(*callbackfunc)());

	virtual void RegisterUnitsChangeHandler( void (*units_changed_handler)(const double value) );
	virtual void UnregisterUnitsChangeHandler( void (*units_changed_handler)(const double value) );

	virtual void RegisterHeeksTypesConverter( wxString (*converter)(const int type) );
	virtual void UnregisterHeeksTypesConverter( wxString (*converter)(const int type) );
	virtual wxString HeeksType( const int type );

	// Matrix functions
	virtual bool GetCoordinateSystemMatrix(HeeksObj* object, double *m);
	virtual void MakeMatrix(double* m, const double *origin, const double* x_axis, const double* y_axis);
	virtual void TransformPoint(double* p, const double* m);
	virtual void TransformVector(double* v, const double* m);
	virtual void TransformMatrix(double* m_to_change, const double* m);
	virtual void CopyMatrix(double* m_copy, const double* m);
	virtual void InverseMatrix(double* m_inv, const double* m);

	// Vector functions
	virtual double VectorDotProduct(const double* v1, const double* v2);
	virtual void VectorCrossProduct(double* v, const double* v1, const double* v2);
	virtual void VectorAdd(double* v, const double* v1, const double* v2);
	virtual void VectorSubtract(double* v, const double* v1, const double* v2);
	virtual void VectorMultiply(double* v, double d);
	virtual double VectorLength(const double* v);
	virtual void VectorNormalise(double* v);

	virtual void SetInputUsesModalDialog(bool b);
	virtual void SetDraggingMovesObjects(bool b);
	virtual void SetNoCreationMode();

	// Index functions
	virtual unsigned int GetIndex(HeeksObj *object);
	virtual void ReleaseIndex(unsigned int index);

	virtual void Exit();
	virtual void SetAlternativeFileOpenWildCardString(const wxChar* s);

	// Area functions
	virtual void ObjectAreaString(HeeksObj* object, wxString &s);
	virtual HeeksObj* NewSketchFromArea(HeeksObj* object);

	virtual void RegisterMarkeListTools(void(*callbackfunc)(std::list<Tool*>&));
	virtual void RegisterOnRestoreDefaults(void(*callbackfunc)());

	virtual bool UsingRibbon();
};
