1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_SC_INC_DOCUMENTSTREAMACCESS_HXX
11 #define INCLUDED_SC_INC_DOCUMENTSTREAMACCESS_HXX
13 #include <rtl/ustring.hxx>
14 #include <boost/scoped_ptr.hpp>
22 struct DocumentStreamAccessImpl
;
25 * Provides methods to allow direct shifting of document content without
26 * broadcasting or shifting of broadcaster positions.
28 class DocumentStreamAccess
30 boost::scoped_ptr
<DocumentStreamAccessImpl
> mpImpl
;
32 DocumentStreamAccess();
35 DocumentStreamAccess( ScDocument
& rDoc
);
36 ~DocumentStreamAccess();
38 void setNumericCell( const ScAddress
& rPos
, double fVal
);
39 void setStringCell( const ScAddress
& rPos
, const OUString
& rStr
);
42 * Clear its internal state, and more importantly all the block position
43 * hints currently held.
48 * Pop the top row inside specified range, shift all the other rows up by
49 * one, then set the bottom row empty.
51 void shiftRangeUp( const ScRange
& rRange
);
54 * Top the bottom row inside specified range, shift all the other rows
55 * above downward by one by inserting an empty row at the top.
57 void shiftRangeDown( const ScRange
& rRange
);
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */