]> git.saurik.com Git - wxWidgets.git/blame - include/wx/richtext/richtextstylepage.h
Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.
[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
97ff49b3 7// Copyright: (c) Julian Smart
b68603d5 8// Licence: wxWindows licence
97ff49b3
JS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _RICHTEXTSTYLEPAGE_H_
12#define _RICHTEXTSTYLEPAGE_H_
13
603f702b
JS
14#include "wx/richtext/richtextdialogpage.h"
15
97ff49b3
JS
16/*!
17 * Control identifiers
18 */
19
20////@begin control identifiers
21#define SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE wxRESIZE_BORDER|wxTAB_TRAVERSAL
603f702b 22#define SYMBOL_WXRICHTEXTSTYLEPAGE_TITLE wxEmptyString
97ff49b3
JS
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
97ff49b3
JS
28/*!
29 * wxRichTextStylePage class declaration
30 */
31
603f702b 32class WXDLLIMPEXP_RICHTEXT wxRichTextStylePage: public wxRichTextDialogPage
41a85215 33{
97ff49b3
JS
34 DECLARE_DYNAMIC_CLASS( wxRichTextStylePage )
35 DECLARE_EVENT_TABLE()
603f702b 36 DECLARE_HELP_PROVISION()
97ff49b3
JS
37
38public:
39 /// Constructors
40 wxRichTextStylePage( );
8871035d 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 );
97ff49b3
JS
42
43 /// Creation
8871035d 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 );
41a85215 45
97ff49b3
JS
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
24777478 57 wxRichTextAttr* GetAttributes();
97ff49b3
JS
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_