diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-06-27 23:11:34 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-08-18 02:39:09 +0200 |
commit | a80bfcb38b0664a779f567b0f45b5445465ecf2d (patch) | |
tree | f2dbd272e2c7b603625d4e891367bb470b8ad870 /sc/qa/unit/screenshots/screenshots.cxx | |
parent | 495224ac15f261b369935aab7c7946235dcb887e (diff) |
screenshots: open more sc modal dialogs, part 2
Change-Id: Ia5a1bbc00acff10405aa5205b9fd5a930deb5fc9
Diffstat (limited to 'sc/qa/unit/screenshots/screenshots.cxx')
-rw-r--r-- | sc/qa/unit/screenshots/screenshots.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sc/qa/unit/screenshots/screenshots.cxx b/sc/qa/unit/screenshots/screenshots.cxx index 9af18feb7a4d..49374743878a 100644 --- a/sc/qa/unit/screenshots/screenshots.cxx +++ b/sc/qa/unit/screenshots/screenshots.cxx @@ -27,13 +27,17 @@ #include <tabvwsh.hxx> #include <docsh.hxx> #include <document.hxx> +#include <sharedocdlg.hxx> +#include <protectiondlg.hxx> #include <docuno.hxx> #include <scabstdlg.hxx> #include <reffact.hxx> #include <scui_def.hxx> +#include <impex.hxx> #include <sc.hrc> #include <scresid.hxx> +#include <scitems.hxx> using namespace css; @@ -201,6 +205,30 @@ void ScScreenshotTest::testOpeningSomeDialog() CPPUNIT_ASSERT( pDlg12 != nullptr ); pDlg12->Execute(); + + const OUString aCsv("some, strings, here, separated, by, commas"); + ScImportStringStream aStream( aCsv ); + std::unique_ptr<AbstractScImportAsciiDlg> pDlg13( pFact->CreateScImportAsciiDlg( + OUString(), &aStream, SC_PASTETEXT )); + CPPUNIT_ASSERT( pDlg13 != nullptr ); + + pDlg13->Execute(); + + ScopedVclPtrInstance<ScShareDocumentDlg> pDlg14( pViewShell->GetDialogParent(), &rViewData ); + CPPUNIT_ASSERT( pDlg14 != nullptr ); + + pDlg14->Execute(); + + std::unique_ptr<AbstractScMoveTableDlg> pDlg15( pFact->CreateScMoveTableDlg( + pViewShell->GetDialogParent(), aDefaultSheetName)); + CPPUNIT_ASSERT( pDlg15 != nullptr ); + + pDlg15->Execute(); + + ScopedVclPtrInstance<ScTableProtectionDlg> pDlg16(pViewShell->GetDialogParent()); + CPPUNIT_ASSERT( pDlg16 != nullptr ); + + pDlg16->Execute(); } #endif |