LibreOffice Module sc (master) 1
clipparam.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include "rangelst.hxx"
23#include "charthelper.hxx"
24#include "document.hxx"
25
31{
32 enum Direction { Unspecified, Column, Row };
33
37 sal_uInt32 mnSourceDocID;
40 bool mbTransposed = false;
41
43 ScClipParam(const ScRange& rRange, bool bCutMode);
44
45 bool isMultiRange() const;
46
52 SCCOL getPasteColSize();
53
58 SCROW getPasteRowSize(const ScDocument& rSrcDoc, bool bIncludeFiltered);
59
63 ScRange getWholeRange() const;
64
69 void transpose(const ScDocument& rSrcDoc, bool bIncludeFiltered,
70 bool bIsMultiRangeRowFilteredTranspose);
71
72 sal_uInt32 getSourceDocID() const { return mnSourceDocID; }
73 void setSourceDocID( sal_uInt32 nVal ) { mnSourceDocID = nVal; }
74
78 bool isTransposed() const { return mbTransposed; }
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::std::vector< ScRangeList > ScRangeListVector
Definition: charthelper.hxx:29
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
This struct stores general clipboard parameters associated with a ScDocument instance created in clip...
Definition: clipparam.hxx:31
void setSourceDocID(sal_uInt32 nVal)
Definition: clipparam.hxx:73
sal_uInt32 getSourceDocID() const
Definition: clipparam.hxx:72
ScRangeListVector maProtectedChartRangesVector
Definition: clipparam.hxx:38
Direction meDirection
Definition: clipparam.hxx:35
ScRangeList maRanges
Definition: clipparam.hxx:34
sal_uInt32 mnSourceDocID
Definition: clipparam.hxx:37
bool mbCutMode
Definition: clipparam.hxx:36
bool isTransposed() const
Was this clip transposed?
Definition: clipparam.hxx:78
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17