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 45 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 37 of file clipcontext.cxx.

References ADDNOTES, NONE, and NOTE.

sc::CopyFromClipContext::~CopyFromClipContext ( )
overridevirtual

Definition at line 54 of file clipcontext.cxx.

Member Function Documentation

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

Definition at line 308 of file clipcontext.cxx.

References mpCondFormatList.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

InsertDeleteFlags sc::CopyFromClipContext::getDeleteFlag ( ) const

Definition at line 112 of file clipcontext.cxx.

References mnDeleteFlag.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

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

Definition at line 97 of file clipcontext.hxx.

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

Definition at line 125 of file clipcontext.cxx.

References maSingleCells.

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

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

Definition at line 131 of file clipcontext.cxx.

References maSingleCellAttrs.

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

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

Definition at line 291 of file clipcontext.cxx.

References maSingleNotes.

Referenced by ScColumn::CopyOneCellFromClip().

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

Definition at line 279 of file clipcontext.cxx.

References maSinglePatterns.

Referenced by ScColumn::CopyOneCellFromClip().

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

Definition at line 92 of file clipcontext.cxx.

References mpRefUndoDoc.

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

bool sc::CopyFromClipContext::isAsLink ( ) const

Definition at line 323 of file clipcontext.cxx.

References mbAsLink.

Referenced by ScColumn::CopyFromClip().

bool sc::CopyFromClipContext::isCloneNotes ( ) const

Definition at line 333 of file clipcontext.cxx.

References mbCloneNotes.

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

Definition at line 328 of file clipcontext.cxx.

References mbSkipAttrForEmptyCells.

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

bool sc::CopyFromClipContext::isTableProtected ( ) const

Definition at line 318 of file clipcontext.cxx.

References mbTableProtected.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

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

Definition at line 303 of file clipcontext.cxx.

References mpCondFormatList.

Referenced by ScTable::DeleteBeforeCopyFromClip().

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

Definition at line 107 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 74 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 117 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 297 of file clipcontext.cxx.

References maSingleNotes.

Referenced by ScDocument::CopyOneCellFromClip().

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

Definition at line 285 of file clipcontext.cxx.

References maSinglePatterns.

Referenced by ScDocument::CopyOneCellFromClip().

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

Definition at line 313 of file clipcontext.cxx.

References mbTableProtected.

Referenced by ScTable::DeleteBeforeCopyFromClip().

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

Definition at line 58 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 60 of file clipcontext.hxx.

Referenced by getSingleCellAttr(), and setSingleCellColumnSize().

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

Definition at line 59 of file clipcontext.hxx.

Referenced by getSingleCell(), and setSingleCellColumnSize().

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

Definition at line 62 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 65 of file clipcontext.hxx.

Referenced by isAsLink(), and setSingleCell().

bool sc::CopyFromClipContext::mbCloneNotes
private

Definition at line 67 of file clipcontext.hxx.

Referenced by isCloneNotes().

bool sc::CopyFromClipContext::mbSkipAttrForEmptyCells
private

Definition at line 66 of file clipcontext.hxx.

Referenced by isSkipAttrForEmptyCells().

bool sc::CopyFromClipContext::mbTableProtected
private

Definition at line 68 of file clipcontext.hxx.

Referenced by isTableProtected(), and setTableProtected().

InsertDeleteFlags sc::CopyFromClipContext::mnDeleteFlag
private

Definition at line 57 of file clipcontext.hxx.

Referenced by getDeleteFlag(), and setDeleteFlag().

SCCOL sc::CopyFromClipContext::mnDestCol1
private

Definition at line 47 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

SCCOL sc::CopyFromClipContext::mnDestCol2
private

Definition at line 48 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

SCROW sc::CopyFromClipContext::mnDestRow1
private

Definition at line 49 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

SCROW sc::CopyFromClipContext::mnDestRow2
private

Definition at line 50 of file clipcontext.hxx.

Referenced by getDestRange(), and setDestRange().

InsertDeleteFlags sc::CopyFromClipContext::mnInsertFlag
private

Definition at line 56 of file clipcontext.hxx.

Referenced by getInsertFlag().

SCTAB sc::CopyFromClipContext::mnTabEnd
private

Definition at line 52 of file clipcontext.hxx.

Referenced by getTabEnd(), and setTabRange().

SCTAB sc::CopyFromClipContext::mnTabStart
private

Definition at line 51 of file clipcontext.hxx.

Referenced by getTabStart(), and setTabRange().

ScDocument* sc::CopyFromClipContext::mpClipDoc
private

Definition at line 55 of file clipcontext.hxx.

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

ScConditionalFormatList* sc::CopyFromClipContext::mpCondFormatList
private

Definition at line 64 of file clipcontext.hxx.

Referenced by getCondFormatList(), and setCondFormatList().

ScDocument* sc::CopyFromClipContext::mpRefUndoDoc
private

Definition at line 54 of file clipcontext.hxx.

Referenced by getUndoDoc().

ScDocument& sc::CopyFromClipContext::mrDestDoc
private

Definition at line 53 of file clipcontext.hxx.

Referenced by setSingleCell().


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