Added flags to SetStyle with specific object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ac03e0173b
commit
e059e1bb33
@ -686,7 +686,7 @@ public:
|
||||
/**
|
||||
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);
|
||||
|
||||
//@{
|
||||
/**
|
||||
|
@ -652,7 +652,7 @@ public:
|
||||
/**
|
||||
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);
|
||||
|
||||
//@{
|
||||
/**
|
||||
|
@ -3588,9 +3588,9 @@ bool wxRichTextCtrl::SetStyle(const wxRichTextRange& range, const wxRichTextAttr
|
||||
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:
|
||||
|
@ -144,11 +144,11 @@ bool wxRichTextFormattingDialog::ApplyStyle(wxRichTextCtrl* ctrl, const wxRichTe
|
||||
}
|
||||
|
||||
// Apply attributes to the object being edited, if any
|
||||
bool wxRichTextFormattingDialog::ApplyStyle(wxRichTextCtrl* ctrl, int WXUNUSED(flags))
|
||||
bool wxRichTextFormattingDialog::ApplyStyle(wxRichTextCtrl* ctrl, int flags)
|
||||
{
|
||||
if (GetObject())
|
||||
{
|
||||
ctrl->SetStyle(GetObject(), m_attributes);
|
||||
ctrl->SetStyle(GetObject(), m_attributes, flags);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user