/* -*- 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 #include #include #include #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() override; virtual void dispose() override; private: VclPtr pCancelBtn; VclPtr pCreateBtn; VclPtr pAddBtn; VclPtr pUpBtn; VclPtr pDownBtn; VclPtr pRemoveBtn; VclPtr pImagesLst; VclPtr pImg; VclPtr pInsTypeCombo; VclPtr pASRCheck; VclPtr pASRCheckCrop; VclPtr pCapCheck; VclPtr pInsertAsLinkCheck; SdDrawDocument* pDoc; GraphicFilter* mpGraphicFilter; DECL_LINK(CancelHdl, Button*, void); DECL_LINK(CreateHdl, Button*, void); DECL_LINK(FileHdl, Button*, void); DECL_LINK(UpHdl, Button*, void); DECL_LINK(DownHdl, Button*, void); DECL_LINK(RemoveHdl, Button*, void); DECL_LINK(SelectHdl, ListBox&, void); DECL_LINK(TypeSelectHdl, ListBox&, void); Reference< drawing::XDrawPage > appendNewSlide(AutoLayout aLayout, const Reference< drawing::XDrawPages >& xDrawPages); static awt::Size createASRSize(const awt::Size& aPicSize, const awt::Size& aMaxSize); static awt::Size createASRSizeCrop(const awt::Size& aPicSize, const awt::Size& aMaxSize); void createCaption(const awt::Size& aPageSize); static Reference< graphic::XGraphic> createXGraphicFromUrl(const OUString& sUrl, const 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: */