1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/richtext/richtextimagedlg.h
4 // Author: Mingquan Yang
5 // Modified by: Julian Smart
6 // Created: Wed 02 Jun 2010 11:27:23 CST
8 // Copyright: (c) Mingquan Yang, Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/dialog.h"
14 #ifndef _RICHTEXTIMAGEDLG_H_
15 #define _RICHTEXTIMAGEDLG_H_
18 * Forward declarations
21 class WXDLLIMPEXP_FWD_CORE wxButton
;
22 class WXDLLIMPEXP_FWD_CORE wxComboBox
;
23 class WXDLLIMPEXP_FWD_CORE wxCheckBox
;
24 class WXDLLIMPEXP_FWD_CORE wxTextCtrl
;
30 #include "wx/richtext/richtextbuffer.h"
31 #include "wx/richtext/richtextformatdlg.h"
37 ////@begin control identifiers
38 #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL
39 #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE wxGetTranslation("Object Properties")
40 #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME ID_RICHTEXTOBJECTPROPERTIESDIALOG
41 #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE wxSize(400, 300)
42 #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION wxDefaultPosition
43 ////@end control identifiers
46 * wxRichTextObjectPropertiesDialog class declaration
49 class WXDLLIMPEXP_RICHTEXT wxRichTextObjectPropertiesDialog
: public wxRichTextFormattingDialog
51 DECLARE_DYNAMIC_CLASS( wxRichTextObjectPropertiesDialog
)
56 wxRichTextObjectPropertiesDialog();
57 wxRichTextObjectPropertiesDialog( wxRichTextObject
* obj
, wxWindow
* parent
, wxWindowID id
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME
, const wxString
& caption
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE
, const wxPoint
& pos
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION
, const wxSize
& size
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE
, long style
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE
);
60 bool Create( wxRichTextObject
* obj
, wxWindow
* parent
, wxWindowID id
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME
, const wxString
& caption
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE
, const wxPoint
& pos
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION
, const wxSize
& size
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE
, long style
= SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE
);
63 ~wxRichTextObjectPropertiesDialog();
65 /// Initialises member variables
68 /// Creates the controls and sizers
69 void CreateControls();
71 ////@begin wxRichTextObjectPropertiesDialog event handler declarations
73 ////@end wxRichTextObjectPropertiesDialog event handler declarations
75 ////@begin wxRichTextObjectPropertiesDialog member function declarations
77 /// Retrieves bitmap resources
78 wxBitmap
GetBitmapResource( const wxString
& name
);
80 /// Retrieves icon resources
81 wxIcon
GetIconResource( const wxString
& name
);
82 ////@end wxRichTextObjectPropertiesDialog member function declarations
84 /// Should we show tooltips?
85 static bool ShowToolTips();
87 ////@begin wxRichTextObjectPropertiesDialog member variables
88 /// Control identifiers
90 ID_RICHTEXTOBJECTPROPERTIESDIALOG
= 10650
92 ////@end wxRichTextObjectPropertiesDialog member variables
96 // _RICHTEXTIMAGEDLG_H_