richtextimagedlg.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/richtext/richtextimagedlg.h
  3. // Purpose:
  4. // Author: Mingquan Yang
  5. // Modified by: Julian Smart
  6. // Created: Wed 02 Jun 2010 11:27:23 CST
  7. // RCS-ID:
  8. // Copyright: (c) Mingquan Yang, Julian Smart
  9. // Licence: wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11. #include "wx/dialog.h"
  12. #ifndef _RICHTEXTIMAGEDLG_H_
  13. #define _RICHTEXTIMAGEDLG_H_
  14. /*!
  15. * Forward declarations
  16. */
  17. class WXDLLIMPEXP_FWD_CORE wxButton;
  18. class WXDLLIMPEXP_FWD_CORE wxComboBox;
  19. class WXDLLIMPEXP_FWD_CORE wxCheckBox;
  20. class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
  21. /*!
  22. * Includes
  23. */
  24. #include "wx/richtext/richtextbuffer.h"
  25. #include "wx/richtext/richtextformatdlg.h"
  26. /*!
  27. * Control identifiers
  28. */
  29. #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL
  30. #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE wxGetTranslation("Object Properties")
  31. #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME ID_RICHTEXTOBJECTPROPERTIESDIALOG
  32. #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE wxSize(400, 300)
  33. #define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION wxDefaultPosition
  34. /*!
  35. * wxRichTextObjectPropertiesDialog class declaration
  36. */
  37. class WXDLLIMPEXP_RICHTEXT wxRichTextObjectPropertiesDialog: public wxRichTextFormattingDialog
  38. {
  39. DECLARE_DYNAMIC_CLASS( wxRichTextObjectPropertiesDialog )
  40. DECLARE_EVENT_TABLE()
  41. public:
  42. /// Constructors
  43. wxRichTextObjectPropertiesDialog();
  44. 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 );
  45. /// Creation
  46. 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 );
  47. /// Destructor
  48. ~wxRichTextObjectPropertiesDialog();
  49. /// Initialises member variables
  50. void Init();
  51. /// Creates the controls and sizers
  52. void CreateControls();
  53. ////@begin wxRichTextObjectPropertiesDialog event handler declarations
  54. ////@end wxRichTextObjectPropertiesDialog event handler declarations
  55. ////@begin wxRichTextObjectPropertiesDialog member function declarations
  56. /// Retrieves bitmap resources
  57. wxBitmap GetBitmapResource( const wxString& name );
  58. /// Retrieves icon resources
  59. wxIcon GetIconResource( const wxString& name );
  60. ////@end wxRichTextObjectPropertiesDialog member function declarations
  61. /// Should we show tooltips?
  62. static bool ShowToolTips();
  63. ////@begin wxRichTextObjectPropertiesDialog member variables
  64. /// Control identifiers
  65. enum {
  66. ID_RICHTEXTOBJECTPROPERTIESDIALOG = 10650
  67. };
  68. ////@end wxRichTextObjectPropertiesDialog member variables
  69. };
  70. #endif
  71. // _RICHTEXTIMAGEDLG_H_