LibreOffice Module sc (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
sc::CopyFromClipContext Class Referencefinal

#include <clipcontext.hxx>

Inheritance diagram for sc::CopyFromClipContext:
[legend]
Collaboration diagram for sc::CopyFromClipContext:
[legend]

Classes

struct  Range
 

Public Member Functions

 CopyFromClipContext ()=delete
 
 CopyFromClipContext (ScDocument &rDoc, ScDocument *pRefUndoDoc, ScDocument *pClipDoc, InsertDeleteFlags nInsertFlag, bool bAsLink, bool bSkipAttrForEmptyCells)
 
virtual ~CopyFromClipContext () override
 
void setTabRange (SCTAB nStart, SCTAB nEnd)
 
SCTAB getTabStart () const
 
SCTAB getTabEnd () const
 
void setDestRange (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
 
Range getDestRange () const
 
ScDocumentgetUndoDoc ()
 
ScDocumentgetClipDoc ()
 
ScDocumentgetDestDoc ()
 
InsertDeleteFlags getInsertFlag () const
 
void setDeleteFlag (InsertDeleteFlags nFlag)
 
InsertDeleteFlags getDeleteFlag () const
 
void setSingleCellColumnSize (size_t nSize)
 Set the column size of a "single cell" row, which is used when copying a single row of cells in a clip doc and pasting it into multiple rows by replicating it. More...
 
ScCellValuegetSingleCell (size_t nColOffset)
 
sc::CellTextAttrgetSingleCellAttr (size_t nColOffset)
 
void setSingleCell (const ScAddress &rSrcPos, const ScColumn &rSrcCol)
 
const ScPatternAttrgetSingleCellPattern (size_t nColOffset) const
 
void setSingleCellPattern (size_t nColOffset, const ScPatternAttr *pAttr)
 
const ScPostItgetSingleCellNote (size_t nColOffset) const
 
void setSingleCellNote (size_t nColOffset, const ScPostIt *pNote)
 
std::shared_ptr< sc::Sparkline > const & getSingleSparkline (size_t nColOffset) const
 
void setSingleSparkline (size_t nColOffset, std::shared_ptr< sc::Sparkline > const &pSparkline)
 
void setCondFormatList (ScConditionalFormatList *pCondFormatList)
 
ScConditionalFormatListgetCondFormatList ()
 
void setTableProtected (bool b)
 
bool isTableProtected () const
 
bool isAsLink () const
 
bool isSkipEmptyCells () const
 Get the flag that indicates whether the "skip empty cells" paste option is selected. More...
 
bool isCloneNotes () const
 
bool isCloneSparklines () const
 
bool isDateCell (const ScColumn &rCol, SCROW nRow) const
 
- Public Member Functions inherited from sc::ClipContextBase
 ClipContextBase ()=delete
 
 ClipContextBase (const ClipContextBase &)=delete
 
const ClipContextBaseoperator= (const ClipContextBase &)=delete
 
 ClipContextBase (ScDocument &rDoc)
 
virtual ~ClipContextBase ()
 
ColumnBlockPositiongetBlockPosition (SCTAB nTab, SCCOL nCol)
 
ColumnBlockPositionSetgetBlockPositionSet ()
 

Private Attributes

SCCOL mnDestCol1
 
SCCOL mnDestCol2
 
SCROW mnDestRow1
 
SCROW mnDestRow2
 
SCTAB mnTabStart
 
SCTAB mnTabEnd
 
ScDocumentmrDestDoc
 
ScDocumentmpRefUndoDoc
 
ScDocumentmpClipDoc
 
InsertDeleteFlags mnInsertFlag
 
InsertDeleteFlags mnDeleteFlag
 
std::vector< ScCellValuemaSingleCells
 
std::vector< sc::CellTextAttrmaSingleCellAttrs
 
std::vector< const ScPatternAttr * > maSinglePatterns
 
std::vector< const ScPostIt * > maSingleNotes
 
std::vector< std::shared_ptr< sc::Sparkline > > maSingleSparkline
 
ScConditionalFormatListmpCondFormatList
 
bool mbAsLink:1
 
bool mbSkipEmptyCells:1
 
bool mbTableProtected:1
 

Detailed Description

Definition at line 46 of file clipcontext.hxx.

Constructor & Destructor Documentation

◆ CopyFromClipContext() [1/2]

sc::CopyFromClipContext::CopyFromClipContext ( )
delete

◆ CopyFromClipContext() [2/2]

sc::CopyFromClipContext::CopyFromClipContext ( ScDocument rDoc,
ScDocument pRefUndoDoc,
ScDocument pClipDoc,
InsertDeleteFlags  nInsertFlag,
bool  bAsLink,
bool  bSkipAttrForEmptyCells 
)

Definition at line 37 of file clipcontext.cxx.

References NONE.

◆ ~CopyFromClipContext()

sc::CopyFromClipContext::~CopyFromClipContext ( )
overridevirtual

Definition at line 53 of file clipcontext.cxx.

Member Function Documentation

◆ getClipDoc()

ScDocument * sc::CopyFromClipContext::getClipDoc ( )

◆ getCondFormatList()

ScConditionalFormatList * sc::CopyFromClipContext::getCondFormatList ( )

Definition at line 320 of file clipcontext.cxx.

References mpCondFormatList.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

◆ getDeleteFlag()

InsertDeleteFlags sc::CopyFromClipContext::getDeleteFlag ( ) const

Definition at line 111 of file clipcontext.cxx.

References mnDeleteFlag.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

◆ getDestDoc()

ScDocument * sc::CopyFromClipContext::getDestDoc ( )
inline

Definition at line 98 of file clipcontext.hxx.

◆ getDestRange()

CopyFromClipContext::Range sc::CopyFromClipContext::getDestRange ( ) const

◆ getInsertFlag()

InsertDeleteFlags sc::CopyFromClipContext::getInsertFlag ( ) const

◆ getSingleCell()

ScCellValue & sc::CopyFromClipContext::getSingleCell ( size_t  nColOffset)

Definition at line 125 of file clipcontext.cxx.

References maSingleCells.

Referenced by ScColumn::CopyOneCellFromClip(), and setSingleCell().

◆ getSingleCellAttr()

sc::CellTextAttr & sc::CopyFromClipContext::getSingleCellAttr ( size_t  nColOffset)

Definition at line 131 of file clipcontext.cxx.

References maSingleCellAttrs.

Referenced by ScColumn::CopyOneCellFromClip(), and setSingleCell().

◆ getSingleCellNote()

const ScPostIt * sc::CopyFromClipContext::getSingleCellNote ( size_t  nColOffset) const

Definition at line 291 of file clipcontext.cxx.

References maSingleNotes.

Referenced by ScColumn::CopyOneCellFromClip().

◆ getSingleCellPattern()

const ScPatternAttr * sc::CopyFromClipContext::getSingleCellPattern ( size_t  nColOffset) const

Definition at line 279 of file clipcontext.cxx.

References maSinglePatterns.

Referenced by ScColumn::CopyOneCellFromClip().

◆ getSingleSparkline()

std::shared_ptr< sc::Sparkline > const & sc::CopyFromClipContext::getSingleSparkline ( size_t  nColOffset) const

Definition at line 303 of file clipcontext.cxx.

References maSingleSparkline.

Referenced by ScColumn::duplicateSparkline().

◆ getTabEnd()

SCTAB sc::CopyFromClipContext::getTabEnd ( ) const

◆ getTabStart()

SCTAB sc::CopyFromClipContext::getTabStart ( ) const

◆ getUndoDoc()

ScDocument * sc::CopyFromClipContext::getUndoDoc ( )

Definition at line 91 of file clipcontext.cxx.

References mpRefUndoDoc.

Referenced by ScDocument::CopyBlockFromClip(), and ScDocument::CopyOneCellFromClip().

◆ isAsLink()

bool sc::CopyFromClipContext::isAsLink ( ) const

Definition at line 335 of file clipcontext.cxx.

References mbAsLink.

Referenced by ScColumn::CopyFromClip().

◆ isCloneNotes()

bool sc::CopyFromClipContext::isCloneNotes ( ) const

Definition at line 345 of file clipcontext.cxx.

References ADDNOTES, mnInsertFlag, and NOTE.

◆ isCloneSparklines()

bool sc::CopyFromClipContext::isCloneSparklines ( ) const

Definition at line 350 of file clipcontext.cxx.

References mnInsertFlag, and SPARKLINES.

◆ isDateCell()

bool sc::CopyFromClipContext::isDateCell ( const ScColumn rCol,
SCROW  nRow 
) const

◆ isSkipEmptyCells()

bool sc::CopyFromClipContext::isSkipEmptyCells ( ) const

Get the flag that indicates whether the "skip empty cells" paste option is selected.

When this option is selected, empty cells in the clipboard document will not overwrite the corresponding non-empty cells in the destination range.

Definition at line 340 of file clipcontext.cxx.

References mbSkipEmptyCells.

Referenced by ScColumn::CopyFromClip(), ScColumn::CopyOneCellFromClip(), and ScColumn::DeleteBeforeCopyFromClip().

◆ isTableProtected()

bool sc::CopyFromClipContext::isTableProtected ( ) const

Definition at line 330 of file clipcontext.cxx.

References mbTableProtected.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

◆ setCondFormatList()

void sc::CopyFromClipContext::setCondFormatList ( ScConditionalFormatList pCondFormatList)

Definition at line 315 of file clipcontext.cxx.

References mpCondFormatList.

Referenced by ScTable::DeleteBeforeCopyFromClip().

◆ setDeleteFlag()

void sc::CopyFromClipContext::setDeleteFlag ( InsertDeleteFlags  nFlag)

Definition at line 106 of file clipcontext.cxx.

References mnDeleteFlag.

Referenced by ScDocument::CopyFromClip().

◆ setDestRange()

void sc::CopyFromClipContext::setDestRange ( SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 
)

Definition at line 73 of file clipcontext.cxx.

References mnDestCol1, mnDestCol2, mnDestRow1, and mnDestRow2.

Referenced by ScDocument::CopyFromClip().

◆ setSingleCell()

void sc::CopyFromClipContext::setSingleCell ( const ScAddress rSrcPos,
const ScColumn rSrcCol 
)

◆ setSingleCellColumnSize()

void sc::CopyFromClipContext::setSingleCellColumnSize ( size_t  nSize)

Set the column size of a "single cell" row, which is used when copying a single row of cells in a clip doc and pasting it into multiple rows by replicating it.

Definition at line 116 of file clipcontext.cxx.

References maSingleCellAttrs, maSingleCells, maSingleNotes, maSinglePatterns, and maSingleSparkline.

Referenced by ScDocument::CopyOneCellFromClip().

◆ setSingleCellNote()

void sc::CopyFromClipContext::setSingleCellNote ( size_t  nColOffset,
const ScPostIt pNote 
)

Definition at line 297 of file clipcontext.cxx.

References maSingleNotes.

Referenced by ScDocument::CopyOneCellFromClip().

◆ setSingleCellPattern()

void sc::CopyFromClipContext::setSingleCellPattern ( size_t  nColOffset,
const ScPatternAttr pAttr 
)

Definition at line 285 of file clipcontext.cxx.

References maSinglePatterns.

Referenced by ScDocument::CopyOneCellFromClip().

◆ setSingleSparkline()

void sc::CopyFromClipContext::setSingleSparkline ( size_t  nColOffset,
std::shared_ptr< sc::Sparkline > const &  pSparkline 
)

Definition at line 309 of file clipcontext.cxx.

References maSingleSparkline.

Referenced by ScDocument::CopyOneCellFromClip().

◆ setTableProtected()

void sc::CopyFromClipContext::setTableProtected ( bool  b)

Definition at line 325 of file clipcontext.cxx.

References mbTableProtected.

Referenced by ScTable::DeleteBeforeCopyFromClip().

◆ setTabRange()

void sc::CopyFromClipContext::setTabRange ( SCTAB  nStart,
SCTAB  nEnd 
)

Definition at line 57 of file clipcontext.cxx.

References mnTabEnd, and mnTabStart.

Referenced by ScDocument::CopyFromClip(), and ScDocument::CopyMultiRangeFromClip().

Member Data Documentation

◆ maSingleCellAttrs

std::vector<sc::CellTextAttr> sc::CopyFromClipContext::maSingleCellAttrs
private

Definition at line 61 of file clipcontext.hxx.

Referenced by getSingleCellAttr(), and setSingleCellColumnSize().

◆ maSingleCells

std::vector<ScCellValue> sc::CopyFromClipContext::maSingleCells
private

Definition at line 60 of file clipcontext.hxx.

Referenced by getSingleCell(), and setSingleCellColumnSize().

◆ maSingleNotes

std::vector<const ScPostIt*> sc::CopyFromClipContext::maSingleNotes
private

Definition at line 63 of file clipcontext.hxx.

Referenced by getSingleCellNote(), setSingleCellColumnSize(), and setSingleCellNote().

◆ maSinglePatterns

std::vector<const ScPatternAttr*> sc::CopyFromClipContext::maSinglePatterns
private

◆ maSingleSparkline

std::vector<std::shared_ptr<sc::Sparkline> > sc::CopyFromClipContext::maSingleSparkline
private

Definition at line 64 of file clipcontext.hxx.

Referenced by getSingleSparkline(), setSingleCellColumnSize(), and setSingleSparkline().

◆ mbAsLink

bool sc::CopyFromClipContext::mbAsLink
private

Definition at line 67 of file clipcontext.hxx.

Referenced by isAsLink(), and setSingleCell().

◆ mbSkipEmptyCells

bool sc::CopyFromClipContext::mbSkipEmptyCells
private

Definition at line 68 of file clipcontext.hxx.

Referenced by isSkipEmptyCells().

◆ mbTableProtected

bool sc::CopyFromClipContext::mbTableProtected
private

Definition at line 69 of file clipcontext.hxx.

Referenced by isTableProtected(), and setTableProtected().

◆ mnDeleteFlag

InsertDeleteFlags sc::CopyFromClipContext::mnDeleteFlag
private

Definition at line 58 of file clipcontext.hxx.

Referenced by getDeleteFlag(), and setDeleteFlag().

◆ mnDestCol1

SCCOL sc::CopyFromClipContext::mnDestCol1
private

Definition at line 48 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

◆ mnDestCol2

SCCOL sc::CopyFromClipContext::mnDestCol2
private

Definition at line 49 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

◆ mnDestRow1

SCROW sc::CopyFromClipContext::mnDestRow1
private

Definition at line 50 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

◆ mnDestRow2

SCROW sc::CopyFromClipContext::mnDestRow2
private

Definition at line 51 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

◆ mnInsertFlag

InsertDeleteFlags sc::CopyFromClipContext::mnInsertFlag
private

Definition at line 57 of file clipcontext.hxx.

Referenced by getInsertFlag(), isCloneNotes(), and isCloneSparklines().

◆ mnTabEnd

SCTAB sc::CopyFromClipContext::mnTabEnd
private

Definition at line 53 of file clipcontext.hxx.

Referenced by getTabEnd(), and setTabRange().

◆ mnTabStart

SCTAB sc::CopyFromClipContext::mnTabStart
private

Definition at line 52 of file clipcontext.hxx.

Referenced by getTabStart(), and setTabRange().

◆ mpClipDoc

ScDocument* sc::CopyFromClipContext::mpClipDoc
private

Definition at line 56 of file clipcontext.hxx.

Referenced by getClipDoc(), isDateCell(), and setSingleCell().

◆ mpCondFormatList

ScConditionalFormatList* sc::CopyFromClipContext::mpCondFormatList
private

Definition at line 66 of file clipcontext.hxx.

Referenced by getCondFormatList(), and setCondFormatList().

◆ mpRefUndoDoc

ScDocument* sc::CopyFromClipContext::mpRefUndoDoc
private

Definition at line 55 of file clipcontext.hxx.

Referenced by getUndoDoc().

◆ mrDestDoc

ScDocument& sc::CopyFromClipContext::mrDestDoc
private

Definition at line 54 of file clipcontext.hxx.

Referenced by setSingleCell().


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