Implements a part of a command.
- See also
- wxRichTextCommand
|
| wxRichTextAction (wxRichTextCommand *cmd, const wxString &name, wxRichTextCommandId id, wxRichTextBuffer *buffer, wxRichTextParagraphLayoutBox *container, wxRichTextCtrl *ctrl, bool ignoreFirstTime=false) |
| Constructor. More...
|
|
virtual | ~wxRichTextAction () |
|
bool | Do () |
| Performs the action. More...
|
|
bool | Undo () |
| Undoes the action. More...
|
|
void | UpdateAppearance (long caretPosition, bool sendUpdateEvent=false, const wxRect &oldFloatRect=wxRect(), wxArrayInt *optimizationLineCharPositions=NULL, wxArrayInt *optimizationLineYPositions=NULL, bool isDoCmd=true) |
| Updates the control appearance, optimizing if possible given information from the call to Layout. More...
|
|
void | ApplyParagraphs (const wxRichTextParagraphLayoutBox &fragment) |
| Replaces the buffer paragraphs with the given fragment. More...
|
|
wxRichTextParagraphLayoutBox & | GetNewParagraphs () |
| Returns the new fragments. More...
|
|
wxRichTextParagraphLayoutBox & | GetOldParagraphs () |
| Returns the old fragments. More...
|
|
wxRichTextAttr & | GetAttributes () |
| Returns the attributes, for single-object commands. More...
|
|
wxRichTextObject * | GetObject () const |
| Returns the object to replace the one at the position defined by the container address and the action's range start position. More...
|
|
void | StoreObject (wxRichTextObject *obj) |
| Stores the object to replace the one at the position defined by the container address without making an address for it. More...
|
|
void | SetObject (wxRichTextObject *obj) |
| Sets the object to replace the one at the position defined by the container address and the action's range start position. More...
|
|
void | MakeObject (wxRichTextObject *obj) |
| Makes an address from the given object. More...
|
|
void | SetOldAndNewObjects (wxRichTextObject *oldObj, wxRichTextObject *newObj) |
| Sets the existing and new objects, for use with wxRICHTEXT_CHANGE_OBJECT. More...
|
|
void | CalculateRefreshOptimizations (wxArrayInt &optimizationLineCharPositions, wxArrayInt &optimizationLineYPositions, wxRect &oldFloatRect) |
| Calculate arrays for refresh optimization. More...
|
|
void | SetPosition (long pos) |
| Sets the position used for e.g. More...
|
|
long | GetPosition () const |
| Returns the position used for e.g. More...
|
|
void | SetRange (const wxRichTextRange &range) |
| Sets the range for e.g. More...
|
|
const wxRichTextRange & | GetRange () const |
| Returns the range for e.g. More...
|
|
wxRichTextObjectAddress & | GetContainerAddress () |
| Returns the address (nested position) of the container within the buffer being manipulated. More...
|
|
const wxRichTextObjectAddress & | GetContainerAddress () const |
| Returns the address (nested position) of the container within the buffer being manipulated. More...
|
|
void | SetContainerAddress (const wxRichTextObjectAddress &address) |
| Sets the address (nested position) of the container within the buffer being manipulated. More...
|
|
void | SetContainerAddress (wxRichTextParagraphLayoutBox *container, wxRichTextObject *obj) |
| Sets the address (nested position) of the container within the buffer being manipulated. More...
|
|
wxRichTextParagraphLayoutBox * | GetContainer () const |
| Returns the container that this action refers to, using the container address and top-level buffer. More...
|
|
const wxString & | GetName () const |
| Returns the action name. More...
|
|
void | SetIgnoreFirstTime (bool b) |
| Instructs the first Do() command should be skipped as it's already been applied. More...
|
|
bool | GetIgnoreFirstTime () const |
| Returns true if the first Do() command should be skipped as it's already been applied. More...
|
|
| wxObject () |
| Default ctor; initializes to NULL the internal reference data. More...
|
|
| wxObject (const wxObject &other) |
| Copy ctor. More...
|
|
virtual | ~wxObject () |
| Destructor. More...
|
|
virtual wxClassInfo * | GetClassInfo () const |
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class. More...
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj. More...
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone. More...
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer. More...
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public. More...
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
|
|
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0) |
| The new operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
|
|