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 #ifndef AP_COCOALEFTRULER_H
00024 #define AP_COCOALEFTRULER_H
00025
00026
00027
00028
00029
00030
00031 #import <Cocoa/Cocoa.h>
00032
00033 #include "ut_types.h"
00034 #include "ap_LeftRuler.h"
00035
00036 class XAP_Frame;
00037 @class AP_CocoaLeftRulerDelegate;
00038
00039
00040
00041 class AP_CocoaLeftRuler : public AP_LeftRuler
00042 {
00043 public:
00044 AP_CocoaLeftRuler(XAP_Frame * pFrame);
00045 virtual ~AP_CocoaLeftRuler(void);
00046
00047 XAP_CocoaNSView * createWidget(void);
00048 virtual void setView(AV_View * pView);
00049
00050
00051 void getWidgetPosition(int * x, int * y);
00052 XAP_CocoaNSView * getWidget(void) { return m_wLeftRuler; };
00053 NSWindow * getRootWindow(void);
00054
00055
00056 protected:
00057 #if 0
00058 virtual void _drawMarginProperties(const UT_Rect * pClipRect,
00059 AP_LeftRulerInfo * pInfo,
00060 GR_Graphics::GR_Color3D clr);
00061 virtual void _drawCellMark(UT_Rect *prDrag, bool bUp);
00062 #endif
00063 private:
00064 static bool _graphicsUpdateCB(NSRect * aRect, GR_CocoaCairoGraphics *pG, void* param);
00065
00066 XAP_CocoaNSView * m_wLeftRuler;
00067 NSWindow * m_rootWindow;
00068 AP_CocoaLeftRulerDelegate* m_delegate;
00069 };
00070
00071 #endif