Added pixel size capability to wxTextAttr and wxRichTextCtrl.

Fixed composite object positioning in centred and right-aligned
paragraphs.
Added field example to sample, and enabled pixel font size selection.
Added custom text and dimension scaling.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2012-05-20 12:25:22 +00:00
parent c564ca3c97
commit 32423dd824
20 changed files with 1421 additions and 525 deletions

View File

@@ -123,6 +123,8 @@ public:
class wxRichTextFormattingDialog : public wxPropertySheetDialog
{
public:
enum { Option_AllowPixelFontSize = 0x0001 };
/**
Default ctor.
*/
@@ -227,6 +229,23 @@ public:
*/
void SetAttributes(const wxTextAttr& attr);
/**
Sets the dialog options, determining what the interface presents to the user.
Currently the only option is Option_AllowPixelFontSize.
*/
void SetOptions(int options) { m_options = options; }
/**
Gets the dialog options, determining what the interface presents to the user.
Currently the only option is Option_AllowPixelFontSize.
*/
int GetOptions() const { return m_options; }
/**
Returns @true if the given option is present.
*/
bool HasOption(int option) const { return (m_options & option) != 0; }
/**
Sets the formatting factory object to be used for customization and page
creation.