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

AP_Dialog_MergeCells Class Reference

#include <ap_Dialog_MergeCells.h>

Inheritance diagram for AP_Dialog_MergeCells:
XAP_Dialog_Modeless XAP_Dialog_AppPersistent XAP_Dialog_Persistent XAP_Dialog AP_CocoaDialog_MergeCells AP_UnixDialog_MergeCells AP_Win32Dialog_MergeCells

List of all members.

Public Types

enum  tAnswer { a_OK, a_CANCEL }
enum  mergeWithCell { radio_left, radio_right, radio_above, radio_below }

Public Member Functions

 AP_Dialog_MergeCells (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_Dialog_MergeCells (void)
virtual void runModeless (XAP_Frame *pFrame)=0
AP_Dialog_MergeCells::tAnswer getAnswer (void) const
PT_DocPosition getCellSource (void)
PT_DocPosition getCellDestination (void)
virtual void startUpdater (void)
virtual void stopUpdater (void)
virtual void setSensitivity (mergeWithCell mergeThis, bool bSens)=0
virtual void setActiveFrame (XAP_Frame *pFrame)
void ConstructWindowName (void)
void setAllSensitivities (void)
void event_update (void)
void finalize (void)
void setMergeType (mergeWithCell iMergeType)
void onMerge (void)

Static Public Member Functions

static void autoUpdateMC (UT_Worker *pTimer)

Protected Attributes

AP_Dialog_MergeCells::tAnswer m_answer
char m_WindowName [100]

Private Member Functions

void _generateSrcDest (void)

Private Attributes

PT_DocPosition m_iCellSource
PT_DocPosition m_iCellDestination
AP_Dialog_MergeCells::mergeWithCell m_mergeType
UT_sint32 m_iLeft
UT_sint32 m_iRight
UT_sint32 m_iTop
UT_sint32 m_iBot
UT_sint32 m_iNumRows
UT_sint32 m_iNumCols
fp_TableContainerm_pTab
UT_Timerm_pAutoUpdaterMC
bool m_bDestroy_says_stopupdating
bool m_bAutoUpdate_happening_now

Member Enumeration Documentation

Enumerator:
radio_left 
radio_right 
radio_above 
radio_below 
Enumerator:
a_OK 
a_CANCEL 

Constructor & Destructor Documentation

AP_Dialog_MergeCells::AP_Dialog_MergeCells ( XAP_DialogFactory pDlgFactory,
XAP_Dialog_Id  id 
)
AP_Dialog_MergeCells::~AP_Dialog_MergeCells ( void   )  [virtual]

References stopUpdater().


Member Function Documentation

void AP_Dialog_MergeCells::_generateSrcDest ( void   )  [private]

Call this method after pressing OK to read out the radio buttons and store results in the output variables

It actuall calculates the positions of the source and destination positions of the cells to be merged.

References FV_View::findCellPosAt(), XAP_Frame::getCurrentView(), XAP_App::getLastFocussedFrame(), m_iBot, m_iCellDestination, m_iCellSource, m_iLeft, m_iRight, m_iTop, m_mergeType, XAP_Dialog::m_pApp, radio_above, radio_below, radio_left, and radio_right.

Referenced by onMerge().

void AP_Dialog_MergeCells::event_update ( void   ) 
AP_Dialog_MergeCells::tAnswer AP_Dialog_MergeCells::getAnswer ( void   )  const

References m_answer.

PT_DocPosition AP_Dialog_MergeCells::getCellDestination ( void   ) 

References m_iCellDestination.

PT_DocPosition AP_Dialog_MergeCells::getCellSource ( void   ) 

References m_iCellSource.

void AP_Dialog_MergeCells::onMerge ( void   ) 
virtual void AP_Dialog_MergeCells::runModeless ( XAP_Frame pFrame  )  [pure virtual]
void AP_Dialog_MergeCells::setActiveFrame ( XAP_Frame pFrame  )  [virtual]
void AP_Dialog_MergeCells::setMergeType ( mergeWithCell  iMergeType  ) 
virtual void AP_Dialog_MergeCells::setSensitivity ( mergeWithCell  mergeThis,
bool  bSens 
) [pure virtual]
void AP_Dialog_MergeCells::stopUpdater ( void   )  [virtual]

Member Data Documentation


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