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 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, 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, const OUString &rEntry, sal_Int32 nStartPos) const
 Searches for a listbox entry, starts search at specified position. More...
 
 DECL_LINK (RadioClickHdl, weld::Button &, void)
 
 DECL_LINK (CheckHdl, weld::Button &, void)
 
 DECL_LINK (SelectHdl, weld::ComboBox &, 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
 
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 127 of file pvfundlg.hxx.

Member Typedef Documentation

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

Cache for members data.

Definition at line 173 of file pvfundlg.hxx.

Constructor & Destructor Documentation

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

Definition at line 604 of file pvfundlg.cxx.

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

ScDPSubtotalOptDlg::~ScDPSubtotalOptDlg ( )
overridevirtual

Definition at line 638 of file pvfundlg.cxx.

Member Function Documentation

ScDPSubtotalOptDlg::DECL_LINK ( RadioClickHdl  ,
weld::Button ,
void   
)
private
ScDPSubtotalOptDlg::DECL_LINK ( CheckHdl  ,
weld::Button ,
void   
)
private
ScDPSubtotalOptDlg::DECL_LINK ( SelectHdl  ,
weld::ComboBox ,
void   
)
private
void ScDPSubtotalOptDlg::FillLabelData ( ScDPLabelData rLabelData) const
sal_Int32 ScDPSubtotalOptDlg::FindListBoxEntry ( const weld::ComboBox rLBox,
const OUString &  rEntry,
sal_Int32  nStartPos 
) const
private

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

Definition at line 803 of file pvfundlg.cxx.

References ScDPUtil::createDuplicateDimensionName(), weld::ComboBox::get_count(), weld::ComboBox::get_text(), GetFieldName(), ScDPName::maName, and ScDPName::mnDupCount.

Referenced by Init().

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

Definition at line 797 of file pvfundlg.cxx.

References maDataFieldNameMap.

Referenced by FillLabelData(), and FindListBoxEntry().

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

Definition at line 786 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

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

Definition at line 156 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 157 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 158 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 167 of file pvfundlg.hxx.

Referenced by Init().

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

Definition at line 160 of file pvfundlg.hxx.

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

Definition at line 161 of file pvfundlg.hxx.

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

Definition at line 163 of file pvfundlg.hxx.

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

Definition at line 165 of file pvfundlg.hxx.

Referenced by InitHideListBox().

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

Definition at line 154 of file pvfundlg.hxx.

Referenced by Init().

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

Definition at line 166 of file pvfundlg.hxx.

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

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

Definition at line 168 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 155 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 162 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 164 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 150 of file pvfundlg.hxx.

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

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

Definition at line 159 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 151 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

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

Definition at line 152 of file pvfundlg.hxx.

Referenced by Init().

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

Definition at line 153 of file pvfundlg.hxx.

Referenced by FillLabelData(), and Init().

NameMapType ScDPSubtotalOptDlg::maDataFieldNameMap
private

Definition at line 174 of file pvfundlg.hxx.

Referenced by GetFieldName(), and Init().

ScDPLabelData ScDPSubtotalOptDlg::maLabelData
private

The DataPilot object (for member names).

Definition at line 171 of file pvfundlg.hxx.

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

ScDPObject& ScDPSubtotalOptDlg::mrDPObj
private

Definition at line 170 of file pvfundlg.hxx.


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