LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScEditableTester Class Reference

#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
 

Detailed Description

Definition at line 35 of file editable.hxx.

Constructor & Destructor Documentation

◆ ScEditableTester() [1/7]

ScEditableTester::ScEditableTester ( )

Definition at line 25 of file editable.cxx.

◆ ScEditableTester() [2/7]

ScEditableTester::ScEditableTester ( const ScDocument rDoc,
SCTAB  nTab,
SCCOL  nStartCol,
SCROW  nStartRow,
SCCOL  nEndCol,
SCROW  nEndRow,
bool  bNoMatrixAtAll = false 
)
Parameters
bNoMatrixAtAllTRUE 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() [3/7]

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() [4/7]

ScEditableTester::ScEditableTester ( const ScDocument rDoc,
const ScRange rRange 
)

Definition at line 48 of file editable.cxx.

References TestRange().

◆ ScEditableTester() [5/7]

ScEditableTester::ScEditableTester ( const ScDocument rDoc,
const ScMarkData rMark 
)

Definition at line 55 of file editable.cxx.

References TestSelection().

◆ ScEditableTester() [6/7]

ScEditableTester::ScEditableTester ( ScViewFunc pView)

Definition at line 62 of file editable.cxx.

References mbIsEditable, mbOnlyMatrix, and ScViewFunc::SelectionEditable().

◆ ScEditableTester() [7/7]

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

Member Function Documentation

◆ GetMessageId()

TranslateId ScEditableTester::GetMessageId ( ) const

◆ IsEditable()

bool ScEditableTester::IsEditable ( ) const
inline

◆ IsFormatEditable()

bool ScEditableTester::IsFormatEditable ( ) const
inline

Definition at line 85 of file editable.hxx.

References mbIsEditable, and mbOnlyMatrix.

Referenced by ScGridWindow::AcceptDrop().

◆ TestBlock()

void ScEditableTester::TestBlock ( const ScDocument rDoc,
SCTAB  nTab,
SCCOL  nStartCol,
SCROW  nStartRow,
SCCOL  nEndCol,
SCROW  nEndRow,
bool  bNoMatrixAtAll = false 
)

◆ TestBlockForAction()

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

◆ TestRange()

void ScEditableTester::TestRange ( const ScDocument rDoc,
const ScRange rRange 
)

◆ TestSelectedBlock()

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

◆ TestSelection()

void ScEditableTester::TestSelection ( const ScDocument rDoc,
const ScMarkData rMark 
)

Member Data Documentation

◆ mbIsEditable

bool ScEditableTester::mbIsEditable
private

◆ mbOnlyMatrix

bool ScEditableTester::mbOnlyMatrix
private

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