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.
|
|
virtual | ~wxRichTextAction () |
|
bool | Do () |
| Performs the action.
|
|
bool | Undo () |
| Undoes the action.
|
|
void | UpdateAppearance (long caretPosition, bool sendUpdateEvent=false, wxArrayInt *optimizationLineCharPositions=NULL, wxArrayInt *optimizationLineYPositions=NULL, bool isDoCmd=true) |
| Updates the control appearance, optimizing if possible given information from the call to Layout.
|
|
void | ApplyParagraphs (const wxRichTextParagraphLayoutBox &fragment) |
| Replaces the buffer paragraphs with the given fragment.
|
|
wxRichTextParagraphLayoutBox & | GetNewParagraphs () |
| Returns the new fragments.
|
|
wxRichTextParagraphLayoutBox & | GetOldParagraphs () |
| Returns the old fragments.
|
|
wxRichTextAttr & | GetAttributes () |
| Returns the attributes, for single-object commands.
|
|
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.
|
|
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.
|
|
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.
|
|
void | MakeObject (wxRichTextObject *obj) |
| Makes an address from the given object.
|
|
void | CalculateRefreshOptimizations (wxArrayInt &optimizationLineCharPositions, wxArrayInt &optimizationLineYPositions) |
| Calculate arrays for refresh optimization.
|
|
void | SetPosition (long pos) |
| Sets the position used for e.g.
|
|
long | GetPosition () const |
| Returns the position used for e.g.
|
|
void | SetRange (const wxRichTextRange &range) |
| Sets the range for e.g.
|
|
const wxRichTextRange & | GetRange () const |
| Returns the range for e.g.
|
|
wxRichTextObjectAddress & | GetContainerAddress () |
| Returns the address (nested position) of the container within the buffer being manipulated.
|
|
const wxRichTextObjectAddress & | GetContainerAddress () const |
| Returns the address (nested position) of the container within the buffer being manipulated.
|
|
void | SetContainerAddress (const wxRichTextObjectAddress &address) |
| Sets the address (nested position) of the container within the buffer being manipulated.
|
|
void | SetContainerAddress (wxRichTextParagraphLayoutBox *container, wxRichTextObject *obj) |
| Sets the address (nested position) of the container within the buffer being manipulated.
|
|
wxRichTextParagraphLayoutBox * | GetContainer () const |
| Returns the container that this action refers to, using the container address and top-level buffer.
|
|
const wxString & | GetName () const |
| Returns the action name.
|
|
| wxObject () |
| Default ctor; initializes to NULL the internal reference data.
|
|
| wxObject (const wxObject &other) |
| Copy ctor.
|
|
virtual | ~wxObject () |
| Destructor.
|
|
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).
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object.
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class.
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj.
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone.
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer.
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data.
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public.
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined.
|
|
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.
|
|