xref: /haiku/src/apps/haikudepot/textview/ParagraphStyle.h (revision d7f7bf2d890f652e20b8cf34e9b4c6ae1d3e20eb)
1*d7f7bf2dSAxel Dörfler /*
2*d7f7bf2dSAxel Dörfler  * Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
3*d7f7bf2dSAxel Dörfler  * All rights reserved. Distributed under the terms of the MIT License.
4*d7f7bf2dSAxel Dörfler  */
5*d7f7bf2dSAxel Dörfler #ifndef PARAGRAPH_STYLE_H
6*d7f7bf2dSAxel Dörfler #define PARAGRAPH_STYLE_H
7*d7f7bf2dSAxel Dörfler 
8*d7f7bf2dSAxel Dörfler #include "ParagraphStyleData.h"
9*d7f7bf2dSAxel Dörfler 
10*d7f7bf2dSAxel Dörfler 
11*d7f7bf2dSAxel Dörfler class ParagraphStyle {
12*d7f7bf2dSAxel Dörfler public:
13*d7f7bf2dSAxel Dörfler 								ParagraphStyle();
14*d7f7bf2dSAxel Dörfler 								ParagraphStyle(const ParagraphStyle& other);
15*d7f7bf2dSAxel Dörfler 
16*d7f7bf2dSAxel Dörfler 			ParagraphStyle&		operator=(const ParagraphStyle& other);
17*d7f7bf2dSAxel Dörfler 			bool				operator==(const ParagraphStyle& other) const;
18*d7f7bf2dSAxel Dörfler 			bool				operator!=(const ParagraphStyle& other) const;
19*d7f7bf2dSAxel Dörfler 
20*d7f7bf2dSAxel Dörfler 			bool				SetAlignment(::Alignment alignment);
21*d7f7bf2dSAxel Dörfler 			::Alignment			Alignment() const;
22*d7f7bf2dSAxel Dörfler 
23*d7f7bf2dSAxel Dörfler 			bool				SetJustify(bool justify);
24*d7f7bf2dSAxel Dörfler 			bool				Justify() const;
25*d7f7bf2dSAxel Dörfler 
26*d7f7bf2dSAxel Dörfler 			bool				SetFirstLineInset(float inset);
27*d7f7bf2dSAxel Dörfler 			float				FirstLineInset() const;
28*d7f7bf2dSAxel Dörfler 
29*d7f7bf2dSAxel Dörfler 			bool				SetLineInset(float inset);
30*d7f7bf2dSAxel Dörfler 			float				LineInset() const;
31*d7f7bf2dSAxel Dörfler 
32*d7f7bf2dSAxel Dörfler 			bool				SetLineSpacing(float spacing);
33*d7f7bf2dSAxel Dörfler 			float				LineSpacing() const;
34*d7f7bf2dSAxel Dörfler 
35*d7f7bf2dSAxel Dörfler 			bool				SetSpacingTop(float spacing);
36*d7f7bf2dSAxel Dörfler 			float				SpacingTop() const;
37*d7f7bf2dSAxel Dörfler 
38*d7f7bf2dSAxel Dörfler 			bool				SetSpacingBottom(float spacing);
39*d7f7bf2dSAxel Dörfler 			float				SpacingBottom() const;
40*d7f7bf2dSAxel Dörfler 
41*d7f7bf2dSAxel Dörfler 			bool				SetBullet(const ::Bullet& bullet);
42*d7f7bf2dSAxel Dörfler 			const ::Bullet&		Bullet() const;
43*d7f7bf2dSAxel Dörfler 
44*d7f7bf2dSAxel Dörfler private:
45*d7f7bf2dSAxel Dörfler 			ParagraphStyleDataRef fStyleData;
46*d7f7bf2dSAxel Dörfler };
47*d7f7bf2dSAxel Dörfler 
48*d7f7bf2dSAxel Dörfler 
49*d7f7bf2dSAxel Dörfler #endif // PARAGRAPH_STYLE_H
50