| 981 | friend class AsciiDocExporter; |
| 982 | |
| 983 | void set_defaults() { |
| 984 | // NOTE: width and height are not set here |
| 985 | indent_ = 0; |
| 986 | font_align_ = FontAlign::left; |
| 987 | font_style_ = std::vector<FontStyle>{}; |
| 988 | font_color_ = font_background_color_ = Color::none; |
| 989 | padding_left_ = padding_right_ = 1; |
| 990 | padding_top_ = padding_bottom_ = 0; |
| 991 | border_top_ = border_bottom_ = "-"; |
| 992 | border_left_ = border_right_ = "|"; |
| 993 | show_border_left_ = show_border_right_ = show_border_top_ = show_border_bottom_ = true; |
| 994 | border_top_color_ = border_top_background_color_ = border_bottom_color_ = |
| 995 | border_bottom_background_color_ = border_left_color_ = border_left_background_color_ = |
| 996 | border_right_color_ = border_right_background_color_ = Color::none; |
| 997 | border_top_style_ = border_bottom_style_ = border_left_style_ = border_right_style_ = |
| 998 | std::vector<FontStyle>{}; |
| 999 | corner_top_left_ = corner_top_right_ = corner_bottom_left_ = corner_bottom_right_ = "+"; |
| 1000 | corner_top_left_color_ = corner_top_left_background_color_ = corner_top_right_color_ = |
| 1001 | corner_top_right_background_color_ = corner_bottom_left_color_ = |
| 1002 | corner_bottom_left_background_color_ = corner_bottom_right_color_ = |
| 1003 | corner_bottom_right_background_color_ = Color::none; |
| 1004 | corner_top_left_style_ = corner_top_right_style_ = corner_bottom_left_style_ = |
| 1005 | corner_bottom_right_style_ = std::vector<FontStyle>{}; |
| 1006 | column_separator_ = "|"; |
| 1007 | column_separator_color_ = column_separator_background_color_ = Color::none; |
| 1008 | multi_byte_characters_ = false; |
| 1009 | locale_ = ""; |
| 1010 | trim_mode_ = TrimMode::kBoth; |
| 1011 | show_row_separator_ = false; |
| 1012 | } |
| 1013 | |
| 1014 | // Helper methods for word wrapping: |
| 1015 | |