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 OString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString 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
 
std::unique_ptr< weld::ExpandermxExpander
 
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

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

Definition at line 54 of file pvfundlg.hxx.

Constructor & Destructor Documentation

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 ( )
overridevirtual

Definition at line 258 of file pvfundlg.cxx.

Member Function Documentation

ScDPFunctionDlg::DECL_LINK ( SelectHdl  ,
weld::ComboBox ,
void   
)
private
ScDPFunctionDlg::DECL_LINK ( DblClickHdl  ,
weld::TreeView ,
bool   
)
private
ScDPFunctionDlg::DECL_LINK ( ButtonClicked  ,
weld::Button ,
void   
)
private
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 371 of file pvfundlg.cxx.

References GetBaseItemName(), mxLbBaseItem, and nPos.

Referenced by Init().

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

Definition at line 359 of file pvfundlg.cxx.

References maBaseFieldNameMap.

Referenced by GetFieldRef().

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

Definition at line 365 of file pvfundlg.cxx.

References maBaseItemNameMap.

Referenced by FindBaseItemPos(), and GetFieldRef().

DataPilotFieldReference ScDPFunctionDlg::GetFieldRef ( ) const
PivotFunc ScDPFunctionDlg::GetFuncMask ( ) const

Definition at line 262 of file pvfundlg.cxx.

References mxLbFunc.

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

Member Data Documentation

NameMapType ScDPFunctionDlg::maBaseFieldNameMap
private

Definition at line 87 of file pvfundlg.hxx.

Referenced by GetBaseFieldName(), and Init().

NameMapType ScDPFunctionDlg::maBaseItemNameMap
private

Definition at line 88 of file pvfundlg.hxx.

Referenced by GetBaseItemName().

bool ScDPFunctionDlg::mbEmptyItem
private

Data of all labels.

Definition at line 91 of file pvfundlg.hxx.

Referenced by GetFieldRef(), and Init().

const ScDPLabelDataVector& ScDPFunctionDlg::mrLabelVec
private

Definition at line 90 of file pvfundlg.hxx.

Referenced by Init().

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

Definition at line 84 of file pvfundlg.hxx.

Referenced by Init().

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

Definition at line 83 of file pvfundlg.hxx.

Referenced by Init().

std::unique_ptr<weld::Expander> ScDPFunctionDlg::mxExpander
private

Definition at line 85 of file pvfundlg.hxx.

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

Definition at line 79 of file pvfundlg.hxx.

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

Definition at line 81 of file pvfundlg.hxx.

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

Definition at line 77 of file pvfundlg.hxx.

Referenced by Init().

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

Definition at line 80 of file pvfundlg.hxx.

Referenced by GetFieldRef(), and Init().

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

Definition at line 82 of file pvfundlg.hxx.

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

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

Definition at line 76 of file pvfundlg.hxx.

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

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: