|
LibreOffice Module sc (master) 1
|
This struct stores general clipboard parameters associated with a ScDocument instance created in clipboard mode. More...
#include <clipparam.hxx>
Public Types | |
| enum | Direction { Unspecified , Column , Row } |
Public Member Functions | |
| ScClipParam () | |
| ScClipParam (const ScRange &rRange, bool bCutMode) | |
| bool | isMultiRange () const |
| SCCOL | getPasteColSize () |
| Get the column size of a pasted range. More... | |
| SCROW | getPasteRowSize (const ScDocument &rSrcDoc, bool bIncludeFiltered) |
| Same as the above method, but returns the row size of the compressed range. More... | |
| ScRange | getWholeRange () const |
| Return a single range that encompasses all individual ranges. More... | |
| void | transpose (const ScDocument &rSrcDoc, bool bIncludeFiltered, bool bIsMultiRangeRowFilteredTranspose) |
| Transpose the clip parameters. More... | |
| sal_uInt32 | getSourceDocID () const |
| void | setSourceDocID (sal_uInt32 nVal) |
| bool | isTransposed () const |
| Was this clip transposed? More... | |
Public Attributes | |
| ScRangeList | maRanges |
| Direction | meDirection |
| bool | mbCutMode |
| sal_uInt32 | mnSourceDocID |
| ScRangeListVector | maProtectedChartRangesVector |
| bool | mbTransposed = false |
| Was this clip transposed? More... | |
This struct stores general clipboard parameters associated with a ScDocument instance created in clipboard mode.
Definition at line 30 of file clipparam.hxx.
| Enumerator | |
|---|---|
| Unspecified | |
| Column | |
| Row | |
Definition at line 32 of file clipparam.hxx.
| ScClipParam::ScClipParam | ( | ) |
Definition at line 23 of file clipparam.cxx.
| ScClipParam::ScClipParam | ( | const ScRange & | rRange, |
| bool | bCutMode | ||
| ) |
Definition at line 30 of file clipparam.cxx.
References maRanges, and ScRangeList::push_back().
| SCCOL ScClipParam::getPasteColSize | ( | ) |
Get the column size of a pasted range.
Note that when the range is non-contiguous, we first compress all individual ranges into a single range, and the size of that compressed range is returned.
Definition at line 43 of file clipparam.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), Column, ScRangeList::empty(), ScRangeList::front(), i, maRanges, meDirection, Row, ScRangeList::size(), and Unspecified.
Referenced by ScDocument::CopyMultiRangeFromClip(), and ScViewFunc::PasteMultiRangesFromClip().
| SCROW ScClipParam::getPasteRowSize | ( | const ScDocument & | rSrcDoc, |
| bool | bIncludeFiltered | ||
| ) |
Same as the above method, but returns the row size of the compressed range.
Definition at line 73 of file clipparam.cxx.
References ScRange::aEnd, ScRange::aStart, Column, ScDocument::CountNonFilteredRows(), ScRangeList::empty(), ScRangeList::front(), i, maRanges, meDirection, ScAddress::Row(), Row, ScRangeList::size(), ScAddress::Tab(), and Unspecified.
Referenced by ScDocument::CopyMultiRangeFromClip(), and ScViewFunc::PasteMultiRangesFromClip().
|
inline |
Definition at line 72 of file clipparam.hxx.
Referenced by ScViewFunc::PasteFromClip().
| ScRange ScClipParam::getWholeRange | ( | ) | const |
Return a single range that encompasses all individual ranges.
Definition at line 109 of file clipparam.cxx.
References ScRangeList::Combine(), and maRanges.
Referenced by ScDocument::CopyFromClip(), ScTable::CopyOneCellFromClip(), ScDocument::CopyOneCellFromClip(), ScColumn::CopyOneCellFromClip(), ScDocument::CopyToClip(), ScColumn::DeleteBeforeCopyFromClip(), ScTable::DeleteBeforeCopyFromClip(), ScViewFunc::PasteFromClipToMultiRanges(), ScViewData::SelectionForbidsPaste(), sc::CopyFromClipContext::setSingleCell(), and ScDocument::TransposeClip().
| bool ScClipParam::isMultiRange | ( | ) | const |
Definition at line 38 of file clipparam.cxx.
References maRanges, and ScRangeList::size().
Referenced by ScImportExport::Doc2Text(), ScViewFunc::PasteFromClip(), ScClipUtil::PasteFromClipboard(), and ScDocument::TransposeClip().
|
inline |
Was this clip transposed?
Definition at line 78 of file clipparam.hxx.
Referenced by ScDrawLayer::CopyFromClip().
|
inline |
Definition at line 73 of file clipparam.hxx.
Referenced by ScViewFunc::CopyToClipSingleRange().
| void ScClipParam::transpose | ( | const ScDocument & | rSrcDoc, |
| bool | bIncludeFiltered, | ||
| bool | bIsMultiRangeRowFilteredTranspose | ||
| ) |
Transpose the clip parameters.
Filtered rows are removed from parameters.
Definition at line 114 of file clipparam.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), Column, ScDocument::CountNonFilteredRows(), ScRangeList::empty(), ScRangeList::front(), i, maRanges, mbTransposed, meDirection, n, ScRangeList::push_back(), ScAddress::Row(), Row, ScRangeList::size(), ScAddress::Tab(), and Unspecified.
Referenced by ScDocument::TransposeClip().
| ScRangeListVector ScClipParam::maProtectedChartRangesVector |
Definition at line 38 of file clipparam.hxx.
Referenced by ScViewFunc::CopyToClipSingleRange(), and ScViewFunc::PasteFromClip().
| ScRangeList ScClipParam::maRanges |
Definition at line 34 of file clipparam.hxx.
Referenced by ScDocument::CopyMultiRangeFromClip(), ScDocument::CopyTabToClip(), ScDocument::CopyToClip(), ScViewFunc::CopyToClipMultiRange(), ScViewFunc::CopyToClipSingleRange(), ScDocument::GetClipArea(), ScDocument::GetClipStart(), getPasteColSize(), getPasteRowSize(), getWholeRange(), ScDocument::HasClipFilteredRows(), isMultiRange(), ScViewFunc::MoveTable(), ScClipUtil::PasteFromClipboard(), ScClipParam(), ScDocument::SetClipArea(), ScDocShell::TransferTab(), transpose(), ScDocument::TransposeClip(), ScGridWindow::UpdateCopySourceOverlay(), and ScDocument::UpdateTranspose().
| bool ScClipParam::mbCutMode |
Definition at line 36 of file clipparam.hxx.
Referenced by ScDocument::CopyBlockFromClip(), ScDocument::CopyFromClip(), ScDocument::CopyMultiRangeFromClip(), ScDocument::CopyOneCellFromClip(), ScDocument::CopyTabToClip(), ScViewFunc::CopyToClipMultiRange(), ScDocument::IsCutMode(), ScViewFunc::PasteFromClipToMultiRanges(), ScDocument::SetClipArea(), ScDocument::SetCutMode(), ScDocument::TransposeClip(), and ScDocument::UpdateReference().
| bool ScClipParam::mbTransposed = false |
| Direction ScClipParam::meDirection |
Definition at line 35 of file clipparam.hxx.
Referenced by ScDocument::CopyMultiRangeFromClip(), ScViewFunc::CopyToClipMultiRange(), getPasteColSize(), getPasteRowSize(), transpose(), and ScDocument::TransposeClip().
| sal_uInt32 ScClipParam::mnSourceDocID |
Definition at line 37 of file clipparam.hxx.