]>
Commit | Line | Data |
---|---|---|
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 | // Copyright: (c) Julian Smart | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _RICHTEXTSTYLEPAGE_H_ | |
12 | #define _RICHTEXTSTYLEPAGE_H_ | |
13 | ||
14 | #include "wx/richtext/richtextdialogpage.h" | |
15 | ||
16 | /*! | |
17 | * Control identifiers | |
18 | */ | |
19 | ||
20 | ////@begin control identifiers | |
21 | #define SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE wxRESIZE_BORDER|wxTAB_TRAVERSAL | |
22 | #define SYMBOL_WXRICHTEXTSTYLEPAGE_TITLE wxEmptyString | |
23 | #define SYMBOL_WXRICHTEXTSTYLEPAGE_IDNAME ID_RICHTEXTSTYLEPAGE | |
24 | #define SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE wxSize(400, 300) | |
25 | #define SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION wxDefaultPosition | |
26 | ////@end control identifiers | |
27 | ||
28 | /*! | |
29 | * wxRichTextStylePage class declaration | |
30 | */ | |
31 | ||
32 | class WXDLLIMPEXP_RICHTEXT wxRichTextStylePage: public wxRichTextDialogPage | |
33 | { | |
34 | DECLARE_DYNAMIC_CLASS( wxRichTextStylePage ) | |
35 | DECLARE_EVENT_TABLE() | |
36 | DECLARE_HELP_PROVISION() | |
37 | ||
38 | public: | |
39 | /// Constructors | |
40 | wxRichTextStylePage( ); | |
41 | wxRichTextStylePage( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE, long style = SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE ); | |
42 | ||
43 | /// Creation | |
44 | bool Create( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE, long style = SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE ); | |
45 | ||
46 | /// Initialise members | |
47 | void Init(); | |
48 | ||
49 | /// Creates the controls and sizers | |
50 | void CreateControls(); | |
51 | ||
52 | /// Transfer data from/to window | |
53 | virtual bool TransferDataFromWindow(); | |
54 | virtual bool TransferDataToWindow(); | |
55 | ||
56 | /// Gets the attributes associated with the main formatting dialog | |
57 | wxRichTextAttr* GetAttributes(); | |
58 | ||
59 | ////@begin wxRichTextStylePage event handler declarations | |
60 | ||
61 | /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTSTYLEPAGE_NEXT_STYLE | |
62 | void OnNextStyleUpdate( wxUpdateUIEvent& event ); | |
63 | ||
64 | ////@end wxRichTextStylePage event handler declarations | |
65 | ||
66 | ////@begin wxRichTextStylePage member function declarations | |
67 | ||
68 | /// Retrieves bitmap resources | |
69 | wxBitmap GetBitmapResource( const wxString& name ); | |
70 | ||
71 | /// Retrieves icon resources | |
72 | wxIcon GetIconResource( const wxString& name ); | |
73 | ////@end wxRichTextStylePage member function declarations | |
74 | ||
75 | /// Should we show tooltips? | |
76 | static bool ShowToolTips(); | |
77 | ||
78 | ////@begin wxRichTextStylePage member variables | |
79 | wxTextCtrl* m_styleName; | |
80 | wxComboBox* m_basedOn; | |
81 | wxComboBox* m_nextStyle; | |
82 | /// Control identifiers | |
83 | enum { | |
84 | ID_RICHTEXTSTYLEPAGE = 10403, | |
85 | ID_RICHTEXTSTYLEPAGE_STYLE_NAME = 10404, | |
86 | ID_RICHTEXTSTYLEPAGE_BASED_ON = 10405, | |
87 | ID_RICHTEXTSTYLEPAGE_NEXT_STYLE = 10406 | |
88 | }; | |
89 | ////@end wxRichTextStylePage member variables | |
90 | }; | |
91 | ||
92 | #endif | |
93 | // _RICHTEXTSTYLEPAGE_H_ |