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

#include <PivotLayoutDialog.hxx>

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

Public Member Functions

 ScPivotLayoutDialog (SfxBindings *pSfxBindings, SfxChildWindow *pChildWindow, weld::Window *pParent, ScViewData *pViewData, const ScDPObject *pPivotTableObject, bool bCreateNewPivotTable)
 
virtual ~ScPivotLayoutDialog () override
 
virtual void SetReference (const ScRange &rReferenceRange, ScDocument &rDocument) override
 
virtual void SetActive () override
 
virtual bool IsRefInputMode () const override
 
void ItemInserted (const ScItemValue *pItemValue, ScPivotLayoutTreeList::SvPivotTreeListType eType)
 
void UpdateSourceRange ()
 
void ApplyChanges ()
 
void ApplySaveData (ScDPSaveData &rSaveData)
 
void ApplyLabelData (const ScDPSaveData &rSaveData)
 
ScItemValueGetItem (SCCOL nColumn)
 
bool IsDataElement (SCCOL nColumn)
 
ScDPLabelDataGetLabelData (SCCOL nColumn)
 
ScDPLabelDataVectorGetLabelDataVector ()
 
void PushDataFieldNames (std::vector< ScDPName > &rDataFieldNames)
 
- Public Member Functions inherited from ScAnyRefDlgController
 ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override=0
 
virtual void AddRefEntry () override
 
virtual bool IsRefInputMode () const override
 
virtual bool IsTableLocked () const override
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const override
 
virtual void ShowReference (const OUString &rStr) override
 
virtual void HideReference (bool bDoneRefMode=true) override
 
virtual void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override
 
virtual void ReleaseFocus (formula::RefEdit *pEdit) override
 
virtual void ViewShellChanged () override
 
void SwitchToDocument ()
 
virtual void SetActive () override=0
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 

Public Attributes

ScDPObject maPivotTableObject
 
ScPivotLayoutTreeListBasempPreviouslyFocusedListBox
 

Private Member Functions

 DECL_LINK (CancelClicked, weld::Button &, void)
 
 DECL_LINK (OKClicked, weld::Button &, void)
 
 DECL_LINK (GetEditFocusHandler, formula::RefEdit &, void)
 
 DECL_LINK (GetButtonFocusHandler, formula::RefButton &, void)
 
 DECL_LINK (LoseEditFocusHandler, formula::RefEdit &, void)
 
 DECL_LINK (LoseButtonFocusHandler, formula::RefButton &, void)
 
 DECL_LINK (ToggleSource, weld::Toggleable &, void)
 
 DECL_LINK (ToggleDestination, weld::Toggleable &, void)
 
 DECL_LINK (SourceListSelected, weld::ComboBox &, void)
 
 DECL_LINK (SourceEditModified, formula::RefEdit &, void)
 
void ToggleSource ()
 
void ToggleDestination ()
 
virtual void Close () override
 
void SetupSource ()
 
void SetupDestination ()
 
void FillValuesToListBoxes ()
 
bool GetDestination (ScRange &aDestinationRange, bool &bToNewSheet)
 

Private Attributes

ScViewDatampViewData
 
ScDocumentmrDocument
 
bool mbNewPivotTable
 
ScAddress::Details maAddressDetails
 
bool mbDialogLostFocus
 
formula::RefEditmpActiveEdit
 
std::unique_ptr< ScPivotLayoutTreeListLabelmxListBoxField
 
std::unique_ptr< ScPivotLayoutTreeListmxListBoxPage
 
std::unique_ptr< ScPivotLayoutTreeListmxListBoxColumn
 
std::unique_ptr< ScPivotLayoutTreeListmxListBoxRow
 
std::unique_ptr< ScPivotLayoutTreeListDatamxListBoxData
 
std::unique_ptr< weld::CheckButtonmxCheckIgnoreEmptyRows
 
std::unique_ptr< weld::CheckButtonmxCheckTotalColumns
 
std::unique_ptr< weld::CheckButtonmxCheckAddFilter
 
std::unique_ptr< weld::CheckButtonmxCheckIdentifyCategories
 
std::unique_ptr< weld::CheckButtonmxCheckTotalRows
 
std::unique_ptr< weld::CheckButtonmxCheckDrillToDetail
 
std::unique_ptr< weld::RadioButtonmxSourceRadioNamedRange
 
std::unique_ptr< weld::RadioButtonmxSourceRadioSelection
 
std::unique_ptr< weld::ComboBoxmxSourceListBox
 
std::unique_ptr< formula::RefEditmxSourceEdit
 
std::unique_ptr< formula::RefButtonmxSourceButton
 
std::unique_ptr< weld::RadioButtonmxDestinationRadioNewSheet
 
std::unique_ptr< weld::RadioButtonmxDestinationRadioNamedRange
 
std::unique_ptr< weld::RadioButtonmxDestinationRadioSelection
 
std::unique_ptr< weld::ComboBoxmxDestinationListBox
 
std::unique_ptr< formula::RefEditmxDestinationEdit
 
std::unique_ptr< formula::RefButtonmxDestinationButton
 
std::unique_ptr< weld::ButtonmxBtnOK
 
std::unique_ptr< weld::ButtonmxBtnCancel
 
std::unique_ptr< weld::FramemxSourceFrame
 
std::unique_ptr< weld::LabelmxSourceLabel
 
std::unique_ptr< weld::FramemxDestFrame
 
std::unique_ptr< weld::LabelmxDestLabel
 
ScPivotParam maPivotParameters
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Protected Member Functions inherited from ScRefHandler
void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
virtual void RefInputDone (bool bForced=false) override
 
bool ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &pDoc)
 

Detailed Description

Definition at line 34 of file PivotLayoutDialog.hxx.

Constructor & Destructor Documentation

◆ ScPivotLayoutDialog()

ScPivotLayoutDialog::ScPivotLayoutDialog ( SfxBindings pSfxBindings,
SfxChildWindow pChildWindow,
weld::Window pParent,
ScViewData pViewData,
const ScDPObject pPivotTableObject,
bool  bCreateNewPivotTable 
)

◆ ~ScPivotLayoutDialog()

ScPivotLayoutDialog::~ScPivotLayoutDialog ( )
overridevirtual

Definition at line 187 of file PivotLayoutDialog.cxx.

Member Function Documentation

◆ ApplyChanges()

void ScPivotLayoutDialog::ApplyChanges ( )

◆ ApplyLabelData()

void ScPivotLayoutDialog::ApplyLabelData ( const ScDPSaveData rSaveData)

◆ ApplySaveData()

void ScPivotLayoutDialog::ApplySaveData ( ScDPSaveData rSaveData)

◆ Close()

void ScPivotLayoutDialog::Close ( )
overrideprivatevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 627 of file PivotLayoutDialog.cxx.

References SfxDialogController::Close(), and ScRefHandler::DoClose().

◆ DECL_LINK() [1/10]

ScPivotLayoutDialog::DECL_LINK ( CancelClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/10]

ScPivotLayoutDialog::DECL_LINK ( GetButtonFocusHandler  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [3/10]

ScPivotLayoutDialog::DECL_LINK ( GetEditFocusHandler  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [4/10]

ScPivotLayoutDialog::DECL_LINK ( LoseButtonFocusHandler  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [5/10]

ScPivotLayoutDialog::DECL_LINK ( LoseEditFocusHandler  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [6/10]

ScPivotLayoutDialog::DECL_LINK ( OKClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [7/10]

ScPivotLayoutDialog::DECL_LINK ( SourceEditModified  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [8/10]

ScPivotLayoutDialog::DECL_LINK ( SourceListSelected  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [9/10]

ScPivotLayoutDialog::DECL_LINK ( ToggleDestination  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [10/10]

ScPivotLayoutDialog::DECL_LINK ( ToggleSource  ,
weld::Toggleable ,
void   
)
private

◆ FillValuesToListBoxes()

void ScPivotLayoutDialog::FillValuesToListBoxes ( )
private

◆ GetDestination()

bool ScPivotLayoutDialog::GetDestination ( ScRange aDestinationRange,
bool &  bToNewSheet 
)
private

◆ GetItem()

ScItemValue * ScPivotLayoutDialog::GetItem ( SCCOL  nColumn)

◆ GetLabelData()

ScDPLabelData & ScPivotLayoutDialog::GetLabelData ( SCCOL  nColumn)

◆ GetLabelDataVector()

ScDPLabelDataVector & ScPivotLayoutDialog::GetLabelDataVector ( )
inline

Definition at line 132 of file PivotLayoutDialog.hxx.

References ScPivotParam::maLabelArray, and maPivotParameters.

Referenced by ApplyLabelData().

◆ IsDataElement()

bool ScPivotLayoutDialog::IsDataElement ( SCCOL  nColumn)

◆ IsRefInputMode()

bool ScPivotLayoutDialog::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 360 of file PivotLayoutDialog.cxx.

References mbDialogLostFocus.

◆ ItemInserted()

void ScPivotLayoutDialog::ItemInserted ( const ScItemValue pItemValue,
ScPivotLayoutTreeList::SvPivotTreeListType  eType 
)

◆ PushDataFieldNames()

void ScPivotLayoutDialog::PushDataFieldNames ( std::vector< ScDPName > &  rDataFieldNames)

Definition at line 622 of file PivotLayoutDialog.cxx.

References mxListBoxData.

◆ SetActive()

void ScPivotLayoutDialog::SetActive ( )
overridevirtual

◆ SetReference()

void ScPivotLayoutDialog::SetReference ( const ScRange rReferenceRange,
ScDocument rDocument 
)
overridevirtual

◆ SetupDestination()

void ScPivotLayoutDialog::SetupDestination ( )
private

◆ SetupSource()

void ScPivotLayoutDialog::SetupSource ( )
private

◆ ToggleDestination()

void ScPivotLayoutDialog::ToggleDestination ( )
private

◆ ToggleSource()

void ScPivotLayoutDialog::ToggleSource ( )
private

◆ UpdateSourceRange()

void ScPivotLayoutDialog::UpdateSourceRange ( )

Member Data Documentation

◆ maAddressDetails

ScAddress::Details ScPivotLayoutDialog::maAddressDetails
private

◆ maPivotParameters

ScPivotParam ScPivotLayoutDialog::maPivotParameters
private

◆ maPivotTableObject

ScDPObject ScPivotLayoutDialog::maPivotTableObject

◆ mbDialogLostFocus

bool ScPivotLayoutDialog::mbDialogLostFocus
private

Definition at line 48 of file PivotLayoutDialog.hxx.

Referenced by IsRefInputMode(), SetActive(), and SetReference().

◆ mbNewPivotTable

bool ScPivotLayoutDialog::mbNewPivotTable
private

Definition at line 45 of file PivotLayoutDialog.hxx.

Referenced by SetupDestination().

◆ mpActiveEdit

formula::RefEdit* ScPivotLayoutDialog::mpActiveEdit
private

Definition at line 50 of file PivotLayoutDialog.hxx.

Referenced by SetActive(), and SetReference().

◆ mpPreviouslyFocusedListBox

ScPivotLayoutTreeListBase* ScPivotLayoutDialog::mpPreviouslyFocusedListBox

Definition at line 39 of file PivotLayoutDialog.hxx.

◆ mpViewData

ScViewData* ScPivotLayoutDialog::mpViewData
private

Definition at line 42 of file PivotLayoutDialog.hxx.

Referenced by ApplyChanges().

◆ mrDocument

ScDocument& ScPivotLayoutDialog::mrDocument
private

◆ mxBtnCancel

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

Definition at line 80 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

◆ mxBtnOK

std::unique_ptr<weld::Button> ScPivotLayoutDialog::mxBtnOK
private

Definition at line 79 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

◆ mxCheckAddFilter

std::unique_ptr<weld::CheckButton> ScPivotLayoutDialog::mxCheckAddFilter
private

Definition at line 59 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

◆ mxCheckDrillToDetail

std::unique_ptr<weld::CheckButton> ScPivotLayoutDialog::mxCheckDrillToDetail
private

Definition at line 62 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

◆ mxCheckIdentifyCategories

std::unique_ptr<weld::CheckButton> ScPivotLayoutDialog::mxCheckIdentifyCategories
private

Definition at line 60 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

◆ mxCheckIgnoreEmptyRows

std::unique_ptr<weld::CheckButton> ScPivotLayoutDialog::mxCheckIgnoreEmptyRows
private

Definition at line 57 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

◆ mxCheckTotalColumns

std::unique_ptr<weld::CheckButton> ScPivotLayoutDialog::mxCheckTotalColumns
private

Definition at line 58 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

◆ mxCheckTotalRows

std::unique_ptr<weld::CheckButton> ScPivotLayoutDialog::mxCheckTotalRows
private

Definition at line 61 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

◆ mxDestFrame

std::unique_ptr<weld::Frame> ScPivotLayoutDialog::mxDestFrame
private

Definition at line 84 of file PivotLayoutDialog.hxx.

◆ mxDestinationButton

std::unique_ptr<formula::RefButton> ScPivotLayoutDialog::mxDestinationButton
private

Definition at line 77 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog(), and ToggleDestination().

◆ mxDestinationEdit

std::unique_ptr<formula::RefEdit> ScPivotLayoutDialog::mxDestinationEdit
private

◆ mxDestinationListBox

std::unique_ptr<weld::ComboBox> ScPivotLayoutDialog::mxDestinationListBox
private

Definition at line 75 of file PivotLayoutDialog.hxx.

Referenced by GetDestination(), SetupDestination(), and ToggleDestination().

◆ mxDestinationRadioNamedRange

std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxDestinationRadioNamedRange
private

◆ mxDestinationRadioNewSheet

std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxDestinationRadioNewSheet
private

Definition at line 71 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog(), and SetupDestination().

◆ mxDestinationRadioSelection

std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxDestinationRadioSelection
private

◆ mxDestLabel

std::unique_ptr<weld::Label> ScPivotLayoutDialog::mxDestLabel
private

Definition at line 85 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

◆ mxListBoxColumn

std::unique_ptr<ScPivotLayoutTreeList> ScPivotLayoutDialog::mxListBoxColumn
private

◆ mxListBoxData

std::unique_ptr<ScPivotLayoutTreeListData> ScPivotLayoutDialog::mxListBoxData
private

◆ mxListBoxField

std::unique_ptr<ScPivotLayoutTreeListLabel> ScPivotLayoutDialog::mxListBoxField
private

◆ mxListBoxPage

std::unique_ptr<ScPivotLayoutTreeList> ScPivotLayoutDialog::mxListBoxPage
private

◆ mxListBoxRow

std::unique_ptr<ScPivotLayoutTreeList> ScPivotLayoutDialog::mxListBoxRow
private

◆ mxSourceButton

std::unique_ptr<formula::RefButton> ScPivotLayoutDialog::mxSourceButton
private

Definition at line 69 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog(), and ToggleSource().

◆ mxSourceEdit

std::unique_ptr<formula::RefEdit> ScPivotLayoutDialog::mxSourceEdit
private

◆ mxSourceFrame

std::unique_ptr<weld::Frame> ScPivotLayoutDialog::mxSourceFrame
private

Definition at line 82 of file PivotLayoutDialog.hxx.

◆ mxSourceLabel

std::unique_ptr<weld::Label> ScPivotLayoutDialog::mxSourceLabel
private

Definition at line 83 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

◆ mxSourceListBox

std::unique_ptr<weld::ComboBox> ScPivotLayoutDialog::mxSourceListBox
private

◆ mxSourceRadioNamedRange

std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxSourceRadioNamedRange
private

◆ mxSourceRadioSelection

std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxSourceRadioSelection
private

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