LibreOffice Module sc (master) 1
|
#include <editable.hxx>
Public Member Functions | |
ScEditableTester () | |
ScEditableTester (const ScDocument &rDoc, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bNoMatrixAtAll=false) | |
ScEditableTester (const ScDocument &rDoc, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData &rMark) | |
ScEditableTester (const ScDocument &rDoc, const ScRange &rRange) | |
ScEditableTester (const ScDocument &rDoc, const ScMarkData &rMark) | |
ScEditableTester (ScViewFunc *pView) | |
ScEditableTester (const ScDocument &rDoc, sc::ColRowEditAction eAction, SCCOLROW nStart, SCCOLROW nEnd, const ScMarkData &rMark) | |
void | TestBlock (const ScDocument &rDoc, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, bool bNoMatrixAtAll=false) |
void | TestSelectedBlock (const ScDocument &rDoc, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData &rMark) |
void | TestRange (const ScDocument &rDoc, const ScRange &rRange) |
void | TestSelection (const ScDocument &rDoc, const ScMarkData &rMark) |
void | TestBlockForAction (const ScDocument &rDoc, sc::ColRowEditAction eAction, SCCOLROW nStart, SCCOLROW nEnd, const ScMarkData &rMark) |
bool | IsEditable () const |
bool | IsFormatEditable () const |
TranslateId | GetMessageId () const |
Private Attributes | |
bool | mbIsEditable |
bool | mbOnlyMatrix |
Definition at line 35 of file editable.hxx.
ScEditableTester::ScEditableTester | ( | ) |
Definition at line 25 of file editable.cxx.
ScEditableTester::ScEditableTester | ( | const ScDocument & | rDoc, |
SCTAB | nTab, | ||
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
bool | bNoMatrixAtAll = false |
||
) |
bNoMatrixAtAll | TRUE if there must not be any matrix, not even entirely contained; for example in sorting. |
Definition at line 31 of file editable.cxx.
References TestBlock().
ScEditableTester::ScEditableTester | ( | const ScDocument & | rDoc, |
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
const ScMarkData & | rMark | ||
) |
Definition at line 39 of file editable.cxx.
References TestSelectedBlock().
ScEditableTester::ScEditableTester | ( | const ScDocument & | rDoc, |
const ScRange & | rRange | ||
) |
Definition at line 48 of file editable.cxx.
References TestRange().
ScEditableTester::ScEditableTester | ( | const ScDocument & | rDoc, |
const ScMarkData & | rMark | ||
) |
Definition at line 55 of file editable.cxx.
References TestSelection().
ScEditableTester::ScEditableTester | ( | ScViewFunc * | pView | ) |
Definition at line 62 of file editable.cxx.
References mbIsEditable, mbOnlyMatrix, and ScViewFunc::SelectionEditable().
ScEditableTester::ScEditableTester | ( | const ScDocument & | rDoc, |
sc::ColRowEditAction | eAction, | ||
SCCOLROW | nStart, | ||
SCCOLROW | nEnd, | ||
const ScMarkData & | rMark | ||
) |
Definition at line 75 of file editable.cxx.
References TestBlockForAction().
TranslateId ScEditableTester::GetMessageId | ( | ) | const |
Definition at line 152 of file editable.cxx.
References mbIsEditable, and mbOnlyMatrix.
Referenced by ScDocFunc::AutoFormat(), ScDocFunc::ChangeIndent(), ScDocFunc::ClearItems(), ScDocFunc::ConvertFormulaToValue(), ScDBDocFunc::CreatePivotTable(), ScViewFunc::CutToClip(), ScDocFunc::DeleteCell(), ScDocFunc::DeleteCells(), ScDocFunc::DeleteContents(), ScViewFunc::DeleteMulti(), ScDBDocFunc::DoImport(), ScViewFunc::DoRefConversion(), ScViewFunc::DoSheetConversion(), ScDBFunc::DoSubTotals(), ScDBDocFunc::DoSubTotals(), ScViewFunc::DoThesaurus(), ScViewFunc::EnterData(), ScDocFunc::EnterMatrix(), ScViewFunc::EnterValue(), ScCellShell::Execute(), ScCellShell::ExecuteEdit(), ScViewFunc::ExtendScenario(), ScDocFunc::FillAuto(), ScDocFunc::FillSeries(), ScDocFunc::FillSimple(), ScViewFunc::FillTab(), ScDBFunc::ImportData(), ScDocFunc::InsertCells(), ScViewFunc::InsertSpecialChar(), ScViewFunc::MergeCells(), ScDocFunc::MergeCells(), ScDocFunc::MoveBlock(), ScViewFunc::PasteFromClip(), ScDBDocFunc::Query(), ScViewFunc::RemoveMerge(), ScDocFunc::ReplaceNote(), ScDocFunc::SetNormalString(), ScDocFunc::SetNoteText(), ScViewFunc::Solve(), ScDBDocFunc::Sort(), ScImportExport::StartPaste(), ScInputHandler::StartTable(), ScDocFunc::TabOp(), and ScDocFunc::TransliterateText().
|
inline |
Definition at line 84 of file editable.hxx.
References mbIsEditable.
Referenced by ScDocFunc::AutoFormat(), ScDocFunc::ChangeIndent(), ScDocFunc::ClearItems(), ScDocFunc::ConvertFormulaToValue(), ScDBDocFunc::CreatePivotTable(), ScViewFunc::CutToClip(), ScDocFunc::DeleteCell(), ScDocFunc::DeleteCells(), ScDocFunc::DeleteContents(), ScViewFunc::DeleteMulti(), ScDBDocFunc::DoImport(), ScViewFunc::DoRefConversion(), ScViewFunc::DoSheetConversion(), ScDBFunc::DoSubTotals(), ScDBDocFunc::DoSubTotals(), ScViewFunc::DoThesaurus(), ScViewFunc::EnterData(), ScDocFunc::EnterMatrix(), ScViewFunc::EnterValue(), ScCellShell::Execute(), ScCellShell::ExecuteEdit(), ScViewFunc::ExtendScenario(), ScDocFunc::FillAuto(), ScDocFunc::FillSeries(), ScDocFunc::FillSimple(), ScViewFunc::FillTab(), ScDBFunc::ImportData(), ScSpellDialogChildWindow::Init(), ScDocFunc::InsertCells(), ScViewFunc::InsertSpecialChar(), ScViewFunc::MergeCells(), ScDocFunc::MergeCells(), ScDocFunc::MoveBlock(), ScViewFunc::PasteFromClip(), ScDBDocFunc::Query(), ScViewFunc::RemoveMerge(), ScDocFunc::ReplaceNote(), ScDocFunc::SetNormalString(), ScDocFunc::SetNoteText(), ScViewFunc::Solve(), ScDBDocFunc::Sort(), ScImportExport::StartPaste(), ScInputHandler::StartTable(), ScDocFunc::TabOp(), and ScDocFunc::TransliterateText().
|
inline |
Definition at line 85 of file editable.hxx.
References mbIsEditable, and mbOnlyMatrix.
Referenced by ScGridWindow::AcceptDrop().
void ScEditableTester::TestBlock | ( | const ScDocument & | rDoc, |
SCTAB | nTab, | ||
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
bool | bNoMatrixAtAll = false |
||
) |
Definition at line 82 of file editable.cxx.
References ScDocument::IsBlockEditable(), mbIsEditable, and mbOnlyMatrix.
Referenced by ScDBDocFunc::DoImport(), ScDocFunc::MoveBlock(), ScEditableTester(), TestRange(), and TestSelectedBlock().
void ScEditableTester::TestBlockForAction | ( | const ScDocument & | rDoc, |
sc::ColRowEditAction | eAction, | ||
SCCOLROW | nStart, | ||
SCCOLROW | nEnd, | ||
const ScMarkData & | rMark | ||
) |
Definition at line 137 of file editable.cxx.
References ScDocument::IsEditActionAllowed(), mbIsEditable, and mbOnlyMatrix.
Referenced by ScEditableTester().
void ScEditableTester::TestRange | ( | const ScDocument & | rDoc, |
const ScRange & | rRange | ||
) |
Definition at line 111 of file editable.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScAddress::Row(), ScAddress::Tab(), and TestBlock().
Referenced by ScEditableTester().
void ScEditableTester::TestSelectedBlock | ( | const ScDocument & | rDoc, |
SCCOL | nStartCol, | ||
SCROW | nStartRow, | ||
SCCOL | nEndCol, | ||
SCROW | nEndRow, | ||
const ScMarkData & | rMark | ||
) |
Definition at line 97 of file editable.cxx.
References ScDocument::GetTableCount(), and TestBlock().
Referenced by ScEditableTester(), and ScInputHandler::StartTable().
void ScEditableTester::TestSelection | ( | const ScDocument & | rDoc, |
const ScMarkData & | rMark | ||
) |
Definition at line 123 of file editable.cxx.
References ScDocument::IsSelectionEditable(), mbIsEditable, and mbOnlyMatrix.
Referenced by ScEditableTester(), and ScInputHandler::StartTable().
|
private |
Definition at line 37 of file editable.hxx.
Referenced by GetMessageId(), IsEditable(), IsFormatEditable(), ScEditableTester(), TestBlock(), TestBlockForAction(), and TestSelection().
|
private |
Definition at line 38 of file editable.hxx.
Referenced by GetMessageId(), IsFormatEditable(), ScEditableTester(), TestBlock(), TestBlockForAction(), and TestSelection().