$extrastylesheet
#include <scribo/core/document.hh>
Public Types | |
typedef Object< void > | category |
typedef document< L > | exact_t |
Public Member Functions | |
document (const char *filename) | |
document (const char *filename, const mln::image2d< mln::value::rgb8 > &input) | |
void | accept (const SerializeVisitor< E2 > &visitor) const |
const mln::image2d< bool > & | binary_image () const |
const mln::image2d< bool > & | binary_image_wo_seps () const |
const component_set< L > & | elements () const |
const char * | filename () const |
bool | has_elements () const |
bool | has_hline_seps () const |
bool | has_text () const |
bool | has_vline_seps () const |
bool | has_whitespace_seps () const |
mln::def::coord | height () const |
const mln::image2d< bool > & | hline_seps () const |
const component_set< L > & | hline_seps_comps () const |
const mln::image2d< value::rgb8 > & | image () const |
bool | is_open () const |
bool | is_valid () const |
const line_set< L > & | lines () const |
void | open () |
const paragraph_set< L > & | paragraphs () const |
void | set_binary_image (const mln::image2d< bool > &binary_image) |
void | set_binary_image_wo_seps (const mln::image2d< bool > &binary_image_wo_seps) |
void | set_elements (const component_set< L > &elements) |
void | set_filename (const char *name) |
void | set_hline_separators (const image2d< bool > &line_seps) |
void | set_hline_separators (const image2d< bool > &line_seps, const component_set< L > &hline_seps_comps) |
void | set_image (const mln::image2d< value::rgb8 > &image) |
void | set_paragraphs (const paragraph_set< L > &parset) |
void | set_vline_separators (const image2d< bool > &vline_seps) |
void | set_vline_separators (const image2d< bool > &vline_seps, const component_set< L > &vline_seps_comps) |
void | set_whitespace_separators (const image2d< bool > &whitespace_seps, const component_set< L > &whitespace_seps_comps) |
const mln::image2d< bool > & | vline_seps () const |
const component_set< L > & | vline_seps_comps () const |
const mln::image2d< bool > & | whitespace_seps () const |
const component_set< L > & | whitespace_seps_comps () const |
mln::def::coord | width () const |
Represent document data and structure.
Definition at line 90 of file document.hh.
|
inherited |
Allow this object to be serialized by visitor
.
bool scribo::document< L >::has_text | ( | ) | const |
Check whether this document contains text.
If it returns true, that document contains paragraphs, lines and text components.