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

#include <pvfundlg.hxx>

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

Public Member Functions

 ScDPFunctionDlg (weld::Widget *pParent, const ScDPLabelDataVector &rLabelVec, const ScDPLabelData &rLabelData, const ScPivotFuncData &rFuncData)
 
virtual ~ScDPFunctionDlg () override
 
PivotFunc GetFuncMask () const
 
css::sheet::DataPilotFieldReference GetFieldRef () const
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Types

typedef std::unordered_map< OUString, OUString > NameMapType
 

Private Member Functions

void Init (const ScDPLabelData &rLabelData, const ScPivotFuncData &rFuncData)
 
const OUString & GetBaseFieldName (const OUString &rLayoutName) const
 
const OUString & GetBaseItemName (const OUString &rLayoutName) const
 
sal_Int32 FindBaseItemPos (std::u16string_view rEntry, sal_Int32 nStartPos) const
 Searches for a listbox entry, starts search at specified position. More...
 
 DECL_LINK (SelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (DblClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (ButtonClicked, weld::Button &, void)
 

Private Attributes

std::unique_ptr< ScDPFunctionListBoxmxLbFunc
 
std::unique_ptr< weld::LabelmxFtName
 
std::unique_ptr< weld::ComboBoxmxLbType
 
std::unique_ptr< weld::LabelmxFtBaseField
 
std::unique_ptr< weld::ComboBoxmxLbBaseField
 
std::unique_ptr< weld::LabelmxFtBaseItem
 
std::unique_ptr< weld::ComboBoxmxLbBaseItem
 
std::unique_ptr< weld::ButtonmxBtnOk
 
std::unique_ptr< weld::ButtonmxBtnCancel
 
NameMapType maBaseFieldNameMap
 
NameMapType maBaseItemNameMap
 
const ScDPLabelDataVectormrLabelVec
 
bool mbEmptyItem
 Data of all labels. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 52 of file pvfundlg.hxx.

Member Typedef Documentation

◆ NameMapType

typedef std::unordered_map< OUString, OUString > ScDPFunctionDlg::NameMapType
private

Definition at line 54 of file pvfundlg.hxx.

Constructor & Destructor Documentation

◆ ScDPFunctionDlg()

ScDPFunctionDlg::ScDPFunctionDlg ( weld::Widget pParent,
const ScDPLabelDataVector rLabelVec,
const ScDPLabelData rLabelData,
const ScPivotFuncData rFuncData 
)
explicit

Definition at line 236 of file pvfundlg.cxx.

References Init(), and mxLbFunc.

◆ ~ScDPFunctionDlg()

ScDPFunctionDlg::~ScDPFunctionDlg ( )
overridevirtual

Definition at line 257 of file pvfundlg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/3]

ScDPFunctionDlg::DECL_LINK ( ButtonClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/3]

ScDPFunctionDlg::DECL_LINK ( DblClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [3/3]

ScDPFunctionDlg::DECL_LINK ( SelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ FindBaseItemPos()

sal_Int32 ScDPFunctionDlg::FindBaseItemPos ( std::u16string_view  rEntry,
sal_Int32  nStartPos 
) const
private

Searches for a listbox entry, starts search at specified position.

Definition at line 370 of file pvfundlg.cxx.

References GetBaseItemName(), mxLbBaseItem, and nPos.

Referenced by Init().

◆ GetBaseFieldName()

const OUString & ScDPFunctionDlg::GetBaseFieldName ( const OUString &  rLayoutName) const
private

Definition at line 358 of file pvfundlg.cxx.

References maBaseFieldNameMap.

Referenced by GetFieldRef().

◆ GetBaseItemName()

const OUString & ScDPFunctionDlg::GetBaseItemName ( const OUString &  rLayoutName) const
private

Definition at line 364 of file pvfundlg.cxx.

References maBaseItemNameMap.

Referenced by FindBaseItemPos(), and GetFieldRef().

◆ GetFieldRef()

DataPilotFieldReference ScDPFunctionDlg::GetFieldRef ( ) const

◆ GetFuncMask()

PivotFunc ScDPFunctionDlg::GetFuncMask ( ) const

Definition at line 261 of file pvfundlg.cxx.

References mxLbFunc.

◆ Init()

void ScDPFunctionDlg::Init ( const ScDPLabelData rLabelData,
const ScPivotFuncData rFuncData 
)
private

Member Data Documentation

◆ maBaseFieldNameMap

NameMapType ScDPFunctionDlg::maBaseFieldNameMap
private

Definition at line 86 of file pvfundlg.hxx.

Referenced by GetBaseFieldName(), and Init().

◆ maBaseItemNameMap

NameMapType ScDPFunctionDlg::maBaseItemNameMap
private

Definition at line 87 of file pvfundlg.hxx.

Referenced by GetBaseItemName().

◆ mbEmptyItem

bool ScDPFunctionDlg::mbEmptyItem
private

Data of all labels.

Definition at line 90 of file pvfundlg.hxx.

Referenced by GetFieldRef(), and Init().

◆ mrLabelVec

const ScDPLabelDataVector& ScDPFunctionDlg::mrLabelVec
private

Definition at line 89 of file pvfundlg.hxx.

Referenced by Init().

◆ mxBtnCancel

std::unique_ptr<weld::Button> ScDPFunctionDlg::mxBtnCancel
private

Definition at line 84 of file pvfundlg.hxx.

Referenced by Init().

◆ mxBtnOk

std::unique_ptr<weld::Button> ScDPFunctionDlg::mxBtnOk
private

Definition at line 83 of file pvfundlg.hxx.

Referenced by Init().

◆ mxFtBaseField

std::unique_ptr<weld::Label> ScDPFunctionDlg::mxFtBaseField
private

Definition at line 79 of file pvfundlg.hxx.

◆ mxFtBaseItem

std::unique_ptr<weld::Label> ScDPFunctionDlg::mxFtBaseItem
private

Definition at line 81 of file pvfundlg.hxx.

◆ mxFtName

std::unique_ptr<weld::Label> ScDPFunctionDlg::mxFtName
private

Definition at line 77 of file pvfundlg.hxx.

Referenced by Init().

◆ mxLbBaseField

std::unique_ptr<weld::ComboBox> ScDPFunctionDlg::mxLbBaseField
private

Definition at line 80 of file pvfundlg.hxx.

Referenced by GetFieldRef(), and Init().

◆ mxLbBaseItem

std::unique_ptr<weld::ComboBox> ScDPFunctionDlg::mxLbBaseItem
private

Definition at line 82 of file pvfundlg.hxx.

Referenced by FindBaseItemPos(), GetFieldRef(), and Init().

◆ mxLbFunc

std::unique_ptr<ScDPFunctionListBox> ScDPFunctionDlg::mxLbFunc
private

Definition at line 76 of file pvfundlg.hxx.

Referenced by GetFuncMask(), Init(), and ScDPFunctionDlg().

◆ mxLbType

std::unique_ptr<weld::ComboBox> ScDPFunctionDlg::mxLbType
private

Definition at line 78 of file pvfundlg.hxx.

Referenced by GetFieldRef(), and Init().


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