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)
 
void setCondFormatList (ScConditionalFormatList *pCondFormatList)
 
ScConditionalFormatListgetCondFormatList ()
 
void setTableProtected (bool b)
 
bool isTableProtected () const
 
bool isAsLink () const
 
bool isSkipAttrForEmptyCells () const
 
bool isCloneNotes () 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
 
ScConditionalFormatListmpCondFormatList
 
bool mbAsLink:1
 
bool mbSkipAttrForEmptyCells:1
 
bool mbCloneNotes:1
 
bool mbTableProtected:1
 

Detailed Description

Definition at line 46 of file clipcontext.hxx.

Constructor & Destructor Documentation

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

Definition at line 36 of file clipcontext.cxx.

References ADDNOTES, NONE, and NOTE.

sc::CopyFromClipContext::~CopyFromClipContext ( )
overridevirtual

Definition at line 53 of file clipcontext.cxx.

Member Function Documentation

ScDocument * sc::CopyFromClipContext::getClipDoc ( )
ScConditionalFormatList * sc::CopyFromClipContext::getCondFormatList ( )

Definition at line 307 of file clipcontext.cxx.

References mpCondFormatList.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

InsertDeleteFlags sc::CopyFromClipContext::getDeleteFlag ( ) const

Definition at line 111 of file clipcontext.cxx.

References mnDeleteFlag.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

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

Definition at line 98 of file clipcontext.hxx.

References mrDestDoc.

CopyFromClipContext::Range sc::CopyFromClipContext::getDestRange ( ) const
InsertDeleteFlags sc::CopyFromClipContext::getInsertFlag ( ) const
ScCellValue & sc::CopyFromClipContext::getSingleCell ( size_t  nColOffset)

Definition at line 124 of file clipcontext.cxx.

References assert(), and maSingleCells.

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

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

Definition at line 130 of file clipcontext.cxx.

References assert(), and maSingleCellAttrs.

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

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

Definition at line 290 of file clipcontext.cxx.

References assert(), and maSingleNotes.

Referenced by ScColumn::CopyOneCellFromClip().

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

Definition at line 278 of file clipcontext.cxx.

References assert(), and maSinglePatterns.

Referenced by ScColumn::CopyOneCellFromClip().

SCTAB sc::CopyFromClipContext::getTabEnd ( ) const
SCTAB sc::CopyFromClipContext::getTabStart ( ) const
ScDocument * sc::CopyFromClipContext::getUndoDoc ( )

Definition at line 91 of file clipcontext.cxx.

References mpRefUndoDoc.

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

bool sc::CopyFromClipContext::isAsLink ( ) const

Definition at line 322 of file clipcontext.cxx.

References mbAsLink.

Referenced by ScColumn::CopyFromClip().

bool sc::CopyFromClipContext::isCloneNotes ( ) const

Definition at line 332 of file clipcontext.cxx.

References mbCloneNotes.

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

Definition at line 327 of file clipcontext.cxx.

References mbSkipAttrForEmptyCells.

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

bool sc::CopyFromClipContext::isTableProtected ( ) const

Definition at line 317 of file clipcontext.cxx.

References mbTableProtected.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

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

Definition at line 302 of file clipcontext.cxx.

References mpCondFormatList.

Referenced by ScTable::DeleteBeforeCopyFromClip().

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

Definition at line 106 of file clipcontext.cxx.

References mnDeleteFlag.

Referenced by ScDocument::CopyFromClip().

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

void sc::CopyFromClipContext::setSingleCell ( const ScAddress rSrcPos,
const ScColumn rSrcCol 
)
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, and maSinglePatterns.

Referenced by ScDocument::CopyOneCellFromClip().

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

Definition at line 296 of file clipcontext.cxx.

References assert(), and maSingleNotes.

Referenced by ScDocument::CopyOneCellFromClip().

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

Definition at line 284 of file clipcontext.cxx.

References assert(), and maSinglePatterns.

Referenced by ScDocument::CopyOneCellFromClip().

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

Definition at line 312 of file clipcontext.cxx.

References mbTableProtected.

Referenced by ScTable::DeleteBeforeCopyFromClip().

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

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

Definition at line 61 of file clipcontext.hxx.

Referenced by getSingleCellAttr(), and setSingleCellColumnSize().

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

Definition at line 60 of file clipcontext.hxx.

Referenced by getSingleCell(), and setSingleCellColumnSize().

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

Definition at line 63 of file clipcontext.hxx.

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

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

Definition at line 66 of file clipcontext.hxx.

Referenced by isAsLink(), and setSingleCell().

bool sc::CopyFromClipContext::mbCloneNotes
private

Definition at line 68 of file clipcontext.hxx.

Referenced by isCloneNotes().

bool sc::CopyFromClipContext::mbSkipAttrForEmptyCells
private

Definition at line 67 of file clipcontext.hxx.

Referenced by isSkipAttrForEmptyCells().

bool sc::CopyFromClipContext::mbTableProtected
private

Definition at line 69 of file clipcontext.hxx.

Referenced by isTableProtected(), and setTableProtected().

InsertDeleteFlags sc::CopyFromClipContext::mnDeleteFlag
private

Definition at line 58 of file clipcontext.hxx.

Referenced by getDeleteFlag(), and setDeleteFlag().

SCCOL sc::CopyFromClipContext::mnDestCol1
private

Definition at line 48 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

SCCOL sc::CopyFromClipContext::mnDestCol2
private

Definition at line 49 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

SCROW sc::CopyFromClipContext::mnDestRow1
private

Definition at line 50 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

SCROW sc::CopyFromClipContext::mnDestRow2
private

Definition at line 51 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

InsertDeleteFlags sc::CopyFromClipContext::mnInsertFlag
private

Definition at line 57 of file clipcontext.hxx.

Referenced by getInsertFlag().

SCTAB sc::CopyFromClipContext::mnTabEnd
private

Definition at line 53 of file clipcontext.hxx.

Referenced by getTabEnd(), and setTabRange().

SCTAB sc::CopyFromClipContext::mnTabStart
private

Definition at line 52 of file clipcontext.hxx.

Referenced by getTabStart(), and setTabRange().

ScDocument* sc::CopyFromClipContext::mpClipDoc
private

Definition at line 56 of file clipcontext.hxx.

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

ScConditionalFormatList* sc::CopyFromClipContext::mpCondFormatList
private

Definition at line 65 of file clipcontext.hxx.

Referenced by getCondFormatList(), and setCondFormatList().

ScDocument* sc::CopyFromClipContext::mpRefUndoDoc
private

Definition at line 55 of file clipcontext.hxx.

Referenced by getUndoDoc().

ScDocument& sc::CopyFromClipContext::mrDestDoc
private

Definition at line 54 of file clipcontext.hxx.

Referenced by getDestDoc(), and setSingleCell().


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