LibreOffice Module sc (master) 1
undoconvert.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include <undoconvert.hxx>
11#include <globstr.hrc>
12#include <scresid.hxx>
13#include <undoutil.hxx>
14
15namespace sc {
16
18 ScSimpleUndo(pDocSh)
19{
20 maUndoValues.swap(rUndoValues);
21}
22
24{
25 return ScResId(STR_UNDO_FORMULA_TO_VALUE);
26}
27
29{
30 Execute();
31}
32
34{
35 Execute();
36}
37
39{
42
44
47 rDoc.BroadcastCells(maUndoValues.getRange(), SfxHintId::ScDataChanged);
48}
49
50}
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const ScDocument & GetDocument() const
Definition: docsh.hxx:220
void PostDataChanged()
Definition: docsh3.cxx:93
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
Definition: docsh3.cxx:101
void BroadcastCells(const ScRange &rRange, SfxHintId nHint, bool bBroadcastSingleBroadcasters=true)
Definition: documen7.cxx:158
void SwapNonEmpty(sc::TableValues &rValues)
Definition: document10.cxx:227
ScDocShell * pDocShell
Definition: undobase.hxx:50
static void MarkSimpleBlock(const ScDocShell *pDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ)
Mark Block (invisible - has to be repainted)
Definition: undoutil.cxx:31
Stores cell values for multiple tables.
Definition: cellvalues.hxx:86
void swap(SCTAB nTab, SCCOL nCol, CellValues &rColValue)
Swap the entire column.
Definition: cellvalues.cxx:322
const ScRange & getRange() const
Definition: cellvalues.cxx:317
virtual OUString GetComment() const override
Definition: undoconvert.cxx:23
virtual void Redo() override
Definition: undoconvert.cxx:33
virtual void Undo() override
Definition: undoconvert.cxx:28
UndoFormulaToValue(ScDocShell *pDocSh, TableValues &rUndoValues)
Definition: undoconvert.cxx:17
TableValues maUndoValues
Definition: undoconvert.hxx:19
CAUTION! The following defines must be in the same namespace as the respective type.
OUString ScResId(TranslateId aId)
Definition: scdll.cxx:90