Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes

AP_LeftRuler Class Reference

#include <ap_LeftRuler.h>

Inheritance diagram for AP_LeftRuler:
AV_Listener XAP_CustomWidgetLU XAP_CustomWidget AP_UnixLeftRuler AP_Win32LeftRuler

List of all members.

Public Member Functions

 AP_LeftRuler (XAP_Frame *pFrame)
virtual ~AP_LeftRuler (void)
virtual void setView (AV_View *pView)
void setView (AV_View *pView, UT_uint32 iZoom)
void setViewHidden (AV_View *pView)
void setZoom (UT_uint32 iZoom)
bool isHidden (void) const
AV_ViewgetView (void) const
void setHeight (UT_uint32 iHeight)
UT_uint32 getHeight (void) const
void setWidth (UT_uint32 iWidth)
UT_uint32 getWidth (void) const
void scrollRuler (UT_sint32 yoff, UT_sint32 ylimit)
void mouseMotion (EV_EditModifierState ems, UT_sint32 x, UT_sint32 y)
void mousePress (EV_EditModifierState ems, EV_EditMouseButton emb, UT_uint32 x, UT_uint32 y)
void mouseRelease (EV_EditModifierState ems, EV_EditMouseButton emb, UT_sint32 x, UT_sint32 y)
UT_sint32 setTableLineDrag (PT_DocPosition pos, UT_sint32 &iFixed, UT_sint32 y)
virtual bool notify (AV_View *pView, const AV_ChangeMask mask)
virtual AV_ListenerType getType (void)
UT_Dimension getDimension () const
void setDimension (UT_Dimension newdim)
GR_GraphicsgetGraphics (void) const

Static Public Member Functions

static void _scrollFuncX (void *pData, UT_sint32 xoff, UT_sint32 xlimit)
static void _scrollFuncY (void *pData, UT_sint32 yoff, UT_sint32 ylimit)

Protected Member Functions

void _refreshView (void)
virtual void drawLU (const UT_Rect *clip)
void _getMarginMarkerRects (const AP_LeftRulerInfo *pInfo, UT_Rect &rTop, UT_Rect &rBottom)
virtual void _drawMarginProperties (const UT_Rect *pClipRect, const AP_LeftRulerInfo *pInfo, GR_Graphics::GR_Color3D clr)
virtual void _drawCellMark (UT_Rect *prDrag, bool bUp)

Static Protected Member Functions

static void _prefsListener (XAP_Prefs *pPrefs, UT_StringPtrMap *phChanges, void *data)

Protected Attributes

XAP_Framem_pFrame
GR_Graphicsm_pG
UT_uint32 s_iFixedHeight
UT_uint32 s_iFixedWidth

Private Types

enum  _draggingWhat { DW_NOTHING, DW_TOPMARGIN, DW_BOTTOMMARGIN, DW_CELLMARK }
typedef enum
AP_LeftRuler::_draggingWhat 
DraggingWhat

Private Member Functions

UT_sint32 _snapPixelToGrid (UT_sint32 xDist, ap_RulerTicks &tick)
double _scalePixelDistanceToUnits (UT_sint32 yDist, ap_RulerTicks &tick)
void _ignoreEvent (bool bDone)
void _getCellMarkerRects (const AP_LeftRulerInfo *pInfo, UT_sint32 iCell, UT_Rect &rCell, fp_TableContainer *pBroke=NULL)
void _drawCellProperties (const AP_LeftRulerInfo *pInfo)
void _xorGuide (bool bClear=false)
void _displayStatusMessage (XAP_String_Id messageID, const ap_RulerTicks &tick, double dValue)

Private Attributes

AP_LeftRulerInfom_lfi
AV_ScrollObjm_pScrollObj
UT_sint32 m_yScrollOffset
UT_sint32 m_yScrollLimit
AV_ListenerId m_lidLeftRuler
AV_Viewm_pView
UT_Dimension m_dim
UT_uint32 m_iHeight
UT_uint32 m_iWidth
AP_LeftRulerInfo m_infoCache
UT_sint32 m_oldY
DraggingWhat m_draggingWhat
UT_sint32 m_draggingCenter
bool m_bBeforeFirstMotion
UT_sint32 m_draggingCell
bool m_bGuide
UT_sint32 m_yGuide
bool m_bValidMouseClick
bool m_bEventIgnored
UT_Rect m_draggingRect
UT_sint32 m_minPageLength
PT_DocPosition m_draggingDocPos
bool m_bIsHidden

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
DW_NOTHING 
DW_TOPMARGIN 
DW_BOTTOMMARGIN 
DW_CELLMARK 

Constructor & Destructor Documentation


Member Function Documentation

void AP_LeftRuler::_prefsListener ( XAP_Prefs pPrefs,
UT_StringPtrMap phChanges,
void *  data 
) [static, protected]
void AP_LeftRuler::_refreshView ( void   )  [protected]
double AP_LeftRuler::_scalePixelDistanceToUnits ( UT_sint32  yDist,
ap_RulerTicks tick 
) [private]
void AP_LeftRuler::_scrollFuncX ( void *  pData,
UT_sint32  xoff,
UT_sint32  xlimit 
) [static]

Referenced by setView().

void AP_LeftRuler::_scrollFuncY ( void *  pData,
UT_sint32  yoff,
UT_sint32  ylimit 
) [static]

References scrollRuler(), and UT_ASSERT.

Referenced by setView().

UT_sint32 AP_LeftRuler::_snapPixelToGrid ( UT_sint32  xDist,
ap_RulerTicks tick 
) [private]
UT_Dimension AP_LeftRuler::getDimension (  )  const [inline]

Referenced by _prefsListener().

GR_Graphics* AP_LeftRuler::getGraphics ( void   )  const [inline, virtual]
UT_uint32 AP_LeftRuler::getHeight ( void   )  const

return value in logical units

References m_iHeight, m_pG, and GR_Graphics::tlu().

Referenced by drawLU(), and scrollRuler().

virtual AV_ListenerType AP_LeftRuler::getType ( void   )  [inline, virtual]
AV_View* AP_LeftRuler::getView ( void   )  const [inline]

Referenced by Defun().

bool AP_LeftRuler::isHidden ( void   )  const [inline]

Referenced by AP_Frame::quickZoom().

void AP_LeftRuler::mouseMotion ( EV_EditModifierState  ems,
UT_sint32  x,
UT_sint32  y 
)
void AP_LeftRuler::mouseRelease ( EV_EditModifierState  ems,
EV_EditMouseButton  emb,
UT_sint32  x,
UT_sint32  y 
)

References _getCellMarkerRects(), _ignoreEvent(), _xorGuide(), AV_CHG_HDRFTR, AV_CHG_MOTION, UT_String::c_str(), ap_RulerTicks::dimType, DW_BOTTOMMARGIN, DW_CELLMARK, DW_NOTHING, DW_TOPMARGIN, FV_View::ensureInsertionPointOnScreen(), FL_DocLayout::findPage(), gchar, fl_ContainerLayout::getAP(), fp_CellContainer::getBottomAttach(), fp_Container::getContainer(), fl_SectionLayout::getDocLayout(), fl_HdrFtrSectionLayout::getDocSectionLayout(), FV_View::getDocument(), FV_View::getDragTableLine(), FV_View::getEditShadow(), fl_ContainerLayout::getFirstLayout(), FV_View::getFrameLayout(), FV_View::getGraphics(), fp_Page::getHdrFtrP(), fl_HdrFtrShadow::getHdrFtrSectionLayout(), fl_HdrFtrSectionLayout::getHFType(), UT_GenericVector< T >::getItemCount(), FV_View::getLeftRulerInfo(), UT_GenericVector< T >::getNthItem(), FL_DocLayout::getNthPage(), fl_HdrFtrShadow::getPage(), FV_View::getPoint(), AV_View::getPoint(), fl_BlockLayout::getPosition(), PP_AttrProp::getProperty(), fp_ContainerObject::getSectionLayout(), fp_ShadowContainer::getShadow(), fp_CellContainer::getTopAttach(), getWidth(), fp_TableContainer::getYOfRow(), GR_Graphics::GR_CURSOR_DEFAULT, UT_Rect::height, GR_Graphics::invertDimension(), FV_View::isHdrFtrEdit(), FV_View::isInFrame(), FV_View::isInTable(), AD_Document::isPieceTableChanging(), m_bEventIgnored, m_bValidMouseClick, m_dim, m_draggingCell, m_draggingCenter, m_draggingDocPos, m_draggingWhat, m_infoCache, AP_LeftRulerInfo::m_mode, m_oldY, AP_LeftRulerTableInfo::m_pCell, m_pG, m_pView, AP_LeftRulerInfo::m_vecTableRowInfo, AP_LeftRulerInfo::m_yPageSize, AP_LeftRulerInfo::m_yPageStart, m_yScrollOffset, AP_LeftRulerInfo::m_yTopMargin, notify(), FV_View::notifyListeners(), ap_RulerTicks::scalePixelDistanceToUnits(), GR_Graphics::setCursor(), FV_View::setFrameFormat(), FV_View::setHdrFtrEdit(), FV_View::setPoint(), FV_View::setSectionFormat(), FV_View::setTableFormat(), ap_RulerTicks::snapPixelToGrid(), UT_Rect::top, AP_LeftRulerInfo::TRI_MODE_FRAME, UT_ASSERT, UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_formatDimensionedValue(), UT_LAYOUT_RESOLUTION, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.

Referenced by AP_Win32LeftRuler::_LeftRulerWndProc(), AP_UnixLeftRuler::_fe::button_release_event(), and Defun().

bool AP_LeftRuler::notify ( AV_View pView,
const AV_ChangeMask  mask 
) [virtual]
void AP_LeftRuler::setDimension ( UT_Dimension  newdim  ) 

References m_dim, and XAP_CustomWidget::queueDraw().

Referenced by _prefsListener().

void AP_LeftRuler::setHeight ( UT_uint32  iHeight  ) 
void AP_LeftRuler::setView ( AV_View pView,
UT_uint32  iZoom 
)
void AP_LeftRuler::setViewHidden ( AV_View pView  ) 

References m_bIsHidden, and m_pView.

Referenced by Defun().


Member Data Documentation

bool AP_LeftRuler::m_bGuide [private]

Referenced by _xorGuide(), and AP_LeftRuler().

bool AP_LeftRuler::m_bIsHidden [private]

Referenced by AP_LeftRuler(), and setViewHidden().


The documentation for this class was generated from the following files: