Back to index

scribus-ng  1.3.4.dfsg+svn20071115
sctext_shared.h
Go to the documentation of this file.
00001 #ifndef SCTEXT_SHARED_H
00002 #define SCTEXT_SHARED_H
00003 
00004 #include <qobject.h>
00005 #include <qstring.h>
00006 #include <qvaluevector.h>
00007 #include <qptrvector.h>
00008 #include <qptrlist.h>
00009 #include <cassert>
00010 
00011 //#include "text/paragraphlayout.h"
00012 #include "text/frect.h"
00013 #include "style.h"
00014 #include "styles/charstyle.h"
00015 #include "styles/paragraphstyle.h"
00016 #include "styles/stylecontextproxy.h"
00017 
00018 
00019 class SCRIBUS_API ScText_Shared : public QPtrList<ScText>
00020 {
00021 public:
00022        ParagraphStyle defaultStyle;
00023        StyleContextProxy pstyleContext;
00024        uint refs;
00025        uint len;
00026        ParagraphStyle trailingStyle;
00027        ScText_Shared(const StyleContext* pstyles);      
00028 
00029        ScText_Shared(const ScText_Shared& other);
00030 
00031        ScText_Shared& operator= (const ScText_Shared& other);
00032 
00033        ~ScText_Shared();
00034        
00040        void replaceCharStyleContextInParagraph(int pos, const StyleContext* newContext);
00041 };
00042 
00043 #endif /*SCTEXT_SHARED_H*/