mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "IRunItem.h"
|
|
|
|
namespace ASCDocFileFormat
|
|
{
|
|
class Text: public IRunItem
|
|
{
|
|
public:
|
|
|
|
Text ();
|
|
Text (const wchar_t& wChar);
|
|
Text (const std::wstring& _text);
|
|
Text (const Text& _text);
|
|
virtual ~Text();
|
|
bool operator == ( const Text& _text );
|
|
bool operator != ( const Text& _text );
|
|
Text& operator = ( const Text& _text );
|
|
Text& operator += ( const Text& _text );
|
|
const wchar_t operator [] ( unsigned int index ) const;
|
|
virtual unsigned long GetTextSize() const;
|
|
virtual wstring GetAllText() const;
|
|
virtual vector<Prl> GetRunProperties() const;
|
|
virtual unsigned int PrlSize() const;
|
|
virtual IVirtualConstructor* New() const;
|
|
virtual IVirtualConstructor* Clone() const;
|
|
void SetText( const wchar_t* _text );
|
|
void SetString (const std::wstring& source);
|
|
void AddProperty( short sprm, void* operand );
|
|
void AddProperty( const Prl& prl );
|
|
void AddProperties( const vector<Prl>& prls );
|
|
void RemoveProperty( short sprm, void* operand );
|
|
void RemoveAllProperties();
|
|
|
|
protected:
|
|
|
|
std::wstring text;
|
|
std::list<Prl> properties;
|
|
};
|
|
} |