Warnings, build errors, headers, licence, prefered api and non-PCH support cleaning...
[wxWidgets.git] / include / wx / richtext / richtextstylepage.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/richtext/richtextstylepage.h
3 // Purpose:
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 10/5/2006 11:34:55 AM
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows 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 * wxRichTextStylePage class declaration
43 */
44
45 class wxRichTextStylePage: public wxPanel
46 {
47 DECLARE_DYNAMIC_CLASS( wxRichTextStylePage )
48 DECLARE_EVENT_TABLE()
49
50 public:
51 /// Constructors
52 wxRichTextStylePage( );
53 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 );
54
55 /// Creation
56 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 );
57
58 /// Initialise members
59 void Init();
60
61 /// Creates the controls and sizers
62 void CreateControls();
63
64 /// Transfer data from/to window
65 virtual bool TransferDataFromWindow();
66 virtual bool TransferDataToWindow();
67
68 /// Gets the attributes associated with the main formatting dialog
69 wxTextAttrEx* GetAttributes();
70
71 ////@begin wxRichTextStylePage event handler declarations
72
73 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTSTYLEPAGE_NEXT_STYLE
74 void OnNextStyleUpdate( wxUpdateUIEvent& event );
75
76 ////@end wxRichTextStylePage event handler declarations
77
78 ////@begin wxRichTextStylePage member function declarations
79
80 /// Retrieves bitmap resources
81 wxBitmap GetBitmapResource( const wxString& name );
82
83 /// Retrieves icon resources
84 wxIcon GetIconResource( const wxString& name );
85 ////@end wxRichTextStylePage member function declarations
86
87 /// Should we show tooltips?
88 static bool ShowToolTips();
89
90 ////@begin wxRichTextStylePage member variables
91 wxTextCtrl* m_styleName;
92 wxComboBox* m_basedOn;
93 wxComboBox* m_nextStyle;
94 /// Control identifiers
95 enum {
96 ID_RICHTEXTSTYLEPAGE = 10403,
97 ID_RICHTEXTSTYLEPAGE_STYLE_NAME = 10404,
98 ID_RICHTEXTSTYLEPAGE_BASED_ON = 10405,
99 ID_RICHTEXTSTYLEPAGE_NEXT_STYLE = 10406
100 };
101 ////@end wxRichTextStylePage member variables
102 };
103
104 #endif
105 // _RICHTEXTSTYLEPAGE_H_