]> git.saurik.com Git - wxWidgets.git/blob - include/wx/richtext/richtextstylepage.h
fix compilation after recent wxTextCtrl changes
[wxWidgets.git] / include / wx / richtext / richtextstylepage.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: richtextstylepage.h
3 // Purpose:
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 10/5/2006 11:34:55 AM
7 // RCS-ID:
8 // Copyright: (c) Julian Smart
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _RICHTEXTSTYLEPAGE_H_
13 #define _RICHTEXTSTYLEPAGE_H_
14
15 /*!
16 * Includes
17 */
18
19 ////@begin includes
20 ////@end includes
21
22 /*!
23 * Forward declarations
24 */
25
26 ////@begin forward declarations
27 ////@end forward declarations
28
29 /*!
30 * Control identifiers
31 */
32
33 ////@begin control identifiers
34 #define SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE wxRESIZE_BORDER|wxTAB_TRAVERSAL
35 #define SYMBOL_WXRICHTEXTSTYLEPAGE_TITLE _("wxRichTextStylePage")
36 #define SYMBOL_WXRICHTEXTSTYLEPAGE_IDNAME ID_RICHTEXTSTYLEPAGE
37 #define SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE wxSize(400, 300)
38 #define SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION wxDefaultPosition
39 ////@end control identifiers
40
41 /*!
42 * Compatibility
43 */
44
45 #ifndef wxCLOSE_BOX
46 #define wxCLOSE_BOX 0x1000
47 #endif
48
49 /*!
50 * wxRichTextStylePage class declaration
51 */
52
53 class wxRichTextStylePage: public wxPanel
54 {
55 DECLARE_DYNAMIC_CLASS( wxRichTextStylePage )
56 DECLARE_EVENT_TABLE()
57
58 public:
59 /// Constructors
60 wxRichTextStylePage( );
61 wxRichTextStylePage( wxWindow* parent, wxWindowID id = SYMBOL_WXRICHTEXTSTYLEPAGE_IDNAME, const wxPoint& pos = SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE, long style = SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE );
62
63 /// Creation
64 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXRICHTEXTSTYLEPAGE_IDNAME, const wxPoint& pos = SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE, long style = SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE );
65
66 /// Initialise members
67 void Init();
68
69 /// Creates the controls and sizers
70 void CreateControls();
71
72 /// Transfer data from/to window
73 virtual bool TransferDataFromWindow();
74 virtual bool TransferDataToWindow();
75
76 /// Gets the attributes associated with the main formatting dialog
77 wxTextAttrEx* GetAttributes();
78
79 ////@begin wxRichTextStylePage event handler declarations
80
81 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTSTYLEPAGE_NEXT_STYLE
82 void OnNextStyleUpdate( wxUpdateUIEvent& event );
83
84 ////@end wxRichTextStylePage event handler declarations
85
86 ////@begin wxRichTextStylePage member function declarations
87
88 /// Retrieves bitmap resources
89 wxBitmap GetBitmapResource( const wxString& name );
90
91 /// Retrieves icon resources
92 wxIcon GetIconResource( const wxString& name );
93 ////@end wxRichTextStylePage member function declarations
94
95 /// Should we show tooltips?
96 static bool ShowToolTips();
97
98 ////@begin wxRichTextStylePage member variables
99 wxTextCtrl* m_styleName;
100 wxComboBox* m_basedOn;
101 wxComboBox* m_nextStyle;
102 /// Control identifiers
103 enum {
104 ID_RICHTEXTSTYLEPAGE = 10403,
105 ID_RICHTEXTSTYLEPAGE_STYLE_NAME = 10404,
106 ID_RICHTEXTSTYLEPAGE_BASED_ON = 10405,
107 ID_RICHTEXTSTYLEPAGE_NEXT_STYLE = 10406
108 };
109 ////@end wxRichTextStylePage member variables
110 };
111
112 #endif
113 // _RICHTEXTSTYLEPAGE_H_