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 ()
 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 ()
 
sal_uInt32 getSourceDocID () const
 
void setSourceDocID (sal_uInt32 nVal)
 

Public Attributes

ScRangeList maRanges
 
Direction meDirection
 
bool mbCutMode
 
sal_uInt32 mnSourceDocID
 
ScRangeListVector maProtectedChartRangesVector
 

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

Enumerator
Unspecified 
Column 
Row 

Definition at line 32 of file clipparam.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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, ScRangeList::empty(), ScRangeList::front(), i, maRanges, meDirection, Row, ScAddress::Row(), ScRangeList::size(), and Unspecified.

Referenced by ScDocument::CopyMultiRangeFromClip(), and ScViewFunc::PasteMultiRangesFromClip().

sal_uInt32 ScClipParam::getSourceDocID ( ) const
inline

Definition at line 65 of file clipparam.hxx.

Referenced by ScViewFunc::PasteFromClip().

ScRange ScClipParam::getWholeRange ( ) const
bool ScClipParam::isMultiRange ( ) const
void ScClipParam::setSourceDocID ( sal_uInt32  nVal)
inline

Definition at line 66 of file clipparam.hxx.

Referenced by ScViewFunc::CopyToClipSingleRange().

void ScClipParam::transpose ( )

Member Data Documentation

ScRangeListVector ScClipParam::maProtectedChartRangesVector

Definition at line 38 of file clipparam.hxx.

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

ScRangeList ScClipParam::maRanges
bool ScClipParam::mbCutMode
Direction ScClipParam::meDirection
sal_uInt32 ScClipParam::mnSourceDocID

Definition at line 37 of file clipparam.hxx.


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