Kaydet (Commit) 88f48b51 authored tarafından Caolán McNamara's avatar Caolán McNamara

move SvxStandardDialog to last consumer

Change-Id: I02638b5a1a3c7a27c19320fedd291bbcb17bb9dc
Reviewed-on: https://gerrit.libreoffice.org/73283
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a7862a61
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SVX_STDDLG_HXX
#define INCLUDED_SVX_STDDLG_HXX
#include <sfx2/basedlgs.hxx>
#include <svx/svxdllapi.h>
class SVX_DLLPUBLIC SvxStandardDialog: public SfxModalDialog
{
public:
SvxStandardDialog( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription );
short Execute() override;
protected:
virtual void Apply() = 0;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -7303,7 +7303,6 @@ include/svx/sidebar/ValueSetWithTextControl.hxx ...@@ -7303,7 +7303,6 @@ include/svx/sidebar/ValueSetWithTextControl.hxx
include/svx/spacinglistbox.hxx include/svx/spacinglistbox.hxx
include/svx/sphere3d.hxx include/svx/sphere3d.hxx
include/svx/srchdlg.hxx include/svx/srchdlg.hxx
include/svx/stddlg.hxx
include/svx/strarray.hxx include/svx/strarray.hxx
include/svx/svdcrtv.hxx include/svx/svdcrtv.hxx
include/svx/svddef.hxx include/svx/svddef.hxx
...@@ -14065,7 +14064,6 @@ svx/source/dialog/spacinglistbox.cxx ...@@ -14065,7 +14064,6 @@ svx/source/dialog/spacinglistbox.cxx
svx/source/dialog/srchctrl.cxx svx/source/dialog/srchctrl.cxx
svx/source/dialog/srchctrl.hxx svx/source/dialog/srchctrl.hxx
svx/source/dialog/srchdlg.cxx svx/source/dialog/srchdlg.cxx
svx/source/dialog/stddlg.cxx
svx/source/dialog/strarray.cxx svx/source/dialog/strarray.cxx
svx/source/dialog/svxbmpnumvalueset.cxx svx/source/dialog/svxbmpnumvalueset.cxx
svx/source/dialog/svxdlg.cxx svx/source/dialog/svxdlg.cxx
......
...@@ -122,7 +122,6 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\ ...@@ -122,7 +122,6 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\
svx/source/dialog/papersizelistbox \ svx/source/dialog/papersizelistbox \
svx/source/dialog/samecontentlistbox \ svx/source/dialog/samecontentlistbox \
svx/source/dialog/spacinglistbox \ svx/source/dialog/spacinglistbox \
svx/source/dialog/stddlg \
svx/source/dialog/svxdlg \ svx/source/dialog/svxdlg \
svx/source/dialog/SvxNumOptionsTabPageHelper \ svx/source/dialog/SvxNumOptionsTabPageHelper \
svx/source/engine3d/camera3d \ svx/source/engine3d/camera3d \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <svx/stddlg.hxx>
short SvxStandardDialog::Execute()
{
short nRet = ModalDialog::Execute();
if ( RET_OK == nRet )
Apply();
return nRet;
}
SvxStandardDialog::SvxStandardDialog(vcl::Window *pParent, const OUString& rID, const OUString& rUIXMLDescription )
: SfxModalDialog(pParent, rID, rUIXMLDescription)
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -118,6 +118,20 @@ void SwXSelChgLstnr_Impl::disposing( const EventObject& ) ...@@ -118,6 +118,20 @@ void SwXSelChgLstnr_Impl::disposing( const EventObject& )
OSL_FAIL("disposing"); OSL_FAIL("disposing");
} }
short SvxStandardDialog::Execute()
{
short nRet = ModalDialog::Execute();
if ( RET_OK == nRet )
Apply();
return nRet;
}
SvxStandardDialog::SvxStandardDialog(vcl::Window *pParent, const OUString& rID, const OUString& rUIXMLDescription )
: SfxModalDialog(pParent, rID, rUIXMLDescription)
{
}
SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell, SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell,
const OUString& rSourceName, const OUString& rSourceName,
const OUString& rTableName, const OUString& rTableName,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#define INCLUDED_SW_SOURCE_UIBASE_INC_MAILMRGE_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_MAILMRGE_HXX
#include <memory> #include <memory>
#include <svx/stddlg.hxx> #include <sfx2/basedlgs.hxx>
#include <vcl/button.hxx> #include <vcl/button.hxx>
...@@ -47,6 +47,17 @@ namespace com{namespace sun{namespace star{ ...@@ -47,6 +47,17 @@ namespace com{namespace sun{namespace star{
} }
}}} }}}
class SvxStandardDialog : public SfxModalDialog
{
public:
SvxStandardDialog( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription );
short Execute() override;
protected:
virtual void Apply() = 0;
};
class SwMailMergeDlg : public SvxStandardDialog class SwMailMergeDlg : public SvxStandardDialog
{ {
friend class SwXSelChgLstnr_Impl; friend class SwXSelChgLstnr_Impl;
......
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