#import <xap_CocoaDlg_FontChooser.h>
Public Member Functions | |
| () | - XAP_CocoaDialog_FontChooser |
| (virtual) | - ~XAP_CocoaDialog_FontChooser |
| (virtual void) | - runModal |
| (void) | - underlineChanged |
| (void) | - overlineChanged |
| (void) | - strikeoutChanged |
| (void) | - superscriptChanged |
| (void) | - subscriptChanged |
| (void) | - transparencyChanged |
| (void) | - updatePreview |
| (void) | - fontRowChanged |
| (void) | - styleRowChanged |
| (void) | - sizeRowChanged |
| (void) | - fgColorChanged |
| (void) | - bgColorChanged |
| (bool) | - getEntryString |
| (void) | - _okAction |
| (void) | - _cancelAction |
| (void) | - _createGC |
| (void) | - _deleteGC |
Static Public Member Functions | |
| (static XAP_Dialog *) | + static_constructor |
Private Member Functions | |
| (void) | - _colorChanged |
Private Attributes | |
| bool | m_bSuperScriptInitialValue |
| bool | m_bSubScriptInitialValue |
| gchar * | m_currentFamily |
| XAP_CocoaDialog_FontChooserController * | m_dlg |
| - XAP_CocoaDialog_FontChooser: | (XAP_DialogFactory *) | pDlgFactory | ||
| (XAP_Dialog_Id) | id | |||
Referenced by static_constructor.
| - XAP_CocoaDialog_FontChooser: | (void) |
References DELETEP, FREEP, m_currentFamily, and XAP_Dialog_FontChooser::m_pGraphics.
| - (void) _cancelAction | (void) |
References XAP_Dialog_FontChooser::m_answer.
| - (void) _colorChanged | (NSColor *) | color | ||
| (const gchar *) | attr | |||
| (char *) | buf | |||
Change the color for the property.
| color | the NSColor | |
| attr | the CSS attribute | |
| buf | the buf to store the color (static in the caller) |
References XAP_Dialog_FontChooser::addOrReplaceVecProp(), gchar, and updatePreview.
Referenced by bgColorChanged, and fgColorChanged.
| - (void) _createGC | (XAP_CocoaNSView *) | owner |
References XAP_Dialog_FontChooser::_createFontPreviewFromGC(), XAP_Dialog::getApp(), XAP_Dialog_FontChooser::m_pGraphics, XAP_App::newGraphics(), and size.
Referenced by runModal.
| - (void) _deleteGC | (void) |
References DELETEP, and XAP_Dialog_FontChooser::m_pGraphics.
| - (void) _okAction | (void) |
References XAP_Dialog_FontChooser::m_answer.
| - (void) bgColorChanged | (void) |
Called when text background color has been changed in the widget
References _colorChanged, and m_dlg.
| - (void) fgColorChanged | (void) |
Called when text color has been changed in the widget
References _colorChanged, and m_dlg.
| - (void) fontRowChanged | (void) |
References XAP_Dialog_FontChooser::addOrReplaceVecProp(), FREEP, m_currentFamily, m_dlg, and updatePreview.
| - (bool) getEntryString | (const char **) | string |
References UT_ASSERT.
Referenced by updatePreview.
| - (void) overlineChanged | (bool) | value |
References XAP_Dialog_FontChooser::m_bBottomline, XAP_Dialog_FontChooser::m_bChangedOverline, XAP_Dialog_FontChooser::m_bOverline, XAP_Dialog_FontChooser::m_bStrikeout, XAP_Dialog_FontChooser::m_bTopline, XAP_Dialog_FontChooser::m_bUnderline, XAP_Dialog_FontChooser::setFontDecoration(), and updatePreview.
| - (void) runModal | (XAP_Frame *) | pFrame |
Implements XAP_Dialog_FontChooser.
References _createGC, XAP_Dialog_FontChooser::event_previewClear(), XAP_Dialog_FontChooser::getVal(), XAP_Dialog_FontChooser::m_bChangedColor, XAP_Dialog_FontChooser::m_bChangedFontFamily, XAP_Dialog_FontChooser::m_bChangedFontSize, XAP_Dialog_FontChooser::m_bChangedFontStyle, XAP_Dialog_FontChooser::m_bChangedFontWeight, XAP_Dialog_FontChooser::m_bChangedStrikeOut, XAP_Dialog_FontChooser::m_bChangedUnderline, XAP_Dialog_FontChooser::m_bOverline, XAP_Dialog_FontChooser::m_bStrikeout, XAP_Dialog_FontChooser::m_bSubScript, m_bSubScriptInitialValue, XAP_Dialog_FontChooser::m_bSuperScript, m_bSuperScriptInitialValue, XAP_Dialog_FontChooser::m_bUnderline, m_dlg, XAP_Dialog::m_pApp, updatePreview, UT_ASSERT, UT_DEBUGMSG, and UT_parseColor().
| - (void) sizeRowChanged | (void) |
| + (XAP_Dialog *) static_constructor | (XAP_DialogFactory *) | pFactory | ||
| (XAP_Dialog_Id) | id | |||
References XAP_CocoaDialog_FontChooser.
| - (void) strikeoutChanged | (bool) | value |
References XAP_Dialog_FontChooser::m_bBottomline, XAP_Dialog_FontChooser::m_bChangedStrikeOut, XAP_Dialog_FontChooser::m_bOverline, XAP_Dialog_FontChooser::m_bStrikeout, XAP_Dialog_FontChooser::m_bTopline, XAP_Dialog_FontChooser::m_bUnderline, XAP_Dialog_FontChooser::setFontDecoration(), and updatePreview.
| - (void) styleRowChanged | (int) | rowNumber |
References XAP_Dialog_FontChooser::addOrReplaceVecProp(), updatePreview, and UT_ASSERT.
| - (void) subscriptChanged | (bool) | value |
References XAP_Dialog_FontChooser::m_bChangedSubScript, XAP_Dialog_FontChooser::m_bChangedSuperScript, XAP_Dialog_FontChooser::m_bSubScript, m_bSubScriptInitialValue, XAP_Dialog_FontChooser::m_bSuperScript, m_bSuperScriptInitialValue, m_dlg, XAP_Dialog_FontChooser::setSubScript(), XAP_Dialog_FontChooser::setSuperScript(), and updatePreview.
| - (void) superscriptChanged | (bool) | value |
References XAP_Dialog_FontChooser::m_bChangedSubScript, XAP_Dialog_FontChooser::m_bChangedSuperScript, XAP_Dialog_FontChooser::m_bSubScript, m_bSubScriptInitialValue, XAP_Dialog_FontChooser::m_bSuperScript, m_bSuperScriptInitialValue, m_dlg, XAP_Dialog_FontChooser::setSubScript(), XAP_Dialog_FontChooser::setSuperScript(), and updatePreview.
| - (void) transparencyChanged | (bool) | value |
References XAP_Dialog_FontChooser::addOrReplaceVecProp(), updatePreview, and UT_DEBUGMSG.
| - (void) underlineChanged | (bool) | value |
References XAP_Dialog_FontChooser::m_bBottomline, XAP_Dialog_FontChooser::m_bChangedUnderline, XAP_Dialog_FontChooser::m_bOverline, XAP_Dialog_FontChooser::m_bStrikeout, XAP_Dialog_FontChooser::m_bTopline, XAP_Dialog_FontChooser::m_bUnderline, XAP_Dialog_FontChooser::setFontDecoration(), and updatePreview.
| - (void) updatePreview | (void) |
References XAP_Dialog_FontChooser::event_previewExposed(), FREEP, getEntryString, XAP_Dialog_FontChooser::m_pGraphics, and UT_UCS4_cloneString_char().
Referenced by _colorChanged, fontRowChanged, overlineChanged, runModal, sizeRowChanged, strikeoutChanged, styleRowChanged, subscriptChanged, superscriptChanged, transparencyChanged, and underlineChanged.
- (bool) m_bSubScriptInitialValue [private] |
Referenced by runModal, subscriptChanged, and superscriptChanged.
- (bool) m_bSuperScriptInitialValue [private] |
Referenced by runModal, subscriptChanged, and superscriptChanged.
- (gchar*) m_currentFamily [private] |
Referenced by fontRowChanged, and ~XAP_CocoaDialog_FontChooser.
- (XAP_CocoaDialog_FontChooserController*) m_dlg [private] |
Referenced by bgColorChanged, fgColorChanged, fontRowChanged, runModal, sizeRowChanged, subscriptChanged, and superscriptChanged.
1.7.1