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