]> git.saurik.com Git - wxWidgets.git/blame - include/wx/richtext/richtextstylepage.h
Minor corrections to make dist after reports
[wxWidgets.git] / include / wx / richtext / richtextstylepage.h
CommitLineData
97ff49b3 1/////////////////////////////////////////////////////////////////////////////
b68603d5 2// Name: wx/richtext/richtextstylepage.h
41a85215 3// Purpose:
97ff49b3 4// Author: Julian Smart
41a85215 5// Modified by:
97ff49b3 6// Created: 10/5/2006 11:34:55 AM
b68603d5 7// RCS-ID: $Id$
97ff49b3 8// Copyright: (c) Julian Smart
b68603d5 9// Licence: wxWindows licence
97ff49b3
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _RICHTEXTSTYLEPAGE_H_
13#define _RICHTEXTSTYLEPAGE_H_
14
97ff49b3
JS
15/*!
16 * Control identifiers
17 */
18
19////@begin control identifiers
20#define SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE wxRESIZE_BORDER|wxTAB_TRAVERSAL
97ff49b3
JS
21#define SYMBOL_WXRICHTEXTSTYLEPAGE_IDNAME ID_RICHTEXTSTYLEPAGE
22#define SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE wxSize(400, 300)
23#define SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION wxDefaultPosition
24////@end control identifiers
25
97ff49b3
JS
26/*!
27 * wxRichTextStylePage class declaration
28 */
29
30class wxRichTextStylePage: public wxPanel
41a85215 31{
97ff49b3
JS
32 DECLARE_DYNAMIC_CLASS( wxRichTextStylePage )
33 DECLARE_EVENT_TABLE()
34
35public:
36 /// Constructors
37 wxRichTextStylePage( );
8871035d 38 wxRichTextStylePage( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE, long style = SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE );
97ff49b3
JS
39
40 /// Creation
8871035d 41 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 );
41a85215 42
97ff49b3
JS
43 /// Initialise members
44 void Init();
45
46 /// Creates the controls and sizers
47 void CreateControls();
48
49 /// Transfer data from/to window
50 virtual bool TransferDataFromWindow();
51 virtual bool TransferDataToWindow();
52
53 /// Gets the attributes associated with the main formatting dialog
44cc96a8 54 wxTextAttr* GetAttributes();
97ff49b3
JS
55
56////@begin wxRichTextStylePage event handler declarations
57
58 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTSTYLEPAGE_NEXT_STYLE
59 void OnNextStyleUpdate( wxUpdateUIEvent& event );
60
61////@end wxRichTextStylePage event handler declarations
62
63////@begin wxRichTextStylePage member function declarations
64
65 /// Retrieves bitmap resources
66 wxBitmap GetBitmapResource( const wxString& name );
67
68 /// Retrieves icon resources
69 wxIcon GetIconResource( const wxString& name );
70////@end wxRichTextStylePage member function declarations
71
72 /// Should we show tooltips?
73 static bool ShowToolTips();
74
75////@begin wxRichTextStylePage member variables
76 wxTextCtrl* m_styleName;
77 wxComboBox* m_basedOn;
78 wxComboBox* m_nextStyle;
79 /// Control identifiers
80 enum {
81 ID_RICHTEXTSTYLEPAGE = 10403,
82 ID_RICHTEXTSTYLEPAGE_STYLE_NAME = 10404,
83 ID_RICHTEXTSTYLEPAGE_BASED_ON = 10405,
84 ID_RICHTEXTSTYLEPAGE_NEXT_STYLE = 10406
85 };
86////@end wxRichTextStylePage member variables
87};
88
89#endif
90 // _RICHTEXTSTYLEPAGE_H_