Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _CONTDLG_HXX_
30 : : #define _CONTDLG_HXX_
31 : :
32 : : #include <sfx2/basedlgs.hxx>
33 : : #include <sfx2/ctrlitem.hxx>
34 : : #include <sfx2/childwin.hxx>
35 : : #include "svx/svxdllapi.h"
36 : :
37 : : /*************************************************************************
38 : : |*
39 : : |* Derivation from SfxChildWindow as "container" for Float
40 : : |*
41 : : \************************************************************************/
42 : :
43 : : class Graphic;
44 : :
45 [ # # ]: 0 : class SVX_DLLPUBLIC SvxContourDlgChildWindow : public SfxChildWindow
46 : : {
47 : : public:
48 : :
49 : : SvxContourDlgChildWindow( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
50 : :
51 : : SFX_DECL_CHILDWINDOW_WITHID( SvxContourDlgChildWindow );
52 : : };
53 : :
54 : : #ifndef _REDUCED_ContourDlg_HXX_
55 : : #define _REDUCED_CONTDLG_HXX_
56 : :
57 : : class SvxSuperContourDlg;
58 : :
59 [ # # ]: 0 : class SvxContourDlgItem : public SfxControllerItem
60 : : {
61 : : SvxSuperContourDlg& rDlg;
62 : :
63 : : protected:
64 : :
65 : : virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
66 : :
67 : : public:
68 : :
69 : : SvxContourDlgItem( sal_uInt16 nId, SvxSuperContourDlg& rDlg, SfxBindings& rBindings );
70 : : };
71 : :
72 : : class SVX_DLLPUBLIC SvxContourDlg : public SfxFloatingWindow
73 : : {
74 : : using Window::Update;
75 : :
76 : : SvxSuperContourDlg* pSuperClass;
77 : :
78 : :
79 : : protected:
80 : :
81 : 0 : void SetSuperClass( SvxSuperContourDlg& rSuperClass ) { pSuperClass = &rSuperClass; }
82 : :
83 : : public:
84 : :
85 : : SvxContourDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
86 : : Window* pParent, const ResId& rResId );
87 : : ~SvxContourDlg();
88 : :
89 : : const Graphic& GetGraphic() const;
90 : : sal_Bool IsGraphicChanged() const;
91 : :
92 : : PolyPolygon GetPolyPolygon();
93 : :
94 : : const void* GetEditingObject() const;
95 : :
96 : : void Update( const Graphic& rGraphic, sal_Bool bGraphicLinked,
97 : : const PolyPolygon* pPolyPoly = NULL, void* pEditingObj = NULL );
98 : :
99 : : static PolyPolygon CreateAutoContour( const Graphic& rGraphic,
100 : : const Rectangle* pRect = NULL,
101 : : const sal_uIntPtr nFlags = 0L );
102 : : };
103 : :
104 : : #endif // _REDUCED_CONTDLG_HXX_
105 : : #endif // _CONTDLG_HXX_
106 : :
107 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|