diff options
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 653e47578539..7690d4b90eea 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2465,6 +2465,29 @@ void ScTabView::DoChartSelection( } } +void ScTabView::DoDPFieldPopup(Point aPoint, Size /*aSize*/) +{ + ScDocument& rDocument = aViewData.GetDocShell()->GetDocument(); + ScGridWindow* pWin = pGridWin[aViewData.GetActivePart()].get(); + if (!pWin) + return; + + ScDPCollection* pDPs = rDocument.GetDPCollection(); + // TODO - DP name should be a parameter + ScDPObject* pDPObj = pDPs->GetByName("DataPilot1"); + + pDPObj->BuildAllDimensionMembers(); + + //const ScDPSaveData* pSaveData = pDPObj->GetSaveData(); + //bool bIsDataLayout; + //OUString aDimName = pDPObj->GetDimName(0, bIsDataLayout); + + Point aScreenPoint = pWin->OutputToScreenPixel(pWin->LogicToPixel(aPoint)); + //Size aScreenSize = pWin->LogicToPixel(aSize); + + pWin->DPLaunchFieldPopupMenu(aScreenPoint, Size(1, 1), 1, pDPObj); +} + // PaintGrid - repaint data range void ScTabView::PaintGrid() |