wxMaxima
Loading...
Searching...
No Matches
SetCell.h
Go to the documentation of this file.
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2004-2015 Andrej Vodopivec <andrej.vodopivec@gmail.com>
4// Copyright (C) 2014-2016 Gunter Königsmann <wxMaxima@physikbuch.de>
5//
6// This program is free software; you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 2 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20//
21// SPDX-License-Identifier: GPL-2.0+
22
29#ifndef SETCELL_H
30#define SETCELL_H
31
32#include "Cell.h"
33#include "ListCell.h"
34#include "TextCell.h"
35
46class SetCell final : public ListCell
47{
48public:
51 std::unique_ptr<Cell> &&inner);
52 SetCell(GroupCell *group, const SetCell &cell);
53 std::unique_ptr<Cell> Copy(GroupCell *group) const override;
54 const CellTypeInfo &GetInfo() override;
55
56 void Draw(wxDC *dc, wxDC *antialiassingDC) override;
57
58 wxString ToMatlab() const override;
59 wxString ToString() const override;
60 wxString ToTeX() const override;
61 wxString ToXML() const override;
62};
63
64#endif // SETCELL_H
The definition of the base class of all cells the worksheet consists of.
This file declares the class ListCell.
int group
Neighbouring sections of the same group aren't separated.
Definition: ToolBarSections.cpp:45
A class that carries information about the type of a cell.
Definition: Cell.h:93
The configuration storage for the current worksheet.
Definition: Configuration.h:101
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
The class that represents parenthesis that are wrapped around text.
Definition: ListCell.h:46
The class that represents parenthesis that are wrapped around text.
Definition: SetCell.h:47
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: SetCell.cpp:118
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
wxString ToString() const override
Returns the cell's representation as a string.
Definition: SetCell.cpp:101
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: SetCell.cpp:111
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: SetCell.cpp:138
void Draw(wxDC *dc, wxDC *antialiassingDC) override
Pass 3 (Paint): Renders the cell using pre-calculated coordinates.
Definition: SetCell.cpp:50
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.