wxMaxima
Loading...
Searching...
No Matches
WorksheetDocumentView.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) 2026 Gunter Königsmann <wxMaxima@physikbuch.de>
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// SPDX-License-Identifier: GPL-2.0+
21
40#ifndef WORKSHEETDOCUMENTVIEW_H
41#define WORKSHEETDOCUMENTVIEW_H
42
43class GroupCell;
44
51public:
52 virtual ~WorksheetDocumentView() = default;
54 virtual void NotifyRecalculation(GroupCell *start) = 0;
56 virtual void NotifyRedraw(GroupCell *start) = 0;
58 virtual void NotifyAdjustSizeNeeded() = 0;
60 virtual void NotifySavedStateChanged() = 0;
61};
62
63#endif // WORKSHEETDOCUMENTVIEW_H
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:87
The view notifications a WorksheetDocument emits when it edits itself.
Definition: WorksheetDocumentView.h:50
virtual void NotifyAdjustSizeNeeded()=0
The scrollable size will need re-adjusting once cell positions settle.
virtual void NotifySavedStateChanged()=0
The document's saved-state flipped; refresh the controls that show it.
virtual void NotifyRedraw(GroupCell *start)=0
Schedule a redraw of the document starting at start (null = all).
virtual void NotifyRecalculation(GroupCell *start)=0
Schedule a re-layout of the document starting at start (null = all).