LibreOffice Module sc (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | 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 *)
 
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
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

Protected Member Functions

 ScTpSubTotalGroup (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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
 

Protected Attributes

const OUString aStrNone
 
const OUString aStrColumn
 
ScViewDatapViewData
 
ScDocumentpDoc
 
const sal_uInt16 nWhichSubTotals
 
const ScSubTotalParamrSubTotalData
 
SCCOL nFieldArr [SC_MAXFIELDS]
 
sal_uInt16 nFieldCount
 
std::unique_ptr< weld::ComboBoxmxLbGroup
 
std::unique_ptr< weld::TreeViewmxLbColumns
 
std::unique_ptr< weld::TreeViewmxLbFunctions
 

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)
 
void SelectHdl (const weld::Widget *)
 

Static Private Member Functions

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

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 33 of file tpsubt.hxx.

Constructor & Destructor Documentation

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

Definition at line 40 of file tpsubt.cxx.

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

ScTpSubTotalGroup::~ScTpSubTotalGroup ( )
overridevirtual

Definition at line 65 of file tpsubt.cxx.

Member Function Documentation

ScTpSubTotalGroup::DECL_LINK ( SelectListBoxHdl  ,
weld::ComboBox ,
void   
)
private
ScTpSubTotalGroup::DECL_LINK ( SelectTreeListBoxHdl  ,
weld::TreeView ,
void   
)
private
ScTpSubTotalGroup::DECL_LINK ( CheckHdl  ,
const weld::TreeView::iter_col ,
void   
)
private
bool ScTpSubTotalGroup::DoFillItemSet ( sal_uInt16  nGroupNo,
SfxItemSet rArgSet 
)
bool ScTpSubTotalGroup::DoReset ( sal_uInt16  nGroupNo,
const SfxItemSet rArgSet 
)
void ScTpSubTotalGroup::FillListBoxes ( )
private
sal_uInt16 ScTpSubTotalGroup::FuncToLbPos ( ScSubTotalFunc  eFunc)
staticprivate
sal_uInt16 ScTpSubTotalGroup::GetFieldSelPos ( SCCOL  nField)
private

Definition at line 272 of file tpsubt.cxx.

References n, nFieldArr, and nFieldCount.

Referenced by DoReset().

void ScTpSubTotalGroup::Init ( void  )
private
ScSubTotalFunc ScTpSubTotalGroup::LbPosToFunc ( sal_uInt16  nPos)
staticprivate
void ScTpSubTotalGroup::SelectHdl ( const weld::Widget pLb)
private

Definition at line 345 of file tpsubt.cxx.

References mxLbColumns, mxLbFunctions, and TRISTATE_TRUE.

Member Data Documentation

const OUString ScTpSubTotalGroup::aStrColumn
protected

Definition at line 47 of file tpsubt.hxx.

Referenced by FillListBoxes().

const OUString ScTpSubTotalGroup::aStrNone
protected

Definition at line 46 of file tpsubt.hxx.

Referenced by FillListBoxes().

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

Definition at line 58 of file tpsubt.hxx.

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

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

Definition at line 59 of file tpsubt.hxx.

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

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

Definition at line 57 of file tpsubt.hxx.

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

SCCOL ScTpSubTotalGroup::nFieldArr[SC_MAXFIELDS]
protected

Definition at line 54 of file tpsubt.hxx.

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

sal_uInt16 ScTpSubTotalGroup::nFieldCount
protected

Definition at line 55 of file tpsubt.hxx.

Referenced by FillListBoxes(), and GetFieldSelPos().

const sal_uInt16 ScTpSubTotalGroup::nWhichSubTotals
protected

Definition at line 52 of file tpsubt.hxx.

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

ScDocument* ScTpSubTotalGroup::pDoc
protected

Definition at line 50 of file tpsubt.hxx.

Referenced by FillListBoxes(), and Init().

ScViewData* ScTpSubTotalGroup::pViewData
protected

Definition at line 49 of file tpsubt.hxx.

Referenced by FillListBoxes(), and Init().

const ScSubTotalParam& ScTpSubTotalGroup::rSubTotalData
protected

Definition at line 53 of file tpsubt.hxx.

Referenced by DoFillItemSet(), and FillListBoxes().


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