wxMaxima
Loading...
Searching...
No Matches
ProductCell.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// (C) 2014-2018 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
30#ifndef PRODUCTCELL_H
31#define PRODUCTCELL_H
32
33#include "SumCell.h"
34
35//cppcheck-suppress ctuOneDefinitionRuleViolation
36class ProductCell final : public SumCell
37{
38public:
39 ProductCell(GroupCell *group, Configuration *config,
40 std::unique_ptr<Cell> &&under, std::unique_ptr<Cell> &&over,
41 std::unique_ptr<Cell> &&base);
42 ProductCell(GroupCell *group, const ProductCell &cell);
43 std::unique_ptr<Cell> Copy(GroupCell *group) const override;
44 const CellTypeInfo &GetInfo() override;
45
46protected:
48 virtual const wxString GetMaximaCommandName() const override;
50 virtual const wxString GetMatlabCommandName() const override;
52 virtual const wxString GetLaTeXCommandName() const override;
54 virtual const wxString GetUnicodeSymbol() const override;
56 virtual const wxString GetSvgSymbolData() const override;
58 virtual const wxString GetXMLType() const override;
60 virtual const wxSize GetSymbolSize() const override;
61private:
62 const static wxString m_svgProdSign;
63};
64
65#endif // PRODUCTCELL_H
This file declares the class SumCell.
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:85
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:74
Definition: ProductCell.h:37
virtual const wxString GetMatlabCommandName() const override
What matlab command name corresponds to this cell?
Definition: ProductCell.cpp:67
virtual const wxString GetXMLType() const override
Returns the type our cell has when saving it to .wxmx.
Definition: ProductCell.cpp:82
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
virtual const wxString GetSvgSymbolData() const override
Returns the data that creates our SVG symbol.
Definition: ProductCell.cpp:61
virtual const wxString GetLaTeXCommandName() const override
What LaTeX command name corresponds to this cell?
Definition: ProductCell.cpp:72
virtual const wxString GetMaximaCommandName() const override
What maxima command name corresponds to this cell?
Definition: ProductCell.cpp:53
virtual const wxSize GetSymbolSize() const override
How big do we want our svg symbol to be?
Definition: ProductCell.cpp:90
virtual const wxString GetUnicodeSymbol() const override
What unicode symbol name corresponds to this cell?
Definition: ProductCell.cpp:77
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
Definition: SumCell.h:42