repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / textview / ParagraphStyle.h
blob56456ef46987db083255e817ace01804f18177d1
1 /*
2 * Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef PARAGRAPH_STYLE_H
6 #define PARAGRAPH_STYLE_H
8 #include "ParagraphStyleData.h"
11 class ParagraphStyle {
12 public:
13 ParagraphStyle();
14 ParagraphStyle(const ParagraphStyle& other);
16 ParagraphStyle& operator=(const ParagraphStyle& other);
17 bool operator==(const ParagraphStyle& other) const;
18 bool operator!=(const ParagraphStyle& other) const;
20 bool SetAlignment(::Alignment alignment);
21 ::Alignment Alignment() const;
23 bool SetJustify(bool justify);
24 bool Justify() const;
26 bool SetFirstLineInset(float inset);
27 float FirstLineInset() const;
29 bool SetLineInset(float inset);
30 float LineInset() const;
32 bool SetLineSpacing(float spacing);
33 float LineSpacing() const;
35 bool SetSpacingTop(float spacing);
36 float SpacingTop() const;
38 bool SetSpacingBottom(float spacing);
39 float SpacingBottom() const;
41 bool SetBullet(const ::Bullet& bullet);
42 const ::Bullet& Bullet() const;
44 private:
45 ParagraphStyleDataRef fStyleData;
49 #endif // PARAGRAPH_STYLE_H