]> git.saurik.com Git - wxWidgets.git/blame - include/wx/richtext/richtextstylepage.h
Make wxChoicebook background transparent.
[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
9a83f860 21#define SYMBOL_WXRICHTEXTSTYLEPAGE_TITLE wxT("")
97ff49b3
JS
22#define SYMBOL_WXRICHTEXTSTYLEPAGE_IDNAME ID_RICHTEXTSTYLEPAGE
23#define SYMBOL_WXRICHTEXTSTYLEPAGE_SIZE wxSize(400, 300)
24#define SYMBOL_WXRICHTEXTSTYLEPAGE_POSITION wxDefaultPosition
25////@end control identifiers
26
97ff49b3
JS
27/*!
28 * wxRichTextStylePage class declaration
29 */
30
31class wxRichTextStylePage: public wxPanel
41a85215 32{
97ff49b3
JS
33 DECLARE_DYNAMIC_CLASS( wxRichTextStylePage )
34 DECLARE_EVENT_TABLE()
35
36public:
37 /// Constructors
38 wxRichTextStylePage( );
8871035d 39 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
40
41 /// Creation
8871035d 42 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 43
97ff49b3
JS
44 /// Initialise members
45 void Init();
46
47 /// Creates the controls and sizers
48 void CreateControls();
49
50 /// Transfer data from/to window
51 virtual bool TransferDataFromWindow();
52 virtual bool TransferDataToWindow();
53
54 /// Gets the attributes associated with the main formatting dialog
24777478 55 wxRichTextAttr* GetAttributes();
97ff49b3
JS
56
57////@begin wxRichTextStylePage event handler declarations
58
59 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTSTYLEPAGE_NEXT_STYLE
60 void OnNextStyleUpdate( wxUpdateUIEvent& event );
61
62////@end wxRichTextStylePage event handler declarations
63
64////@begin wxRichTextStylePage member function declarations
65
66 /// Retrieves bitmap resources
67 wxBitmap GetBitmapResource( const wxString& name );
68
69 /// Retrieves icon resources
70 wxIcon GetIconResource( const wxString& name );
71////@end wxRichTextStylePage member function declarations
72
73 /// Should we show tooltips?
74 static bool ShowToolTips();
75
76////@begin wxRichTextStylePage member variables
77 wxTextCtrl* m_styleName;
78 wxComboBox* m_basedOn;
79 wxComboBox* m_nextStyle;
80 /// Control identifiers
81 enum {
82 ID_RICHTEXTSTYLEPAGE = 10403,
83 ID_RICHTEXTSTYLEPAGE_STYLE_NAME = 10404,
84 ID_RICHTEXTSTYLEPAGE_BASED_ON = 10405,
85 ID_RICHTEXTSTYLEPAGE_NEXT_STYLE = 10406
86 };
87////@end wxRichTextStylePage member variables
88};
89
90#endif
91 // _RICHTEXTSTYLEPAGE_H_