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
 
const char * GetMessageId () const
 

Private Attributes

bool mbIsEditable
 
bool mbOnlyMatrix
 

Detailed Description

Definition at line 35 of file editable.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

const char * ScEditableTester::GetMessageId ( ) const
bool ScEditableTester::IsEditable ( ) const
inline
bool ScEditableTester::IsFormatEditable ( ) const
inline

Definition at line 85 of file editable.hxx.

References mbOnlyMatrix.

Referenced by ScGridWindow::AcceptDrop().

void ScEditableTester::TestBlock ( const ScDocument rDoc,
SCTAB  nTab,
SCCOL  nStartCol,
SCROW  nStartRow,
SCCOL  nEndCol,
SCROW  nEndRow,
bool  bNoMatrixAtAll = false 
)
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 
)
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 
)

Member Data Documentation

bool ScEditableTester::mbIsEditable
private
bool ScEditableTester::mbOnlyMatrix
private

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