2010-09-30 07:31:57 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/richtext/richtextimagedlg.h
|
2010-09-30 07:44:45 -04:00
|
|
|
// Purpose:
|
2010-09-30 07:31:57 -04:00
|
|
|
// Author: Mingquan Yang
|
2011-01-14 06:57:44 -05:00
|
|
|
// Modified by: Julian Smart
|
2010-09-30 07:31:57 -04:00
|
|
|
// Created: Wed 02 Jun 2010 11:27:23 CST
|
2010-09-30 07:44:45 -04:00
|
|
|
// RCS-ID:
|
2011-01-14 06:57:44 -05:00
|
|
|
// Copyright: (c) Mingquan Yang, Julian Smart
|
2010-09-30 07:31:57 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
|
|
|
#ifndef _RICHTEXTIMAGEDLG_H_
|
|
|
|
#define _RICHTEXTIMAGEDLG_H_
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxButton;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxComboBox;
|
2011-01-14 07:08:03 -05:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxCheckBox;
|
2010-09-30 07:31:57 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
|
|
|
|
2011-01-14 07:08:03 -05:00
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "wx/richtext/richtextbuffer.h"
|
|
|
|
#include "wx/richtext/richtextformatdlg.h"
|
|
|
|
|
2010-09-30 07:31:57 -04:00
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
2011-01-14 06:57:44 -05:00
|
|
|
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL
|
|
|
|
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE _("Object Properties")
|
|
|
|
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME ID_RICHTEXTOBJECTPROPERTIESDIALOG
|
|
|
|
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION wxDefaultPosition
|
2010-09-30 07:31:57 -04:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
2011-01-14 06:57:44 -05:00
|
|
|
* wxRichTextObjectPropertiesDialog class declaration
|
2010-09-30 07:31:57 -04:00
|
|
|
*/
|
|
|
|
|
2011-01-14 06:57:44 -05:00
|
|
|
class WXDLLIMPEXP_RICHTEXT wxRichTextObjectPropertiesDialog: public wxRichTextFormattingDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( wxRichTextObjectPropertiesDialog )
|
2010-09-30 07:31:57 -04:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
2011-01-14 06:57:44 -05:00
|
|
|
wxRichTextObjectPropertiesDialog();
|
|
|
|
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 );
|
2010-09-30 07:31:57 -04:00
|
|
|
|
|
|
|
/// Creation
|
2011-01-14 06:57:44 -05:00
|
|
|
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 );
|
2010-09-30 07:31:57 -04:00
|
|
|
|
|
|
|
/// Destructor
|
2011-01-14 06:57:44 -05:00
|
|
|
~wxRichTextObjectPropertiesDialog();
|
2010-09-30 07:31:57 -04:00
|
|
|
|
|
|
|
/// Initialises member variables
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
2011-01-14 06:57:44 -05:00
|
|
|
////@begin wxRichTextObjectPropertiesDialog event handler declarations
|
2010-09-30 07:31:57 -04:00
|
|
|
|
2011-01-14 06:57:44 -05:00
|
|
|
////@end wxRichTextObjectPropertiesDialog event handler declarations
|
2010-09-30 07:31:57 -04:00
|
|
|
|
2011-01-14 06:57:44 -05:00
|
|
|
////@begin wxRichTextObjectPropertiesDialog member function declarations
|
2010-09-30 07:31:57 -04:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
2011-01-14 06:57:44 -05:00
|
|
|
////@end wxRichTextObjectPropertiesDialog member function declarations
|
2010-09-30 07:31:57 -04:00
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2011-01-14 06:57:44 -05:00
|
|
|
////@begin wxRichTextObjectPropertiesDialog member variables
|
2010-09-30 07:31:57 -04:00
|
|
|
/// Control identifiers
|
|
|
|
enum {
|
2011-01-14 06:57:44 -05:00
|
|
|
ID_RICHTEXTOBJECTPROPERTIESDIALOG = 10650
|
2010-09-30 07:31:57 -04:00
|
|
|
};
|
2011-01-14 06:57:44 -05:00
|
|
|
////@end wxRichTextObjectPropertiesDialog member variables
|
2010-09-30 07:31:57 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _RICHTEXTIMAGEDLG_H_
|