LibreOffice Module sc (master)
1
|
#include <clipcontext.hxx>
Classes | |
struct | Range |
Private Attributes | |
SCCOL | mnDestCol1 |
SCCOL | mnDestCol2 |
SCROW | mnDestRow1 |
SCROW | mnDestRow2 |
SCTAB | mnTabStart |
SCTAB | mnTabEnd |
ScDocument & | mrDestDoc |
ScDocument * | mpRefUndoDoc |
ScDocument * | mpClipDoc |
InsertDeleteFlags | mnInsertFlag |
InsertDeleteFlags | mnDeleteFlag |
std::vector< ScCellValue > | maSingleCells |
std::vector< sc::CellTextAttr > | maSingleCellAttrs |
std::vector< const ScPatternAttr * > | maSinglePatterns |
std::vector< const ScPostIt * > | maSingleNotes |
ScConditionalFormatList * | mpCondFormatList |
bool | mbAsLink:1 |
bool | mbSkipAttrForEmptyCells:1 |
bool | mbCloneNotes:1 |
bool | mbTableProtected:1 |
Definition at line 46 of file clipcontext.hxx.
|
delete |
sc::CopyFromClipContext::CopyFromClipContext | ( | ScDocument & | rDoc, |
ScDocument * | pRefUndoDoc, | ||
ScDocument * | pClipDoc, | ||
InsertDeleteFlags | nInsertFlag, | ||
bool | bAsLink, | ||
bool | bSkipAttrForEmptyCells | ||
) |
Definition at line 36 of file clipcontext.cxx.
|
overridevirtual |
Definition at line 53 of file clipcontext.cxx.
ScDocument * sc::CopyFromClipContext::getClipDoc | ( | ) |
Definition at line 96 of file clipcontext.cxx.
References mpClipDoc.
Referenced by ScDocument::CopyBlockFromClip(), ScDocument::CopyNonFilteredFromClip(), ScColumn::CopyOneCellFromClip(), ScTable::CopyOneCellFromClip(), ScDocument::CopyOneCellFromClip(), ScColumn::DeleteBeforeCopyFromClip(), ScTable::DeleteBeforeCopyFromClip(), and ScDocument::DeleteBeforeCopyFromClip().
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().
|
inline |
Definition at line 98 of file clipcontext.hxx.
References mrDestDoc.
CopyFromClipContext::Range sc::CopyFromClipContext::getDestRange | ( | ) | const |
Definition at line 81 of file clipcontext.cxx.
References sc::CopyFromClipContext::Range::mnCol1, sc::CopyFromClipContext::Range::mnCol2, mnDestCol1, mnDestCol2, mnDestRow1, mnDestRow2, sc::CopyFromClipContext::Range::mnRow1, and sc::CopyFromClipContext::Range::mnRow2.
Referenced by ScColumn::DeleteBeforeCopyFromClip(), and ScTable::DeleteBeforeCopyFromClip().
InsertDeleteFlags sc::CopyFromClipContext::getInsertFlag | ( | ) | const |
Definition at line 101 of file clipcontext.cxx.
References mnInsertFlag.
Referenced by ScDocument::CopyBlockFromClip(), ScColumn::CopyFromClip(), ScTable::CopyFromClip(), ScColumn::CopyOneCellFromClip(), ScTable::CopyOneCellFromClip(), ScDocument::CopyOneCellFromClip(), and setSingleCell().
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 |
Definition at line 68 of file clipcontext.cxx.
References mnTabEnd.
Referenced by ScDocument::CopyBlockFromClip(), ScDocument::CopyFromClip(), ScDocument::CopyOneCellFromClip(), and ScDocument::DeleteBeforeCopyFromClip().
SCTAB sc::CopyFromClipContext::getTabStart | ( | ) | const |
Definition at line 63 of file clipcontext.cxx.
References mnTabStart.
Referenced by ScDocument::CopyBlockFromClip(), ScDocument::CopyFromClip(), ScDocument::CopyOneCellFromClip(), and ScDocument::DeleteBeforeCopyFromClip().
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.
Definition at line 337 of file clipcontext.cxx.
References ATTR_VALUE_FORMAT(), ScColumn::GetAttr(), ScDocument::GetFormatTable(), SvNumberFormatter::GetType(), mpClipDoc, and nType.
Referenced by setSingleCell().
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().
Definition at line 73 of file clipcontext.cxx.
References mnDestCol1, mnDestCol2, mnDestRow1, and mnDestRow2.
Referenced by ScDocument::CopyFromClip().
Definition at line 136 of file clipcontext.cxx.
References aArr, ScTokenArray::AddSingleReference(), ScCellValue::assign(), ScRange::aStart, aStr, CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_NONE, CELLTYPE_STRING, CELLTYPE_VALUE, ScCellValue::clear(), ScAddress::Col(), EditEngine::CreateTextObject(), DATETIME, formula::FormulaTokenArray::FirstToken(), FORMULA, ScColumn::GetCellTextAttr(), ScDocument::GetClipParam(), ScFormulaCell::GetCode(), ScDocument::GetEditEngine(), ScFormulaCell::GetErrCode(), getInsertFlag(), formula::FormulaTokenArray::GetLen(), formula::FormulaToken::GetOpCode(), ScDocument::GetSharedStringPool(), getSingleCell(), getSingleCellAttr(), svl::SharedString::getString(), ScFormulaCell::GetString(), ScFormulaCell::GetValue(), ScClipParam::getWholeRange(), ScSingleRefData::InitAddress(), isDateCell(), svl::SharedString::isEmpty(), ScFormulaCell::IsEmptyDisplayedAsString(), ScFormulaCell::IsMultilineResult(), ScFormulaCell::IsValue(), mbAsLink, ScCellValue::meType, mpClipDoc, ScCellValue::mpFormula, mrDestDoc, NONE, ocFalse, ocTrue, p, ScAddress::Row(), ScCellValue::set(), ScFormulaCell::SetErrCode(), ScSingleRefData::SetFlag3D(), ScEditEngineDefaulter::SetTextCurrentDefaults(), SPECIAL_BOOLEAN, STRING, and VALUE.
Referenced by ScDocument::CopyOneCellFromClip().
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().
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().
Definition at line 57 of file clipcontext.cxx.
References mnTabEnd, and mnTabStart.
Referenced by ScDocument::CopyFromClip(), and ScDocument::CopyMultiRangeFromClip().
|
private |
Definition at line 61 of file clipcontext.hxx.
Referenced by getSingleCellAttr(), and setSingleCellColumnSize().
|
private |
Definition at line 60 of file clipcontext.hxx.
Referenced by getSingleCell(), and setSingleCellColumnSize().
|
private |
Definition at line 63 of file clipcontext.hxx.
Referenced by getSingleCellNote(), setSingleCellColumnSize(), and setSingleCellNote().
|
private |
Definition at line 62 of file clipcontext.hxx.
Referenced by getSingleCellPattern(), setSingleCellColumnSize(), and setSingleCellPattern().
|
private |
Definition at line 66 of file clipcontext.hxx.
Referenced by isAsLink(), and setSingleCell().
|
private |
Definition at line 68 of file clipcontext.hxx.
Referenced by isCloneNotes().
|
private |
Definition at line 67 of file clipcontext.hxx.
Referenced by isSkipAttrForEmptyCells().
|
private |
Definition at line 69 of file clipcontext.hxx.
Referenced by isTableProtected(), and setTableProtected().
|
private |
Definition at line 58 of file clipcontext.hxx.
Referenced by getDeleteFlag(), and setDeleteFlag().
|
private |
Definition at line 48 of file clipcontext.hxx.
Referenced by getDestRange(), and setDestRange().
|
private |
Definition at line 49 of file clipcontext.hxx.
Referenced by getDestRange(), and setDestRange().
|
private |
Definition at line 50 of file clipcontext.hxx.
Referenced by getDestRange(), and setDestRange().
|
private |
Definition at line 51 of file clipcontext.hxx.
Referenced by getDestRange(), and setDestRange().
|
private |
Definition at line 57 of file clipcontext.hxx.
Referenced by getInsertFlag().
|
private |
Definition at line 53 of file clipcontext.hxx.
Referenced by getTabEnd(), and setTabRange().
|
private |
Definition at line 52 of file clipcontext.hxx.
Referenced by getTabStart(), and setTabRange().
|
private |
Definition at line 56 of file clipcontext.hxx.
Referenced by getClipDoc(), isDateCell(), and setSingleCell().
|
private |
Definition at line 65 of file clipcontext.hxx.
Referenced by getCondFormatList(), and setCondFormatList().
|
private |
Definition at line 55 of file clipcontext.hxx.
Referenced by getUndoDoc().
|
private |
Definition at line 54 of file clipcontext.hxx.
Referenced by getDestDoc(), and setSingleCell().