Home | Libraries | People | FAQ | More |
boost::document — This is the main class interface to be exposed to the library user.
// In header: <boost/document/document.hpp> class document { public: // construct/copy/destruct explicit document(const boost::filesystem::path &); ~document(); // private member functions std::shared_ptr< document_interface > init(); // public member functions void create_document(); void open_document(); void close_document(); void save_document(); void save_as_document(const boost::filesystem::path &); void export_document(boost::document_file_format::type = boost::document_file_format::PDF); boost::sheet insert_sheet(const std::string &); boost::sheet get_sheet(const std::string &); boost::sheet operator[](const std::string &); boost::sheet get_sheet(std::size_t); boost::sheet operator[](std::size_t); void delete_sheet(const std::string &); void delete_sheet(std::size_t); std::size_t sheet_count() const; };
document
public member functionsvoid create_document();creates document using Calc/Excel given in the file path.
void open_document();Opens document using Calc/Excel given in the file path.
void close_document();Closes document using Calc/Excel given in the file path.
void save_document();saves document using Calc/Excel given in the file path.
void save_as_document(const boost::filesystem::path & path);saves document at the path using Calc/Excel provided in first argument.
void export_document(boost::document_file_format::type format = boost::document_file_format::PDF);Exports document using Calc/Excel given in the file path and the file format. Default format is PDF.
boost::sheet insert_sheet(const std::string & str);Inserts a sheet in the document and returns the sheet instance.
boost::sheet get_sheet(const std::string & str);Gets a sheet instance of name str which can be manipulated as needed.
boost::sheet operator[](const std::string & str);
boost::sheet get_sheet(std::size_t index);Gets a sheet instance of that index which can be manipulated as needed.
boost::sheet operator[](std::size_t index);
void delete_sheet(const std::string & str);Deletes the sheet of name str.
void delete_sheet(std::size_t index);Deletes the sheet of name str.
std::size_t sheet_count() const;Gives you the number of sheets.