wxMaxima
Loading...
Searching...
No Matches
Data Structures | Public Member Functions
OutCommon Class Reference

A collection of common code used in rendering the cells to a non-default output, e.g. a graphics file. More...

#include <OutCommon.h>

Data Structures

class  DataObject
 An object that can be filled with output data in given format for the clipboard. More...
 

Public Member Functions

std::unique_ptr< DataObjectGetDataObject (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
 
ConfigurationGetConfiguration ()
 Get the configuration for the file/bitmap/... output.
 
const ConfigurationGetScreenConfig () 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.
 

Detailed Description

A collection of common code used in rendering the cells to a non-default output, e.g. a graphics file.

Constructor & Destructor Documentation

◆ 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
fullWidthmultiplied by scale is only used as maximum width during line breaking.
configurationThe configuration to build upon
filenameThe name of the output file
scaleThe scaling factor of the output document

The documentation for this class was generated from the following files: