//
//  XTFormattedOutputElement.h
//  TadsTerp
//
//  Created by Rune Berg on 10/07/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface XTFormattedOutputElement : NSObject

//TODO mv to impl?
typedef NS_ENUM(NSInteger, XTFormattedOutputElementType) {
    XTFormattedOutputElementRegularOutput,
    XTFormattedOutputElementRemoveTabsToStartOfLine,  //TODO ren ...RemoveWhitespace...
    XTFormattedOutputElementGameTitle
};

@property XTFormattedOutputElementType elementType;
@property NSAttributedString *attributedString;


+ (instancetype)regularOutputElement:(NSAttributedString *)attributedString;

+ (instancetype)removeTabsToStartOfLineElement;

+ (instancetype)gameTitleElement:(NSAttributedString *)attributedString;

- (BOOL)isRegularOutputElement;

- (BOOL)isRegularOutputElementWithString:(NSString *)str;

- (BOOL)isRemoveTabsToStartOfLineElement;

- (BOOL)isGameTitleElement;

@end
