31#include <wx/filesys.h>
60 virtual int GetPPI()
const = 0;
61 virtual size_t GetOriginalWidth()
const = 0;
62 virtual size_t GetOriginalHeight()
const = 0;
64 void TallyImageLoadFailures(
int &dataUnavailable,
65 int &decodeFailed)
const override = 0;
96 const wxString
GetToolTip(wxPoint point)
const override = 0;
104 virtual wxCoord GetMaxWidth()
const = 0;
106 virtual void SetMaxWidth(wxCoord width) = 0;
107 virtual void SetMaxHeight(wxCoord height) = 0;
130 void Draw(wxDC *dc, wxDC *antialiassingDC)
override = 0;
143 wxString
ToRTF()
const override = 0;
145 wxString
ToTeX()
const override = 0;
146 wxString
ToXML()
const override = 0;
The definition of the base class of all cells the worksheet consists of.
This file declares the class Image.
A Type-Safe Fixed-Point Font Size.
Definition: FontAttribs.h:99
Definition: AnimationCell.h:46
A class that carries information about the type of a cell.
Definition: Cell.h:93
The base class all cell types the worksheet can consist of are derived from.
Definition: Cell.h:148
The configuration storage for the current worksheet.
Definition: Configuration.h:102
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
Manages an auto-scaling image.
Definition: Image.h:70
Definition: ImgCellBase.h:44
ImgCellBase & operator=(const ImgCellBase &)=delete
This class can be derived from wxAccessible which has no copy constructor.
const CellTypeInfo & GetInfo() override=0
Returns the information about this cell's type.
void DrawImageBackdrop(wxDC *dc, const wxRect &rect) const
Fills the rectangle an image is about to be drawn into with the backdrop for its transparent parts,...
Definition: ImgCellBase.cpp:47
virtual wxString GetExtension() const =0
Returns the file name extension that matches the image type.
static wxString UserScaleXMLFlags(double scale, bool fitToWindow)
The scale="..." attribute ToXML() writes for wxplot_scale, or nothing.
Definition: ImgCellBase.cpp:56
bool CopyToClipboard() const override=0
Copies the cell to the system's clipboard.
virtual wxSize ToImageFile(wxString filename)=0
Writes the image to a file.
void Recalculate(const AFontSize fontsize) const override=0
Recalculate the size of the cell and the difference between top and center.
wxCoord GetHeightList() const override=0
Returns the total height of this line.
wxString ToString() const override=0
Returns the cell's representation as a string.
virtual bool GetFitToWindow() const =0
Is this image shrunk to fit into the window? See Image::GetFitToWindow().
void Draw(wxDC *dc, wxDC *antialiassingDC) override=0
Pass 3 (Paint): Renders the cell using pre-calculated coordinates.
static wxString ImageToRTF(Image &image)
The RTF picture (a {\pict ...} group) that shows this image.
Definition: ImgCellBase.cpp:66
void ClearCache() override=0
Removes the cached scaled image from memory.
wxString ToXML() const override=0
Convert this cell to a representation fit for saving in a .wxmx file.
virtual void SetPPI(int ppi)=0
Set the image's resolution.
virtual void SetFitToWindow(bool fit)=0
Sets what GetFitToWindow() returns.
virtual bool CanExportSVG() const =0
Can this image be exported in SVG format?
bool CanPopOut() const override=0
Can this cell be popped out interactively in gnuplot?
virtual double GetUserScale() const =0
The factor this image is displayed larger or smaller with (wxplot_scale)
const wxString GetToolTip(wxPoint point) const override=0
Returns the ToolTip this cell provides at a given point.
wxString GnuplotSource() const override=0
The name of the file with gnuplot commands that created this file.
wxString ToMatlab() const override=0
Convert this cell to its Matlab representation.
wxString ToTeX() const override=0
Convert this cell to its LaTeX representation.
wxString ToRTF() const override=0
Returns the cell's representation as RTF.
virtual void SetUserScale(double scale)=0
Sets the factor GetUserScale() returns; values <= 0 are ignored.
std::unique_ptr< Cell > Copy(GroupCell *group) const override=0
Create a copy of this cell.