struct CCL::ITextModel

Overview

Text model interface. More…

#include <itextmodel.h>

struct ITextModel: public CCL::IUnknown
{
    // methods

    virtual void CCL_API updateLayout (ITextLayout& layout) const = 0;
    virtual void CCL_API copyText (String& text, int textIndex = 0, int length = -1) const = 0;
    virtual void CCL_API toDisplayString (String& string) const = 0;
    virtual void CCL_API toParamString (String& string) const = 0;
    DECLARE_STRINGID_MEMBER (kRequestLayoutUpdate);
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Text model interface.

Methods

virtual void CCL_API updateLayout (ITextLayout& layout) const = 0

Update text layout with formatting.

virtual void CCL_API copyText (String& text, int textIndex = 0, int length = -1) const = 0

Copy a range of text in a representation that is accepted as input for insertText.

virtual void CCL_API toDisplayString (String& string) const = 0

Get plain string representation for display (without formatting).

virtual void CCL_API toParamString (String& string) const = 0

Get string representation for use in a parameter.