/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_SD_SOURCE_UI_DLG_PHOTOALBUMDIALOG_HXX #define INCLUDED_SD_SOURCE_UI_DLG_PHOTOALBUMDIALOG_HXX #include "tools/link.hxx" #include "sdpage.hxx" #include "pres.hxx" #include "drawdoc.hxx" #include #include #include #include #include #include #include #include #include #include #include #include #include class SdrTextObj; class SdDrawDocument; class SdPage; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::presentation; namespace sd { class SdPhotoAlbumDialog : public ModalDialog { public: SdPhotoAlbumDialog(vcl::Window* pWindow, SdDrawDocument* pActDoc); virtual ~SdPhotoAlbumDialog(); virtual void dispose() SAL_OVERRIDE; virtual short Execute() SAL_OVERRIDE; private: static OUString sDirUrl; VclPtr pCancelBtn; VclPtr pCreateBtn; VclPtr pAddBtn; VclPtr pUpBtn; VclPtr pDownBtn; VclPtr pRemoveBtn; VclPtr pImagesLst; VclPtr pImg; VclPtr pInsTypeCombo; VclPtr pASRCheck; VclPtr pCapCheck; SdDrawDocument* pDoc; GraphicFilter* mpGraphicFilter; DECL_LINK_TYPED(CancelHdl, Button*, void); DECL_LINK_TYPED(CreateHdl, Button*, void); DECL_LINK_TYPED(FileHdl, Button*, void); DECL_LINK(TextHdl, void*); DECL_LINK_TYPED(UpHdl, Button*, void); DECL_LINK_TYPED(DownHdl, Button*, void); DECL_LINK_TYPED(RemoveHdl, Button*, void); DECL_LINK(SelectHdl, void*); Reference< drawing::XDrawPage > appendNewSlide(AutoLayout aLayout, Reference< drawing::XDrawPages > xDrawPages); static awt::Size createASRSize(const awt::Size& aPicSize, const awt::Size& aMaxSize); void createCaption(const awt::Size& aPageSize); static Reference< graphic::XGraphic> createXGraphicFromUrl(const OUString& sUrl, Reference< graphic::XGraphicProvider> xProvider); void EnableDisableButtons(); enum SlideImageLayout { ONE_IMAGE=0, TWO_IMAGES, FOUR_IMAGES }; }; } // end of namespace sd #endif // INCLUDED_SD_SOURCE_UI_DLG_PHOTOALBUMDIALOG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */