LibreOffice Module sd (master) 1
PhotoAlbumDialog.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3* This file is part of the LibreOffice project.
4*
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*/
9
10#pragma once
11
12#include <tools/link.hxx>
13
14#include <vcl/weld.hxx>
15#include <svx/graphctl.hxx>
16#include <xmloff/autolayout.hxx>
17
18#include <com/sun/star/awt/Size.hpp>
19
20namespace com::sun::star::drawing { class XDrawPage; }
21namespace com::sun::star::drawing { class XDrawPages; }
22namespace com::sun::star::graphic { class XGraphicProvider; }
23
24class SdDrawDocument;
25class GraphicFilter;
26
27using namespace ::com::sun::star;
28using namespace ::com::sun::star::uno;
29
30namespace sd
31{
32
34{
35public:
37 virtual ~SdPhotoAlbumDialog() override;
38
39private:
42
44
45 std::unique_ptr<weld::Button> m_xCancelBtn;
46 std::unique_ptr<weld::Button> m_xCreateBtn;
47 std::unique_ptr<weld::Button> m_xAddBtn;
48 std::unique_ptr<weld::Button> m_xUpBtn;
49 std::unique_ptr<weld::Button> m_xDownBtn;
50 std::unique_ptr<weld::Button> m_xRemoveBtn;
51 std::unique_ptr<weld::TreeView> m_xImagesLst;
52 std::unique_ptr<weld::CustomWeld> m_xImg;
53 std::unique_ptr<weld::ComboBox> m_xInsTypeCombo;
54 std::unique_ptr<weld::CheckButton> m_xASRCheck;
55 std::unique_ptr<weld::CheckButton> m_xASRCheckCrop;
56 std::unique_ptr<weld::CheckButton> m_xCapCheck;
57 std::unique_ptr<weld::CheckButton> m_xInsertAsLinkCheck;
58
59 DECL_LINK(CancelHdl, weld::Button&, void);
60 DECL_LINK(CreateHdl, weld::Button&, void);
61
62 DECL_LINK(FileHdl, weld::Button&, void);
63 DECL_LINK(UpHdl, weld::Button&, void);
64 DECL_LINK(DownHdl, weld::Button&, void);
65 DECL_LINK(RemoveHdl, weld::Button&, void);
66
67 DECL_LINK(SelectHdl, weld::TreeView&, void);
68 DECL_LINK(TypeSelectHdl, weld::ComboBox&, void);
69
70 Reference< drawing::XDrawPage > appendNewSlide(AutoLayout aLayout,
71 const Reference< drawing::XDrawPages >& xDrawPages);
72
73 static awt::Size createASRSize(const awt::Size& aPicSize, const awt::Size& aMaxSize);
74 static awt::Size createASRSizeCrop(const awt::Size& aPicSize, const awt::Size& aMaxSize);
75 void createCaption(const awt::Size& aPageSize);
76 static Reference< graphic::XGraphic> createXGraphicFromUrl(const OUString& sUrl,
77 const Reference< graphic::XGraphicProvider>& xProvider);
78
80
82 {
86 };
87};
88
89} // end of namespace sd
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AutoLayout
std::unique_ptr< weld::CheckButton > m_xASRCheckCrop
std::unique_ptr< weld::CheckButton > m_xInsertAsLinkCheck
std::unique_ptr< weld::Button > m_xCancelBtn
std::unique_ptr< weld::CheckButton > m_xASRCheck
DECL_LINK(DownHdl, weld::Button &, void)
DECL_LINK(CreateHdl, weld::Button &, void)
static awt::Size createASRSize(const awt::Size &aPicSize, const awt::Size &aMaxSize)
GraphicFilter * m_pGraphicFilter
DECL_LINK(UpHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xRemoveBtn
std::unique_ptr< weld::Button > m_xAddBtn
DECL_LINK(SelectHdl, weld::TreeView &, void)
std::unique_ptr< weld::ComboBox > m_xInsTypeCombo
void createCaption(const awt::Size &aPageSize)
std::unique_ptr< weld::Button > m_xCreateBtn
SdPhotoAlbumDialog(weld::Window *pWindow, SdDrawDocument *pActDoc)
std::unique_ptr< weld::TreeView > m_xImagesLst
std::unique_ptr< weld::CustomWeld > m_xImg
std::unique_ptr< weld::CheckButton > m_xCapCheck
std::unique_ptr< weld::Button > m_xUpBtn
virtual ~SdPhotoAlbumDialog() override
std::unique_ptr< weld::Button > m_xDownBtn
DECL_LINK(FileHdl, weld::Button &, void)
static awt::Size createASRSizeCrop(const awt::Size &aPicSize, const awt::Size &aMaxSize)
DECL_LINK(CancelHdl, weld::Button &, void)
Reference< drawing::XDrawPage > appendNewSlide(AutoLayout aLayout, const Reference< drawing::XDrawPages > &xDrawPages)
DECL_LINK(TypeSelectHdl, weld::ComboBox &, void)
static Reference< graphic::XGraphic > createXGraphicFromUrl(const OUString &sUrl, const Reference< graphic::XGraphicProvider > &xProvider)
DECL_LINK(RemoveHdl, weld::Button &, void)