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 7 8 #include "ParagraphStyleData.h" 9 10 11 class ParagraphStyle { 12 public: 13 ParagraphStyle(); 14 ParagraphStyle(const ParagraphStyle& other); 15 16 ParagraphStyle& operator=(const ParagraphStyle& other); 17 bool operator==(const ParagraphStyle& other) const; 18 bool operator!=(const ParagraphStyle& other) const; 19 20 bool SetAlignment(::Alignment alignment); 21 ::Alignment Alignment() const; 22 23 bool SetJustify(bool justify); 24 bool Justify() const; 25 26 bool SetFirstLineInset(float inset); 27 float FirstLineInset() const; 28 29 bool SetLineInset(float inset); 30 float LineInset() const; 31 32 bool SetLineSpacing(float spacing); 33 float LineSpacing() const; 34 35 bool SetSpacingTop(float spacing); 36 float SpacingTop() const; 37 38 bool SetSpacingBottom(float spacing); 39 float SpacingBottom() const; 40 41 bool SetBullet(const ::Bullet& bullet); 42 const ::Bullet& Bullet() const; 43 44 private: 45 ParagraphStyleDataRef fStyleData; 46 }; 47 48 49 #endif // PARAGRAPH_STYLE_H 50