]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/richtext/richtextformatdlg.h
further revision (done by me)
[wxWidgets.git] / interface / richtext / richtextformatdlg.h
index 1ca12a751da288f04c8ab9d2c17db2a1502f096b..c5d00abc7aad1bd5c863dd3b88a16902da889189 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        richtext/richtextformatdlg.h
-// Purpose:     documentation for wxRichTextFormattingDialogFactory class
+// Purpose:     interface of wxRichTextFormattingDialogFactory
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
 // Licence:     wxWindows license
@@ -55,17 +55,17 @@ public:
     /**
         Enumerate all available page identifiers.
     */
-    virtual int GetPageId(int i);
+    virtual int GetPageId(int i) const;
 
     /**
         Gets the number of available page identifiers.
     */
-    virtual int GetPageIdCount();
+    virtual int GetPageIdCount() const;
 
     /**
         Gets the image index for the given page identifier.
     */
-    virtual int GetPageImage(int id);
+    virtual int GetPageImage(int id) const;
 
     /**
         Set the property sheet style, called at the start of
@@ -81,6 +81,7 @@ public:
 };
 
 
+
 /**
     @class wxRichTextFormattingDialog
     @headerfile richtextformatdlg.h wx/richtext/richtextformatdlg.h
@@ -111,7 +112,7 @@ public:
     @endcode
 
     @library{wxrichtext}
-    @category{cmndlg}
+    @category{richtext}
 */
 class wxRichTextFormattingDialog : public wxPropertySheetDialog
 {
@@ -168,7 +169,7 @@ public:
         Gets the attributes being edited.
     */
     const wxTextAttr GetAttributes();
-    wxTextAttr GetAttributes();
+    const wxTextAttr&  GetAttributes();
     //@}
 
     /**
@@ -195,7 +196,7 @@ public:
         Returns the image list associated with the dialog, used for example if showing
         the dialog as a toolbook.
     */
-    wxImageList* GetImageList();
+    wxImageList* GetImageList() const;
 
     /**
         Gets common attributes from the given range and calls SetAttributes. Attributes
@@ -207,12 +208,12 @@ public:
     /**
         Gets the associated style definition, if any.
     */
-    wxRichTextStyleDefinition* GetStyleDefinition();
+    wxRichTextStyleDefinition* GetStyleDefinition() const;
 
     /**
         Gets the associated style sheet, if any.
     */
-    wxRichTextStyleSheet* GetStyleSheet();
+    wxRichTextStyleSheet* GetStyleSheet() const;
 
     /**
         Sets the attributes to be edited.
@@ -249,3 +250,4 @@ public:
     */
     bool UpdateDisplay();
 };
+