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

#include <pvfundlg.hxx>

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

Public Member Functions

 ScDPSubtotalOptDlg (weld::Window *pParent, ScDPObject &rDPObj, const ScDPLabelData &rLabelData, const ScDPNameVec &rDataFields, bool bEnableLayout)
 
virtual ~ScDPSubtotalOptDlg () override
 
void FillLabelData (ScDPLabelData &rLabelData) 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, ScDPNameNameMapType
 Cache for members data. More...
 

Private Member Functions

void Init (const ScDPNameVec &rDataFields, bool bEnableLayout)
 
void InitHideListBox ()
 
ScDPName GetFieldName (const OUString &rLayoutName) const
 
sal_Int32 FindListBoxEntry (const weld::ComboBox &rLBox, std::u16string_view rEntry, sal_Int32 nStartPos) const
 Searches for a listbox entry, starts search at specified position. More...
 
 DECL_LINK (RadioClickHdl, weld::Toggleable &, void)
 
 DECL_LINK (CheckHdl, weld::Toggleable &, void)
 
 DECL_LINK (SelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (ButtonClicked, weld::Button &, void)
 

Private Attributes

std::unique_ptr< weld::ComboBoxm_xLbSortBy
 
std::unique_ptr< weld::RadioButtonm_xRbSortAsc
 
std::unique_ptr< weld::RadioButtonm_xRbSortDesc
 
std::unique_ptr< weld::RadioButtonm_xRbSortMan
 
std::unique_ptr< weld::Widgetm_xLayoutFrame
 
std::unique_ptr< weld::ComboBoxm_xLbLayout
 
std::unique_ptr< weld::CheckButtonm_xCbLayoutEmpty
 
std::unique_ptr< weld::CheckButtonm_xCbRepeatItemLabels
 
std::unique_ptr< weld::CheckButtonm_xCbShow
 
std::unique_ptr< weld::SpinButtonm_xNfShow
 
std::unique_ptr< weld::Labelm_xFtShow
 
std::unique_ptr< weld::Labelm_xFtShowFrom
 
std::unique_ptr< weld::ComboBoxm_xLbShowFrom
 
std::unique_ptr< weld::Labelm_xFtShowUsing
 
std::unique_ptr< weld::ComboBoxm_xLbShowUsing
 
std::unique_ptr< weld::Widgetm_xHideFrame
 
std::unique_ptr< weld::TreeViewm_xLbHide
 
std::unique_ptr< weld::Labelm_xFtHierarchy
 
std::unique_ptr< weld::ComboBoxm_xLbHierarchy
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 
ScDPObjectmrDPObj
 
ScDPLabelData maLabelData
 The DataPilot object (for member names). More...
 
NameMapType maDataFieldNameMap
 

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 135 of file pvfundlg.hxx.

Member Typedef Documentation

◆ NameMapType

typedef std::unordered_map<OUString, ScDPName> ScDPSubtotalOptDlg::NameMapType
private

Cache for members data.

Definition at line 184 of file pvfundlg.hxx.

Constructor & Destructor Documentation

◆ ScDPSubtotalOptDlg()

ScDPSubtotalOptDlg::ScDPSubtotalOptDlg ( weld::Window pParent,
ScDPObject rDPObj,
const ScDPLabelData rLabelData,
const ScDPNameVec rDataFields,
bool  bEnableLayout 
)
explicit

Definition at line 650 of file pvfundlg.cxx.

References weld::Check, Init(), m_xLbHide, and m_xLbSortBy.

◆ ~ScDPSubtotalOptDlg()

ScDPSubtotalOptDlg::~ScDPSubtotalOptDlg ( )
overridevirtual

Definition at line 686 of file pvfundlg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/4]

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

◆ DECL_LINK() [2/4]

ScDPSubtotalOptDlg::DECL_LINK ( CheckHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/4]

ScDPSubtotalOptDlg::DECL_LINK ( RadioClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/4]

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

◆ FillLabelData()

void ScDPSubtotalOptDlg::FillLabelData ( ScDPLabelData rLabelData) const

◆ FindListBoxEntry()

sal_Int32 ScDPSubtotalOptDlg::FindListBoxEntry ( const weld::ComboBox rLBox,
std::u16string_view  rEntry,
sal_Int32  nStartPos 
) const
private

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

Definition at line 854 of file pvfundlg.cxx.

References aName, ScDPUtil::createDuplicateDimensionName(), weld::ComboBox::get_count(), weld::ComboBox::get_text(), GetFieldName(), and nPos.

Referenced by Init().

◆ GetFieldName()

ScDPName ScDPSubtotalOptDlg::GetFieldName ( const OUString &  rLayoutName) const
private

Definition at line 848 of file pvfundlg.cxx.

References maDataFieldNameMap.

Referenced by FillLabelData(), and FindListBoxEntry().

◆ Init()

void ScDPSubtotalOptDlg::Init ( const ScDPNameVec rDataFields,
bool  bEnableLayout 
)
private

◆ InitHideListBox()

void ScDPSubtotalOptDlg::InitHideListBox ( )
private

Definition at line 837 of file pvfundlg.cxx.

References i, m_xHideFrame, m_xLbHide, maLabelData, ScDPLabelData::maMembers, n, TRISTATE_FALSE, and TRISTATE_TRUE.

Referenced by Init().

Member Data Documentation

◆ m_xBtnCancel

std::unique_ptr<weld::Button> ScDPSubtotalOptDlg::m_xBtnCancel
private

Definition at line 179 of file pvfundlg.hxx.

Referenced by Init().

◆ m_xBtnOk

std::unique_ptr<weld::Button> ScDPSubtotalOptDlg::m_xBtnOk
private

Definition at line 178 of file pvfundlg.hxx.

Referenced by Init().

◆ m_xCbLayoutEmpty

std::unique_ptr<weld::CheckButton> ScDPSubtotalOptDlg::m_xCbLayoutEmpty
private

Definition at line 165 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xCbRepeatItemLabels

std::unique_ptr<weld::CheckButton> ScDPSubtotalOptDlg::m_xCbRepeatItemLabels
private

Definition at line 166 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xCbShow

std::unique_ptr<weld::CheckButton> ScDPSubtotalOptDlg::m_xCbShow
private

Definition at line 167 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xFtHierarchy

std::unique_ptr<weld::Label> ScDPSubtotalOptDlg::m_xFtHierarchy
private

Definition at line 176 of file pvfundlg.hxx.

Referenced by Init().

◆ m_xFtShow

std::unique_ptr<weld::Label> ScDPSubtotalOptDlg::m_xFtShow
private

Definition at line 169 of file pvfundlg.hxx.

◆ m_xFtShowFrom

std::unique_ptr<weld::Label> ScDPSubtotalOptDlg::m_xFtShowFrom
private

Definition at line 170 of file pvfundlg.hxx.

◆ m_xFtShowUsing

std::unique_ptr<weld::Label> ScDPSubtotalOptDlg::m_xFtShowUsing
private

Definition at line 172 of file pvfundlg.hxx.

◆ m_xHideFrame

std::unique_ptr<weld::Widget> ScDPSubtotalOptDlg::m_xHideFrame
private

Definition at line 174 of file pvfundlg.hxx.

Referenced by InitHideListBox().

◆ m_xLayoutFrame

std::unique_ptr<weld::Widget> ScDPSubtotalOptDlg::m_xLayoutFrame
private

Definition at line 163 of file pvfundlg.hxx.

Referenced by Init().

◆ m_xLbHide

std::unique_ptr<weld::TreeView> ScDPSubtotalOptDlg::m_xLbHide
private

Definition at line 175 of file pvfundlg.hxx.

Referenced by FillLabelData(), InitHideListBox(), and ScDPSubtotalOptDlg().

◆ m_xLbHierarchy

std::unique_ptr<weld::ComboBox> ScDPSubtotalOptDlg::m_xLbHierarchy
private

Definition at line 177 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xLbLayout

std::unique_ptr<weld::ComboBox> ScDPSubtotalOptDlg::m_xLbLayout
private

Definition at line 164 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xLbShowFrom

std::unique_ptr<weld::ComboBox> ScDPSubtotalOptDlg::m_xLbShowFrom
private

Definition at line 171 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xLbShowUsing

std::unique_ptr<weld::ComboBox> ScDPSubtotalOptDlg::m_xLbShowUsing
private

Definition at line 173 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xLbSortBy

std::unique_ptr<weld::ComboBox> ScDPSubtotalOptDlg::m_xLbSortBy
private

Definition at line 159 of file pvfundlg.hxx.

Referenced by FillLabelData(), Init(), and ScDPSubtotalOptDlg().

◆ m_xNfShow

std::unique_ptr<weld::SpinButton> ScDPSubtotalOptDlg::m_xNfShow
private

Definition at line 168 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xRbSortAsc

std::unique_ptr<weld::RadioButton> ScDPSubtotalOptDlg::m_xRbSortAsc
private

Definition at line 160 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ m_xRbSortDesc

std::unique_ptr<weld::RadioButton> ScDPSubtotalOptDlg::m_xRbSortDesc
private

Definition at line 161 of file pvfundlg.hxx.

Referenced by Init().

◆ m_xRbSortMan

std::unique_ptr<weld::RadioButton> ScDPSubtotalOptDlg::m_xRbSortMan
private

Definition at line 162 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

◆ maDataFieldNameMap

NameMapType ScDPSubtotalOptDlg::maDataFieldNameMap
private

Definition at line 185 of file pvfundlg.hxx.

Referenced by GetFieldName(), and Init().

◆ maLabelData

ScDPLabelData ScDPSubtotalOptDlg::maLabelData
private

The DataPilot object (for member names).

Definition at line 182 of file pvfundlg.hxx.

Referenced by FillLabelData(), Init(), and InitHideListBox().

◆ mrDPObj

ScDPObject& ScDPSubtotalOptDlg::mrDPObj
private

Definition at line 181 of file pvfundlg.hxx.


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