#include <ap_TopRuler.h>
typedef enum AP_TopRuler::_draggingWhat AP_TopRuler::DraggingWhat [private] |
enum AP_TopRuler::_draggingWhat [private] |
AP_TopRuler::AP_TopRuler | ( | XAP_Frame * | pFrame | ) |
AP_TopRuler::~AP_TopRuler | ( | void | ) | [virtual] |
void AP_TopRuler::_autoScroll | ( | UT_Worker * | pTimer | ) | [static, protected] |
References _xorGuide(), UT_Worker::getInstanceData(), getWidth(), m_aScrollDirection, m_pG, m_pView, m_xScrollOffset, mouseMotion(), s_iFixedHeight, s_tr_AUTOSCROLL_PIXELS, AV_View::sendHorizontalScrollEvent(), GR_Graphics::tlu(), UT_ASSERT_HARMLESS, UT_return_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by mouseMotion().
void AP_TopRuler::_displayStatusMessage | ( | XAP_String_Id | messageID, | |
const ap_RulerTicks & | tick, | |||
double | dValue | |||
) | [protected] |
References UT_String::c_str(), ap_RulerTicks::dimType, gchar, XAP_App::getApp(), XAP_Frame::getFrameData(), XAP_Frame::getFrameMode(), XAP_App::getStringSet(), XAP_StringSet::getValue(), GR_Graphics::invertDimension(), m_pFrame, m_pG, AP_FrameData::m_pStatusBar, AP_StatusBar::setStatusMessage(), and UT_String_sprintf().
Referenced by isMouseOverTab(), mouseMotion(), and mousePress().
void AP_TopRuler::_displayStatusMessage | ( | XAP_String_Id | messageID, | |
const ap_RulerTicks & | tick, | |||
double | dValue1, | |||
double | dValue2 | |||
) | [protected] |
References UT_String::c_str(), ap_RulerTicks::dimType, gchar, XAP_App::getApp(), XAP_Frame::getFrameData(), XAP_Frame::getFrameMode(), XAP_App::getStringSet(), XAP_StringSet::getValue(), GR_Graphics::invertDimension(), m_pFrame, m_pG, AP_FrameData::m_pStatusBar, AP_StatusBar::setStatusMessage(), and UT_String_sprintf().
void AP_TopRuler::_displayStatusMessage | ( | XAP_String_Id | FormatMessageID | ) | [protected] |
void AP_TopRuler::_displayStatusMessage | ( | XAP_String_Id | FormatMessageID, | |
UT_sint32 | iCol, | |||
const char * | format | |||
) | [protected] |
void AP_TopRuler::_draw | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pUseInfo | |||
) | [protected] |
References _drawBar(), _drawCellProperties(), _drawColumnProperties(), _drawMarginProperties(), _drawParagraphProperties(), _drawTabProperties(), _drawTabToggle(), _drawTicks(), AP_PREF_KEY_DefaultDirectionRtl, AP_TopRulerInfo::_u::c, GR_Graphics::CLR3D_BevelDown, GR_Graphics::CLR3D_Foreground, GR_Graphics::CLR3D_Highlight, XAP_App::getApp(), FV_View::getCurrentPageNumber(), FV_View::getDocument(), GR_Graphics::getGUIFont(), FV_View::getPoint(), XAP_App::getPrefsValueBool(), FV_View::getTopRulerInfo(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), AD_Document::isPieceTableChanging(), m_dim, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerInfo::m_iNumColumns, 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, s_iFixedWidth, GR_Graphics::tlu(), and AP_TopRulerInfo::u.
Referenced by drawLU().
void AP_TopRuler::_drawBar | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
GR_Graphics::GR_Color3D | clr3d, | |||
UT_sint32 | x, | |||
UT_sint32 | w | |||
) | [protected] |
References GR_Painter::fillRect(), FV_View::getPoint(), FV_View::getViewMode(), UT_Rect::intersectsRect(), m_iLeftRulerWidth, m_pG, m_pView, AP_TopRulerInfo::m_xPageViewMargin, m_xScrollOffset, s_iFixedHeight, s_iFixedWidth, GR_Graphics::tlu(), and UT_MAX.
Referenced by _draw().
void AP_TopRuler::_drawCellGap | ( | AP_TopRulerInfo * | pInfo, | |
UT_sint32 | iCell | |||
) | [protected] |
Draw the gap between active regions for tables.
References _getFirstPixelInColumn(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Painter::fillRect(), FV_View::getCurrentPageNumber(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_View::getWidthPrevPagesInRow(), AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerTableInfo::m_iLeftCellPos, AP_TopRulerTableInfo::m_iLeftSpacing, AP_TopRulerTableInfo::m_iRightCellPos, AP_TopRulerTableInfo::m_iRightSpacing, m_pG, m_pView, AP_TopRulerInfo::m_vecTableColInfo, s_iFixedHeight, UT_Rect::set(), GR_Graphics::tlu(), and UT_Rect::width.
Referenced by _drawCellProperties().
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::_drawCellProperties | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
UT_uint32 | kCol, | |||
bool | bDrawAll | |||
) | [protected] |
References _drawCellGap(), _drawCellMark(), _getCellMarkerRect(), DW_CELLMARK, FV_View::getCurrentPageNumber(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), UT_Rect::intersectsRect(), UT_Rect::left, m_draggingCell, m_draggingRect, m_draggingWhat, AP_TopRulerInfo::m_iCells, m_iLeftRulerWidth, m_pG, m_pView, s_iFixedWidth, GR_Graphics::tlu(), UT_MAX, and UT_Rect::width.
Referenced by _draw().
void AP_TopRuler::_drawCellProperties | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
bool | bDrawAll | |||
) | [protected] |
Draw all the cell locations.
References _drawCellGap(), _drawCellMark(), _getCellMarkerRect(), DW_CELLMARK, FV_View::getCurrentPageNumber(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), UT_Rect::intersectsRect(), UT_Rect::left, m_draggingCell, m_draggingRect, m_draggingWhat, AP_TopRulerInfo::m_iCells, m_iLeftRulerWidth, AP_TopRulerInfo::m_mode, m_pG, m_pView, s_iFixedWidth, GR_Graphics::tlu(), AP_TopRulerInfo::TRI_MODE_TABLE, UT_MAX, and UT_Rect::width.
void AP_TopRuler::_drawColumnGapMarker | ( | UT_Rect & | r | ) | [protected, virtual] |
References _computeEffects(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Painter::drawLine(), GR_Graphics::getColor3D(), UT_Rect::left, m_pG, GR_Painter::polygon(), GR_Painter::polyLine(), GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, UT_SHOULD_NOT_HAPPEN, and UT_Rect::width.
Referenced by _drawColumnProperties().
void AP_TopRuler::_drawColumnProperties | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
UT_uint32 | kCol | |||
) | [protected] |
References _drawColumnGapMarker(), _getColumnMarkerRect(), _getColumnMarkerXRightEnd(), DW_COLUMNGAP, DW_COLUMNGAPLEFTSIDE, UT_Rect::intersectsRect(), m_draggingRect, and m_draggingWhat.
Referenced by _draw().
void AP_TopRuler::_drawFirstLineIndentMarker | ( | UT_Rect & | r, | |
bool | bFilled | |||
) | [protected, virtual] |
References _computeEffects(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Painter::drawLine(), GR_Graphics::getColor3D(), UT_Rect::left, m_pG, GR_Painter::polygon(), GR_Painter::polyLine(), GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by _drawParagraphProperties().
void AP_TopRuler::_drawLeftIndentMarker | ( | UT_Rect & | r, | |
bool | bFilled | |||
) | [protected, virtual] |
References _computeEffects(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Painter::drawLine(), GR_Graphics::getColor3D(), fl_BlockLayout::getDominantDirection(), UT_Rect::left, m_pG, m_pView, GR_Painter::polygon(), GR_Painter::polyLine(), GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by _drawParagraphProperties().
void AP_TopRuler::_drawMarginProperties | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
GR_Graphics::GR_Color3D | clr | |||
) | [protected, virtual] |
References _getMarginMarkerRects(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Graphics::CLR3D_BevelUp, GR_Graphics::CLR3D_Foreground, GR_Painter::drawLine(), GR_Painter::fillRect(), UT_Rect::height, UT_Rect::left, m_pG, GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, and UT_Rect::width.
Referenced by _draw().
void AP_TopRuler::_drawParagraphProperties | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
bool | bDrawAll = true | |||
) | [protected] |
References _drawFirstLineIndentMarker(), _drawLeftIndentMarker(), _drawRightIndentMarker(), _getParagraphMarkerRects(), _getParagraphMarkerXCenters(), DW_FIRSTLINEINDENT, DW_LEFTINDENT, DW_LEFTINDENTWITHFIRST, DW_RIGHTINDENT, FV_View::getCurrentBlock(), fl_BlockLayout::getDominantDirection(), UT_Rect::intersectsRect(), m_dragging2Rect, m_draggingRect, m_draggingWhat, m_pView, and xxx_UT_DEBUGMSG.
Referenced by _draw().
void AP_TopRuler::_drawRightIndentMarker | ( | UT_Rect & | r, | |
bool | bFilled | |||
) | [protected, virtual] |
References _computeEffects(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Painter::drawLine(), GR_Graphics::getColor3D(), fl_BlockLayout::getDominantDirection(), UT_Rect::left, m_pG, m_pView, GR_Painter::polygon(), GR_Painter::polyLine(), GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by _drawParagraphProperties().
void AP_TopRuler::_drawTabProperties | ( | const UT_Rect * | pClipRect, | |
AP_TopRulerInfo * | pInfo, | |||
bool | bDrawAll = true | |||
) | [protected] |
References _drawTabStop(), _getFirstPixelInColumn(), _getTabStopRect(), _getTabStopXAnchor(), AP_TopRulerInfo::_u::c, GR_Graphics::CLR3D_BevelDown, GR_Painter::drawLine(), DW_TABSTOP, FV_View::getCurrentPageNumber(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), UT_Rect::intersectsRect(), UT_Rect::left, m_draggingRect, m_draggingTab, m_draggingTabType, m_draggingWhat, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerInfo::m_iDefaultTabInterval, m_iLeftRulerWidth, AP_TopRulerInfo::m_iTabStops, m_pG, m_pView, AP_TopRulerInfo::_u::_c::m_xColumnWidth, AP_TopRulerInfo::m_xrLeftIndent, s_iFixedHeight, s_iFixedWidth, GR_Graphics::setColor3D(), GR_Graphics::tlu(), AP_TopRulerInfo::u, UT_MAX, and UT_Rect::width.
Referenced by _draw().
References GR_Painter::fillRect(), FL_TAB_BAR, FL_TAB_CENTER, FL_TAB_DECIMAL, FL_TAB_LEFT, FL_TAB_RIGHT, UT_Rect::left, m_pG, GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT_HARMLESS, UT_TODO, and UT_Rect::width.
Referenced by _drawTabProperties(), and _drawTabToggle().
void AP_TopRuler::_drawTabToggle | ( | const UT_Rect * | pClipRect, | |
bool | bErase | |||
) | [protected] |
References _drawTabStop(), _getTabToggleRect(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Graphics::CLR3D_BevelUp, GR_Graphics::CLR3D_Foreground, GR_Painter::drawLine(), GR_Painter::fillRect(), FL_TAB_LEFT, FL_TAB_RIGHT, UT_Rect::height, UT_Rect::intersectsRect(), UT_Rect::left, m_iDefaultTabType, m_pG, m_pView, UT_Rect::set(), GR_Graphics::setColor3D(), GR_Graphics::tlu(), UT_Rect::top, VIEW_WEB, and UT_Rect::width.
Referenced by _draw().
void AP_TopRuler::_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 | |||
) | [protected] |
References GR_Painter::drawChars(), GR_Painter::drawLine(), GR_Graphics::getDeviceResolution(), GR_Graphics::getFontAscent(), GR_Graphics::getFontHeight(), GR_Graphics::getResolution(), GR_Graphics::getZoomPercentage(), m_pG, GR_Graphics::measureString(), s_iFixedHeight, GR_Graphics::setColor3D(), GR_Graphics::setFont(), ap_RulerTicks::tickLabel, ap_RulerTicks::tickLong, ap_RulerTicks::tickScale, GR_Graphics::tlu(), UT_ASSERT_HARMLESS, UT_UCS4_strcpy_char(), and xxx_UT_DEBUGMSG.
Referenced by _drawTicks().
void AP_TopRuler::_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 | |||
) | [protected] |
References _drawTickMark(), FV_View::getCurrentPageNumber(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), m_iLeftRulerWidth, m_pG, m_pView, AP_TopRulerInfo::m_xPageViewMargin, m_xScrollOffset, s_iFixedWidth, ap_RulerTicks::tickUnit, ap_RulerTicks::tickUnitScale, GR_Graphics::tlu(), UT_ASSERT, UT_ASSERT_HARMLESS, and UT_MAX.
Referenced by _draw().
UT_sint32 AP_TopRuler::_findTabStop | ( | AP_TopRulerInfo * | pInfo, | |
UT_uint32 | x, | |||
UT_uint32 | y, | |||
UT_sint32 & | anchor, | |||
eTabType & | iType, | |||
eTabLeader & | iLeader | |||
) | [protected] |
References _getTabStopRect(), _getTabStopXAnchor(), UT_Rect::containsPoint(), and AP_TopRulerInfo::m_iTabStops.
Referenced by isMouseOverTab(), mousePress(), and mouseRelease().
void AP_TopRuler::_getCellMarkerRect | ( | AP_TopRulerInfo * | pInfo, | |
UT_sint32 | kCell, | |||
UT_Rect * | prCell | |||
) | [protected] |
References _getFirstPixelInColumn(), FV_View::getCurrentPageNumber(), FV_View::getGraphics(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_View::getWidthPrevPagesInRow(), AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerTableInfo::m_iLeftCellPos, AP_TopRulerTableInfo::m_iRightCellPos, m_pView, AP_TopRulerInfo::m_vecTableColInfo, s_iFixedHeight, UT_Rect::set(), and GR_Graphics::tlu().
Referenced by _drawCellProperties(), isMouseOverTab(), mousePress(), and setTableLineDrag().
void AP_TopRuler::_getColumnMarkerRect | ( | AP_TopRulerInfo * | pInfo, | |
UT_uint32 | kCol, | |||
UT_sint32 | xCenter, | |||
UT_Rect * | prCol | |||
) | [protected] |
References _getFirstPixelInColumn(), AP_TopRulerInfo::_u::c, FV_View::getCurrentPageNumber(), FV_View::getWidthPrevPagesInRow(), m_pG, m_pView, AP_TopRulerInfo::_u::_c::m_xColumnGap, AP_TopRulerInfo::_u::_c::m_xColumnWidth, s_iFixedHeight, UT_Rect::set(), GR_Graphics::tlu(), and AP_TopRulerInfo::u.
Referenced by _drawColumnProperties(), isMouseOverTab(), mouseMotion(), and mousePress().
UT_sint32 AP_TopRuler::_getColumnMarkerXRightEnd | ( | AP_TopRulerInfo * | pInfo, | |
UT_uint32 | kCol | |||
) | [protected] |
References _getFirstPixelInColumn(), FV_View::getCurrentPageNumber(), FV_View::getWidthPrevPagesInRow(), and m_pView.
Referenced by _drawColumnProperties(), isMouseOverTab(), and mousePress().
UT_sint32 AP_TopRuler::_getFirstPixelInColumn | ( | AP_TopRulerInfo * | pInfo, | |
UT_uint32 | kCol | |||
) | [protected] |
References AP_PREF_KEY_DefaultDirectionRtl, AP_TopRulerInfo::_u::c, XAP_App::getApp(), FV_View::getFrameMargin(), FV_View::getGraphics(), AV_View::getParentData(), XAP_App::getPrefsValueBool(), FV_View::getViewMode(), m_iLeftRulerWidth, AP_TopRulerInfo::m_iNumColumns, m_pView, AP_TopRulerInfo::_u::_c::m_xaLeftMargin, AP_TopRulerInfo::_u::_c::m_xColumnGap, AP_TopRulerInfo::_u::_c::m_xColumnWidth, AP_TopRulerInfo::m_xPageViewMargin, m_xScrollOffset, s_iFixedWidth, GR_Graphics::tlu(), AP_TopRulerInfo::u, and UT_MAX.
Referenced by _drawCellGap(), _drawTabProperties(), _getCellMarkerRect(), _getColumnMarkerRect(), _getColumnMarkerXRightEnd(), _getMarginMarkerRects(), _getParagraphMarkerXCenters(), _getTabStopXAnchor(), _getTabZoneRect(), _setTabStops(), isMouseOverTab(), mouseMotion(), mousePress(), mouseRelease(), and setTableLineDrag().
void AP_TopRuler::_getMarginMarkerRects | ( | AP_TopRulerInfo * | pInfo, | |
UT_Rect & | rLeft, | |||
UT_Rect & | rRight | |||
) | [protected] |
References _getFirstPixelInColumn(), AP_PREF_KEY_DefaultDirectionRtl, AP_TopRulerInfo::_u::c, XAP_App::getApp(), FV_View::getCurrentPageNumber(), XAP_App::getPrefsValueBool(), FV_View::getWidthPrevPagesInRow(), AP_TopRulerInfo::m_iNumColumns, m_pG, m_pView, AP_TopRulerInfo::_u::_c::m_xColumnWidth, s_iFixedHeight, UT_Rect::set(), GR_Graphics::tlu(), and AP_TopRulerInfo::u.
Referenced by _drawMarginProperties(), isMouseOverTab(), and mousePress().
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] |
References FV_View::getCurrentBlock(), fl_BlockLayout::getDominantDirection(), m_pG, m_pView, s_iFixedHeight, UT_Rect::set(), and GR_Graphics::tlu().
Referenced by _drawParagraphProperties(), isMouseOverTab(), mouseMotion(), and mousePress().
void AP_TopRuler::_getParagraphMarkerXCenters | ( | AP_TopRulerInfo * | pInfo, | |
UT_sint32 * | pLeft, | |||
UT_sint32 * | pRight, | |||
UT_sint32 * | pFirstLine | |||
) | [protected] |
References _getFirstPixelInColumn(), AP_TopRulerInfo::_u::c, fp_Container::getContainer(), FV_View::getCurrentBlock(), FV_View::getCurrentPageNumber(), fl_BlockLayout::getDominantDirection(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_View::getWidthPrevPagesInRow(), fp_ContainerObject::getX(), fp_ContainerObject::isColumnType(), m_iCellContainerLeftPos, AP_TopRulerInfo::m_iCurCell, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerTableInfo::m_iLeftCellPos, AP_TopRulerTableInfo::m_iLeftSpacing, AP_TopRulerTableInfo::m_iRightCellPos, AP_TopRulerTableInfo::m_iRightSpacing, AP_TopRulerInfo::m_mode, AP_TopRulerTableInfo::m_pCell, m_pView, AP_TopRulerInfo::m_vecTableColInfo, AP_TopRulerInfo::_u::_c::m_xColumnWidth, AP_TopRulerInfo::m_xrFirstLineIndent, AP_TopRulerInfo::m_xrLeftIndent, AP_TopRulerInfo::m_xrRightIndent, AP_TopRulerInfo::TRI_MODE_TABLE, and AP_TopRulerInfo::u.
Referenced by _drawParagraphProperties(), isMouseOverTab(), and mousePress().
void AP_TopRuler::_getTabStopRect | ( | AP_TopRulerInfo * | pInfo, | |
UT_sint32 | anchor, | |||
UT_Rect * | pRect | |||
) | [protected] |
References m_pG, s_iFixedHeight, UT_Rect::set(), and GR_Graphics::tlu().
Referenced by _drawTabProperties(), _findTabStop(), mouseMotion(), and mousePress().
const char * AP_TopRuler::_getTabStopString | ( | AP_TopRulerInfo * | pInfo, | |
UT_sint32 | k | |||
) | [protected] |
References fl_TabStop::getOffset(), AP_TopRulerInfo::m_pfnEnumTabStops, AP_TopRulerInfo::m_pszTabStops, AP_TopRulerInfo::m_pVoidEnumTabStopsData, and UT_return_val_if_fail.
Referenced by _setTabStops(), and mousePress().
void AP_TopRuler::_getTabStopXAnchor | ( | AP_TopRulerInfo * | pInfo, | |
UT_sint32 | k, | |||
UT_sint32 * | pTab, | |||
eTabType & | iType, | |||
eTabLeader & | iLeader | |||
) | [protected] |
References _getFirstPixelInColumn(), AP_TopRulerInfo::_u::c, FV_View::getCurrentPageNumber(), fl_BlockLayout::getDominantDirection(), fl_TabStop::getLeader(), fl_TabStop::getPosition(), fl_TabStop::getType(), FV_View::getWidthPrevPagesInRow(), m_draggingTabType, m_dragStart, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerInfo::m_pfnEnumTabStops, m_pView, AP_TopRulerInfo::m_pVoidEnumTabStopsData, AP_TopRulerInfo::_u::_c::m_xColumnWidth, tr_TABINDEX_NEW, AP_TopRulerInfo::u, UT_ASSERT_HARMLESS, and UT_UNUSED.
Referenced by _drawTabProperties(), and _findTabStop().
void AP_TopRuler::_getTabToggleRect | ( | UT_Rect * | prToggle | ) | [protected] |
References FV_View::getViewMode(), m_iLeftRulerWidth, m_pG, m_pView, s_iFixedHeight, s_iFixedWidth, UT_Rect::set(), GR_Graphics::tlu(), and UT_MAX.
Referenced by _drawTabToggle(), isMouseOverTab(), and mousePress().
void AP_TopRuler::_getTabZoneRect | ( | AP_TopRulerInfo * | pInfo, | |
UT_Rect & | rZone | |||
) | [protected] |
double AP_TopRuler::_getUnitsFromRulerLeft | ( | UT_sint32 | xColRel, | |
ap_RulerTicks & | tick | |||
) | [protected] |
References ap_RulerTicks::dBasicUnit, FV_View::getGraphics(), FV_View::getViewMode(), m_iLeftRulerWidth, m_infoCache, m_pView, AP_TopRulerInfo::m_xPageViewMargin, m_xScrollOffset, s_iFixedWidth, ap_RulerTicks::scalePixelDistanceToUnits(), ap_RulerTicks::tickUnit, ap_RulerTicks::tickUnitScale, GR_Graphics::tlu(), and UT_MAX.
void AP_TopRuler::_ignoreEvent | ( | bool | bDone | ) | [protected] |
References _setTabStops(), _xorGuide(), DW_CELLMARK, DW_COLUMNGAP, DW_COLUMNGAPLEFTSIDE, DW_FIRSTLINEINDENT, DW_LEFTINDENT, DW_LEFTINDENTWITHFIRST, DW_LEFTMARGIN, DW_NOTHING, DW_RIGHTINDENT, DW_RIGHTMARGIN, DW_TABSTOP, DW_TABTOGGLE, FL_LEADER_NONE, XAP_Frame::getFrameData(), XAP_Frame::getFrameMode(), FV_View::getGraphics(), m_bBeforeFirstMotion, m_dim, m_draggingWhat, m_pFrame, m_pG, AP_FrameData::m_pStatusBar, m_pView, XAP_CustomWidget::queueDraw(), AP_StatusBar::setStatusMessage(), tr_TABINDEX_NONE, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by mouseMotion(), and mouseRelease().
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] |
References AP_PREF_KEY_RulerUnits, dim, DIM_none, gchar, getDimension(), XAP_Prefs::getPrefsValue(), setDimension(), UT_ASSERT_HARMLESS, UT_determineDimension(), and UT_return_if_fail.
Referenced by AP_TopRuler(), and ~AP_TopRuler().
void AP_TopRuler::_refreshView | ( | void | ) | [protected] |
References XAP_Frame::getCurrentView(), m_pFrame, m_pView, and setView().
Referenced by AP_UnixTopRuler::_ruler_style_context_changed().
double AP_TopRuler::_scalePixelDistanceToUnits | ( | UT_sint32 | xColRel, | |
ap_RulerTicks & | tick | |||
) | [protected] |
References scrollRuler(), and UT_return_if_fail.
Referenced by setView().
Referenced by setView().
void AP_TopRuler::_setTabStops | ( | ap_RulerTicks | tick, | |
UT_sint32 | iTab, | |||
eTabLeader | iLeader, | |||
bool | bDelete | |||
) | [protected] |
References _getFirstPixelInColumn(), _getTabStopString(), AP_TopRulerInfo::_u::c, UT_String::c_str(), ap_RulerTicks::dimType, UT_String::empty(), FL_TAB_BAR, FL_TAB_CENTER, FL_TAB_DECIMAL, FL_TAB_LEFT, FL_TAB_RIGHT, FV_View::getCurrentPageNumber(), fl_BlockLayout::getDominantDirection(), FV_View::getWidthPrevPagesInRow(), GR_Graphics::invertDimension(), m_draggingCenter, m_draggingTab, m_draggingTabType, m_draggingWhat, AP_TopRulerInfo::m_iCurrentColumn, m_infoCache, AP_TopRulerInfo::m_iTabStops, m_pG, m_pView, AP_TopRulerInfo::_u::_c::m_xColumnWidth, ap_RulerTicks::scalePixelDistanceToUnits(), AP_TopRulerInfo::u, and UT_DEBUGMSG.
Referenced by _ignoreEvent(), and mouseRelease().
UT_sint32 AP_TopRuler::_snapPixelToGrid | ( | UT_sint32 | xDist, | |
ap_RulerTicks & | tick | |||
) | [protected] |
void AP_TopRuler::_xorGuide | ( | bool | bClear = false |
) | [protected] |
References DELETEP, GR_Painter::drawImage(), GR_Painter::drawLine(), DW_COLUMNGAP, DW_COLUMNGAPLEFTSIDE, GR_Painter::genImageFromRectangle(), FV_View::getViewMode(), AV_View::getWindowHeight(), UT_Rect::left, m_bGuide, m_bValidMouseClick, m_draggingCenter, m_draggingRect, m_draggingWhat, m_iLeftRulerWidth, m_pView, m_xGuide, m_xOtherGuide, s_iFixedWidth, GR_Graphics::setColor(), GR_Graphics::tlu(), UT_ASSERT_HARMLESS, UT_MAX, UT_return_if_fail, and GR_Painter::xorLine().
Referenced by _autoScroll(), _ignoreEvent(), mouseMotion(), mousePress(), and mouseRelease().
void AP_TopRuler::drawLU | ( | const UT_Rect * | clip | ) | [protected, virtual] |
Implements XAP_CustomWidgetLU.
References _draw(), GR_Painter::beginDoubleBuffering(), GR_Graphics::CLR3D_Background, GR_Painter::fillRect(), getHeight(), getWidth(), m_iHeight, m_iWidth, m_pG, GR_Graphics::setClipRect(), and UT_ASSERT_HARMLESS.
UT_Dimension AP_TopRuler::getDimension | ( | ) | const [inline] |
Referenced by _prefsListener().
static UT_uint32 AP_TopRuler::getFixedWidth | ( | ) | [inline, static] |
Referenced by FV_View::getTabToggleAreaWidth().
GR_Graphics* AP_TopRuler::getGraphics | ( | void | ) | const [inline, virtual] |
UT_uint32 AP_TopRuler::getHeight | ( | void | ) | const |
References m_iHeight, m_pG, and GR_Graphics::tlu().
Referenced by AP_Win32FrameImpl::_createLeftRuler(), AP_Win32FrameImpl::_DocumentWndProc(), AP_Win32FrameImpl::_getRulerSizes(), drawLU(), mouseMotion(), mouseRelease(), and notify().
UT_uint32 AP_TopRuler::getTabToggleAreaWidth | ( | ) | const |
References FV_View::getGraphics(), FV_View::getViewMode(), m_iLeftRulerWidth, m_pView, s_iFixedWidth, GR_Graphics::tlu(), UT_MAX, and UT_return_val_if_fail.
Referenced by FV_View::getTabToggleAreaWidth(), and FV_View::getTopRulerInfo().
virtual AV_ListenerType AP_TopRuler::getType | ( | void | ) | [inline, virtual] |
AV_View* AP_TopRuler::getView | ( | void | ) | const [inline] |
Referenced by AP_Win32TopRuler::_TopRulerWndProc(), Defun(), and AP_Win32TopRuler::~AP_Win32TopRuler().
UT_uint32 AP_TopRuler::getWidth | ( | void | ) | const |
References FV_View::getGraphics(), AV_View::getWindowWidth(), isHidden(), m_iWidth, m_pG, m_pView, and GR_Graphics::tlu().
Referenced by _autoScroll(), drawLU(), mouseMotion(), notify(), and scrollRuler().
bool AP_TopRuler::isHidden | ( | void | ) | const [inline] |
Referenced by getWidth(), notify(), and AP_Frame::quickZoom().
Returns true if the mouse is over a previously defined tab marker or a paragraph control
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().
bool AP_TopRuler::notify | ( | AV_View * | pView, | |
const AV_ChangeMask | mask | |||
) | [virtual] |
References AV_CHG_CELL, AV_CHG_COLUMN, AV_CHG_FMTBLOCK, AV_CHG_FMTSECTION, AV_CHG_HDRFTR, getHeight(), FV_View::getViewMode(), getWidth(), UT_Rect::height, isHidden(), UT_Rect::left, m_iLeftRulerWidth, m_pG, m_pView, XAP_CustomWidgetLU::queueDrawLU(), s_iFixedWidth, GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT_HARMLESS, UT_MAX, UT_UNUSED, UT_Rect::width, and xxx_UT_DEBUGMSG.
Referenced by mouseRelease().
References FV_View::getViewMode(), getWidth(), UT_Rect::height, UT_Rect::left, m_iLeftRulerWidth, m_pG, m_pView, m_xScrollLimit, m_xScrollOffset, XAP_CustomWidgetLU::queueDrawLU(), s_iFixedHeight, s_iFixedWidth, GR_Graphics::scroll(), GR_Graphics::tlu(), UT_Rect::top, UT_MAX, and UT_Rect::width.
Referenced by _scrollFuncX().
void AP_TopRuler::setDimension | ( | UT_Dimension | newdim | ) |
References XAP_CustomWidgetLU::draw(), and m_dim.
Referenced by _prefsListener().
void AP_TopRuler::setHeight | ( | UT_uint32 | iHeight | ) |
References m_iHeight.
Referenced by AP_UnixTopRuler::_fe::configure_event(), and AP_Win32TopRuler::createWindow().
void AP_TopRuler::setOffsetLeftRuler | ( | UT_uint32 | iLeftRulerWidth | ) |
parameter is in device units
References m_iLeftRulerWidth.
Referenced by AP_Win32FrameImpl::_createLeftRuler(), AP_Win32FrameImpl::_createTopRuler(), AP_LeftRuler::setWidth(), and AP_UnixFrame::toggleTopRuler().
UT_sint32 AP_TopRuler::setTableLineDrag | ( | PT_DocPosition | pos, | |
UT_sint32 | x, | |||
UT_sint32 & | iFixed | |||
) |
References _getCellMarkerRect(), _getFirstPixelInColumn(), AP_TopRulerInfo::_u::c, UT_Rect::containsPoint(), FV_View::getCurrentBlock(), FV_View::getCurrentPageNumber(), FV_View::getDocument(), fl_BlockLayout::getDominantDirection(), XAP_Frame::getFrameData(), FV_View::getGraphics(), UT_GenericVector< T >::getNthItem(), FV_View::getTopRulerInfo(), FV_View::getViewMode(), FV_View::getWidthPrevPagesInRow(), GR_Graphics::GR_CURSOR_GRAB, AD_Document::isPieceTableChanging(), UT_Rect::left, m_bBeforeFirstMotion, m_bEventIgnored, AP_FrameData::m_bShowRuler, m_bValidMouseClick, m_dim, m_draggingCell, m_draggingCenter, m_draggingWhat, AP_TopRulerInfo::m_iCells, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerTableInfo::m_iLeftCellPos, m_iLeftRulerWidth, AP_TopRulerTableInfo::m_iLeftSpacing, m_iMaxCellPos, m_iMinCellPos, m_infoCache, AP_TopRulerTableInfo::m_iRightCellPos, AP_TopRulerTableInfo::m_iRightSpacing, AP_TopRulerInfo::m_mode, m_oldX, m_pFrame, m_pG, m_pView, AP_TopRulerInfo::m_vecTableColInfo, AP_TopRulerInfo::_u::_c::m_xColumnWidth, XAP_CustomWidget::queueDraw(), s_iFixedHeight, s_iFixedWidth, GR_Graphics::setCursor(), ap_RulerTicks::snapPixelToGrid(), GR_Graphics::tlu(), AP_TopRulerInfo::TRI_MODE_TABLE, AP_TopRulerInfo::u, UT_DEBUGMSG, UT_MAX, and UT_return_val_if_fail.
Referenced by Defun().
References m_minColumnWidth, m_pG, setView(), GR_Graphics::setZoomPercentage(), UT_convertToLogicalUnits(), and UT_return_if_fail.
void AP_TopRuler::setView | ( | AV_View * | pView | ) | [virtual] |
Reimplemented in AP_Win32TopRuler.
References _scrollFuncX(), _scrollFuncY(), AV_View::addListener(), AV_View::addScrollListener(), DELETEP, m_lidTopRuler, m_pScrollObj, m_pView, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _refreshView(), AP_Win32FrameImpl::_toggleTopRuler(), Defun(), and setView().
void AP_TopRuler::setViewHidden | ( | AV_View * | pView | ) |
References m_bIsHidden, m_pView, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by Defun().
void AP_TopRuler::setWidth | ( | UT_uint32 | iWidth | ) |
References m_iWidth.
Referenced by AP_Win32FrameImpl::_DocumentWndProc(), AP_UnixTopRuler::_fe::configure_event(), and AP_Win32TopRuler::createWindow().
void AP_TopRuler::setZoom | ( | UT_uint32 | iZoom | ) |
References GR_Graphics::clearFont(), m_minColumnWidth, m_pG, GR_Graphics::setZoomPercentage(), UT_convertToLogicalUnits(), and UT_return_if_fail.
Referenced by AP_Frame::quickZoom().
char AP_TopRuler::m_aScrollDirection [private] |
Referenced by _autoScroll(), and mouseMotion().
bool AP_TopRuler::m_bBeforeFirstMotion [private] |
Referenced by _ignoreEvent(), mouseMotion(), mousePress(), and setTableLineDrag().
bool AP_TopRuler::m_bEventIgnored [private] |
Referenced by mouseMotion(), mousePress(), mouseRelease(), and setTableLineDrag().
bool AP_TopRuler::m_bGuide [private] |
Referenced by _xorGuide().
bool AP_TopRuler::m_bIsHidden [private] |
Referenced by setViewHidden(), and ~AP_TopRuler().
bool AP_TopRuler::m_bValidMouseClick [private] |
Referenced by _xorGuide(), mouseMotion(), mousePress(), mouseRelease(), and setTableLineDrag().
UT_Dimension AP_TopRuler::m_dim [private] |
Referenced by _draw(), _ignoreEvent(), isMouseOverTab(), mouseMotion(), mousePress(), mouseRelease(), setDimension(), and setTableLineDrag().
UT_sint32 AP_TopRuler::m_dragging2Center [private] |
Referenced by mouseMotion().
UT_Rect AP_TopRuler::m_dragging2Rect [private] |
Referenced by _drawParagraphProperties(), and mouseMotion().
UT_sint32 AP_TopRuler::m_draggingCell [private] |
Referenced by _drawCellProperties(), mousePress(), mouseRelease(), and setTableLineDrag().
UT_sint32 AP_TopRuler::m_draggingCenter [private] |
Referenced by _setTabStops(), _xorGuide(), mouseMotion(), mousePress(), mouseRelease(), and setTableLineDrag().
UT_Rect AP_TopRuler::m_draggingRect [private] |
UT_sint32 AP_TopRuler::m_draggingTab [private] |
Referenced by _drawTabProperties(), _setTabStops(), mousePress(), and mouseRelease().
eTabLeader AP_TopRuler::m_draggingTabLeader [private] |
Referenced by mousePress(), and mouseRelease().
eTabType AP_TopRuler::m_draggingTabType [private] |
Referenced by _drawTabProperties(), _getTabStopXAnchor(), _setTabStops(), and mousePress().
DraggingWhat AP_TopRuler::m_draggingWhat [private] |
UT_sint32 AP_TopRuler::m_dragStart [private] |
Referenced by _getTabStopXAnchor(), and mousePress().
Referenced by _getParagraphMarkerXCenters(), and mouseRelease().
eTabType AP_TopRuler::m_iDefaultTabType [private] |
Referenced by _drawTabToggle(), isMouseOverTab(), and mousePress().
UT_uint32 AP_TopRuler::m_iHeight [private] |
Referenced by drawLU(), getHeight(), and setHeight().
UT_uint32 AP_TopRuler::m_iLeftRulerWidth [protected] |
UT_sint32 AP_TopRuler::m_iMaxCellPos [private] |
Referenced by mouseMotion(), mousePress(), and setTableLineDrag().
UT_sint32 AP_TopRuler::m_iMinCellPos [private] |
Referenced by mouseMotion(), mousePress(), and setTableLineDrag().
AP_TopRulerInfo AP_TopRuler::m_infoCache [private] |
Referenced by _getUnitsFromRulerLeft(), _setTabStops(), isMouseOverTab(), mouseMotion(), mousePress(), mouseRelease(), and setTableLineDrag().
UT_sint32 AP_TopRuler::m_iOrigPosition [private] |
UT_uint32 AP_TopRuler::m_iWidth [private] |
Referenced by drawLU(), getWidth(), and setWidth().
AV_ListenerId AP_TopRuler::m_lidTopRuler [private] |
Referenced by setView(), and ~AP_TopRuler().
UT_sint32 AP_TopRuler::m_minColumnWidth [private] |
Referenced by mouseMotion(), setView(), and setZoom().
UT_sint32 AP_TopRuler::m_oldX [private] |
Referenced by mousePress(), mouseRelease(), and setTableLineDrag().
UT_Timer* AP_TopRuler::m_pAutoScrollTimer [private] |
Referenced by mouseMotion(), and ~AP_TopRuler().
XAP_Frame* AP_TopRuler::m_pFrame [protected] |
GR_Graphics* AP_TopRuler::m_pG [protected] |
Referenced by _autoScroll(), _displayStatusMessage(), _draw(), _drawBar(), _drawCellGap(), _drawCellMark(), _drawCellProperties(), _drawColumnGapMarker(), _drawFirstLineIndentMarker(), _drawLeftIndentMarker(), _drawMarginProperties(), _drawRightIndentMarker(), _drawTabProperties(), _drawTabStop(), _drawTabToggle(), _drawTickMark(), _drawTicks(), _getColumnMarkerRect(), _getMarginMarkerRects(), _getParagraphMarkerRects(), _getTabStopRect(), _getTabToggleRect(), _getTabZoneRect(), _ignoreEvent(), _isInBottomBoxOfLeftIndent(), _setTabStops(), AP_Win32TopRuler::_TopRulerWndProc(), AP_UnixTopRuler::AP_UnixTopRuler(), AP_Win32TopRuler::AP_Win32TopRuler(), AP_UnixTopRuler::createWidget(), AP_Win32TopRuler::createWindow(), drawLU(), getHeight(), getWidth(), isMouseOverTab(), mouseMotion(), mousePress(), mouseRelease(), notify(), scrollRuler(), setTableLineDrag(), AP_Win32TopRuler::setView(), AP_UnixTopRuler::setView(), setView(), setZoom(), ~AP_TopRuler(), AP_UnixTopRuler::~AP_UnixTopRuler(), and AP_Win32TopRuler::~AP_Win32TopRuler().
AV_ScrollObj* AP_TopRuler::m_pScrollObj [private] |
Referenced by setView(), and ~AP_TopRuler().
AV_View* AP_TopRuler::m_pView [protected] |
Referenced by _autoScroll(), _draw(), _drawBar(), _drawCellGap(), _drawCellProperties(), _drawLeftIndentMarker(), _drawParagraphProperties(), _drawRightIndentMarker(), _drawTabProperties(), _drawTabToggle(), _drawTicks(), _getCellMarkerRect(), _getColumnMarkerRect(), _getColumnMarkerXRightEnd(), _getFirstPixelInColumn(), _getMarginMarkerRects(), _getParagraphMarkerRects(), _getParagraphMarkerXCenters(), _getTabStopXAnchor(), _getTabToggleRect(), _getTabZoneRect(), _getUnitsFromRulerLeft(), _ignoreEvent(), _refreshView(), _setTabStops(), _xorGuide(), getTabToggleAreaWidth(), getWidth(), isMouseOverTab(), mouseMotion(), mousePress(), mouseRelease(), notify(), scrollRuler(), setTableLineDrag(), setView(), setViewHidden(), and ~AP_TopRuler().
UT_sint32 AP_TopRuler::m_xGuide [private] |
Referenced by _xorGuide().
UT_sint32 AP_TopRuler::m_xOtherGuide [private] |
Referenced by _xorGuide().
UT_sint32 AP_TopRuler::m_xScrollLimit [protected] |
Referenced by scrollRuler().
UT_sint32 AP_TopRuler::m_xScrollOffset [protected] |
Referenced by _autoScroll(), _drawBar(), _drawTicks(), _getFirstPixelInColumn(), _getUnitsFromRulerLeft(), mouseMotion(), mouseRelease(), and scrollRuler().
UT_uint32 AP_TopRuler::s_iFixedHeight = 32 [static, protected] |
Referenced by _autoScroll(), _drawBar(), _drawCellGap(), _drawTabProperties(), _drawTickMark(), _getCellMarkerRect(), _getColumnMarkerRect(), _getMarginMarkerRects(), _getParagraphMarkerRects(), _getTabStopRect(), _getTabToggleRect(), _getTabZoneRect(), _isInBottomBoxOfLeftIndent(), AP_UnixTopRuler::createWidget(), AP_Win32TopRuler::createWindow(), isMouseOverTab(), mouseMotion(), mousePress(), mouseRelease(), scrollRuler(), and setTableLineDrag().
UT_uint32 AP_TopRuler::s_iFixedWidth = 32 [static, protected] |