1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
23 #include <sfx2/basedlgs.hxx>
24 #include <sfx2/ctrlitem.hxx>
25 #include <sfx2/childwin.hxx>
26 #include "svx/svxdllapi.h"
28 /*************************************************************************
30 |* Derivation from SfxChildWindow as "container" for Float
32 \************************************************************************/
36 class SVX_DLLPUBLIC SvxContourDlgChildWindow
: public SfxChildWindow
40 SvxContourDlgChildWindow( Window
*, sal_uInt16
, SfxBindings
*, SfxChildWinInfo
* );
42 SFX_DECL_CHILDWINDOW_WITHID( SvxContourDlgChildWindow
);
45 #ifndef _REDUCED_ContourDlg_HXX_
46 #define _REDUCED_CONTDLG_HXX_
48 class SvxSuperContourDlg
;
50 class SvxContourDlgItem
: public SfxControllerItem
52 SvxSuperContourDlg
& rDlg
;
56 virtual void StateChanged( sal_uInt16 nSID
, SfxItemState eState
, const SfxPoolItem
* pState
);
60 SvxContourDlgItem( sal_uInt16 nId
, SvxSuperContourDlg
& rDlg
, SfxBindings
& rBindings
);
63 class SVX_DLLPUBLIC SvxContourDlg
: public SfxFloatingWindow
67 SvxSuperContourDlg
* pSuperClass
;
72 void SetSuperClass( SvxSuperContourDlg
& rSuperClass
) { pSuperClass
= &rSuperClass
; }
76 SvxContourDlg( SfxBindings
*pBindings
, SfxChildWindow
*pCW
,
77 Window
* pParent
, const ResId
& rResId
);
80 const Graphic
& GetGraphic() const;
81 sal_Bool
IsGraphicChanged() const;
83 PolyPolygon
GetPolyPolygon();
85 const void* GetEditingObject() const;
87 void Update( const Graphic
& rGraphic
, sal_Bool bGraphicLinked
,
88 const PolyPolygon
* pPolyPoly
= NULL
, void* pEditingObj
= NULL
);
90 static PolyPolygon
CreateAutoContour( const Graphic
& rGraphic
,
91 const Rectangle
* pRect
= NULL
,
92 const sal_uIntPtr nFlags
= 0L );
95 #endif // _REDUCED_CONTDLG_HXX_
96 #endif // _CONTDLG_HXX_
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */