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)
 

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, std::u16string_view rStr, const ScDocument &pDoc)
 

Private Attributes

weld::DialogControllerm_pController
 
bool m_bInRefMode
 
ScFormulaReferenceHelper m_aHelper
 
SfxBindingsm_pMyBindings
 
OUString m_aDocName
 

Detailed Description

Definition at line 81 of file anyrefdg.hxx.

Constructor & Destructor Documentation

◆ ScRefHandler()

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

Definition at line 577 of file anyrefdg.cxx.

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

◆ ~ScRefHandler()

ScRefHandler::~ScRefHandler ( )
overridevirtual

Definition at line 639 of file anyrefdg.cxx.

References disposeRefHandler().

Member Function Documentation

◆ AddRefEntry()

void ScRefHandler::AddRefEntry ( )
overridevirtual

Reimplemented in ScPrintAreasDlg.

Definition at line 730 of file anyrefdg.cxx.

◆ CanInputDone()

bool ScRefHandler::CanInputDone ( bool  bForced)
inline

Definition at line 133 of file anyrefdg.hxx.

References ScFormulaReferenceHelper::CanInputDone(), and m_aHelper.

Referenced by ScValidationDlg::RefInputDone().

◆ CanInputStart()

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

Definition at line 129 of file anyrefdg.hxx.

References ScFormulaReferenceHelper::CanInputStart().

Referenced by ScValidationDlg::RefInputStart().

◆ disposeRefHandler()

void ScRefHandler::disposeRefHandler ( )
protected

Definition at line 644 of file anyrefdg.cxx.

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

Referenced by ~ScRefHandler().

◆ DoClose()

bool ScRefHandler::DoClose ( sal_uInt16  nId)
protected

◆ EnterRefMode()

bool ScRefHandler::EnterRefMode ( )

◆ HideReference()

void ScRefHandler::HideReference ( bool  bDoneRefMode = true)
overridevirtual

Definition at line 760 of file anyrefdg.cxx.

References ScFormulaReferenceHelper::HideReference(), and m_aHelper.

◆ IsDocAllowed()

bool ScRefHandler::IsDocAllowed ( SfxObjectShell pDocSh) const
overridevirtual

Definition at line 696 of file anyrefdg.cxx.

◆ IsRefInputMode()

bool ScRefHandler::IsRefInputMode ( ) const
overridevirtual

◆ IsTableLocked()

bool ScRefHandler::IsTableLocked ( ) const
overridevirtual

Reimplemented in ScPrintAreasDlg, and ScCondFormatDlg.

Definition at line 735 of file anyrefdg.cxx.

◆ LeaveRefMode()

bool ScRefHandler::LeaveRefMode ( )

◆ ParseWithNames()

bool ScRefHandler::ParseWithNames ( ScRangeList rRanges,
std::u16string_view  rStr,
const ScDocument pDoc 
)
protected

Definition at line 755 of file anyrefdg.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ParseWithNames().

Referenced by ScOptSolverDlg::CallSolver().

◆ RefInputDone()

void ScRefHandler::RefInputDone ( bool  bForced = false)
overrideprotectedvirtual

◆ RefInputStart()

void ScRefHandler::RefInputStart ( formula::RefEdit pEdit,
formula::RefButton pButton = nullptr 
)
overrideprotectedvirtual

◆ ReleaseFocus()

void ScRefHandler::ReleaseFocus ( formula::RefEdit pEdit)
overridevirtual

Definition at line 770 of file anyrefdg.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ReleaseFocus().

◆ SetActive()

virtual void ScRefHandler::SetActive ( )
overridepure virtual

◆ SetDispatcherLock()

void ScRefHandler::SetDispatcherLock ( bool  bLock)
protected

◆ SetReference()

virtual void ScRefHandler::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridepure virtual

◆ ShowReference()

void ScRefHandler::ShowReference ( const OUString &  rStr)
overridevirtual

Definition at line 765 of file anyrefdg.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ShowReference().

◆ SwitchToDocument()

void ScRefHandler::SwitchToDocument ( )

◆ ToggleCollapsed()

void ScRefHandler::ToggleCollapsed ( formula::RefEdit pEdit,
formula::RefButton pButton 
)
overridevirtual

Definition at line 750 of file anyrefdg.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ToggleCollapsed().

◆ ViewShellChanged()

void ScRefHandler::ViewShellChanged ( )
overridevirtual

Definition at line 725 of file anyrefdg.cxx.

References ScFormulaReferenceHelper::ViewShellChanged().

Member Data Documentation

◆ m_aDocName

OUString ScRefHandler::m_aDocName
private

Definition at line 91 of file anyrefdg.hxx.

Referenced by EnterRefMode(), and SwitchToDocument().

◆ m_aHelper

ScFormulaReferenceHelper ScRefHandler::m_aHelper
private

◆ m_bInRefMode

bool ScRefHandler::m_bInRefMode
private

Definition at line 84 of file anyrefdg.hxx.

Referenced by EnterRefMode(), and LeaveRefMode().

◆ m_pController

weld::DialogController* ScRefHandler::m_pController
private

Definition at line 83 of file anyrefdg.hxx.

Referenced by disposeRefHandler(), and IsRefInputMode().

◆ m_pMyBindings

SfxBindings* ScRefHandler::m_pMyBindings
private

Definition at line 89 of file anyrefdg.hxx.

Referenced by EnterRefMode().


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