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

#include <tpsubt.hxx>

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

Public Member Functions

virtual ~ScTpSubTotalGroup () override
 
bool DoReset (sal_uInt16 nGroupNo, const SfxItemSet &rArgSet)
 
bool DoFillItemSet (sal_uInt16 nGroupNo, SfxItemSet &rArgSet)
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Protected Member Functions

 ScTpSubTotalGroup (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet, const sal_uInt16 &nTabNumber)
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Private Member Functions

void Init ()
 
void FillListBoxes ()
 
sal_uInt16 GetFieldSelPos (SCCOL nField)
 
 DECL_LINK (SelectListBoxHdl, weld::ComboBox &, void)
 
 DECL_LINK (SelectTreeListBoxHdl, weld::TreeView &, void)
 
 DECL_LINK (CheckHdl, const weld::TreeView::iter_col &, void)
 
 DECL_LINK (CheckBoxHdl, weld::Toggleable &, void)
 
void SelectHdl (const weld::Widget *)
 

Static Private Member Functions

static ScSubTotalFunc LbPosToFunc (sal_uInt16 nPos)
 
static sal_uInt16 FuncToLbPos (ScSubTotalFunc eFunc)
 

Private Attributes

const OUString aStrNone
 
const OUString aStrColumn
 
ScViewDatapViewData
 
ScDocumentpDoc
 
const TypedWhichId< ScSubTotalItemnWhichSubTotals
 
const ScSubTotalParamrSubTotalData
 
std::vector< SCCOLmnFieldArr
 
sal_uInt16 nFieldCount
 
std::unique_ptr< weld::ComboBoxmxLbGroup
 
std::unique_ptr< weld::TreeViewmxLbColumns
 
std::unique_ptr< weld::TreeViewmxLbFunctions
 
std::unique_ptr< weld::CheckButtonmxLbSelectAllColumns
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Detailed Description

Definition at line 30 of file tpsubt.hxx.

Constructor & Destructor Documentation

◆ ScTpSubTotalGroup()

ScTpSubTotalGroup::ScTpSubTotalGroup ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rArgSet,
const sal_uInt16 &  nTabNumber 
)
protected

Definition at line 41 of file tpsubt.cxx.

References weld::Check, Get(), GetWhich, i, Init(), mxLbColumns, mxLbFunctions, mxLbGroup, SAL_N_ELEMENTS, and ScResId().

◆ ~ScTpSubTotalGroup()

ScTpSubTotalGroup::~ScTpSubTotalGroup ( )
overridevirtual

Definition at line 71 of file tpsubt.cxx.

Member Function Documentation

◆ DECL_LINK() [1/4]

ScTpSubTotalGroup::DECL_LINK ( CheckBoxHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/4]

ScTpSubTotalGroup::DECL_LINK ( CheckHdl  ,
const weld::TreeView::iter_col ,
void   
)
private

◆ DECL_LINK() [3/4]

ScTpSubTotalGroup::DECL_LINK ( SelectListBoxHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [4/4]

ScTpSubTotalGroup::DECL_LINK ( SelectTreeListBoxHdl  ,
weld::TreeView ,
void   
)
private

◆ DoFillItemSet()

bool ScTpSubTotalGroup::DoFillItemSet ( sal_uInt16  nGroupNo,
SfxItemSet rArgSet 
)

◆ DoReset()

bool ScTpSubTotalGroup::DoReset ( sal_uInt16  nGroupNo,
const SfxItemSet rArgSet 
)

◆ FillListBoxes()

void ScTpSubTotalGroup::FillListBoxes ( )
private

◆ FuncToLbPos()

sal_uInt16 ScTpSubTotalGroup::FuncToLbPos ( ScSubTotalFunc  eFunc)
staticprivate

◆ GetFieldSelPos()

sal_uInt16 ScTpSubTotalGroup::GetFieldSelPos ( SCCOL  nField)
private

Definition at line 283 of file tpsubt.cxx.

References mnFieldArr, n, and nFieldCount.

Referenced by DoReset().

◆ Init()

void ScTpSubTotalGroup::Init ( void  )
private

◆ LbPosToFunc()

ScSubTotalFunc ScTpSubTotalGroup::LbPosToFunc ( sal_uInt16  nPos)
staticprivate

◆ SelectHdl()

void ScTpSubTotalGroup::SelectHdl ( const weld::Widget pLb)
private

Definition at line 361 of file tpsubt.cxx.

References mxLbColumns, mxLbFunctions, and TRISTATE_TRUE.

Member Data Documentation

◆ aStrColumn

const OUString ScTpSubTotalGroup::aStrColumn
private

Definition at line 57 of file tpsubt.hxx.

Referenced by FillListBoxes().

◆ aStrNone

const OUString ScTpSubTotalGroup::aStrNone
private

Definition at line 56 of file tpsubt.hxx.

Referenced by FillListBoxes().

◆ mnFieldArr

std::vector<SCCOL> ScTpSubTotalGroup::mnFieldArr
private

Definition at line 64 of file tpsubt.hxx.

Referenced by DoFillItemSet(), FillListBoxes(), GetFieldSelPos(), and Init().

◆ mxLbColumns

std::unique_ptr<weld::TreeView> ScTpSubTotalGroup::mxLbColumns
private

Definition at line 68 of file tpsubt.hxx.

Referenced by DoFillItemSet(), DoReset(), FillListBoxes(), Init(), ScTpSubTotalGroup(), and SelectHdl().

◆ mxLbFunctions

std::unique_ptr<weld::TreeView> ScTpSubTotalGroup::mxLbFunctions
private

Definition at line 69 of file tpsubt.hxx.

Referenced by DoFillItemSet(), DoReset(), Init(), ScTpSubTotalGroup(), and SelectHdl().

◆ mxLbGroup

std::unique_ptr<weld::ComboBox> ScTpSubTotalGroup::mxLbGroup
private

Definition at line 67 of file tpsubt.hxx.

Referenced by DoFillItemSet(), DoReset(), FillListBoxes(), Init(), and ScTpSubTotalGroup().

◆ mxLbSelectAllColumns

std::unique_ptr<weld::CheckButton> ScTpSubTotalGroup::mxLbSelectAllColumns
private

Definition at line 70 of file tpsubt.hxx.

Referenced by DoReset(), and Init().

◆ nFieldCount

sal_uInt16 ScTpSubTotalGroup::nFieldCount
private

Definition at line 65 of file tpsubt.hxx.

Referenced by FillListBoxes(), and GetFieldSelPos().

◆ nWhichSubTotals

const TypedWhichId<ScSubTotalItem> ScTpSubTotalGroup::nWhichSubTotals
private

Definition at line 62 of file tpsubt.hxx.

Referenced by DoFillItemSet(), DoReset(), and Init().

◆ pDoc

ScDocument* ScTpSubTotalGroup::pDoc
private

Definition at line 60 of file tpsubt.hxx.

Referenced by FillListBoxes(), and Init().

◆ pViewData

ScViewData* ScTpSubTotalGroup::pViewData
private

Definition at line 59 of file tpsubt.hxx.

Referenced by FillListBoxes(), and Init().

◆ rSubTotalData

const ScSubTotalParam& ScTpSubTotalGroup::rSubTotalData
private

Definition at line 63 of file tpsubt.hxx.

Referenced by DoFillItemSet(), and FillListBoxes().


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