blob: 47a2f2329cd95bb59ff0ec6f2aa01675643df84d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef SCTEXT_SHARED_H
#define SCTEXT_SHARED_H
#include <QList>
#include <QObject>
#include <QString>
#include <cassert>
//#include "text/paragraphlayout.h"
#include "text/frect.h"
#include "style.h"
#include "styles/charstyle.h"
#include "styles/paragraphstyle.h"
#include "styles/stylecontextproxy.h"
class SCRIBUS_API ScText_Shared : public QList<ScText*>
{
public:
ParagraphStyle defaultStyle;
StyleContextProxy pstyleContext;
uint refs;
uint len;
uint cursorPosition;
ParagraphStyle trailingStyle;
ScText_Shared(const StyleContext* pstyles);
ScText_Shared(const ScText_Shared& other);
ScText_Shared& operator= (const ScText_Shared& other);
~ScText_Shared();
void clear();
/**
A char's stylecontext is the containing paragraph's style,
This routines makes sure that all charstyles look for defaults
in the parstyle first.
*/
void replaceCharStyleContextInParagraph(int pos, const StyleContext* newContext);
};
#endif /*SCTEXT_SHARED_H*/
|