git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71268
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/**
Sets the attributes for a single object
*/
/**
Sets the attributes for a single object
*/
- virtual void SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr);
+ virtual void SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO);
/**
Sets the attributes for a single object
*/
/**
Sets the attributes for a single object
*/
- virtual void SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr);
+ virtual void SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO);
return GetFocusObject()->SetStyle(range.ToInternal(), style);
}
return GetFocusObject()->SetStyle(range.ToInternal(), style);
}
-void wxRichTextCtrl::SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr)
+void wxRichTextCtrl::SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr, int flags)
- GetFocusObject()->SetStyle(obj, textAttr);
+ GetFocusObject()->SetStyle(obj, textAttr, flags);
}
// extended style setting operation with flags including:
}
// extended style setting operation with flags including:
}
// Apply attributes to the object being edited, if any
}
// Apply attributes to the object being edited, if any
-bool wxRichTextFormattingDialog::ApplyStyle(wxRichTextCtrl* ctrl, int WXUNUSED(flags))
+bool wxRichTextFormattingDialog::ApplyStyle(wxRichTextCtrl* ctrl, int flags)
- ctrl->SetStyle(GetObject(), m_attributes);
+ ctrl->SetStyle(GetObject(), m_attributes, flags);