LibreOffice Module sc (master)  1
documentstreamaccess.hxx
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 #ifndef INCLUDED_SC_INC_DOCUMENTSTREAMACCESS_HXX
11 #define INCLUDED_SC_INC_DOCUMENTSTREAMACCESS_HXX
12 
13 #include <rtl/ustring.hxx>
14 #include <memory>
15 
16 class ScDocument;
17 class ScAddress;
18 class ScRange;
19 
20 namespace sc
21 {
22 struct DocumentStreamAccessImpl;
23 
29 {
30  std::unique_ptr<DocumentStreamAccessImpl> mpImpl;
31 
32 public:
35 
36  void setNumericCell(const ScAddress& rPos, double fVal);
37  void setStringCell(const ScAddress& rPos, const OUString& rStr);
38 
43  void reset();
44 
49  void shiftRangeUp(const ScRange& rRange);
50 
55  void shiftRangeDown(const ScRange& rRange);
56 };
57 }
58 
59 #endif
60 
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void reset()
Clear its internal state, and more importantly all the block position hints currently held...
std::unique_ptr< DocumentStreamAccessImpl > mpImpl
Provides methods to allow direct shifting of document content without broadcasting or shifting of bro...
DocumentStreamAccess(ScDocument &rDoc)
void shiftRangeUp(const ScRange &rRange)
Pop the top row inside specified range, shift all the other rows up by one, then set the bottom row e...
void shiftRangeDown(const ScRange &rRange)
Top the bottom row inside specified range, shift all the other rows above downward by one by insertin...
void setStringCell(const ScAddress &rPos, const OUString &rStr)
void setNumericCell(const ScAddress &rPos, double fVal)