]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/richtext/richtextformatdlg.h
Add wxNavigationEnabled<> helper for implementing TAB navigation.
[wxWidgets.git] / interface / wx / richtext / richtextformatdlg.h
index fb430cc3ecc3f56ec67c2d2571e09f65b9364027..1dc42822364809bab747f6ec439808206b955cb1 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     interface of wxRichTextFormattingDialog*
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 /**
@@ -135,6 +135,10 @@ public:
             The pages to show.
         @param parent
             The dialog's parent.
+        @param title
+            The dialog's title.
+        @param id
+            The dialog's ID.
         @param pos
             The dialog's position.
         @param sz
@@ -142,10 +146,9 @@ public:
         @param style
             The dialog's window style.
     */
-    wxRichTextFormattingDialog(long flags, wxWindow* parent,
-                               const wxPoint& pos = wxDefaultPosition,
-                               const wxSize& sz = wxDefaultSize,
-                               long style = wxDEFAULT_DIALOG_STYLE);
+    wxRichTextFormattingDialog(long flags, wxWindow* parent, const wxString& title = "Formatting",
+                               wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
+                               const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
 
     /**
         Destructor.
@@ -156,17 +159,17 @@ public:
         Apply attributes to the given range, only changing attributes that
         need to be changed.
     */
-    bool ApplyStyle(wxRichTextCtrl* ctrl,
-                    const wxRichTextRange& range,
-                    int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_OPTIMIZE);
+    virtual bool ApplyStyle(wxRichTextCtrl* ctrl, const wxRichTextRange& range,
+                            int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_OPTIMIZE);
 
     /**
         Creation: see wxRichTextFormattingDialog() "the constructor" for
         details about the parameters.
     */
-    bool Create(long flags, wxWindow* parent, const wxString& title,
-                wxWindowID id, const wxPoint& pos = wxDefaultPosition,
-                const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
+    bool Create(long flags, wxWindow* parent,
+                const wxString& title = wxGetTranslation("Formatting"), wxWindowID id = wxID_ANY,
+                const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize,
+                long style = wxDEFAULT_DIALOG_STYLE);
 
     //@{
     /**