sd/qa/unit/dialogs-test.cxx | 20 ++--
sfx2/source/dialog/tabdlg.cxx |4 ++--
2 files changed, 16 insertions(+), 8 deletions(-)
New commits:
commit bae9bd0c7d096dcf0f8ef0806f918acc77f2fa07
Author: Katarina Behrens
Date: Fri Jun 17 16:03:34 2016 +0200
Fix build after rebase
Change-Id: I882c9fa6349d59419be5a5b2ed49a712eb4c07f1
diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx
index 2103a13..c5a6d4d 100644
--- a/sd/qa/unit/dialogs-test.cxx
+++ b/sd/qa/unit/dialogs-test.cxx
@@ -37,6 +37,7 @@
#include
#include "unomodel.hxx"
#include "ViewShell.hxx"
+#include "Window.hxx"
#include "drawview.hxx"
#include "DrawViewShell.hxx"
#include
@@ -290,6 +291,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
// needs an SfxItemSet, use the one from the 1st object
pRetval = getSdAbstractDialogFactory()->CreateCopyDlg(
+getViewShell()->GetActiveWindow(),
getSfxItemSetFromSdrObject(),
pColorList,
getDrawView());
@@ -302,6 +304,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
CPPUNIT_ASSERT(pDrawDoc);
pRetval = getSdAbstractDialogFactory()->CreateSdCustomShowDlg(
+getViewShell()->GetActiveWindow(),
*pDrawDoc);
break;
}
@@ -311,6 +314,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
// needs an SfxItemSet, use an empty constructed one
// needs a 'SfxObjectShell* pDocShell', crashes without
pRetval = getSdAbstractDialogFactory()->CreateSdTabCharDialog(
+getViewShell()->GetActiveWindow(),
(),
getDocShell());
break;
@@ -321,6 +325,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
// needs a special SfxItemSet with merged content from page and
other stuff, crashes without that (2nd page)
// needs a 'SfxObjectShell* pDocShell', crashes without. Also
sufficient: FillStyleItemSet with XFILL_NONE set
pRetval = getSdAbstractDialogFactory()->CreateSdTabPageDialog(
+getViewShell()->GetActiveWindow(),
(),
getDocShell(),
true);
@@ -328,11 +333,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
}
case 6:
{
-// CreateAssistentDlg(bool bAutoPilot) override;
-// This is also a 'wizard' in that it has prev/next buttons and
implicitly
-// multiple pages. To make use of that it is necessary that the
implementation
-// supports the 'Screenshot interface', see AssistentDlg class
-pRetval = getSdAbstractDialogFactory()->CreateAssistentDlg(true);
+// CreateAssistentDlg(bool bAutoPilot) has been dropped
break;
}
case 7:
@@ -353,6 +354,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
aNewAttr.Put(SfxInt32Item(ATTR_SNAPLINE_X, 0));
aNewAttr.Put(SfxInt32Item(ATTR_SNAPLINE_Y, 0));
pRetval = getSdAbstractDialogFactory()->CreateSdSnapLineDlg(
+getViewShell()->GetActiveWindow(),
aNewAttr,
getDrawView());
break;
@@ -372,6 +374,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
aNewAttr.Put(SdAttrLayerLocked());
aNewAttr.Put(SdAttrLayerThisPage());
pRetval = getSdAbstractDialogFactory()->CreateSdInsertLayerDlg(
+getViewShell()->GetActiveWindow(),
aNewAttr,
true, // alternative: false
SD_RESSTR(STR_INSERTLAYER) /* alternative: STR_MODIFYLAYER */);
@@ -384,6 +387,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
CPPUNIT_ASSERT(pDrawDoc);
const OUString aFileName("foo");
pRetval = getSdAbstractDialogFactory()->CreateSdInsertPagesObjsDlg(
+getViewShell()->GetActiveWindow(),
pDrawDoc,
nullptr,
aFileName);
@@ -409,6 +413,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
{
// CreateSdOutlineBulletTabDlg(const SfxItemSet* pAttr,
::sd::View* pView = nullptr) override;
pRetval =
getSdAbstractDialogFactory()->CreateSdOutlineBulletTabDlg(
+getViewShell()->GetActiveWindow(),
(),
getDrawView());
break;
@@ -417,6 +422,7 @@ VclAbstractDialog*
SdDialogsTest::createDialogByID(sal_uInt32 nID)
{
// CreateSdParagraphTabDlg(const SfxItemSet* pAttr) override;
pRetval = getSdAbstractDialogFactory()->CreateSdParagraphTabDlg(
+