LibreOffice Module svx (master) 1
extedit.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef INCLUDED_SVX_EXTEDIT_HXX
11#define INCLUDED_SVX_EXTEDIT_HXX
12
13#include <svx/svxdllapi.h>
14#include <svl/lstner.hxx>
15#include <rtl/ustring.hxx>
16#include <rtl/ref.hxx>
17#include <memory>
18
19class Graphic;
20class GraphicObject;
22
24{
25protected:
26 OUString m_aFileName;
27
28 ::std::unique_ptr<FileChangedChecker> m_pChecker;
29
30public:
31
33 virtual ~ExternalToolEdit();
34
35 virtual void Update( Graphic& aGraphic ) = 0;
36 void Edit(GraphicObject const*const pGraphic);
37
38 void StartListeningEvent();
39
40 static void HandleCloseEvent( ExternalToolEdit* pData );
41};
42
43class FmFormView;
44class SdrObject;
45class SdrGrafObj;
46
48: public ExternalToolEdit
49 ,public SfxListener
50{
51private:
54
55 SAL_DLLPRIVATE virtual void Update(Graphic&) override;
56 SAL_DLLPRIVATE virtual void Notify(SfxBroadcaster&, const SfxHint&) override;
57
58public:
60 FmFormView* pView,
61 SdrGrafObj* pObj);
62};
63
64#endif
::std::unique_ptr< FileChangedChecker > m_pChecker
Definition: extedit.hxx:28
OUString m_aFileName
Definition: extedit.hxx:26
virtual void Update(Graphic &aGraphic)=0
FmFormView * m_pView
Definition: extedit.hxx:52
rtl::Reference< SdrGrafObj > m_pObj
Definition: extedit.hxx:53
This class represents an embedded or linked bitmap graphic object.
Definition: svdograf.hxx:68
Abstract DrawObject.
Definition: svdobj.hxx:260
void Notify(SwFlyFrame *pFly, SwPageFrame *pOld, const SwRect &rOld, const SwRect *pOldRect=nullptr)
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
#define SAL_WARN_UNUSED