#include <ap_Dialog_Columns.h>
AP_Dialog_Columns::AP_Dialog_Columns | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
AP_Dialog_Columns::~AP_Dialog_Columns | ( | void | ) | [virtual] |
References DELETEP, and m_pColumnsPreview.
void AP_Dialog_Columns::_convertToPreferredUnits | ( | XAP_Frame * | pFrame, | |
const char * | sz, | |||
gchar * | pRet | |||
) | [protected] |
Converts the string sz into the units seleced for the ruler.
XAP_Frame | * pFrame defined the frame of the application | |
const | char * sz is the string containing the old value | |
const | gchar * pRet is the string to which the new value is copied. |
References AP_PREF_KEY_RulerUnits, gchar, XAP_App::getApp(), UT_determineDimension(), and UT_reformatDimensionString().
Referenced by setViewAndDoc().
void AP_Dialog_Columns::_createPreviewFromGC | ( | GR_Graphics * | gc, | |
UT_uint32 | width, | |||
UT_uint32 | height | |||
) | [protected] |
void AP_Dialog_Columns::_drawColumnButton | ( | GR_Graphics * | gc, | |
UT_Rect | rect, | |||
UT_uint32 | iColumns | |||
) | [protected] |
virtual void AP_Dialog_Columns::enableLineBetweenControl | ( | bool | bState = true |
) | [pure virtual] |
Implemented in AP_CocoaDialog_Columns, AP_UnixDialog_Columns, and AP_Win32Dialog_Columns.
Referenced by setColumns().
AP_Dialog_Columns::tAnswer AP_Dialog_Columns::getAnswer | ( | void | ) | const |
UT_uint32 AP_Dialog_Columns::getColumnOrder | ( | void | ) | const [inline] |
UT_uint32 AP_Dialog_Columns::getColumns | ( | void | ) | const [inline] |
const char * AP_Dialog_Columns::getHeightString | ( | void | ) |
Returns the dimensioned string that defines the maximum height of the Column.
References UT_String::c_str(), and m_HeightString.
Referenced by AP_Win32Dialog_Columns::_onCommand(), AP_Win32Dialog_Columns::_onDeltaPos(), AP_Win32Dialog_Columns::_onInitDialog(), Defun(), AP_UnixDialog_Columns::doHeightSpin(), AP_UnixDialog_Columns::doMaxHeightEntry(), AP_CocoaDialog_Columns::doMaxHeightEntry, getMaxHeightPercent(), incrementMaxHeight(), AP_CocoaDialog_Columns::incrMaxHeight, AP_UnixDialog_Columns::runModal(), AP_CocoaDialog_Columns::runModal, and setMaxHeight().
double AP_Dialog_Columns::getIncrement | ( | const char * | sz | ) | [protected] |
Returns the increment associated with the dimension defined in the string.
const | char * sz the dimensioned string. |
References dim, DIM_CM, DIM_IN, DIM_MM, DIM_PI, DIM_PT, DIM_PX, and UT_determineDimension().
Referenced by incrementMaxHeight(), and incrementSpaceAfter().
bool AP_Dialog_Columns::getLineBetween | ( | void | ) | const [inline] |
double AP_Dialog_Columns::getMaxHeightPercent | ( | void | ) |
Returns the 100* the fraction of the total page height in the Maximum height string.
References getHeightString(), getPageHeight(), and UT_convertToInches().
Referenced by AP_Columns_preview::draw().
double AP_Dialog_Columns::getPageHeight | ( | void | ) | [protected] |
Returns the current height of the document page.
References DIM_IN, fp_PageSize::Height(), m_dMarginBottom, m_dMarginTop, PD_Document::m_docPageSize, and m_pDoc.
Referenced by AP_UnixDialog_Columns::_constructWindowContents(), getMaxHeightPercent(), and getSpaceAfterPercent().
double AP_Dialog_Columns::getPageWidth | ( | void | ) | [protected] |
Returns the current width of the document page.
References DIM_IN, m_dMarginLeft, m_dMarginRight, PD_Document::m_docPageSize, m_pDoc, and fp_PageSize::Width().
Referenced by AP_UnixDialog_Columns::_constructWindowContents().
double AP_Dialog_Columns::getSpaceAfterPercent | ( | void | ) |
Returns the 100* the fraction of the total page height in space after.
References getPageHeight(), getSpaceAfterString(), and UT_convertToInches().
Referenced by AP_Columns_preview::draw().
const char * AP_Dialog_Columns::getSpaceAfterString | ( | void | ) |
Returns the dimensioned string that defines the space between Columns.
References UT_String::c_str(), and m_SpaceAfterString.
Referenced by AP_Win32Dialog_Columns::_onCommand(), AP_Win32Dialog_Columns::_onDeltaPos(), AP_Win32Dialog_Columns::_onInitDialog(), Defun(), AP_UnixDialog_Columns::doSpaceAfterEntry(), AP_CocoaDialog_Columns::doSpaceAfterEntry, AP_UnixDialog_Columns::doSpaceAfterSpin(), getSpaceAfterPercent(), incrementSpaceAfter(), AP_CocoaDialog_Columns::incrSpaceAfter, AP_UnixDialog_Columns::runModal(), AP_CocoaDialog_Columns::runModal, and setSpaceAfter().
void AP_Dialog_Columns::incrementMaxHeight | ( | bool | bIncrement | ) | [protected] |
Increment the member variable UT_String defining the dimensioned string for the maximum column height.
References UT_String::c_str(), dim, DIM_none, getHeightString(), getIncrement(), m_bLineBetween, m_bMaxHeightChanged, m_HeightString, m_iColumns, m_pColumnsPreview, AP_Columns_preview::set(), UT_convertInchesToDimensionString(), UT_convertToInches(), UT_determineDimension(), and UT_incrementDimString().
Referenced by AP_Win32Dialog_Columns::_onDeltaPos(), AP_UnixDialog_Columns::doHeightSpin(), and AP_CocoaDialog_Columns::incrMaxHeight.
void AP_Dialog_Columns::incrementSpaceAfter | ( | bool | bIncrement | ) | [protected] |
Increment the member variable UT_String defining the dimensioned string for the space between columns.
References UT_String::c_str(), dim, DIM_none, getIncrement(), getSpaceAfterString(), m_bLineBetween, m_bSpaceAfterChanged, m_iColumns, m_pColumnsPreview, m_SpaceAfterString, AP_Columns_preview::set(), UT_convertInchesToDimensionString(), UT_convertToInches(), UT_determineDimension(), and UT_incrementDimString().
Referenced by AP_Win32Dialog_Columns::_onDeltaPos(), AP_UnixDialog_Columns::doSpaceAfterSpin(), and AP_CocoaDialog_Columns::incrSpaceAfter.
bool AP_Dialog_Columns::isMaxHeightChanged | ( | void | ) | const [inline] |
Referenced by Defun().
bool AP_Dialog_Columns::isSpaceAfterChanged | ( | void | ) | const [inline] |
Referenced by Defun().
virtual void AP_Dialog_Columns::runModal | ( | XAP_Frame * | pFrame | ) | [pure virtual] |
Implements XAP_Dialog_NonPersistent.
Implemented in AP_CocoaDialog_Columns, AP_UnixDialog_Columns, and AP_Win32Dialog_Columns.
Referenced by Defun().
void AP_Dialog_Columns::setColumnOrder | ( | UT_uint32 | iOrder | ) |
References m_iColumnOrder.
Referenced by AP_Win32Dialog_Columns::_onCommand(), Defun(), AP_UnixDialog_Columns::runModal(), and AP_CocoaDialog_Columns::runModal.
void AP_Dialog_Columns::setColumns | ( | UT_uint32 | iColumns | ) |
References enableLineBetweenControl(), m_bLineBetween, m_iColumns, m_pColumnsPreview, and AP_Columns_preview::set().
Referenced by AP_Win32Dialog_Columns::_onCommand(), AP_Win32Dialog_Columns::_onDeltaPos(), Defun(), AP_UnixDialog_Columns::event_Toggle(), AP_CocoaDialog_Columns::event_Toggle, and AP_UnixDialog_Columns::readSpin().
void AP_Dialog_Columns::setLineBetween | ( | bool | bState | ) |
References m_bLineBetween, m_iColumns, m_pColumnsPreview, and AP_Columns_preview::set().
Referenced by AP_Win32Dialog_Columns::_onCommand(), AP_UnixDialog_Columns::checkLineBetween(), AP_CocoaDialog_Columns::checkLineBetween, Defun(), AP_UnixDialog_Columns::runModal(), and AP_CocoaDialog_Columns::runModal.
void AP_Dialog_Columns::setMaxHeight | ( | const char * | szHeight | ) | [protected] |
Set the member string variable m_HeightString
const | char * szHeight is the string containing the new value |
References dim, DIM_none, getHeightString(), m_bLineBetween, m_bMaxHeightChanged, m_HeightString, m_iColumns, m_pColumnsPreview, AP_Columns_preview::set(), UT_convertInchesToDimensionString(), UT_convertToInches(), and UT_determineDimension().
Referenced by AP_Win32Dialog_Columns::_onCommand(), AP_UnixDialog_Columns::doMaxHeightEntry(), and AP_CocoaDialog_Columns::doMaxHeightEntry.
void AP_Dialog_Columns::setSpaceAfter | ( | const char * | szAfter | ) | [protected] |
Set the member string variable m_SpaceAfterString.
const | char * szAfter is the string containing the new value |
References dim, DIM_none, getSpaceAfterString(), m_bLineBetween, m_bSpaceAfterChanged, m_iColumns, m_pColumnsPreview, m_SpaceAfterString, AP_Columns_preview::set(), UT_convertInchesToDimensionString(), UT_convertToInches(), and UT_determineDimension().
Referenced by AP_Win32Dialog_Columns::_onCommand(), AP_UnixDialog_Columns::doSpaceAfterEntry(), AP_CocoaDialog_Columns::doSpaceAfterEntry, AP_CocoaDialog_Columns::incrSpaceAfter, and AP_CocoaDialog_Columns::runModal.
void AP_Dialog_Columns::setViewAndDoc | ( | XAP_Frame * | pFrame | ) | [protected] |
Sets pointer to the Current View and document. Also sets initial values for space-after and max column height.
XAP_Frame | * pFrame - pointer to current Frame. |
References _convertToPreferredUnits(), gchar, XAP_Frame::getCurrentView(), FV_View::getDocument(), FV_View::getSectionFormat(), m_dMarginBottom, m_dMarginLeft, m_dMarginRight, m_dMarginTop, m_HeightString, m_pDoc, m_pView, m_SpaceAfterString, PP_getAttribute(), UT_convertToInches(), and UT_DEBUGMSG.
Referenced by AP_Win32Dialog_Columns::runModal(), AP_UnixDialog_Columns::runModal(), and AP_CocoaDialog_Columns::runModal.
bool AP_Dialog_Columns::m_bLineBetween [private] |
Referenced by _createPreviewFromGC(), incrementMaxHeight(), incrementSpaceAfter(), setColumns(), setLineBetween(), setMaxHeight(), and setSpaceAfter().
bool AP_Dialog_Columns::m_bMaxHeightChanged [private] |
Referenced by incrementMaxHeight(), and setMaxHeight().
bool AP_Dialog_Columns::m_bSpaceAfterChanged [private] |
Referenced by incrementSpaceAfter(), and setSpaceAfter().
double AP_Dialog_Columns::m_dMarginBottom [private] |
Referenced by getPageHeight(), and setViewAndDoc().
double AP_Dialog_Columns::m_dMarginLeft [private] |
Referenced by getPageWidth(), and setViewAndDoc().
double AP_Dialog_Columns::m_dMarginRight [private] |
Referenced by getPageWidth(), and setViewAndDoc().
double AP_Dialog_Columns::m_dMarginTop [private] |
Referenced by getPageHeight(), and setViewAndDoc().
UT_String AP_Dialog_Columns::m_HeightString [private] |
Referenced by getHeightString(), incrementMaxHeight(), setMaxHeight(), and setViewAndDoc().
UT_uint32 AP_Dialog_Columns::m_iColumnOrder [private] |
Referenced by setColumnOrder().
UT_uint32 AP_Dialog_Columns::m_iColumns [private] |
Referenced by _createPreviewFromGC(), incrementMaxHeight(), incrementSpaceAfter(), setColumns(), setLineBetween(), setMaxHeight(), and setSpaceAfter().
AP_Columns_preview* AP_Dialog_Columns::m_pColumnsPreview [protected] |
Referenced by _createPreviewFromGC(), AP_Win32Dialog_Columns::_onInitDialog(), AP_UnixDialog_Columns::event_previewExposed(), AP_UnixDialog_Columns::event_Toggle(), AP_CocoaDialog_Columns::event_Toggle, incrementMaxHeight(), incrementSpaceAfter(), AP_UnixDialog_Columns::readSpin(), setColumns(), setLineBetween(), setMaxHeight(), setSpaceAfter(), and ~AP_Dialog_Columns().
PD_Document* AP_Dialog_Columns::m_pDoc [private] |
Referenced by getPageHeight(), getPageWidth(), and setViewAndDoc().
Referenced by _drawColumnButton().
FV_View* AP_Dialog_Columns::m_pView [private] |
Referenced by setViewAndDoc().
Referenced by getSpaceAfterString(), incrementSpaceAfter(), setSpaceAfter(), and setViewAndDoc().