| 126 | } |
| 127 | |
| 128 | static unsigned int add_line_style2 (lay::LayoutViewBase *view, const std::string &name, const std::string &str) |
| 129 | { |
| 130 | lay::LineStyles styles (view->line_styles ()); |
| 131 | |
| 132 | lay::LineStyleInfo s; |
| 133 | s.from_string (str); |
| 134 | s.set_name (name); |
| 135 | unsigned int index = styles.add_style (s); |
| 136 | |
| 137 | view->set_line_styles (styles); |
| 138 | |
| 139 | return index; |
| 140 | } |
| 141 | |
| 142 | static std::string get_line_style (lay::LayoutViewBase *view, unsigned int index) |
| 143 | { |
nothing calls this directly
no test coverage detected