Added the ability to use built-in bullet styles, currently standard/circle or standard/square.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -180,10 +180,11 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextListStyleDefinition;
|
||||
#define wxTEXT_ATTR_LINE_SPACING 0x00002000
|
||||
#define wxTEXT_ATTR_CHARACTER_STYLE_NAME 0x00004000
|
||||
#define wxTEXT_ATTR_PARAGRAPH_STYLE_NAME 0x00008000
|
||||
#define wxTEXT_ATTR_BULLET_STYLE 0x00010000
|
||||
#define wxTEXT_ATTR_BULLET_NUMBER 0x00020000
|
||||
#define wxTEXT_ATTR_BULLET_SYMBOL 0x00040000
|
||||
#define wxTEXT_ATTR_LIST_STYLE_NAME 0x00080000
|
||||
#define wxTEXT_ATTR_LIST_STYLE_NAME 0x00010000
|
||||
#define wxTEXT_ATTR_BULLET_STYLE 0x00020000
|
||||
#define wxTEXT_ATTR_BULLET_NUMBER 0x00040000
|
||||
#define wxTEXT_ATTR_BULLET_SYMBOL 0x00080000
|
||||
#define wxTEXT_ATTR_BULLET_NAME 0x00100000
|
||||
|
||||
/*!
|
||||
* Styles for wxTextAttrEx::SetBulletStyle
|
||||
@@ -199,6 +200,7 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextListStyleDefinition;
|
||||
#define wxTEXT_ATTR_BULLET_STYLE_BITMAP 0x0040
|
||||
#define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES 0x0080
|
||||
#define wxTEXT_ATTR_BULLET_STYLE_PERIOD 0x0100
|
||||
#define wxTEXT_ATTR_BULLET_STYLE_STANDARD 0x0200
|
||||
|
||||
/*!
|
||||
* Line spacing values
|
||||
@@ -306,6 +308,7 @@ public:
|
||||
void SetBulletStyle(int style) { m_bulletStyle = style; SetFlags(GetFlags() | wxTEXT_ATTR_BULLET_STYLE); }
|
||||
void SetBulletNumber(int n) { m_bulletNumber = n; SetFlags(GetFlags() | wxTEXT_ATTR_BULLET_NUMBER); }
|
||||
void SetBulletSymbol(wxChar symbol) { m_bulletSymbol = symbol; SetFlags(GetFlags() | wxTEXT_ATTR_BULLET_SYMBOL); }
|
||||
void SetBulletName(const wxString& name) { m_bulletName = name; SetFlags(GetFlags() | wxTEXT_ATTR_BULLET_NAME); }
|
||||
void SetBulletFont(const wxString& bulletFont) { m_bulletFont = bulletFont; }
|
||||
|
||||
const wxString& GetCharacterStyleName() const { return m_characterStyleName; }
|
||||
@@ -317,6 +320,7 @@ public:
|
||||
int GetBulletStyle() const { return m_bulletStyle; }
|
||||
int GetBulletNumber() const { return m_bulletNumber; }
|
||||
wxChar GetBulletSymbol() const { return m_bulletSymbol; }
|
||||
const wxString& GetBulletName() const { return m_bulletName; }
|
||||
const wxString& GetBulletFont() const { return m_bulletFont; }
|
||||
|
||||
bool HasWeight() const { return (GetFlags() & wxTEXT_ATTR_FONT_WEIGHT) != 0; }
|
||||
@@ -334,12 +338,13 @@ public:
|
||||
bool HasBulletStyle() const { return HasFlag(wxTEXT_ATTR_BULLET_STYLE); }
|
||||
bool HasBulletNumber() const { return HasFlag(wxTEXT_ATTR_BULLET_NUMBER); }
|
||||
bool HasBulletSymbol() const { return HasFlag(wxTEXT_ATTR_BULLET_SYMBOL); }
|
||||
bool HasBulletName() const { return HasFlag(wxTEXT_ATTR_BULLET_NAME); }
|
||||
|
||||
// Is this a character style?
|
||||
bool IsCharacterStyle() const { return (0 != (GetFlags() & (wxTEXT_ATTR_FONT | wxTEXT_ATTR_BACKGROUND_COLOUR | wxTEXT_ATTR_TEXT_COLOUR))); }
|
||||
bool IsParagraphStyle() const { return (0 != (GetFlags() & (wxTEXT_ATTR_ALIGNMENT|wxTEXT_ATTR_LEFT_INDENT|wxTEXT_ATTR_RIGHT_INDENT|wxTEXT_ATTR_TABS|
|
||||
wxTEXT_ATTR_PARA_SPACING_BEFORE|wxTEXT_ATTR_PARA_SPACING_AFTER|wxTEXT_ATTR_LINE_SPACING|
|
||||
wxTEXT_ATTR_BULLET_STYLE|wxTEXT_ATTR_BULLET_NUMBER))); }
|
||||
wxTEXT_ATTR_BULLET_STYLE|wxTEXT_ATTR_BULLET_NUMBER|wxTEXT_ATTR_BULLET_NAME))); }
|
||||
|
||||
// returns false if we have any attributes set, true otherwise
|
||||
bool IsDefault() const
|
||||
@@ -348,7 +353,7 @@ public:
|
||||
!HasTabs() && !HasLeftIndent() && !HasRightIndent() &&
|
||||
!HasParagraphSpacingAfter() && !HasParagraphSpacingBefore() && !HasLineSpacing() &&
|
||||
!HasCharacterStyleName() && !HasParagraphStyleName() && !HasListStyleName() &&
|
||||
!HasBulletNumber() && !HasBulletStyle() && !HasBulletSymbol();
|
||||
!HasBulletNumber() && !HasBulletStyle() && !HasBulletSymbol() && !HasBulletName();
|
||||
}
|
||||
|
||||
// return the attribute having the valid font and colours: it uses the
|
||||
@@ -367,6 +372,7 @@ private:
|
||||
int m_bulletNumber;
|
||||
wxChar m_bulletSymbol;
|
||||
wxString m_bulletFont;
|
||||
wxString m_bulletName;
|
||||
|
||||
// Character style
|
||||
wxString m_characterStyleName;
|
||||
@@ -443,6 +449,7 @@ public:
|
||||
void SetBulletNumber(int n) { m_bulletNumber = n; m_flags |= wxTEXT_ATTR_BULLET_NUMBER; }
|
||||
void SetBulletSymbol(wxChar symbol) { m_bulletSymbol = symbol; m_flags |= wxTEXT_ATTR_BULLET_NUMBER; }
|
||||
void SetBulletFont(const wxString& bulletFont) { m_bulletFont = bulletFont; }
|
||||
void SetBulletName(const wxString& name) { m_bulletName = name; }
|
||||
|
||||
const wxColour& GetTextColour() const { return m_colText; }
|
||||
const wxColour& GetBackgroundColour() const { return m_colBack; }
|
||||
@@ -469,6 +476,7 @@ public:
|
||||
int GetBulletNumber() const { return m_bulletNumber; }
|
||||
wxChar GetBulletSymbol() const { return m_bulletSymbol; }
|
||||
const wxString& GetBulletFont() const { return m_bulletFont; }
|
||||
const wxString& GetBulletName() const { return m_bulletName; }
|
||||
|
||||
// accessors
|
||||
bool HasTextColour() const { return m_colText.Ok() && HasFlag(wxTEXT_ATTR_TEXT_COLOUR) ; }
|
||||
@@ -493,6 +501,7 @@ public:
|
||||
bool HasBulletStyle() const { return (m_flags & wxTEXT_ATTR_BULLET_STYLE) != 0; }
|
||||
bool HasBulletNumber() const { return (m_flags & wxTEXT_ATTR_BULLET_NUMBER) != 0; }
|
||||
bool HasBulletSymbol() const { return (m_flags & wxTEXT_ATTR_BULLET_SYMBOL) != 0; }
|
||||
bool HasBulletName() const { return (m_flags & wxTEXT_ATTR_BULLET_NAME) != 0; }
|
||||
|
||||
bool HasFlag(long flag) const { return (m_flags & flag) != 0; }
|
||||
|
||||
@@ -500,7 +509,7 @@ public:
|
||||
bool IsCharacterStyle() const { return (0 != (GetFlags() & (wxTEXT_ATTR_FONT | wxTEXT_ATTR_BACKGROUND_COLOUR | wxTEXT_ATTR_TEXT_COLOUR))); }
|
||||
bool IsParagraphStyle() const { return (0 != (GetFlags() & (wxTEXT_ATTR_ALIGNMENT|wxTEXT_ATTR_LEFT_INDENT|wxTEXT_ATTR_RIGHT_INDENT|wxTEXT_ATTR_TABS|
|
||||
wxTEXT_ATTR_PARA_SPACING_BEFORE|wxTEXT_ATTR_PARA_SPACING_AFTER|wxTEXT_ATTR_LINE_SPACING|
|
||||
wxTEXT_ATTR_BULLET_STYLE|wxTEXT_ATTR_BULLET_NUMBER))); }
|
||||
wxTEXT_ATTR_BULLET_STYLE|wxTEXT_ATTR_BULLET_NUMBER|wxTEXT_ATTR_BULLET_NAME))); }
|
||||
|
||||
// returns false if we have any attributes set, true otherwise
|
||||
bool IsDefault() const
|
||||
@@ -509,7 +518,7 @@ public:
|
||||
!HasTabs() && !HasLeftIndent() && !HasRightIndent() &&
|
||||
!HasParagraphSpacingAfter() && !HasParagraphSpacingBefore() && !HasLineSpacing() &&
|
||||
!HasCharacterStyleName() && !HasParagraphStyleName() && !HasListStyleName() &&
|
||||
!HasBulletNumber() && !HasBulletStyle() && !HasBulletSymbol();
|
||||
!HasBulletNumber() && !HasBulletStyle() && !HasBulletSymbol() && !HasBulletName();
|
||||
}
|
||||
|
||||
// return the attribute having the valid font and colours: it uses the
|
||||
@@ -537,6 +546,7 @@ private:
|
||||
int m_bulletNumber;
|
||||
wxChar m_bulletSymbol;
|
||||
wxString m_bulletFont;
|
||||
wxString m_bulletName;
|
||||
|
||||
// Character styles
|
||||
wxColour m_colText,
|
||||
@@ -561,7 +571,8 @@ private:
|
||||
|
||||
#define wxTEXT_ATTR_PARAGRAPH (wxTEXT_ATTR_ALIGNMENT|wxTEXT_ATTR_LEFT_INDENT|wxTEXT_ATTR_RIGHT_INDENT|wxTEXT_ATTR_TABS|\
|
||||
wxTEXT_ATTR_PARA_SPACING_BEFORE|wxTEXT_ATTR_PARA_SPACING_AFTER|wxTEXT_ATTR_LINE_SPACING|\
|
||||
wxTEXT_ATTR_BULLET_STYLE|wxTEXT_ATTR_BULLET_NUMBER|wxTEXT_ATTR_BULLET_SYMBOL|wxTEXT_ATTR_PARAGRAPH_STYLE_NAME|wxTEXT_ATTR_LIST_STYLE_NAME)
|
||||
wxTEXT_ATTR_BULLET_STYLE|wxTEXT_ATTR_BULLET_NUMBER|wxTEXT_ATTR_BULLET_SYMBOL|wxTEXT_ATTR_BULLET_NAME|\
|
||||
wxTEXT_ATTR_PARAGRAPH_STYLE_NAME|wxTEXT_ATTR_LIST_STYLE_NAME)
|
||||
|
||||
#define wxTEXT_ATTR_ALL (wxTEXT_ATTR_CHARACTER|wxTEXT_ATTR_PARAGRAPH)
|
||||
|
||||
@@ -1682,6 +1693,12 @@ public:
|
||||
/// End symbol bullet
|
||||
bool EndSymbolBullet() { return EndStyle(); }
|
||||
|
||||
/// Begin standard bullet
|
||||
bool BeginStandardBullet(const wxString& bulletName, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_STANDARD);
|
||||
|
||||
/// End standard bullet
|
||||
bool EndStandardBullet() { return EndStyle(); }
|
||||
|
||||
/// Begin named character style
|
||||
bool BeginCharacterStyle(const wxString& characterStyle);
|
||||
|
||||
@@ -1694,6 +1711,12 @@ public:
|
||||
/// End named character style
|
||||
bool EndParagraphStyle() { return EndStyle(); }
|
||||
|
||||
/// Begin named list style
|
||||
bool BeginListStyle(const wxString& listStyle, int level = 1, int number = 1);
|
||||
|
||||
/// End named character style
|
||||
bool EndListStyle() { return EndStyle(); }
|
||||
|
||||
// Implementation
|
||||
|
||||
/// Copy
|
||||
|
@@ -17,8 +17,8 @@
|
||||
*/
|
||||
|
||||
////@begin includes
|
||||
#include "wx/statline.h"
|
||||
#include "wx/spinctrl.h"
|
||||
#include "wx/statline.h"
|
||||
////@end includes
|
||||
|
||||
/*!
|
||||
@@ -81,11 +81,44 @@ public:
|
||||
/// Update for number-related controls
|
||||
void OnNumberUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// Update for standard bullet-related controls
|
||||
void OnStandardBulletUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
////@begin wxRichTextBulletsPage event handler declarations
|
||||
|
||||
/// wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_RICHTEXTBULLETSPAGE_STYLELISTBOX
|
||||
void OnStylelistboxSelected( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTBULLETSPAGE_PERIODCTRL
|
||||
void OnPeriodctrlClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_PERIODCTRL
|
||||
void OnPeriodctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTBULLETSPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_NUMBERSTATIC
|
||||
void OnNumberstaticUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlUpdated( wxSpinEvent& event );
|
||||
|
||||
/// wxEVT_SCROLL_LINEUP event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlUp( wxSpinEvent& event );
|
||||
|
||||
/// wxEVT_SCROLL_LINEDOWN event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlDown( wxSpinEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlTextUpdated( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_SYMBOLSTATIC
|
||||
void OnSymbolstaticUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
@@ -113,35 +146,17 @@ public:
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_SYMBOLFONTCTRL
|
||||
void OnSymbolfontctrlUIUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_NUMBERSTATIC
|
||||
void OnNumberstaticUpdate( wxUpdateUIEvent& event );
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_NAMESTATIC
|
||||
void OnNamestaticUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlUpdated( wxSpinEvent& event );
|
||||
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_RICHTEXTBULLETSPAGE_NAMECTRL
|
||||
void OnNamectrlSelected( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_SCROLL_LINEUP event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlUp( wxSpinEvent& event );
|
||||
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_RICHTEXTBULLETSPAGE_NAMECTRL
|
||||
void OnNamectrlUpdated( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_SCROLL_LINEDOWN event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlDown( wxSpinEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlTextUpdated( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_NUMBERCTRL
|
||||
void OnNumberctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTBULLETSPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTBULLETSPAGE_PERIODCTRL
|
||||
void OnPeriodctrlClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_PERIODCTRL
|
||||
void OnPeriodctrlUpdate( wxUpdateUIEvent& event );
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTBULLETSPAGE_NAMECTRL
|
||||
void OnNamectrlUIUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
////@end wxRichTextBulletsPage event handler declarations
|
||||
|
||||
@@ -159,24 +174,27 @@ public:
|
||||
|
||||
////@begin wxRichTextBulletsPage member variables
|
||||
wxListBox* m_styleListBox;
|
||||
wxCheckBox* m_periodCtrl;
|
||||
wxCheckBox* m_parenthesesCtrl;
|
||||
wxSpinCtrl* m_numberCtrl;
|
||||
wxComboBox* m_symbolCtrl;
|
||||
wxComboBox* m_symbolFontCtrl;
|
||||
wxSpinCtrl* m_numberCtrl;
|
||||
wxCheckBox* m_parenthesesCtrl;
|
||||
wxCheckBox* m_periodCtrl;
|
||||
wxComboBox* m_bulletNameCtrl;
|
||||
wxRichTextCtrl* m_previewCtrl;
|
||||
/// Control identifiers
|
||||
enum {
|
||||
ID_RICHTEXTBULLETSPAGE = 10300,
|
||||
ID_RICHTEXTBULLETSPAGE_STYLELISTBOX = 10305,
|
||||
ID_RICHTEXTBULLETSPAGE_PERIODCTRL = 10313,
|
||||
ID_RICHTEXTBULLETSPAGE_PARENTHESESCTRL = 10311,
|
||||
ID_RICHTEXTBULLETSPAGE_NUMBERSTATIC = 10302,
|
||||
ID_RICHTEXTBULLETSPAGE_NUMBERCTRL = 10310,
|
||||
ID_RICHTEXTBULLETSPAGE_SYMBOLSTATIC = 10301,
|
||||
ID_RICHTEXTBULLETSPAGE_SYMBOLCTRL = 10307,
|
||||
ID_RICHTEXTBULLETSPAGE_CHOOSE_SYMBOL = 10308,
|
||||
ID_RICHTEXTBULLETSPAGE_SYMBOLFONTCTRL = 10309,
|
||||
ID_RICHTEXTBULLETSPAGE_NUMBERSTATIC = 10302,
|
||||
ID_RICHTEXTBULLETSPAGE_NUMBERCTRL = 10310,
|
||||
ID_RICHTEXTBULLETSPAGE_PARENTHESESCTRL = 10311,
|
||||
ID_RICHTEXTBULLETSPAGE_PERIODCTRL = 10313,
|
||||
ID_RICHTEXTBULLETSPAGE_NAMESTATIC = 10303,
|
||||
ID_RICHTEXTBULLETSPAGE_NAMECTRL = 10304,
|
||||
ID_RICHTEXTBULLETSPAGE_PREVIEW_CTRL = 10314
|
||||
};
|
||||
////@end wxRichTextBulletsPage member variables
|
||||
|
@@ -384,6 +384,13 @@ public:
|
||||
/// End symbol bullet
|
||||
bool EndSymbolBullet() { return GetBuffer().EndSymbolBullet(); }
|
||||
|
||||
/// Begin standard bullet
|
||||
bool BeginStandardBullet(const wxString& bulletName, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_STANDARD)
|
||||
{ return GetBuffer().BeginStandardBullet(bulletName, leftIndent, leftSubIndent, bulletStyle); }
|
||||
|
||||
/// End standard bullet
|
||||
bool EndStandardBullet() { return GetBuffer().EndStandardBullet(); }
|
||||
|
||||
/// Begin named character style
|
||||
bool BeginCharacterStyle(const wxString& characterStyle) { return GetBuffer().BeginCharacterStyle(characterStyle); }
|
||||
|
||||
@@ -396,6 +403,12 @@ public:
|
||||
/// End named character style
|
||||
bool EndParagraphStyle() { return GetBuffer().EndParagraphStyle(); }
|
||||
|
||||
/// Begin named list style
|
||||
bool BeginListStyle(const wxString& listStyle, int level = 1, int number = 1) { return GetBuffer().BeginListStyle(listStyle, level, number); }
|
||||
|
||||
/// End named character style
|
||||
bool EndListStyle() { return GetBuffer().EndListStyle(); }
|
||||
|
||||
/// Sets the default style to the style under the cursor
|
||||
bool SetDefaultStyleToCursorStyle();
|
||||
|
||||
|
@@ -73,6 +73,9 @@ public:
|
||||
/// Update for number-related controls
|
||||
void OnNumberUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// Update for standard bullet-related controls
|
||||
void OnStandardBulletUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// Just transfer to the window
|
||||
void DoTransferDataToWindow();
|
||||
|
||||
@@ -102,6 +105,18 @@ public:
|
||||
/// wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_RICHTEXTLISTSTYLEPAGE_STYLELISTBOX
|
||||
void OnStylelistboxSelected( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTLISTSTYLEPAGE_PERIODCTRL
|
||||
void OnPeriodctrlClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_PERIODCTRL
|
||||
void OnPeriodctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTLISTSTYLEPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_SYMBOLSTATIC
|
||||
void OnSymbolstaticUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
@@ -129,17 +144,17 @@ public:
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_SYMBOLFONTCTRL
|
||||
void OnSymbolfontctrlUIUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTLISTSTYLEPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlClick( wxCommandEvent& event );
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_NAMESTATIC
|
||||
void OnNamestaticUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_PARENTHESESCTRL
|
||||
void OnParenthesesctrlUpdate( wxUpdateUIEvent& event );
|
||||
/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_RICHTEXTLISTSTYLEPAGE_NAMECTRL
|
||||
void OnNamectrlSelected( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_RICHTEXTLISTSTYLEPAGE_PERIODCTRL
|
||||
void OnPeriodctrlClick( wxCommandEvent& event );
|
||||
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_RICHTEXTLISTSTYLEPAGE_NAMECTRL
|
||||
void OnNamectrlUpdated( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_PERIODCTRL
|
||||
void OnPeriodctrlUpdate( wxUpdateUIEvent& event );
|
||||
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTLISTSTYLEPAGE_NAMECTRL
|
||||
void OnNamectrlUIUpdate( wxUpdateUIEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RICHTEXTLISTSTYLEPAGE_ALIGNLEFT
|
||||
void OnRichtextliststylepageAlignleftSelected( wxCommandEvent& event );
|
||||
@@ -191,10 +206,11 @@ public:
|
||||
////@begin wxRichTextListStylePage member variables
|
||||
wxSpinCtrl* m_levelCtrl;
|
||||
wxListBox* m_styleListBox;
|
||||
wxCheckBox* m_periodCtrl;
|
||||
wxCheckBox* m_parenthesesCtrl;
|
||||
wxComboBox* m_symbolCtrl;
|
||||
wxComboBox* m_symbolFontCtrl;
|
||||
wxCheckBox* m_parenthesesCtrl;
|
||||
wxCheckBox* m_periodCtrl;
|
||||
wxComboBox* m_bulletNameCtrl;
|
||||
wxRadioButton* m_alignmentLeft;
|
||||
wxRadioButton* m_alignmentRight;
|
||||
wxRadioButton* m_alignmentJustified;
|
||||
@@ -215,12 +231,14 @@ public:
|
||||
ID_RICHTEXTLISTSTYLEPAGE_NOTEBOOK = 10618,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_BULLETS = 10619,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_STYLELISTBOX = 10620,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_PERIODCTRL = 10627,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_PARENTHESESCTRL = 10626,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_SYMBOLSTATIC = 10621,
|
||||
ID_RICHTEXTBULLETSPAGE_SYMBOLCTRL = 10622,
|
||||
ID_RICHTEXTBULLETSPAGE_CHOOSE_SYMBOL = 10623,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_SYMBOLFONTCTRL = 10625,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_PARENTHESESCTRL = 10626,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_PERIODCTRL = 10627,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_NAMESTATIC = 10600,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_NAMECTRL = 10601,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_SPACING = 10628,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_ALIGNLEFT = 10629,
|
||||
ID_RICHTEXTLISTSTYLEPAGE_ALIGNRIGHT = 10630,
|
||||
|
Reference in New Issue
Block a user