]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/richtext/richtextstylepage.h
CW8.3+ has ssize_t (patch 1492413)
[wxWidgets.git] / include / wx / richtext / richtextstylepage.h
... / ...
CommitLineData
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 * Control identifiers
17 */
18
19////@begin control identifiers
20#define SYMBOL_WXRICHTEXTSTYLEPAGE_STYLE wxRESIZE_BORDER|wxTAB_TRAVERSAL
21#define SYMBOL_WXRICHTEXTSTYLEPAGE_TITLE _("wxRichTextStylePage")
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
27/*!
28 * wxRichTextStylePage class declaration
29 */
30
31class wxRichTextStylePage: public wxPanel
32{
33 DECLARE_DYNAMIC_CLASS( wxRichTextStylePage )
34 DECLARE_EVENT_TABLE()
35
36public:
37 /// Constructors
38 wxRichTextStylePage( );
39 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 );
40
41 /// Creation
42 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 );
43
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
55 wxTextAttrEx* GetAttributes();
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_