Kaydet (Commit) a80bfcb3 authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Thorsten Behrens

screenshots: open more sc modal dialogs, part 2

Change-Id: Ia5a1bbc00acff10405aa5205b9fd5a930deb5fc9
üst 495224ac
...@@ -27,13 +27,17 @@ ...@@ -27,13 +27,17 @@
#include <tabvwsh.hxx> #include <tabvwsh.hxx>
#include <docsh.hxx> #include <docsh.hxx>
#include <document.hxx> #include <document.hxx>
#include <sharedocdlg.hxx>
#include <protectiondlg.hxx>
#include <docuno.hxx> #include <docuno.hxx>
#include <scabstdlg.hxx> #include <scabstdlg.hxx>
#include <reffact.hxx> #include <reffact.hxx>
#include <scui_def.hxx> #include <scui_def.hxx>
#include <impex.hxx>
#include <sc.hrc> #include <sc.hrc>
#include <scresid.hxx> #include <scresid.hxx>
#include <scitems.hxx>
using namespace css; using namespace css;
...@@ -201,6 +205,30 @@ void ScScreenshotTest::testOpeningSomeDialog() ...@@ -201,6 +205,30 @@ void ScScreenshotTest::testOpeningSomeDialog()
CPPUNIT_ASSERT( pDlg12 != nullptr ); CPPUNIT_ASSERT( pDlg12 != nullptr );
pDlg12->Execute(); 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 #endif
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include <vcl/layout.hxx> #include <vcl/layout.hxx>
#include <svx/checklbx.hxx> #include <svx/checklbx.hxx>
#include "scdllapi.h"
namespace vcl { class Window; } namespace vcl { class Window; }
class ScTableProtection; class ScTableProtection;
...@@ -34,7 +36,7 @@ class ScTableProtectionDlg : public ModalDialog ...@@ -34,7 +36,7 @@ class ScTableProtectionDlg : public ModalDialog
{ {
public: public:
ScTableProtectionDlg() = delete; ScTableProtectionDlg() = delete;
explicit ScTableProtectionDlg(vcl::Window* pParent); explicit SC_DLLPUBLIC ScTableProtectionDlg(vcl::Window* pParent);
virtual ~ScTableProtectionDlg(); virtual ~ScTableProtectionDlg();
virtual void dispose() override; virtual void dispose() override;
......
...@@ -47,7 +47,7 @@ private: ...@@ -47,7 +47,7 @@ private:
DECL_LINK_TYPED( ToggleHandle, CheckBox&, void ); DECL_LINK_TYPED( ToggleHandle, CheckBox&, void );
public: public:
ScShareDocumentDlg( vcl::Window* pParent, ScViewData* pViewData ); SC_DLLPUBLIC ScShareDocumentDlg( vcl::Window* pParent, ScViewData* pViewData );
virtual ~ScShareDocumentDlg(); virtual ~ScShareDocumentDlg();
virtual void dispose() override; virtual void dispose() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment