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

#include <anyrefdg.hxx>

Collaboration diagram for ScFormulaReferenceHelper:
[legend]

Public Member Functions

 ScFormulaReferenceHelper (IAnyRefDialog *_pDlg, SfxBindings *_pBindings)
 
 ~ScFormulaReferenceHelper () COVERITY_NOEXCEPT_FALSE
 
void dispose ()
 
void ShowSimpleReference (std::u16string_view rStr)
 
void ShowFormulaReference (const OUString &rStr)
 
bool ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &rDoc)
 
void Init ()
 
void ShowReference (const OUString &rStr)
 
void ReleaseFocus (formula::RefEdit *pEdit)
 
void HideReference (bool bDoneRefMode=true)
 
void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton)
 
void RefInputDone (bool bForced)
 
void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton)
 
void SetDialog (weld::Dialog *pDialog)
 
void DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
bool CanInputDone (bool bForced) const
 

Static Public Member Functions

static void EnableSpreadsheets (bool bFlag=true)
 
static void ViewShellChanged ()
 
static void enableInput (bool _bInput)
 
static bool CanInputStart (const formula::RefEdit *pEdit)
 

Private Member Functions

 DECL_LINK (ActivateHdl, weld::Widget &, bool)
 

Private Attributes

IAnyRefDialog * m_pDlg
 
::std::unique_ptr< ScCompilerm_pRefComp
 
formula::RefEditm_pRefEdit
 
formula::RefButtonm_pRefBtn
 
weld::Dialogm_pDialog
 
SfxBindingsm_pBindings
 
SCTAB m_nRefTab
 
OUString m_sOldDialogText
 
bool m_bEnableColorRef
 
bool m_bHighlightRef
 

Detailed Description

Definition at line 34 of file anyrefdg.hxx.

Constructor & Destructor Documentation

◆ ScFormulaReferenceHelper()

ScFormulaReferenceHelper::ScFormulaReferenceHelper ( IAnyRefDialog *  _pDlg,
SfxBindings _pBindings 
)

Definition at line 47 of file anyrefdg.cxx.

References ScInputOptions::GetRangeFinder(), m_bEnableColorRef, and SC_MOD.

◆ ~ScFormulaReferenceHelper()

ScFormulaReferenceHelper::~ScFormulaReferenceHelper ( )

Definition at line 60 of file anyrefdg.cxx.

References dispose().

Member Function Documentation

◆ CanInputDone()

bool ScFormulaReferenceHelper::CanInputDone ( bool  bForced) const
inline

Definition at line 78 of file anyrefdg.hxx.

References m_pRefBtn, and m_pRefEdit.

Referenced by ScRefHandler::CanInputDone(), and RefInputDone().

◆ CanInputStart()

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

Definition at line 77 of file anyrefdg.hxx.

Referenced by ScRefHandler::CanInputStart().

◆ DECL_LINK()

ScFormulaReferenceHelper::DECL_LINK ( ActivateHdl  ,
weld::Widget ,
bool   
)
private

◆ dispose()

void ScFormulaReferenceHelper::dispose ( void  )

◆ DoClose()

void ScFormulaReferenceHelper::DoClose ( sal_uInt16  nId)

◆ enableInput()

void ScFormulaReferenceHelper::enableInput ( bool  _bInput)
static

◆ EnableSpreadsheets()

void ScFormulaReferenceHelper::EnableSpreadsheets ( bool  bFlag = true)
static

◆ HideReference()

void ScFormulaReferenceHelper::HideReference ( bool  bDoneRefMode = true)

◆ Init()

void ScFormulaReferenceHelper::Init ( void  )

◆ ParseWithNames()

bool ScFormulaReferenceHelper::ParseWithNames ( ScRangeList rRanges,
std::u16string_view  rStr,
const ScDocument rDoc 
)

◆ RefInputDone()

void ScFormulaReferenceHelper::RefInputDone ( bool  bForced)

◆ RefInputStart()

void ScFormulaReferenceHelper::RefInputStart ( formula::RefEdit pEdit,
formula::RefButton pButton 
)

◆ ReleaseFocus()

void ScFormulaReferenceHelper::ReleaseFocus ( formula::RefEdit pEdit)

◆ SetDialog()

void ScFormulaReferenceHelper::SetDialog ( weld::Dialog pDialog)
inline

Definition at line 68 of file anyrefdg.hxx.

References m_pDialog.

Referenced by ScFormulaDlg::ScFormulaDlg(), and ScRefHandler::ScRefHandler().

◆ SetDispatcherLock()

void ScFormulaReferenceHelper::SetDispatcherLock ( bool  bLock)

◆ ShowFormulaReference()

void ScFormulaReferenceHelper::ShowFormulaReference ( const OUString &  rStr)

◆ ShowReference()

void ScFormulaReferenceHelper::ShowReference ( const OUString &  rStr)

◆ ShowSimpleReference()

void ScFormulaReferenceHelper::ShowSimpleReference ( std::u16string_view  rStr)

◆ ToggleCollapsed()

void ScFormulaReferenceHelper::ToggleCollapsed ( formula::RefEdit pEdit,
formula::RefButton pButton 
)

◆ ViewShellChanged()

void ScFormulaReferenceHelper::ViewShellChanged ( )
static

Member Data Documentation

◆ m_bEnableColorRef

bool ScFormulaReferenceHelper::m_bEnableColorRef
private

◆ m_bHighlightRef

bool ScFormulaReferenceHelper::m_bHighlightRef
private

Definition at line 47 of file anyrefdg.hxx.

Referenced by HideReference(), ShowFormulaReference(), and ShowSimpleReference().

◆ m_nRefTab

SCTAB ScFormulaReferenceHelper::m_nRefTab
private

Definition at line 42 of file anyrefdg.hxx.

Referenced by Init(), and ParseWithNames().

◆ m_pBindings

SfxBindings* ScFormulaReferenceHelper::m_pBindings
private

Definition at line 41 of file anyrefdg.hxx.

Referenced by DoClose(), and SetDispatcherLock().

◆ m_pDialog

weld::Dialog* ScFormulaReferenceHelper::m_pDialog
private

Definition at line 40 of file anyrefdg.hxx.

Referenced by dispose(), RefInputDone(), RefInputStart(), and SetDialog().

◆ m_pDlg

IAnyRefDialog* ScFormulaReferenceHelper::m_pDlg
private

Definition at line 36 of file anyrefdg.hxx.

Referenced by ReleaseFocus(), and ToggleCollapsed().

◆ m_pRefBtn

formula::RefButton* ScFormulaReferenceHelper::m_pRefBtn
private

Definition at line 39 of file anyrefdg.hxx.

Referenced by CanInputDone(), RefInputDone(), and RefInputStart().

◆ m_pRefComp

::std::unique_ptr<ScCompiler> ScFormulaReferenceHelper::m_pRefComp
private

Definition at line 37 of file anyrefdg.hxx.

Referenced by Init(), and ShowFormulaReference().

◆ m_pRefEdit

formula::RefEdit* ScFormulaReferenceHelper::m_pRefEdit
private

Definition at line 38 of file anyrefdg.hxx.

Referenced by CanInputDone(), RefInputDone(), RefInputStart(), ReleaseFocus(), and ToggleCollapsed().

◆ m_sOldDialogText

OUString ScFormulaReferenceHelper::m_sOldDialogText
private

Definition at line 44 of file anyrefdg.hxx.

Referenced by RefInputDone(), and RefInputStart().


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