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

AP_TopRuler Class Reference

#include <ap_TopRuler.h>

Inheritance diagram for AP_TopRuler:
AV_Listener XAP_CustomWidgetLU XAP_CustomWidget AP_UnixTopRuler AP_Win32TopRuler

List of all members.

Public Member Functions

 AP_TopRuler (XAP_Frame *pFrame)
virtual ~AP_TopRuler (void)
virtual void setView (AV_View *pView)
void setViewHidden (AV_View *pView)
void setView (AV_View *pView, UT_uint32 iZoom)
AV_ViewgetView (void) const
void setOffsetLeftRuler (UT_uint32 iLeftRulerWidth)
void setZoom (UT_uint32 iZoom)
void setHeight (UT_uint32 iHeight)
UT_uint32 getHeight (void) const
void setWidth (UT_uint32 iWidth)
UT_uint32 getWidth (void) const
GR_GraphicsgetGraphics (void) const
bool isHidden (void) const
void scrollRuler (UT_sint32 xoff, UT_sint32 xlimit)
UT_sint32 setTableLineDrag (PT_DocPosition pos, UT_sint32 x, UT_sint32 &iFixed)
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)
bool isMouseOverTab (UT_uint32 x, UT_uint32 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)
UT_uint32 getTabToggleAreaWidth () 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)
static UT_uint32 getFixedWidth ()

Protected Member Functions

virtual void drawLU (const UT_Rect *clip)
void _draw (const UT_Rect *pClipRect, AP_TopRulerInfo *pUseInfo)
void _drawBar (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, GR_Graphics::GR_Color3D clr3d, UT_sint32 x, UT_sint32 w)
void _drawTickMark (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, ap_RulerTicks &tick, GR_Graphics::GR_Color3D clr3d, GR_Font *pFont, UT_sint32 k, UT_sint32 xTick)
void _drawTicks (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, ap_RulerTicks &tick, GR_Graphics::GR_Color3D clr3d, GR_Font *pFont, UT_sint32 xOrigin, UT_sint32 xFrom, UT_sint32 xTo)
void _getParagraphMarkerXCenters (AP_TopRulerInfo *pInfo, UT_sint32 *pLeft, UT_sint32 *pRight, UT_sint32 *pFirstLine)
void _getParagraphMarkerRects (AP_TopRulerInfo *pInfo, UT_sint32 leftCenter, UT_sint32 rightCenter, UT_sint32 firstLineCenter, UT_Rect *prLeftIndent, UT_Rect *prRightIndent, UT_Rect *prFirstLineIndent)
void _drawParagraphProperties (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, bool bDrawAll=true)
void _getTabToggleRect (UT_Rect *prToggle)
void _drawTabToggle (const UT_Rect *pClipRect, bool bErase)
void _getTabStopXAnchor (AP_TopRulerInfo *pInfo, UT_sint32 k, UT_sint32 *pTab, eTabType &iType, eTabLeader &iLeader)
void _getTabStopRect (AP_TopRulerInfo *pInfo, UT_sint32 anchor, UT_Rect *pRect)
void _drawTabProperties (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, bool bDrawAll=true)
UT_sint32 _findTabStop (AP_TopRulerInfo *pInfo, UT_uint32 x, UT_uint32 y, UT_sint32 &anchor, eTabType &iType, eTabLeader &iLeader)
const char * _getTabStopString (AP_TopRulerInfo *pInfo, UT_sint32 k)
void _getTabZoneRect (AP_TopRulerInfo *pInfo, UT_Rect &rZone)
void _setTabStops (ap_RulerTicks tick, UT_sint32 iTab, eTabLeader iLeader, bool bDelete)
UT_sint32 _getColumnMarkerXRightEnd (AP_TopRulerInfo *pInfo, UT_uint32 kCol)
void _getColumnMarkerRect (AP_TopRulerInfo *pInfo, UT_uint32 kCol, UT_sint32 xCenter, UT_Rect *prCol)
void _drawColumnProperties (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, UT_uint32 kCol)
void _getCellMarkerRect (AP_TopRulerInfo *pInfo, UT_sint32 kCell, UT_Rect *prCell)
void _drawCellProperties (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, UT_uint32 kCol, bool bDrawAll)
void _drawCellProperties (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, bool bDrawAll)
void _drawCellGap (AP_TopRulerInfo *pInfo, UT_sint32 iCell)
virtual void _drawCellMark (UT_Rect *prDrag, bool bUp)
void _getMarginMarkerRects (AP_TopRulerInfo *pInfo, UT_Rect &rLeft, UT_Rect &rRight)
virtual void _drawMarginProperties (const UT_Rect *pClipRect, AP_TopRulerInfo *pInfo, GR_Graphics::GR_Color3D clr)
void _xorGuide (bool bClear=false)
void _ignoreEvent (bool bDone)
double _scalePixelDistanceToUnits (UT_sint32 xColRel, ap_RulerTicks &tick)
double _getUnitsFromRulerLeft (UT_sint32 xColRel, ap_RulerTicks &tick)
UT_sint32 _getFirstPixelInColumn (AP_TopRulerInfo *pInfo, UT_uint32 kCol)
UT_sint32 _snapPixelToGrid (UT_sint32 xDist, ap_RulerTicks &tick)
virtual void _drawLeftIndentMarker (UT_Rect &r, bool bFilled)
virtual void _drawRightIndentMarker (UT_Rect &r, bool bFilled)
virtual void _drawFirstLineIndentMarker (UT_Rect &r, bool bFilled)
void _drawTabStop (UT_Rect &r, eTabType iType, bool bFilled)
virtual void _drawColumnGapMarker (UT_Rect &r)
bool _isInBottomBoxOfLeftIndent (UT_uint32 y)
void _displayStatusMessage (XAP_String_Id messageID, const ap_RulerTicks &tick, double dValue)
void _displayStatusMessage (XAP_String_Id messageID, const ap_RulerTicks &tick, double dValue1, double dValue2)
void _displayStatusMessage (XAP_String_Id FormatMessageID, UT_sint32 iCol, const char *format)
void _displayStatusMessage (XAP_String_Id FormatMessageID)
void _refreshView (void)

Static Protected Member Functions

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

Protected Attributes

XAP_Framem_pFrame
GR_Graphicsm_pG
UT_uint32 m_iLeftRulerWidth
UT_sint32 m_xScrollOffset
UT_sint32 m_xScrollLimit
AV_Viewm_pView

Static Protected Attributes

static UT_uint32 s_iFixedHeight = 32
static UT_uint32 s_iFixedWidth = 32

Private Types

enum  _draggingWhat {
  DW_NOTHING, DW_LEFTMARGIN, DW_RIGHTMARGIN, DW_COLUMNGAP,
  DW_COLUMNGAPLEFTSIDE, DW_LEFTINDENT, DW_RIGHTINDENT, DW_FIRSTLINEINDENT,
  DW_LEFTINDENTWITHFIRST, DW_TABSTOP, DW_TABTOGGLE, DW_CELLMARK
}
typedef enum
AP_TopRuler::_draggingWhat 
DraggingWhat

Private Attributes

AV_ScrollObjm_pScrollObj
UT_Dimension m_dim
UT_uint32 m_iHeight
UT_uint32 m_iWidth
UT_Timerm_pAutoScrollTimer
char m_aScrollDirection
UT_sint32 m_minColumnWidth
UT_sint32 m_iMinCellPos
UT_sint32 m_iMaxCellPos
AP_TopRulerInfo m_infoCache
bool m_bValidMouseClick
bool m_bEventIgnored
DraggingWhat m_draggingWhat
UT_sint32 m_draggingCenter
UT_Rect m_draggingRect
UT_sint32 m_dragging2Center
UT_Rect m_dragging2Rect
UT_sint32 m_draggingTab
eTabType m_draggingTabType
eTabLeader m_draggingTabLeader
UT_sint32 m_dragStart
bool m_bBeforeFirstMotion
UT_sint32 m_oldX
eTabType m_iDefaultTabType
UT_sint32 m_draggingCell
bool m_bGuide
UT_sint32 m_xGuide
UT_sint32 m_xOtherGuide
AV_ListenerId m_lidTopRuler
UT_sint32 m_iCellContainerLeftPos
bool m_bIsHidden
UT_sint32 m_iOrigPosition

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
DW_NOTHING 
DW_LEFTMARGIN 
DW_RIGHTMARGIN 
DW_COLUMNGAP 
DW_COLUMNGAPLEFTSIDE 
DW_LEFTINDENT 
DW_RIGHTINDENT 
DW_FIRSTLINEINDENT 
DW_LEFTINDENTWITHFIRST 
DW_TABSTOP 
DW_TABTOGGLE 
DW_CELLMARK 

Constructor & Destructor Documentation


Member Function Documentation

void AP_TopRuler::_displayStatusMessage ( XAP_String_Id  FormatMessageID,
UT_sint32  iCol,
const char *  format 
) [protected]
void AP_TopRuler::_drawCellMark ( UT_Rect prDrag,
bool  bUp 
) [protected, virtual]

This draws a cell marker as either a hollow square or a bevelled square. The hollow square is to show the original location during a drag. pUp should be true to draw the bevelled square.

References GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelUp, GR_Graphics::CLR3D_Foreground, GR_Graphics::CLR3D_Highlight, GR_Painter::drawLine(), GR_Painter::fillRect(), UT_Rect::height, UT_Rect::left, m_pG, GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, UT_Rect::width, and xxx_UT_DEBUGMSG.

Referenced by _drawCellProperties().

void AP_TopRuler::_drawColumnProperties ( const UT_Rect pClipRect,
AP_TopRulerInfo pInfo,
UT_uint32  kCol 
) [protected]
void AP_TopRuler::_drawTabStop ( UT_Rect r,
eTabType  iType,
bool  bFilled 
) [protected]
UT_sint32 AP_TopRuler::_findTabStop ( AP_TopRulerInfo pInfo,
UT_uint32  x,
UT_uint32  y,
UT_sint32 anchor,
eTabType iType,
eTabLeader iLeader 
) [protected]
UT_sint32 AP_TopRuler::_getColumnMarkerXRightEnd ( AP_TopRulerInfo pInfo,
UT_uint32  kCol 
) [protected]
void AP_TopRuler::_getParagraphMarkerRects ( AP_TopRulerInfo pInfo,
UT_sint32  leftCenter,
UT_sint32  rightCenter,
UT_sint32  firstLineCenter,
UT_Rect prLeftIndent,
UT_Rect prRightIndent,
UT_Rect prFirstLineIndent 
) [protected]
void AP_TopRuler::_getTabStopRect ( AP_TopRulerInfo pInfo,
UT_sint32  anchor,
UT_Rect pRect 
) [protected]
void AP_TopRuler::_getTabToggleRect ( UT_Rect prToggle  )  [protected]
bool AP_TopRuler::_isInBottomBoxOfLeftIndent ( UT_uint32  y  )  [protected]

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

Referenced by mousePress().

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

References scrollRuler(), and UT_return_if_fail.

Referenced by setView().

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

Referenced by setView().

UT_sint32 AP_TopRuler::_snapPixelToGrid ( UT_sint32  xDist,
ap_RulerTicks tick 
) [protected]
UT_Dimension AP_TopRuler::getDimension (  )  const [inline]

Referenced by _prefsListener().

static UT_uint32 AP_TopRuler::getFixedWidth (  )  [inline, static]
virtual AV_ListenerType AP_TopRuler::getType ( void   )  [inline, virtual]
AV_View* AP_TopRuler::getView ( void   )  const [inline]
bool AP_TopRuler::isHidden ( void   )  const [inline]
bool AP_TopRuler::isMouseOverTab ( UT_uint32  x,
UT_uint32  y 
)

Returns true if the mouse is over a previously defined tab marker or a paragraph control

Parameters:
x location of mouse
y location of mouse

References _displayStatusMessage(), _findTabStop(), _getCellMarkerRect(), _getColumnMarkerRect(), _getColumnMarkerXRightEnd(), _getFirstPixelInColumn(), _getMarginMarkerRects(), _getParagraphMarkerRects(), _getParagraphMarkerXCenters(), _getTabToggleRect(), AP_PREF_KEY_DefaultDirectionRtl, AP_TopRulerInfo::_u::c, UT_Rect::containsPoint(), DW_NOTHING, XAP_App::getApp(), FV_View::getCurrentPageNumber(), fl_BlockLayout::getDominantDirection(), XAP_Frame::getFrameData(), XAP_Frame::getFrameMode(), UT_GenericVector< T >::getItemCount(), AV_View::getPoint(), XAP_App::getPrefsValueBool(), FV_View::getTopRulerInfo(), FV_View::getWidthPrevPagesInRow(), GR_Graphics::GR_CURSOR_EXCHANGE, GR_Graphics::GR_CURSOR_LEFTRIGHT, AD_Document::isPieceTableChanging(), UT_Rect::left, m_dim, m_draggingWhat, AP_TopRulerInfo::m_iCurrentColumn, m_iDefaultTabType, m_infoCache, AP_TopRulerInfo::m_iNumColumns, m_pFrame, m_pG, AP_FrameData::m_pStatusBar, m_pView, AP_TopRulerInfo::m_vecTableColInfo, AP_TopRulerInfo::_u::_c::m_xaLeftMargin, AP_TopRulerInfo::_u::_c::m_xaRightMargin, AP_TopRulerInfo::_u::_c::m_xColumnWidth, s_iFixedHeight, GR_Graphics::setCursor(), AP_StatusBar::setStatusMessage(), GR_Graphics::tlu(), AP_TopRulerInfo::u, UT_return_val_if_fail, and VIEW_WEB.

Referenced by AP_Win32TopRuler::_TopRulerWndProc(), and AP_UnixTopRuler::_fe::motion_notify_event().

void AP_TopRuler::mouseMotion ( EV_EditModifierState  ems,
UT_sint32  x,
UT_sint32  y 
)

References _autoScroll(), _displayStatusMessage(), _getColumnMarkerRect(), _getFirstPixelInColumn(), _getParagraphMarkerRects(), _getTabStopRect(), _ignoreEvent(), _xorGuide(), AP_PREF_KEY_DefaultDirectionRtl, AP_TopRulerInfo::_u::c, DELETEP, DW_CELLMARK, DW_COLUMNGAP, DW_COLUMNGAPLEFTSIDE, DW_FIRSTLINEINDENT, DW_LEFTINDENT, DW_LEFTINDENTWITHFIRST, DW_LEFTMARGIN, DW_NOTHING, DW_RIGHTINDENT, DW_RIGHTMARGIN, DW_TABSTOP, DW_TABTOGGLE, XAP_App::getApp(), FV_View::getCurrentPageNumber(), fl_BlockLayout::getDominantDirection(), FV_View::getGraphics(), getHeight(), XAP_App::getPrefsValueBool(), FV_View::getViewMode(), getWidth(), FV_View::getWidthPrevPagesInRow(), GR_Graphics::GR_CURSOR_DEFAULT, GR_Graphics::GR_CURSOR_GRAB, GR_Graphics::GR_CURSOR_WAIT, UT_Rect::height, GR_Graphics::invertDimension(), AV_View::isLayoutFilling(), UT_Rect::left, m_aScrollDirection, m_bBeforeFirstMotion, m_bEventIgnored, m_bValidMouseClick, m_dim, m_dragging2Center, m_dragging2Rect, m_draggingCenter, m_draggingRect, m_draggingWhat, AP_TopRulerInfo::m_iCurrentColumn, m_iLeftRulerWidth, m_iMaxCellPos, m_iMinCellPos, m_infoCache, AP_TopRulerInfo::m_iNumColumns, m_minColumnWidth, m_pAutoScrollTimer, m_pG, m_pView, AP_TopRulerInfo::_u::_c::m_xaLeftMargin, AP_TopRulerInfo::_u::_c::m_xaRightMargin, AP_TopRulerInfo::_u::_c::m_xColumnGap, AP_TopRulerInfo::_u::_c::m_xColumnWidth, AP_TopRulerInfo::m_xPageViewMargin, AP_TopRulerInfo::m_xrFirstLineIndent, AP_TopRulerInfo::m_xrLeftIndent, AP_TopRulerInfo::m_xrRightIndent, m_xScrollOffset, XAP_CustomWidget::queueDraw(), s_iFixedHeight, s_iFixedWidth, s_tr_AUTOSCROLL_INTERVAL, UT_Rect::set(), UT_Timer::set(), GR_Graphics::setCursor(), UT_Timer::static_constructor(), UT_Timer::stop(), GR_Graphics::tlu(), UT_Rect::top, AP_TopRulerInfo::u, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MAX, UT_MIN, UT_SHOULD_NOT_HAPPEN, UT_Rect::width, and xxx_UT_DEBUGMSG.

Referenced by _autoScroll(), AP_Win32TopRuler::_TopRulerWndProc(), Defun(), and AP_UnixTopRuler::_fe::motion_notify_event().

void AP_TopRuler::mousePress ( EV_EditModifierState  ems,
EV_EditMouseButton  emb,
UT_uint32  x,
UT_uint32  y 
)

References __FL_TAB_MAX, _displayStatusMessage(), _findTabStop(), _getCellMarkerRect(), _getColumnMarkerRect(), _getColumnMarkerXRightEnd(), _getFirstPixelInColumn(), _getMarginMarkerRects(), _getParagraphMarkerRects(), _getParagraphMarkerXCenters(), _getTabStopRect(), _getTabStopString(), _getTabToggleRect(), _getTabZoneRect(), _isInBottomBoxOfLeftIndent(), _xorGuide(), AP_TopRulerInfo::_u::c, UT_Rect::containsPoint(), ap_RulerTicks::dimType, DW_COLUMNGAP, DW_LEFTINDENT, DW_LEFTINDENTWITHFIRST, EV_EMB_BUTTON1, FL_TAB_NONE, FV_View::getCurrentBlock(), FV_View::getCurrentPageNumber(), FV_View::getDocument(), fl_BlockLayout::getDominantDirection(), UT_GenericVector< T >::getNthItem(), FV_View::getTopRulerInfo(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), GR_Graphics::GR_CURSOR_DEFAULT, GR_Graphics::GR_CURSOR_GRAB, GR_Graphics::invertDimension(), AD_Document::isPieceTableChanging(), UT_Rect::left, m_bBeforeFirstMotion, m_bEventIgnored, m_bValidMouseClick, m_dim, m_draggingCell, m_draggingCenter, m_draggingRect, m_draggingTab, m_draggingTabLeader, m_draggingTabType, m_draggingWhat, m_dragStart, AP_TopRulerInfo::m_iCells, AP_TopRulerInfo::m_iCurrentColumn, m_iDefaultTabType, AP_TopRulerTableInfo::m_iLeftCellPos, AP_TopRulerTableInfo::m_iLeftSpacing, m_iMaxCellPos, m_iMinCellPos, m_infoCache, AP_TopRulerInfo::m_iNumColumns, AP_TopRulerTableInfo::m_iRightCellPos, AP_TopRulerTableInfo::m_iRightSpacing, AP_TopRulerInfo::m_iTabStops, AP_TopRulerInfo::m_mode, m_oldX, m_pG, m_pView, AP_TopRulerInfo::m_vecTableColInfo, AP_TopRulerInfo::_u::_c::m_xaRightMargin, AP_TopRulerInfo::_u::_c::m_xColumnWidth, XAP_CustomWidget::queueDraw(), s_iFixedHeight, ap_RulerTicks::scalePixelDistanceToUnits(), FV_View::setBlockFormat(), GR_Graphics::setCursor(), ap_RulerTicks::snapPixelToGrid(), GR_Graphics::tlu(), AP_TopRulerInfo::TRI_MODE_TABLE, AP_TopRulerInfo::u, UT_DEBUGMSG, UT_Rect::width, and xxx_UT_DEBUGMSG.

Referenced by AP_Win32TopRuler::_TopRulerWndProc(), and AP_UnixTopRuler::_fe::button_press_event().

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

References _findTabStop(), _getFirstPixelInColumn(), _ignoreEvent(), _setTabStops(), _xorGuide(), UT_GenericVector< T >::addItem(), AP_PREF_KEY_DefaultDirectionRtl, AV_CHG_HDRFTR, AP_TopRulerInfo::_u::c, UT_String::c_str(), UT_String::clear(), DIM_IN, DW_CELLMARK, DW_COLUMNGAP, DW_COLUMNGAPLEFTSIDE, DW_FIRSTLINEINDENT, DW_LEFTINDENT, DW_LEFTINDENTWITHFIRST, DW_LEFTMARGIN, DW_NOTHING, DW_RIGHTINDENT, DW_RIGHTMARGIN, DW_TABSTOP, DW_TABTOGGLE, EV_EMS_SHIFT, gchar, fl_DocSectionLayout::getActualColumnWidth(), fl_ContainerLayout::getAP(), XAP_App::getApp(), FV_View::getCurrentPageNumber(), fl_ContainerLayout::getDocSectionLayout(), fl_BlockLayout::getDominantDirection(), FV_View::getDragTableLine(), fl_ContainerLayout::getFirstLayout(), FV_View::getFrameLayout(), FV_View::getGraphics(), getHeight(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_View::getPoint(), fl_BlockLayout::getPosition(), XAP_App::getPrefsValueBool(), PP_AttrProp::getProperty(), fp_ContainerObject::getSectionLayout(), fl_TableLayout::getTableRelWidth(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), GR_Graphics::GR_CURSOR_DEFAULT, GR_Graphics::invertDimension(), FV_View::isInFrame(), FV_View::isInTable(), m_bEventIgnored, m_bValidMouseClick, m_dim, m_draggingCell, m_draggingCenter, m_draggingRect, m_draggingTab, m_draggingTabLeader, m_draggingWhat, m_iCellContainerLeftPos, AP_TopRulerInfo::m_iCurCell, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerTableInfo::m_iLeftCellPos, m_iLeftRulerWidth, AP_TopRulerTableInfo::m_iLeftSpacing, m_infoCache, AP_TopRulerInfo::m_iNumColumns, AP_TopRulerTableInfo::m_iRightCellPos, AP_TopRulerTableInfo::m_iRightSpacing, AP_TopRulerInfo::m_mode, m_oldX, AP_TopRulerTableInfo::m_pCell, m_pG, m_pView, AP_TopRulerInfo::m_vecFullTable, AP_TopRulerInfo::m_vecTableColInfo, AP_TopRulerInfo::_u::_c::m_xaRightMargin, AP_TopRulerInfo::_u::_c::m_xColumnWidth, AP_TopRulerInfo::m_xPageViewMargin, AP_TopRulerInfo::m_xrFirstLineIndent, AP_TopRulerInfo::m_xrLeftIndent, AP_TopRulerInfo::m_xrRightIndent, m_xScrollOffset, fl_ContainerLayout::myContainingLayout(), notify(), s_iFixedHeight, s_iFixedWidth, FV_View::setBlockFormat(), GR_Graphics::setCursor(), FV_View::setFrameFormat(), FV_View::setPoint(), FV_View::setSectionFormat(), FV_View::setTableFormat(), UT_String::size(), GR_Graphics::tlu(), AP_TopRulerInfo::TRI_MODE_FRAME, AP_TopRulerInfo::TRI_MODE_TABLE, AP_TopRulerInfo::u, UT_ASSERT_HARMLESS, UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_formatDimensionedValue(), UT_formatDimensionString(), UT_LAYOUT_RESOLUTION, UT_MAX, UT_SHOULD_NOT_HAPPEN, UT_String_sprintf(), UT_Rect::width, and xxx_UT_DEBUGMSG.

Referenced by AP_Win32TopRuler::_TopRulerWndProc(), AP_UnixTopRuler::_fe::button_release_event(), and Defun().

void AP_TopRuler::setDimension ( UT_Dimension  newdim  ) 

References XAP_CustomWidgetLU::draw(), and m_dim.

Referenced by _prefsListener().

void AP_TopRuler::setHeight ( UT_uint32  iHeight  ) 
void AP_TopRuler::setOffsetLeftRuler ( UT_uint32  iLeftRulerWidth  ) 
void AP_TopRuler::setView ( AV_View pView,
UT_uint32  iZoom 
)
void AP_TopRuler::setViewHidden ( AV_View pView  ) 

Member Data Documentation

Referenced by _autoScroll(), and mouseMotion().

bool AP_TopRuler::m_bGuide [private]

Referenced by _xorGuide().

bool AP_TopRuler::m_bIsHidden [private]

Referenced by setViewHidden(), and ~AP_TopRuler().

Referenced by _xorGuide().


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