Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / contdlg.hxx
blob2664a656f00270c7e4ac63e1d508c2ed8f66bdef
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVX_CONTDLG_HXX
21 #define INCLUDED_SVX_CONTDLG_HXX
23 #include "sal/types.h"
25 #include <sfx2/basedlgs.hxx>
26 #include <sfx2/childwin.hxx>
27 #include <svx/svxdllapi.h>
28 #include <tools/poly.hxx>
29 #include <vcl/vclptr.hxx>
30 #include <vcl/window.hxx>
32 class Rectangle;
33 class SfxBindings;
34 class SfxModule;
36 /*************************************************************************
38 |* Derivation from SfxChildWindow as "container" for Float
40 \************************************************************************/
42 class Graphic;
44 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxContourDlgChildWindow : public SfxChildWindow
46 public:
47 SvxContourDlgChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
49 SFX_DECL_CHILDWINDOW_WITHID( SvxContourDlgChildWindow );
52 class SvxSuperContourDlg;
54 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxContourDlg : public SfxFloatingWindow
56 using Window::Update;
58 VclPtr<SvxSuperContourDlg> pSuperClass;
61 protected:
63 void SetSuperClass( SvxSuperContourDlg& rSuperClass );
65 public:
67 SvxContourDlg(SfxBindings *pBindings, SfxChildWindow *pCW,
68 vcl::Window* pParent);
69 virtual ~SvxContourDlg() override;
70 virtual void dispose() override;
72 const Graphic& GetGraphic() const;
73 bool IsGraphicChanged() const;
75 tools::PolyPolygon GetPolyPolygon();
77 const void* GetEditingObject() const;
79 void Update( const Graphic& rGraphic, bool bGraphicLinked,
80 const tools::PolyPolygon* pPolyPoly, void* pEditingObj );
82 static tools::PolyPolygon CreateAutoContour( const Graphic& rGraphic,
83 const tools::Rectangle* pRect = nullptr,
84 const sal_uIntPtr nFlags = 0L );
87 #endif // INCLUDED_SVX_CONTDLG_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */