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

AP_Win32Dialog_Styles Class Reference

#include <ap_Win32Dialog_Styles.h>

Inheritance diagram for AP_Win32Dialog_Styles:
AP_Dialog_Styles XAP_Win32DialogBase XAP_Win32Dialog XAP_Dialog_NonPersistent XAP_Dialog

List of all members.

Public Types

enum  _StyleType { USED_STYLES, ALL_STYLES, USER_STYLES }
typedef enum
AP_Win32Dialog_Styles::_StyleType 
StyleType

Public Member Functions

 AP_Win32Dialog_Styles (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_Win32Dialog_Styles (void)
virtual void runModal (XAP_Frame *pFrame)

Static Public Member Functions

static XAP_Dialogstatic_constructor (XAP_DialogFactory *, XAP_Dialog_Id id)

Protected Member Functions

virtual const char * getCurrentStyle (void) const
virtual void setDescription (const char *desc) const
virtual void setModifyDescription (const char *desc)
void _populateWindowData (void)
void _populateCList (void)
void rebuildDeleteProps ()
void eventBasedOn ()
void eventFollowedBy ()
void eventStyleType ()
BOOL _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam)
BOOL _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam)
BOOL _onDeltaPos (NM_UPDOWN *)
BOOL _onDlgMessage (HWND, UINT, WPARAM, LPARAM)
void _onDrawButton (LPDRAWITEMSTRUCT lpDrawItemStruct, HWND hWnd)

Protected Attributes

XAP_Win32PreviewWidgetm_pParaPreviewWidget
XAP_Win32PreviewWidgetm_pCharPreviewWidget
XAP_Win32PreviewWidgetm_pAbiPreviewWidget

Private Attributes

XAP_Win32DialogHelper _win32Dialog
XAP_Win32DialogHelper _win32DialogNewModify
StyleType m_whichType
UT_String m_selectedStyle
UT_uint32 m_nSelectedStyleIdx
bool m_bisNewStyle
UT_sint32 m_selectToggle
gchar m_newStyleName [MAX_EBX_LENGTH]

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
USED_STYLES 
ALL_STYLES 
USER_STYLES 

Constructor & Destructor Documentation

AP_Win32Dialog_Styles::AP_Win32Dialog_Styles ( XAP_DialogFactory pDlgFactory,
XAP_Dialog_Id  id 
)

References m_pAbiPreviewWidget.

Referenced by static_constructor().

AP_Win32Dialog_Styles::~AP_Win32Dialog_Styles ( void   )  [virtual]

Member Function Documentation

BOOL AP_Win32Dialog_Styles::_onCommand ( HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Implements XAP_Win32Dialog.

References _populateCList(), AP_Dialog_Styles::_populatePreviews(), _populateWindowData(), _win32Dialog, _win32DialogNewModify, AP_Dialog_Styles::a_OK, UT_UTF8String::appendUCS2(), AP_Dialog_Styles::applyModifiedStyleToDoc(), UT_Win32LocaleString::c_str(), UT_String::c_str(), XAP_Win32DialogBase::createModal(), AP_Dialog_Styles::createNewStyle(), DELETEP, AP_Dialog_Styles::destroyAbiPreview(), PD_Document::enumStyles(), eventBasedOn(), eventFollowedBy(), eventStyleType(), UT_Win32LocaleString::fromUTF8(), gchar, XAP_Win32DialogHelper::getComboSelectedIndex(), XAP_Win32DialogHelper::getControlText(), getCurrentStyle(), AP_Dialog_Styles::getDoc(), AP_Dialog_Styles::getFrame(), XAP_Win32DialogHelper::getListDataItem(), XAP_Win32DialogHelper::getListSelectedIndex(), XAP_App::getStringSet(), PD_Document::getStyle(), XAP_StringSet::getValue(), AP_Dialog_Styles::getView(), AP_Dialog_Styles::m_answer, m_bisNewStyle, m_newStyleName, m_nSelectedStyleIdx, m_pAbiPreviewWidget, XAP_Dialog::m_pApp, m_selectedStyle, m_selectToggle, m_whichType, MAX_EBX_LENGTH, AP_Dialog_Styles::ModifyFont(), AP_Dialog_Styles::ModifyLang(), AP_Dialog_Styles::ModifyLists(), AP_Dialog_Styles::ModifyParagraph(), AP_Dialog_Styles::ModifyTabs(), PD_SIGNAL_UPDATE_LAYOUT, rebuildDeleteProps(), AP_Dialog_Styles::removeVecProp(), XAP_Frame::repopulateCombos(), FV_View::setStyle(), XAP_Frame::showMessageBox(), PD_Document::signalListeners(), AP_Dialog_Styles::updateCurrentStyle(), PD_Document::updateDocForStyleChange(), UT_DEBUGMSG, and UT_UTF8String::utf8_str().

BOOL AP_Win32Dialog_Styles::_onDeltaPos ( NM_UPDOWN *   )  [inline, protected, virtual]

Implements XAP_Win32Dialog.

BOOL AP_Win32Dialog_Styles::_onDlgMessage ( HWND  hWnd,
UINT  msg,
WPARAM  ,
LPARAM  lParam 
) [protected]

References _onDrawButton().

void AP_Win32Dialog_Styles::_onDrawButton ( LPDRAWITEMSTRUCT  lpDrawItemStruct,
HWND  hWnd 
) [protected]
BOOL AP_Win32Dialog_Styles::_onInitDialog ( HWND  hWnd,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Implements XAP_Win32Dialog.

References AP_Dialog_Styles::_createAbiPreviewFromGC(), AP_Dialog_Styles::_createCharPreviewFromGC(), AP_Dialog_Styles::_createParaPreviewFromGC(), _DS, _DSX, AP_Dialog_Styles::_populateAbiPreview(), AP_Dialog_Styles::_populatePreviews(), _populateWindowData(), _win32Dialog, _win32DialogNewModify, XAP_Win32DialogHelper::addItemToCombo(), UT_String::c_str(), UT_Win32LocaleString::c_str(), XAP_Win32DialogHelper::enableControl(), PD_Document::enumStyles(), eventBasedOn(), eventFollowedBy(), eventStyleType(), AP_Dialog_Styles::fillVecFromCurrentPoint(), AP_Dialog_Styles::fillVecWithProps(), UT_Win32LocaleString::fromUTF8(), AP_Dialog_Styles::getAttsVal(), PD_Style::getBasedOn(), AP_Dialog_Styles::getDoc(), PD_Style::getFollowedBy(), AP_Dialog_Styles::getFrame(), XAP_Win32PreviewWidget::getGraphics(), PD_Style::getName(), UT_GenericVector< T >::getNthItem(), XAP_App::getStringSet(), PD_Document::getStyle(), PD_Document::getStyleCount(), XAP_StringSet::getValue(), XAP_Win32PreviewWidget::getWindowSize(), AP_Dialog_Styles::m_answer, m_bisNewStyle, XAP_Win32DialogBase::m_hDlg, AP_Dialog_Styles::m_pAbiPreview, m_pAbiPreviewWidget, XAP_Dialog::m_pApp, AP_Dialog_Styles::m_pCharPreview, m_pCharPreviewWidget, AP_Dialog_Styles::m_pParaPreview, m_pParaPreviewWidget, m_selectedStyle, m_whichType, rebuildDeleteProps(), XAP_Win32DialogHelper::s_centerDialog(), AP_Win32App::s_fromUTF8ToWinLocale(), pt_PieceTable::s_getLocalisedStyleName(), XAP_Win32DialogHelper::selectComboItem(), XAP_Win32DialogHelper::setComboDataItem(), XAP_Win32DialogHelper::setControlText(), XAP_Win32DialogBase::setDialogTitle(), XAP_Win32DialogHelper::setHandle(), XAP_Win32PreviewWidget::setPreview(), XAP_Win32DialogBase::setWindowText(), XAP_Win32DialogHelper::showControl(), XAP_Frame::showMessageBox(), and UT_return_val_if_fail.

void AP_Win32Dialog_Styles::_populateWindowData ( void   )  [protected]
const char * AP_Win32Dialog_Styles::getCurrentStyle ( void   )  const [protected, virtual]
void AP_Win32Dialog_Styles::setDescription ( const char *  desc  )  const [protected, virtual]
void AP_Win32Dialog_Styles::setModifyDescription ( const char *  desc  )  [protected, virtual]
XAP_Dialog * AP_Win32Dialog_Styles::static_constructor ( XAP_DialogFactory pFactory,
XAP_Dialog_Id  id 
) [static]

Member Data Documentation

gchar AP_Win32Dialog_Styles::m_newStyleName[MAX_EBX_LENGTH] [private]

Referenced by _onCommand().


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