fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / dlg / PhotoAlbumDialog.hxx
blob302a00792cbe74806a41937b9d4f9ceb0c423004
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/.
8 */
10 #ifndef _SD_PHOTOALBUMDIALOG_HXX
11 #define _SD_PHOTOALBUMDIALOG_HXX
13 #include "tools/link.hxx"
14 #include "sdpage.hxx"
15 #include "pres.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>
33 class SdrTextObj;
34 class SdDrawDocument;
35 class SdPage;
37 using namespace ::com::sun::star;
38 using namespace ::com::sun::star::uno;
39 using namespace ::com::sun::star::presentation;
41 namespace sd
44 class SdPhotoAlbumDialog : public ModalDialog
46 public:
47 SdPhotoAlbumDialog(Window* pWindow, SdDrawDocument* pActDoc);
48 ~SdPhotoAlbumDialog();
50 virtual short Execute();
52 private:
53 static OUString sDirUrl;
54 CancelButton* pCancelBtn;
55 PushButton* pCreateBtn;
57 PushButton* pAddBtn;
58 PushButton* pUpBtn;
59 PushButton* pDownBtn;
60 PushButton* pRemoveBtn;
62 ListBox* pImagesLst;
63 FixedImage* pImg;
65 ListBox* pInsTypeCombo;
66 CheckBox* pASRCheck;
68 SdDrawDocument* pDoc;
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();
96 enum SlideImageLayout
98 ONE_IMAGE=0,
99 TWO_IMAGES,
100 FOUR_IMAGES
105 } // end of namespace sd
107 #endif // _SD_PHOTOALBUMDIALOG_HXX
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */