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/.
10 #ifndef _SD_PHOTOALBUMDIALOG_HXX
11 #define _SD_PHOTOALBUMDIALOG_HXX
13 #include "tools/link.hxx"
16 #include "drawdoc.hxx"
18 #include <vcl/lstbox.hxx>
19 #include <vcl/fixed.hxx>
20 #include <vcl/button.hxx>
21 #include <vcl/dialog.hxx>
22 #include <vcl/field.hxx>
23 #include <vcl/graphicfilter.hxx>
24 #include <svx/svdotext.hxx>
25 #include <svx/svdobj.hxx>
27 #include <com/sun/star/drawing/XDrawPage.hpp>
28 #include <com/sun/star/drawing/XDrawPages.hpp>
29 #include <com/sun/star/graphic/GraphicProvider.hpp>
30 #include <com/sun/star/graphic/XGraphicProvider.hpp>
31 #include <com/sun/star/configuration/theDefaultProvider.hpp>
37 using namespace ::com::sun::star
;
38 using namespace ::com::sun::star::uno
;
39 using namespace ::com::sun::star::presentation
;
44 class SdPhotoAlbumDialog
: public ModalDialog
47 SdPhotoAlbumDialog(Window
* pWindow
, SdDrawDocument
* pActDoc
);
48 ~SdPhotoAlbumDialog();
50 virtual short Execute();
53 static OUString sDirUrl
;
54 CancelButton
* pCancelBtn
;
55 PushButton
* pCreateBtn
;
60 PushButton
* pRemoveBtn
;
65 ListBox
* pInsTypeCombo
;
69 GraphicFilter
* mpGraphicFilter
;
71 DECL_LINK(CancelHdl
, void*);
72 DECL_LINK(CreateHdl
, void*);
74 DECL_LINK(FileHdl
, void*);
75 DECL_LINK(TextHdl
, void*);
76 DECL_LINK(UpHdl
, void*);
77 DECL_LINK(DownHdl
, void*);
78 DECL_LINK(RemoveHdl
, void*);
80 DECL_LINK(SelectHdl
, void*);
82 Reference
< drawing::XDrawPage
> appendNewSlide(AutoLayout aLayout
,
83 Reference
< drawing::XDrawPages
> xDrawPages
);
85 awt::Size
createASRSize(const awt::Size
& aPicSize
, const awt::Size
& aMaxSize
);
87 Reference
< drawing::XShape
> createXShapeFromUrl(const OUString
& sUrl
,
88 Reference
< lang::XMultiServiceFactory
> xShapeFactory
,
89 Reference
< graphic::XGraphicProvider
> xProvider
);
91 Reference
< graphic::XGraphic
> createXGraphicFromUrl(const OUString
& sUrl
,
92 Reference
< graphic::XGraphicProvider
> xProvider
);
94 void EnableDisableButtons();
105 } // end of namespace sd
107 #endif // _SD_PHOTOALBUMDIALOG_HXX
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */