//
//  Created by Menno Lovink on 03/05/16.
//  Copyright © 2016 M2mobi. All rights reserved.
//

import UIKit

public struct ParagraphStyling: ItemStyling, TextColorStylingRule, LineHeightStylingRule, BaseFontStylingRule, ContentInsetStylingRule, BoldStylingRule, ItalicStylingRule, TextAlignmentStylingRule, LetterSpacingStylingRule, MinimumHeightStylingRule {

    public var parent: ItemStyling?

    public func isApplicableOn(_ markDownItem: MarkDownItem) -> Bool {

        return markDownItem is ParagraphMarkDownItem
    }

    public var baseFont: UIFont? = UIFont.systemFont(ofSize: 18)
    public var textColor: UIColor? = UIColor.black

    public var contentInsets: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 5, right: 0)

    public var lineHeight: CGFloat? = 4

    public var isBold = false
    public var isItalic = false

    public var textAlignment: TextAlignment = .left

    public var letterSpacing: CGFloat?

    public var minimumHeight: CGFloat?
    
    public init() {}
}
