A collection of common code used in rendering the cells to a non-default output, e.g. a graphics file.
More...
#include <OutCommon.h>
|
class | DataObject |
| An object that can be filled with output data in given format for the clipboard. More...
|
|
|
std::unique_ptr< DataObject > | GetDataObject (const wxDataFormat &format) |
| Returns the representation that can be placed on the clipboard. Removes the file the data was saved in.
|
|
| OutCommon (const Configuration *const *configuration, const wxString &filename, int fullWidth, double scale) |
| Constructs the instance of the helper, temporarily overriding the configuration.
|
|
| OutCommon (const Configuration *const *configuration, int fullWidth, double scale) |
|
| OutCommon (const OutCommon &)=delete |
|
void | operator= (const OutCommon &)=delete |
|
int | Scale_Px (double px) const |
|
double | GetScale () const |
|
const wxString & | GetFilename () const |
|
const wxString & | GetTempFilename () const |
|
Configuration * | GetConfiguration () |
| Get the configuration for the file/bitmap/... output.
|
|
const Configuration & | GetScreenConfig () const |
| Get the configuration for the screen output.
|
|
wxSize | getPPI () const |
|
void | SetRecalculationContext (wxDC *context) |
| Sets the context for the configuration used in recalculating the cell dimensions.
|
|
bool | PrepareLayout (Cell *tree) |
| Prepares to render the tree to the output DC, and computes the size of the output.
|
|
wxSize | GetSize () const |
| Returns the size of the prepared output layout.
|
|
void | SetSize (wxSize size) |
| Sets the "default" size of the prepared layout.
|
|
wxSize | GetScaledSize () const |
| Returns the size of the prepared output layout multiplied by the scale factor.
|
|
wxSize | GetInvScaledSize () const |
| Returns the size of the prepared output layout divided by the scale factor.
|
|
bool | ToClipboard (const wxDataFormat &format) |
| Copies the representation of the list of cells that was passed to SetData() to the clipboard.
|
|
void | Draw (Cell *tree) |
| Recursively draws the cells.
|
|
A collection of common code used in rendering the cells to a non-default output, e.g. a graphics file.
◆ OutCommon()
OutCommon::OutCommon |
( |
const Configuration *const * |
configuration, |
|
|
const wxString & |
filename, |
|
|
int |
fullWidth, |
|
|
double |
scale |
|
) |
| |
|
explicit |
Constructs the instance of the helper, temporarily overriding the configuration.
- Parameters
-
fullWidth | multiplied by scale is only used as maximum width during line breaking. |
configuration | The configuration to build upon |
filename | The name of the output file |
scale | The scaling factor of the output document |
The documentation for this class was generated from the following files:
- src/graphical_io/OutCommon.h
- src/graphical_io/OutCommon.cpp