  | 
  
    wxMaxima
    
   | 
 
 
 
 
Go to the documentation of this file.
   27 #include "Configuration.h" 
   29 #include <wx/dataobj.h> 
   48     wxMemoryBuffer m_databuf;
 
   51     explicit DataObject(
const wxDataFormat &format, 
const wxMemoryBuffer &data);
 
   52     bool GetDataHere(
void *buf) 
const override;
 
   53     size_t GetDataSize() 
const override;
 
   59   std::unique_ptr<DataObject> 
GetDataObject(
const wxDataFormat &format);
 
   71                      int fullWidth, 
double scale);
 
   76   void operator=(
const OutCommon&) = 
delete;
 
   78   int Scale_Px(
double px)
 const { 
return m_thisconfig.
Scale_Px(px); }
 
   79   double GetScale()
 const { 
return m_scale; }
 
   80   const wxString &GetFilename()
 const { 
return m_filename; }
 
   81   const wxString &GetTempFilename()
 const { 
return m_tempFilename; }
 
   86   wxSize getPPI()
 const { 
return m_ppi; }
 
   97   void SetSize(wxSize size) { m_size = size; }
 
  112   void GetMaxPoint(
Cell *tree, 
int *width, 
int *height) 
const;
 
  113   void Recalculate(
Cell *tree) 
const;
 
  115   void BreakLines(
Cell *tree) 
const;
 
  116   void BreakUpCells(
Cell *tree);
 
  119   wxString m_tempFilename;
 
  121   wxDC *m_recalculationDc = {};
 
  128   double m_scale = 1.0;
 
  130   wxSize m_size = wxDefaultSize;
 
  137 #endif  // OUTCOMMON_H 
  
void Draw(Cell *tree)
Recursively draws the cells.
Definition: OutCommon.cpp:192
 
Configuration & GetScreenConfig()
Get the configuration for the screen output.
Definition: OutCommon.h:85
 
wxSize GetInvScaledSize() const
Returns the size of the prepared output layout divided by the scale factor.
Definition: OutCommon.cpp:86
 
long Scale_Px(double px) const
Definition: Configuration.cpp:1272
 
bool ToClipboard(const wxDataFormat &format)
Definition: OutCommon.cpp:250
 
An object that can be filled with output data in given format for the clipboard.
Definition: OutCommon.h:46
 
@ temporary
This configuration is temporary and shouldn't redetect Maxima etc.
Definition: Configuration.h:116
 
OutCommon(Configuration **configuration, const wxString &filename, int fullWidth, double scale)
Definition: OutCommon.cpp:38
 
std::unique_ptr< DataObject > GetDataObject(const wxDataFormat &format)
Definition: OutCommon.cpp:263
 
void SetSize(wxSize size)
Sets the "default" size of the prepared layout.
Definition: OutCommon.h:97
 
void SetRecalculationContext(wxDC &context)
Sets the context for the configuration used in recalculating the cell dimensions.
Definition: OutCommon.h:89
 
wxSize GetScaledSize() const
Returns the size of the prepared output layout multiplied by the scale factor.
Definition: OutCommon.cpp:79
 
Definition: OutCommon.h:42
 
Definition: Configuration.h:83
 
wxSize GetSize() const
Returns the size of the prepared output layout.
Definition: OutCommon.h:95
 
bool PrepareLayout(Cell *tree)
Prepares to render the tree to the output DC, and computes the size of the output.
Definition: OutCommon.cpp:93
 
Configuration & GetConfiguration()
Get the configuration for the file/bitmap/... output.
Definition: OutCommon.h:83