#include <ap_Dialog_Tab.h>
AP_Dialog_Tab::AP_Dialog_Tab | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
AP_Dialog_Tab::~AP_Dialog_Tab | ( | void | ) | [virtual] |
References m_tabInfo, and UT_VECTOR_PURGEALL.
virtual void AP_Dialog_Tab::_clearList | ( | ) | [protected, pure virtual] |
Implemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
Referenced by _event_ClearAll(), and clearList().
virtual void AP_Dialog_Tab::_controlEnable | ( | tControl | id, | |
bool | value | |||
) | [protected, pure virtual] |
Implemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
Referenced by _event_AlignmentChange(), _event_somethingChanged(), _event_TabChange(), and _initEnableControls().
void AP_Dialog_Tab::_deleteTabFromTabString | ( | fl_TabStop * | pTabInfo | ) | [protected] |
References fl_TabStop::getOffset(), and m_pszTabStops.
Referenced by _event_Clear(), _event_Set(), and _event_Update().
References d, DIM_CM, DIM_IN, DIM_MM, DIM_PI, DIM_PT, gchar, id_SPIN_DEFAULT_TAB_STOP, m_dim, UT_ASSERT_HARMLESS, UT_convertDimensionless(), UT_convertInchesToDimension(), UT_convertToInches(), UT_DEBUGMSG, UT_determineDimension(), UT_formatDimensionString(), UT_return_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by AP_Win32Dialog_Tab::_onDeltaPos().
void AP_Dialog_Tab::_event_AlignmentChange | ( | void | ) | [protected] |
References _controlEnable(), and id_BUTTON_SET.
Referenced by AP_Win32Dialog_Tab::_onCommand(), AP_CocoaDialog_Tab::event_Alignment, and AP_UnixDialog_Tab::onAlignmentChanged().
void AP_Dialog_Tab::_event_Clear | ( | void | ) | [protected] |
References _deleteTabFromTabString(), _event_somethingChanged(), _event_TabSelected(), _setTabList(), buildTabStops(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pFrame, m_pszTabStops, m_tabInfo, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by AP_Win32Dialog_Tab::_onCommand(), AP_CocoaDialog_Tab_Proxy::clearAction, and AP_UnixDialog_Tab::onDeleteTab().
void AP_Dialog_Tab::_event_ClearAll | ( | void | ) | [protected] |
References _clearList(), _event_somethingChanged(), buildTabStops(), m_pFrame, m_pszTabStops, m_tabInfo, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by AP_Win32Dialog_Tab::_onCommand(), and AP_CocoaDialog_Tab_Proxy::clearAllAction.
void AP_Dialog_Tab::_event_Set | ( | void | ) | [protected] |
References _deleteTabFromTabString(), _event_somethingChanged(), _getTabDimensionString(), _getTabString(), _setTabList(), buildTab(), buildTabStops(), UT_String::c_str(), XAP_Frame::getCurrentView(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pFrame, m_pszTabStops, m_tabInfo, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by AP_Win32Dialog_Tab::_onCommand(), AP_UnixDialog_Tab::onAddTab(), and AP_CocoaDialog_Tab_Proxy::setAction.
void AP_Dialog_Tab::_event_somethingChanged | ( | ) | [protected] |
References _controlEnable(), _getTabString(), buildTab(), UT_String::c_str(), UT_GenericVector< T >::getItemCount(), fl_TabStop::getLeader(), UT_GenericVector< T >::getNthItem(), fl_TabStop::getType(), id_BUTTON_CLEAR, id_BUTTON_CLEAR_ALL, id_BUTTON_SET, m_tabInfo, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _event_Clear(), _event_ClearAll(), _event_Set(), _event_TabSelected(), _event_Update(), AP_Win32Dialog_Tab::_onCommand(), AP_Win32Dialog_Tab::_onInitDialog(), AP_CocoaDialog_Tab::event_Leader, and AP_UnixDialog_Tab::onLeaderChanged().
void AP_Dialog_Tab::_event_TabChange | ( | void | ) | [protected] |
References _controlEnable(), and id_BUTTON_SET.
Referenced by AP_Win32Dialog_Tab::_onCommand(), AP_UnixDialog_Tab::onPositionChanged(), and AP_CocoaDialog_Tab_Proxy::positionEditAction.
void AP_Dialog_Tab::_event_TabSelected | ( | UT_sint32 | index | ) | [protected] |
References _event_somethingChanged(), _getTabDimensionString(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_tabInfo, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _event_Clear(), AP_Win32Dialog_Tab::_onCommand(), AP_UnixDialog_Tab::onTabSelected(), and AP_CocoaDialog_Tab_Proxy::tabListAction.
void AP_Dialog_Tab::_event_Update | ( | void | ) | [protected] |
Update the currently selected tab's properties. Ripped off from _event_Set(). This method does auto-apply.
References _deleteTabFromTabString(), _event_somethingChanged(), _getTabDimensionString(), _getTabString(), _setTabList(), _storeWindowData(), buildTab(), buildTabStops(), UT_String::c_str(), UT_GenericVector< T >::deleteNthItem(), XAP_Frame::getCurrentView(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pFrame, m_pszTabStops, m_tabInfo, and UT_return_if_fail.
Referenced by AP_UnixDialog_Tab::onAlignmentChanged(), AP_UnixDialog_Tab::onLeaderChanged(), AP_UnixDialog_Tab::onPositionChanged(), and AP_UnixDialog_Tab::onPositionFocusOut().
UT_Dimension AP_Dialog_Tab::_getDimension | ( | ) | [inline, protected] |
char * AP_Dialog_Tab::_getTabDimensionString | ( | UT_sint32 | tabIndex | ) | [protected] |
References buf, UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pszTabStops, m_tabInfo, and UT_return_val_if_fail.
Referenced by _event_Set(), _event_TabSelected(), _event_Update(), AP_Win32Dialog_Tab::_setTabList(), AP_UnixDialog_Tab::_setTabList(), and AP_CocoaDialog_Tab::_setTabList.
char * AP_Dialog_Tab::_getTabString | ( | fl_TabStop * | pTabInfo | ) | [protected] |
References buf, fl_TabStop::getOffset(), and m_pszTabStops.
Referenced by _event_Set(), _event_somethingChanged(), and _event_Update().
void AP_Dialog_Tab::_initEnableControls | ( | ) | [protected] |
References _controlEnable(), UT_GenericVector< T >::getItemCount(), id_ALIGN_BAR, id_BUTTON_CLEAR, id_BUTTON_CLEAR_ALL, id_BUTTON_SET, and m_tabInfo.
Referenced by _populateWindowData().
void AP_Dialog_Tab::_populateWindowData | ( | void | ) | [protected] |
References _initEnableControls(), _setTabList(), UT_GenericVector< T >::addItem(), AP_PREF_KEY_RulerUnits, FL_TAB_LEFT, gchar, XAP_Dialog::getApp(), FV_View::getBlockFormat(), XAP_Frame::getCurrentView(), UT_GenericVector< T >::getItemCount(), FV_View::getTopRulerInfo(), m_dim, AP_TopRulerInfo::m_iDefaultTabInterval, AP_TopRulerInfo::m_iTabStops, AP_TopRulerInfo::m_pfnEnumTabStops, m_pFrame, m_pszTabStops, AP_TopRulerInfo::m_pszTabStops, AP_TopRulerInfo::m_pVoidEnumTabStopsData, m_tabInfo, PP_getAttribute(), UT_convertInchesToDimensionString(), UT_convertToInches(), UT_DEBUGMSG, UT_determineDimension(), and UT_return_if_fail.
Referenced by AP_Win32Dialog_Tab::_onInitDialog(), AP_UnixDialog_Tab::runModal(), and AP_CocoaDialog_Tab::runModal.
virtual void AP_Dialog_Tab::_setTabList | ( | UT_uint32 | count | ) | [protected, pure virtual] |
Implemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
Referenced by _event_Clear(), _event_Set(), _event_Update(), and _populateWindowData().
void AP_Dialog_Tab::_storeWindowData | ( | void | ) | [protected] |
References XAP_Frame::getCurrentView(), m_closure, m_pCallbackFn, m_pFrame, m_pszTabStops, and UT_return_if_fail.
Referenced by _event_Update(), AP_Win32Dialog_Tab::_onCommand(), AP_UnixDialog_Tab::onAddTab(), AP_UnixDialog_Tab::onDefaultTabChanged(), AP_UnixDialog_Tab::onDefaultTabFocusOut(), AP_UnixDialog_Tab::onDeleteTab(), and AP_CocoaDialog_Tab::runModal.
unsigned char AP_Dialog_Tab::AlignmentToChar | ( | eTabType | a | ) | [static] |
References FL_TAB_BAR, FL_TAB_CENTER, FL_TAB_DECIMAL, FL_TAB_LEFT, FL_TAB_RIGHT, UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.
Referenced by buildTab(), and AP_CocoaDialog_Tab::event_Alignment.
bool AP_Dialog_Tab::buildTab | ( | UT_String & | buffer | ) | [protected] |
References AlignmentToChar(), gchar, m_dim, MAX_TAB_LENGTH, UT_isValidDimensionString(), UT_reformatDimensionString(), and UT_String_sprintf().
Referenced by _event_Set(), _event_somethingChanged(), and _event_Update().
eTabType AP_Dialog_Tab::CharToAlignment | ( | unsigned char | ch | ) | [static] |
References UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.
void AP_Dialog_Tab::clearList | ( | ) |
References _clearList(), m_tabInfo, and UT_VECTOR_PURGEALL.
AP_Dialog_Tab::tAnswer AP_Dialog_Tab::getAnswer | ( | void | ) | const |
References m_answer.
Referenced by s_doTabDlg().
virtual void AP_Dialog_Tab::runModal | ( | XAP_Frame * | pFrame | ) | [pure virtual] |
Implements XAP_Dialog_NonPersistent.
Implemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
Referenced by AP_Dialog_Styles::ModifyTabs(), and s_doTabDlg().
AP_Dialog_Tab::SET_GATHER | ( | SelectTab | , | |
UT_sint32 | ||||
) | [protected] |
Reimplemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
AP_Dialog_Tab::SET_GATHER | ( | Leader | , | |
eTabLeader | ||||
) | [protected] |
Reimplemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
AP_Dialog_Tab::SET_GATHER | ( | TabEdit | , | |
const char * | ||||
) | [protected] |
Reimplemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
AP_Dialog_Tab::SET_GATHER | ( | DefaultTabStop | , | |
const gchar * | ||||
) | [protected] |
Reimplemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
AP_Dialog_Tab::SET_GATHER | ( | Alignment | , | |
eTabType | ||||
) | [protected] |
Reimplemented in AP_CocoaDialog_Tab, and AP_UnixDialog_Tab.
void AP_Dialog_Tab::setSaveCallback | ( | TabSaveCallBack | pCb, | |
void * | closure | |||
) |
References m_closure, and m_pCallbackFn.
Referenced by AP_Dialog_Styles::ModifyTabs(), and s_doTabDlg().
char AP_Dialog_Tab::buf[20] [private] |
Referenced by _getTabDimensionString(), and _getTabString().
tAnswer AP_Dialog_Tab::m_answer [protected] |
void* AP_Dialog_Tab::m_closure [private] |
Referenced by _storeWindowData(), and setSaveCallback().
UT_Dimension AP_Dialog_Tab::m_dim [protected] |
Referenced by AP_UnixDialog_Tab::_constructWindow(), _doSpin(), _populateWindowData(), and buildTab().
TabSaveCallBack AP_Dialog_Tab::m_pCallbackFn [private] |
Referenced by _storeWindowData(), and setSaveCallback().
XAP_Frame* AP_Dialog_Tab::m_pFrame [protected] |
std::string AP_Dialog_Tab::m_pszTabStops [protected] |
UT_GenericVector<fl_TabStop*> AP_Dialog_Tab::m_tabInfo [protected] |