#include <Document.h>
|
| | Cell (void *node) |
| |
| Paragraph | addParagraph (const std::string &text="") |
| |
| void | addHtml (const std::string &html) |
| |
| Table | addTable (int rows, int cols) |
| | Nests a new table inside this cell.
|
| |
| void | addImage (gsl::czstring image_path, double scale=1.0, ImagePosition position=ImagePosition::Inline, long long xOffset=0, long long yOffset=0) |
| |
| Cell & | setVertAlign (VerticalAlignment align) |
| |
| Cell & | setShading (const std::string &hexColor) |
| |
| Cell & | setWidth (int twips, const std::string &type="dxa") |
| |
| Cell & | setBorders (const BorderSettings &top, const BorderSettings &bottom, const BorderSettings &left, const BorderSettings &right) |
| |
| Cell & | setBorders (const BorderSettings &all) |
| |
| int | gridSpan () const |
| |
| std::string | vMerge () const |
| |
| std::vector< BlockElement > | elements () const |
| |
| int | replaceText (const std::string &search, const std::string &replace) |
| |
| std::string | text () const |
| |
| std::vector< Paragraph > | paragraphs () const |
| |
◆ Cell()
| openword::Cell::Cell |
( |
void * |
node | ) |
|
|
explicit |
◆ addHtml()
| void openword::Cell::addHtml |
( |
const std::string & |
html | ) |
|
◆ addImage()
| void openword::Cell::addImage |
( |
gsl::czstring |
image_path, |
|
|
double |
scale = 1.0, |
|
|
ImagePosition |
position = ImagePosition::Inline, |
|
|
long long |
xOffset = 0, |
|
|
long long |
yOffset = 0 |
|
) |
| |
◆ addParagraph()
| Paragraph openword::Cell::addParagraph |
( |
const std::string & |
text = "" | ) |
|
◆ addTable()
| Table openword::Cell::addTable |
( |
int |
rows, |
|
|
int |
cols |
|
) |
| |
Nests a new table inside this cell.
- Parameters
-
| rows | Initial number of rows. |
| cols | Initial number of columns. |
- Returns
- The proxy object to the newly created nested table.
◆ elements()
| std::vector< BlockElement > openword::Cell::elements |
( |
| ) |
const |
◆ gridSpan()
| int openword::Cell::gridSpan |
( |
| ) |
const |
◆ paragraphs()
| std::vector< Paragraph > openword::Cell::paragraphs |
( |
| ) |
const |
◆ replaceText()
| int openword::Cell::replaceText |
( |
const std::string & |
search, |
|
|
const std::string & |
replace |
|
) |
| |
◆ setBorders() [1/2]
◆ setBorders() [2/2]
◆ setShading()
| Cell & openword::Cell::setShading |
( |
const std::string & |
hexColor | ) |
|
◆ setVertAlign()
◆ setWidth()
| Cell & openword::Cell::setWidth |
( |
int |
twips, |
|
|
const std::string & |
type = "dxa" |
|
) |
| |
◆ text()
| std::string openword::Cell::text |
( |
| ) |
const |
◆ vMerge()
| std::string openword::Cell::vMerge |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- /home/runner/work/OpenWord/OpenWord/include/openword/Document.h