LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Public Attributes | List of all members
ScClipParam Struct Reference

This struct stores general clipboard parameters associated with a ScDocument instance created in clipboard mode. More...

#include <clipparam.hxx>

Collaboration diagram for ScClipParam:
[legend]

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...
 

Detailed Description

This struct stores general clipboard parameters associated with a ScDocument instance created in clipboard mode.

Definition at line 30 of file clipparam.hxx.

Member Enumeration Documentation

◆ Direction

Enumerator
Unspecified 
Column 
Row 

Definition at line 32 of file clipparam.hxx.

Constructor & Destructor Documentation

◆ ScClipParam() [1/2]

ScClipParam::ScClipParam ( )

Definition at line 23 of file clipparam.cxx.

◆ ScClipParam() [2/2]

ScClipParam::ScClipParam ( const ScRange rRange,
bool  bCutMode 
)

Definition at line 30 of file clipparam.cxx.

References maRanges, and ScRangeList::push_back().

Member Function Documentation

◆ getPasteColSize()

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().

◆ getPasteRowSize()

SCROW ScClipParam::getPasteRowSize ( const ScDocument rSrcDoc,
bool  bIncludeFiltered 
)

◆ getSourceDocID()

sal_uInt32 ScClipParam::getSourceDocID ( ) const
inline

Definition at line 72 of file clipparam.hxx.

Referenced by ScViewFunc::PasteFromClip().

◆ getWholeRange()

ScRange ScClipParam::getWholeRange ( ) const

◆ isMultiRange()

bool ScClipParam::isMultiRange ( ) const

◆ isTransposed()

bool ScClipParam::isTransposed ( ) const
inline

Was this clip transposed?

Definition at line 78 of file clipparam.hxx.

Referenced by ScDrawLayer::CopyFromClip().

◆ setSourceDocID()

void ScClipParam::setSourceDocID ( sal_uInt32  nVal)
inline

Definition at line 73 of file clipparam.hxx.

Referenced by ScViewFunc::CopyToClipSingleRange().

◆ transpose()

void ScClipParam::transpose ( const ScDocument rSrcDoc,
bool  bIncludeFiltered,
bool  bIsMultiRangeRowFilteredTranspose 
)

Member Data Documentation

◆ maProtectedChartRangesVector

ScRangeListVector ScClipParam::maProtectedChartRangesVector

Definition at line 38 of file clipparam.hxx.

Referenced by ScViewFunc::CopyToClipSingleRange(), and ScViewFunc::PasteFromClip().

◆ maRanges

ScRangeList ScClipParam::maRanges

◆ mbCutMode

bool ScClipParam::mbCutMode

◆ mbTransposed

bool ScClipParam::mbTransposed = false

Was this clip transposed?

Definition at line 40 of file clipparam.hxx.

Referenced by transpose().

◆ meDirection

Direction ScClipParam::meDirection

◆ mnSourceDocID

sal_uInt32 ScClipParam::mnSourceDocID

Definition at line 37 of file clipparam.hxx.


The documentation for this struct was generated from the following files: