LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ScRefHandler Class Referenceabstract

#include <anyrefdg.hxx>

Inheritance diagram for ScRefHandler:
[legend]
Collaboration diagram for ScRefHandler:
[legend]

Public Member Functions

 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override=0
 
virtual void AddRefEntry () override
 
virtual bool IsRefInputMode () const override
 
virtual bool IsTableLocked () const override
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const override
 
virtual void ShowReference (const OUString &rStr) override
 
virtual void HideReference (bool bDoneRefMode=true) override
 
virtual void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override
 
virtual void ReleaseFocus (formula::RefEdit *pEdit) override
 
virtual void ViewShellChanged () override
 
void SwitchToDocument ()
 
virtual void SetActive () override=0
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

Static Public Member Functions

static bool CanInputStart (const formula::RefEdit *pEdit)
 

Protected Member Functions

void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
virtual void RefInputDone (bool bForced=false) override
 
bool ParseWithNames (ScRangeList &rRanges, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Private Attributes

weld::DialogControllerm_pController
 
bool m_bInRefMode
 
ScFormulaReferenceHelper m_aHelper
 
SfxBindingsm_pMyBindings
 
OUString m_aDocName
 

Detailed Description

Definition at line 84 of file anyrefdg.hxx.

Constructor & Destructor Documentation

ScRefHandler::ScRefHandler ( SfxDialogController rController,
SfxBindings pB,
bool  bBindRef 
)

Definition at line 557 of file anyrefdg.cxx.

References EnterRefMode(), m_aHelper, and ScFormulaReferenceHelper::SetDialog().

ScRefHandler::~ScRefHandler ( )
overridevirtual

Definition at line 619 of file anyrefdg.cxx.

References disposeRefHandler().

Member Function Documentation

void ScRefHandler::AddRefEntry ( )
overridevirtual

Implements IAnyRefDialog.

Reimplemented in ScPrintAreasDlg.

Definition at line 710 of file anyrefdg.cxx.

bool ScRefHandler::CanInputDone ( bool  bForced)
inline

Definition at line 136 of file anyrefdg.hxx.

References ScFormulaReferenceHelper::CanInputDone(), and m_aHelper.

Referenced by ScValidationDlg::RefInputDone().

static bool ScRefHandler::CanInputStart ( const formula::RefEdit pEdit)
inlinestatic

Definition at line 132 of file anyrefdg.hxx.

References ScFormulaReferenceHelper::CanInputStart().

Referenced by ScValidationDlg::RefInputStart().

void ScRefHandler::disposeRefHandler ( )
protected

Definition at line 624 of file anyrefdg.cxx.

References ScFormulaReferenceHelper::dispose(), LeaveRefMode(), m_aHelper, and m_pController.

Referenced by ~ScRefHandler().

bool ScRefHandler::DoClose ( sal_uInt16  nId)
protected
bool ScRefHandler::EnterRefMode ( )
void ScRefHandler::HideReference ( bool  bDoneRefMode = true)
overridevirtual
bool ScRefHandler::IsDocAllowed ( SfxObjectShell pDocSh) const
overridevirtual

Implements IAnyRefDialog.

Definition at line 676 of file anyrefdg.cxx.

bool ScRefHandler::IsRefInputMode ( ) const
overridevirtual
bool ScRefHandler::IsTableLocked ( ) const
overridevirtual

Implements IAnyRefDialog.

Reimplemented in ScCondFormatDlg, and ScPrintAreasDlg.

Definition at line 715 of file anyrefdg.cxx.

bool ScRefHandler::LeaveRefMode ( )
bool ScRefHandler::ParseWithNames ( ScRangeList rRanges,
const OUString &  rStr,
const ScDocument pDoc 
)
protected

Definition at line 735 of file anyrefdg.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ParseWithNames().

Referenced by ScOptSolverDlg::CallSolver().

void ScRefHandler::RefInputDone ( bool  bForced = false)
overrideprotectedvirtual
void ScRefHandler::RefInputStart ( formula::RefEdit pEdit,
formula::RefButton pButton = nullptr 
)
overrideprotectedvirtual
void ScRefHandler::ReleaseFocus ( formula::RefEdit pEdit)
overridevirtual
virtual void ScRefHandler::SetActive ( )
overridepure virtual
void ScRefHandler::SetDispatcherLock ( bool  bLock)
protected
virtual void ScRefHandler::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridepure virtual
void ScRefHandler::ShowReference ( const OUString &  rStr)
overridevirtual
void ScRefHandler::SwitchToDocument ( )
void ScRefHandler::ToggleCollapsed ( formula::RefEdit pEdit,
formula::RefButton pButton 
)
overridevirtual
void ScRefHandler::ViewShellChanged ( )
overridevirtual

Implements IAnyRefDialog.

Definition at line 705 of file anyrefdg.cxx.

References ScFormulaReferenceHelper::ViewShellChanged().

Member Data Documentation

OUString ScRefHandler::m_aDocName
private

Definition at line 94 of file anyrefdg.hxx.

Referenced by EnterRefMode(), and SwitchToDocument().

ScFormulaReferenceHelper ScRefHandler::m_aHelper
private
bool ScRefHandler::m_bInRefMode
private

Definition at line 87 of file anyrefdg.hxx.

Referenced by EnterRefMode(), and LeaveRefMode().

weld::DialogController* ScRefHandler::m_pController
private

Definition at line 86 of file anyrefdg.hxx.

Referenced by disposeRefHandler(), and IsRefInputMode().

SfxBindings* ScRefHandler::m_pMyBindings
private

Definition at line 92 of file anyrefdg.hxx.

Referenced by EnterRefMode().


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