LibreOffice Module sc (master) 1
|
#include <PivotLayoutDialog.hxx>
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) |
ScItemValue * | GetItem (SCCOL nColumn) |
bool | IsDataElement (SCCOL nColumn) |
ScDPLabelData & | GetLabelData (SCCOL nColumn) |
ScDPLabelDataVector & | GetLabelDataVector () |
void | PushDataFieldNames (std::vector< ScDPName > &rDataFieldNames) |
Public Member Functions inherited from ScAnyRefDlgController | |
ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OUString &rt5) | |
Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController > | |
ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pArg, SfxBindings *pB) | |
ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &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 |
SfxBindings & | GetBindings () const |
Public Member Functions inherited from SfxDialogController | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog (int nResponse) |
virtual bool | CloseOnHide () const |
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 |
ScPivotLayoutTreeListBase * | mpPreviouslyFocusedListBox |
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) |
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 OUString &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) |
Definition at line 34 of file PivotLayoutDialog.hxx.
ScPivotLayoutDialog::ScPivotLayoutDialog | ( | SfxBindings * | pSfxBindings, |
SfxChildWindow * | pChildWindow, | ||
weld::Window * | pParent, | ||
ScViewData * | pViewData, | ||
const ScDPObject * | pPivotTableObject, | ||
bool | bCreateNewPivotTable | ||
) |
Definition at line 72 of file PivotLayoutDialog.cxx.
References ScPivotParam::bDetectCategories, ScPivotParam::bIgnoreEmptyRows, ScPivotParam::bMakeTotalCol, ScPivotParam::bMakeTotalRow, ScPivotLayoutTreeListBase::COLUMN_LIST, ScDPObject::FillLabelData(), ScDPObject::FillOldParam(), FillValuesToListBoxes(), ScDPSaveData::GetDrillDown(), ScDPSaveData::GetExpandCollapse(), ScDPSaveData::GetFilterButton(), ScDPObject::GetSaveData(), LINK, maPivotParameters, maPivotTableObject, mxBtnCancel, mxBtnOK, mxCheckAddFilter, mxCheckDrillToDetail, mxCheckExpandCollapse, mxCheckIdentifyCategories, mxCheckIgnoreEmptyRows, mxCheckTotalColumns, mxCheckTotalRows, mxDestinationButton, mxDestinationEdit, mxDestinationRadioNamedRange, mxDestinationRadioNewSheet, mxDestinationRadioSelection, mxDestLabel, mxListBoxColumn, mxListBoxData, mxListBoxField, mxListBoxPage, mxListBoxRow, mxSourceButton, mxSourceEdit, mxSourceLabel, mxSourceListBox, mxSourceRadioNamedRange, mxSourceRadioSelection, ScPivotLayoutTreeListBase::PAGE_LIST, ScPivotLayoutTreeListBase::ROW_LIST, SetupDestination(), SetupSource(), ToggleDestination(), and ToggleSource().
|
overridevirtual |
Definition at line 190 of file PivotLayoutDialog.cxx.
void ScPivotLayoutDialog::ApplyChanges | ( | ) |
Definition at line 464 of file PivotLayoutDialog.cxx.
References ApplyLabelData(), ApplySaveData(), ScRange::Contains(), ScTabView::CursorPosChanged(), SfxDispatcher::ExecuteList(), SfxModelessDialogController::GetBindings(), GetDestination(), SfxBindings::GetDispatcher(), ScViewData::GetDocShell(), ScDocument::GetDPAtCursor(), ScDPObject::GetOutRange(), ScViewData::GetView(), ScViewData::GetViewShell(), maPivotParameters, maPivotTableObject, mpViewData, mrDocument, ScPivotParam::nCol, ScPivotParam::nRow, ScPivotParam::nTab, ScDBDocFunc::RemovePivotTable(), SC_MOD, ScTabViewShell::SetDialogDPObject(), ScRefHandler::SetDispatcherLock(), and ScRefHandler::SwitchToDocument().
void ScPivotLayoutDialog::ApplyLabelData | ( | const ScDPSaveData & | rSaveData | ) |
Definition at line 552 of file PivotLayoutDialog.cxx.
References ScDPUtil::createDuplicateDimensionName(), ScDPSaveData::GetExistingDimensionByName(), GetLabelDataVector(), ScDPSaveDimension::GetMemberByName(), ScDPLabelData::Member::maName, ScDPLabelData::Member::mbShowDetails, ScDPLabelData::Member::mbVisible, ScDPSaveDimension::SetAutoShowInfo(), ScDPSaveMember::SetIsVisible(), ScDPSaveDimension::SetLayoutInfo(), ScDPSaveDimension::SetRepeatItemLabels(), ScDPSaveMember::SetShowDetails(), ScDPSaveDimension::SetShowEmpty(), ScDPSaveDimension::SetSortInfo(), and ScDPSaveDimension::SetUsedHierarchy().
Referenced by ApplyChanges().
void ScPivotLayoutDialog::ApplySaveData | ( | ScDPSaveData & | rSaveData | ) |
Definition at line 518 of file PivotLayoutDialog.cxx.
References ScDPObject::ConvertOrientation(), ScDPObject::GetSource(), ScPivotParam::maLabelArray, maPivotParameters, maPivotTableObject, mxCheckAddFilter, mxCheckDrillToDetail, mxCheckExpandCollapse, mxCheckIdentifyCategories, mxCheckIgnoreEmptyRows, mxCheckTotalColumns, mxCheckTotalRows, mxListBoxColumn, mxListBoxData, mxListBoxPage, mxListBoxRow, ScDPSaveData::SetColumnGrand(), ScDPSaveData::SetDrillDown(), ScDPSaveData::SetExpandCollapse(), ScDPSaveData::SetFilterButton(), ScDPSaveData::SetIgnoreEmptyRows(), ScDPSaveData::SetRepeatIfEmpty(), and ScDPSaveData::SetRowGrand().
Referenced by ApplyChanges().
|
overrideprivatevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 631 of file PivotLayoutDialog.cxx.
References SfxDialogController::Close(), and ScRefHandler::DoClose().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 311 of file PivotLayoutDialog.cxx.
References ScPivotParam::maColFields, ScPivotParam::maDataFields, ScPivotParam::maLabelArray, ScPivotParam::maPageFields, maPivotParameters, ScPivotParam::maRowFields, mxListBoxColumn, mxListBoxData, mxListBoxField, mxListBoxPage, and mxListBoxRow.
Referenced by ScPivotLayoutDialog(), and UpdateSourceRange().
|
private |
Definition at line 586 of file PivotLayoutDialog.cxx.
References aName, ScRange::IsValid(), maAddressDetails, maPivotParameters, mrDocument, mxDestinationEdit, mxDestinationListBox, mxDestinationRadioNamedRange, mxDestinationRadioSelection, ScPivotParam::nCol, ScPivotParam::nRow, ScPivotParam::nTab, and ScAddress::Parse().
Referenced by ApplyChanges().
ScItemValue * ScPivotLayoutDialog::GetItem | ( | SCCOL | nColumn | ) |
Definition at line 611 of file PivotLayoutDialog.cxx.
References mxListBoxField.
Referenced by ScPivotLayoutTreeListData::FillDataField(), and ScPivotLayoutTreeList::FillFields().
ScDPLabelData & ScPivotLayoutDialog::GetLabelData | ( | SCCOL | nColumn | ) |
Definition at line 621 of file PivotLayoutDialog.cxx.
References ScPivotParam::maLabelArray, and maPivotParameters.
Referenced by ScPivotLayoutTreeListData::PushDataFieldNames().
|
inline |
Definition at line 133 of file PivotLayoutDialog.hxx.
References ScPivotParam::maLabelArray, and maPivotParameters.
Referenced by ApplyLabelData().
bool ScPivotLayoutDialog::IsDataElement | ( | SCCOL | nColumn | ) |
Definition at line 616 of file PivotLayoutDialog.cxx.
References mxListBoxField.
Referenced by ScPivotLayoutTreeList::InsertEntryForSourceTarget(), and ScPivotLayoutTreeListData::InsertEntryForSourceTarget().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 363 of file PivotLayoutDialog.cxx.
References mbDialogLostFocus.
void ScPivotLayoutDialog::ItemInserted | ( | const ScItemValue * | pItemValue, |
ScPivotLayoutTreeList::SvPivotTreeListType | eType | ||
) |
Definition at line 368 of file PivotLayoutDialog.cxx.
References ScPivotLayoutTreeListBase::COLUMN_LIST, eType, ScPivotLayoutTreeListBase::LABEL_LIST, mxListBoxColumn, mxListBoxData, mxListBoxPage, mxListBoxRow, ScPivotLayoutTreeListBase::PAGE_LIST, and ScPivotLayoutTreeListBase::ROW_LIST.
Referenced by ScPivotLayoutTreeList::InsertEntryForSourceTarget().
void ScPivotLayoutDialog::PushDataFieldNames | ( | std::vector< ScDPName > & | rDataFieldNames | ) |
Definition at line 626 of file PivotLayoutDialog.cxx.
References mxListBoxData.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 320 of file PivotLayoutDialog.cxx.
References formula::RefEdit::GrabFocus(), m_xDialog, mbDialogLostFocus, mpActiveEdit, mxSourceEdit, ScRefHandler::RefInputDone(), and UpdateSourceRange().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 340 of file PivotLayoutDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Format(), maAddressDetails, mbDialogLostFocus, mpActiveEdit, mxDestinationEdit, mxSourceEdit, RANGE_ABS_3D, and ScRefHandler::RefInputStart().
|
private |
Definition at line 269 of file PivotLayoutDialog.cxx.
References ADDR_ABS_3D, aName, ScAddress::Format(), maAddressDetails, maPivotParameters, MAXTAB, mbNewPivotTable, mrDocument, mxDestinationEdit, mxDestinationListBox, mxDestinationRadioNamedRange, mxDestinationRadioNewSheet, mxDestinationRadioSelection, ScPivotParam::nCol, ScAreaNameIterator::Next(), ScPivotParam::nRow, ScPivotParam::nTab, ToggleDestination(), and ScAreaNameIterator::WasDBName().
Referenced by ScPivotLayoutDialog().
|
private |
Definition at line 194 of file PivotLayoutDialog.cxx.
References ScRange::Format(), ScDPObject::GetSheetDesc(), ScSheetSourceDesc::GetSourceRange(), ScRange::IsValid(), maAddressDetails, maPivotTableObject, mrDocument, mxSourceEdit, mxSourceListBox, mxSourceRadioNamedRange, mxSourceRadioSelection, ScAreaNameIterator::Next(), RANGE_ABS_3D, ToggleSource(), and ScAreaNameIterator::WasDBName().
Referenced by ScPivotLayoutDialog().
|
private |
Definition at line 713 of file PivotLayoutDialog.cxx.
References mxDestinationButton, mxDestinationEdit, mxDestinationListBox, mxDestinationRadioNamedRange, and mxDestinationRadioSelection.
Referenced by ScPivotLayoutDialog(), and SetupDestination().
|
private |
Definition at line 698 of file PivotLayoutDialog.cxx.
References mxSourceButton, mxSourceEdit, mxSourceListBox, mxSourceRadioNamedRange, mxSourceRadioSelection, and UpdateSourceRange().
Referenced by ScPivotLayoutDialog(), and SetupSource().
void ScPivotLayoutDialog::UpdateSourceRange | ( | ) |
Definition at line 397 of file PivotLayoutDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScSheetSourceDesc::CheckSourceRange(), ConvertDoubleRef(), ScDPObject::FillLabelData(), ScDPObject::FillOldParam(), FillValuesToListBoxes(), ScRefAddress::GetAddress(), ScDPObject::GetSheetDesc(), ScSheetSourceDesc::GetSourceRange(), ScRange::IsValid(), maAddressDetails, maPivotParameters, maPivotTableObject, mrDocument, mxSourceEdit, mxSourceListBox, mxSourceRadioNamedRange, mxSourceRadioSelection, ScRange::Parse(), ScSheetSourceDesc::SetRangeName(), ScDPObject::SetSheetDesc(), ScSheetSourceDesc::SetSourceRange(), and VALID.
Referenced by SetActive(), and ToggleSource().
|
private |
Definition at line 47 of file PivotLayoutDialog.hxx.
Referenced by GetDestination(), SetReference(), SetupDestination(), SetupSource(), and UpdateSourceRange().
|
private |
Definition at line 102 of file PivotLayoutDialog.hxx.
Referenced by ApplyChanges(), ApplySaveData(), FillValuesToListBoxes(), GetDestination(), GetLabelData(), GetLabelDataVector(), ScPivotLayoutDialog(), SetupDestination(), and UpdateSourceRange().
ScDPObject ScPivotLayoutDialog::maPivotTableObject |
Definition at line 37 of file PivotLayoutDialog.hxx.
Referenced by ApplyChanges(), ApplySaveData(), ScPivotLayoutDialog(), SetupSource(), and UpdateSourceRange().
|
private |
Definition at line 48 of file PivotLayoutDialog.hxx.
Referenced by IsRefInputMode(), SetActive(), and SetReference().
|
private |
Definition at line 45 of file PivotLayoutDialog.hxx.
Referenced by SetupDestination().
|
private |
Definition at line 50 of file PivotLayoutDialog.hxx.
Referenced by SetActive(), and SetReference().
ScPivotLayoutTreeListBase* ScPivotLayoutDialog::mpPreviouslyFocusedListBox |
Definition at line 39 of file PivotLayoutDialog.hxx.
|
private |
Definition at line 42 of file PivotLayoutDialog.hxx.
Referenced by ApplyChanges().
|
private |
Definition at line 43 of file PivotLayoutDialog.hxx.
Referenced by ApplyChanges(), GetDestination(), SetupDestination(), SetupSource(), and UpdateSourceRange().
|
private |
Definition at line 81 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog().
|
private |
Definition at line 80 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog().
|
private |
Definition at line 59 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 62 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 63 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 60 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 57 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 58 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 61 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), and ScPivotLayoutDialog().
|
private |
Definition at line 85 of file PivotLayoutDialog.hxx.
|
private |
Definition at line 78 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), and ToggleDestination().
|
private |
Definition at line 77 of file PivotLayoutDialog.hxx.
Referenced by GetDestination(), ScPivotLayoutDialog(), SetReference(), SetupDestination(), and ToggleDestination().
|
private |
Definition at line 76 of file PivotLayoutDialog.hxx.
Referenced by GetDestination(), SetupDestination(), and ToggleDestination().
|
private |
Definition at line 73 of file PivotLayoutDialog.hxx.
Referenced by GetDestination(), ScPivotLayoutDialog(), SetupDestination(), and ToggleDestination().
|
private |
Definition at line 72 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), and SetupDestination().
|
private |
Definition at line 74 of file PivotLayoutDialog.hxx.
Referenced by GetDestination(), ScPivotLayoutDialog(), SetupDestination(), and ToggleDestination().
|
private |
Definition at line 86 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog().
|
private |
Definition at line 53 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), FillValuesToListBoxes(), ItemInserted(), and ScPivotLayoutDialog().
|
private |
Definition at line 55 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), FillValuesToListBoxes(), ItemInserted(), PushDataFieldNames(), and ScPivotLayoutDialog().
|
private |
Definition at line 51 of file PivotLayoutDialog.hxx.
Referenced by FillValuesToListBoxes(), GetItem(), IsDataElement(), and ScPivotLayoutDialog().
|
private |
Definition at line 52 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), FillValuesToListBoxes(), ItemInserted(), and ScPivotLayoutDialog().
|
private |
Definition at line 54 of file PivotLayoutDialog.hxx.
Referenced by ApplySaveData(), FillValuesToListBoxes(), ItemInserted(), and ScPivotLayoutDialog().
|
private |
Definition at line 70 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), and ToggleSource().
|
private |
Definition at line 69 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), SetActive(), SetReference(), SetupSource(), ToggleSource(), and UpdateSourceRange().
|
private |
Definition at line 83 of file PivotLayoutDialog.hxx.
|
private |
Definition at line 84 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog().
|
private |
Definition at line 68 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), SetupSource(), ToggleSource(), and UpdateSourceRange().
|
private |
Definition at line 65 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), SetupSource(), ToggleSource(), and UpdateSourceRange().
|
private |
Definition at line 66 of file PivotLayoutDialog.hxx.
Referenced by ScPivotLayoutDialog(), SetupSource(), ToggleSource(), and UpdateSourceRange().