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 EndDialog () 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)
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void AddRefEntry () 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 ()
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

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::ToggleButton &, void)
 
 DECL_LINK (ToggleDestination, weld::ToggleButton &, 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
 
std::unique_ptr< weld::ExpandermxOptions
 
std::unique_ptr< weld::ExpandermxMore
 
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, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 35 of file PivotLayoutDialog.hxx.

Constructor & Destructor Documentation

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

Definition at line 187 of file PivotLayoutDialog.cxx.

Member Function Documentation

void ScPivotLayoutDialog::ApplyChanges ( )
void ScPivotLayoutDialog::ApplyLabelData ( const ScDPSaveData rSaveData)
void ScPivotLayoutDialog::ApplySaveData ( ScDPSaveData rSaveData)
void ScPivotLayoutDialog::Close ( )
overrideprivatevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 624 of file PivotLayoutDialog.cxx.

References ScRefHandler::DoClose().

ScPivotLayoutDialog::DECL_LINK ( CancelClicked  ,
weld::Button ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( OKClicked  ,
weld::Button ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( GetEditFocusHandler  ,
formula::RefEdit ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( GetButtonFocusHandler  ,
formula::RefButton ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( LoseEditFocusHandler  ,
formula::RefEdit ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( LoseButtonFocusHandler  ,
formula::RefButton ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( ToggleSource  ,
weld::ToggleButton ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( ToggleDestination  ,
weld::ToggleButton ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( SourceListSelected  ,
weld::ComboBox ,
void   
)
private
ScPivotLayoutDialog::DECL_LINK ( SourceEditModified  ,
formula::RefEdit ,
void   
)
private
void ScPivotLayoutDialog::FillValuesToListBoxes ( )
private
bool ScPivotLayoutDialog::GetDestination ( ScRange aDestinationRange,
bool &  bToNewSheet 
)
private
ScItemValue * ScPivotLayoutDialog::GetItem ( SCCOL  nColumn)
ScDPLabelData & ScPivotLayoutDialog::GetLabelData ( SCCOL  nColumn)
ScDPLabelDataVector& ScPivotLayoutDialog::GetLabelDataVector ( )
inline

Definition at line 136 of file PivotLayoutDialog.hxx.

References ScPivotParam::maLabelArray.

Referenced by ApplyLabelData().

bool ScPivotLayoutDialog::IsDataElement ( SCCOL  nColumn)
bool ScPivotLayoutDialog::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 357 of file PivotLayoutDialog.cxx.

References mbDialogLostFocus.

void ScPivotLayoutDialog::ItemInserted ( const ScItemValue pItemValue,
ScPivotLayoutTreeList::SvPivotTreeListType  eType 
)
void ScPivotLayoutDialog::PushDataFieldNames ( std::vector< ScDPName > &  rDataFieldNames)

Definition at line 619 of file PivotLayoutDialog.cxx.

References mxListBoxData.

void ScPivotLayoutDialog::SetActive ( )
overridevirtual
void ScPivotLayoutDialog::SetReference ( const ScRange rReferenceRange,
ScDocument rDocument 
)
overridevirtual
void ScPivotLayoutDialog::SetupDestination ( )
private
void ScPivotLayoutDialog::SetupSource ( )
private
void ScPivotLayoutDialog::ToggleDestination ( )
private
void ScPivotLayoutDialog::ToggleSource ( )
private
void ScPivotLayoutDialog::UpdateSourceRange ( )

Member Data Documentation

ScAddress::Details ScPivotLayoutDialog::maAddressDetails
private
ScPivotParam ScPivotLayoutDialog::maPivotParameters
private
ScDPObject ScPivotLayoutDialog::maPivotTableObject
bool ScPivotLayoutDialog::mbDialogLostFocus
private

Definition at line 49 of file PivotLayoutDialog.hxx.

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

bool ScPivotLayoutDialog::mbNewPivotTable
private

Definition at line 46 of file PivotLayoutDialog.hxx.

Referenced by SetupDestination().

formula::RefEdit* ScPivotLayoutDialog::mpActiveEdit
private

Definition at line 51 of file PivotLayoutDialog.hxx.

Referenced by SetActive(), and SetReference().

ScPivotLayoutTreeListBase* ScPivotLayoutDialog::mpPreviouslyFocusedListBox

Definition at line 40 of file PivotLayoutDialog.hxx.

ScViewData* ScPivotLayoutDialog::mpViewData
private

Definition at line 43 of file PivotLayoutDialog.hxx.

Referenced by ApplyChanges().

ScDocument& ScPivotLayoutDialog::mrDocument
private
std::unique_ptr<weld::Button> ScPivotLayoutDialog::mxBtnCancel
private

Definition at line 81 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

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

Definition at line 80 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

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

Definition at line 60 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

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

Definition at line 63 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

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

Definition at line 61 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

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

Definition at line 58 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

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

Definition at line 59 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

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

Definition at line 62 of file PivotLayoutDialog.hxx.

Referenced by ApplySaveData(), and ScPivotLayoutDialog().

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

Definition at line 85 of file PivotLayoutDialog.hxx.

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

Definition at line 78 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog(), and ToggleDestination().

std::unique_ptr<formula::RefEdit> ScPivotLayoutDialog::mxDestinationEdit
private
std::unique_ptr<weld::ComboBox> ScPivotLayoutDialog::mxDestinationListBox
private

Definition at line 76 of file PivotLayoutDialog.hxx.

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

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

Definition at line 72 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog(), and SetupDestination().

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

Definition at line 86 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

std::unique_ptr<ScPivotLayoutTreeList> ScPivotLayoutDialog::mxListBoxColumn
private
std::unique_ptr<ScPivotLayoutTreeListData> ScPivotLayoutDialog::mxListBoxData
private
std::unique_ptr<ScPivotLayoutTreeListLabel> ScPivotLayoutDialog::mxListBoxField
private
std::unique_ptr<ScPivotLayoutTreeList> ScPivotLayoutDialog::mxListBoxPage
private
std::unique_ptr<ScPivotLayoutTreeList> ScPivotLayoutDialog::mxListBoxRow
private
std::unique_ptr<weld::Expander> ScPivotLayoutDialog::mxMore
private

Definition at line 89 of file PivotLayoutDialog.hxx.

std::unique_ptr<weld::Expander> ScPivotLayoutDialog::mxOptions
private

Definition at line 88 of file PivotLayoutDialog.hxx.

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

Definition at line 70 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog(), and ToggleSource().

std::unique_ptr<formula::RefEdit> ScPivotLayoutDialog::mxSourceEdit
private
std::unique_ptr<weld::Frame> ScPivotLayoutDialog::mxSourceFrame
private

Definition at line 83 of file PivotLayoutDialog.hxx.

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

Definition at line 84 of file PivotLayoutDialog.hxx.

Referenced by ScPivotLayoutDialog().

std::unique_ptr<weld::ComboBox> ScPivotLayoutDialog::mxSourceListBox
private
std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxSourceRadioNamedRange
private
std::unique_ptr<weld::RadioButton> ScPivotLayoutDialog::mxSourceRadioSelection
private

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