bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / pubdlg.hxx
blobf9670c7b038faf11d3e4a43205e787cbb50068ef
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_PUBDLG_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_PUBDLG_HXX
23 #include <com/sun/star/beans/PropertyValue.hpp>
24 #include <vcl/fixed.hxx>
25 #include <vcl/group.hxx>
26 #include <vcl/button.hxx>
27 #include <vcl/field.hxx>
28 #include <vcl/dialog.hxx>
29 #include <vcl/layout.hxx>
30 #include "resltn.hxx"
31 #include "pres.hxx"
32 #include "assclass.hxx"
34 #include <boost/scoped_ptr.hpp>
35 #include <boost/ptr_container/ptr_vector.hpp>
37 class FixedText;
38 class RadioButton;
39 class ListBox;
40 class ComboBox;
41 class Edit;
42 class MultiLineEdit;
43 class ValueSet;
44 class SdHtmlAttrPreview;
45 class SdPublishingDesign;
46 class ButtonSet;
48 // *********************************************************************
49 // Html-Export Autopilot
50 // *********************************************************************
52 class SdPublishingDlg : public ModalDialog
54 private:
55 // page 1 controls
56 VclPtr<VclContainer> pPage1;
57 VclPtr<FixedText> pPage1_Titel;
58 VclPtr<RadioButton> pPage1_NewDesign;
59 VclPtr<RadioButton> pPage1_OldDesign;
60 VclPtr<ListBox> pPage1_Designs;
61 VclPtr<PushButton> pPage1_DelDesign;
62 VclPtr<FixedText> pPage1_Desc;
64 // page 2 controls
65 VclPtr<VclContainer> pPage2;
66 VclPtr<VclContainer> pPage2Frame2;
67 VclPtr<VclContainer> pPage2Frame3;
68 VclPtr<VclContainer> pPage2Frame4;
69 VclPtr<FixedText> pPage2_Titel;
70 VclPtr<RadioButton> pPage2_Standard;
71 VclPtr<RadioButton> pPage2_Frames;
72 VclPtr<RadioButton> pPage2_SingleDocument;
73 VclPtr<RadioButton> pPage2_Kiosk;
74 VclPtr<RadioButton> pPage2_WebCast;
75 VclPtr<FixedImage> pPage2_Standard_FB;
76 VclPtr<FixedImage> pPage2_Frames_FB;
77 VclPtr<FixedImage> pPage2_Kiosk_FB;
78 VclPtr<FixedImage> pPage2_WebCast_FB;
80 VclPtr<FixedText> pPage2_Titel_Html;
81 VclPtr<CheckBox> pPage2_Content;
82 VclPtr<CheckBox> pPage2_Notes;
84 VclPtr<FixedText> pPage2_Titel_WebCast;
85 VclPtr<RadioButton> pPage2_ASP;
86 VclPtr<RadioButton> pPage2_PERL;
87 VclPtr<FixedText> pPage2_URL_txt;
88 VclPtr<Edit> pPage2_URL;
89 VclPtr<FixedText> pPage2_CGI_txt;
90 VclPtr<Edit> pPage2_CGI;
91 VclPtr<FixedText> pPage2_Index_txt;
92 VclPtr<Edit> pPage2_Index;
93 VclPtr<FixedText> pPage2_Titel_Kiosk;
94 VclPtr<RadioButton> pPage2_ChgDefault;
95 VclPtr<RadioButton> pPage2_ChgAuto;
96 VclPtr<FixedText> pPage2_Duration_txt;
97 VclPtr<TimeField> pPage2_Duration;
98 VclPtr<CheckBox> pPage2_Endless;
100 // page 3 controls
101 VclPtr<VclContainer> pPage3;
102 VclPtr<FixedText> pPage3_Titel1;
103 VclPtr<RadioButton> pPage3_Png;
104 VclPtr<RadioButton> pPage3_Gif;
105 VclPtr<RadioButton> pPage3_Jpg;
106 VclPtr<FixedText> pPage3_Quality_txt;
107 VclPtr<ComboBox> pPage3_Quality;
108 VclPtr<FixedText> pPage3_Titel2;
109 VclPtr<RadioButton> pPage3_Resolution_1;
110 VclPtr<RadioButton> pPage3_Resolution_2;
111 VclPtr<RadioButton> pPage3_Resolution_3;
112 VclPtr<FixedText> pPage3_Titel3;
113 VclPtr<CheckBox> pPage3_SldSound;
114 VclPtr<CheckBox> pPage3_HiddenSlides;
116 // page 4 controls
117 VclPtr<VclContainer> pPage4;
118 VclPtr<FixedText> pPage4_Titel1;
119 VclPtr<FixedText> pPage4_Author_txt;
120 VclPtr<Edit> pPage4_Author;
121 VclPtr<FixedText> pPage4_Email_txt;
122 VclPtr<Edit> pPage4_Email;
123 VclPtr<FixedText> pPage4_WWW_txt;
124 VclPtr<Edit> pPage4_WWW;
125 VclPtr<FixedText> pPage4_Titel2;
126 VclPtr<VclMultiLineEdit> pPage4_Misc;
127 VclPtr<CheckBox> pPage4_Download;
129 // page 5 controls
130 VclPtr<VclContainer> pPage5;
131 VclPtr<FixedText> pPage5_Titel;
132 VclPtr<CheckBox> pPage5_TextOnly;
133 VclPtr<ValueSet> pPage5_Buttons;
135 // page 6 controls
136 VclPtr<VclContainer> pPage6;
137 VclPtr<FixedText> pPage6_Titel;
138 VclPtr<RadioButton> pPage6_Default;
139 VclPtr<RadioButton> pPage6_User;
140 VclPtr<PushButton> pPage6_Back;
141 VclPtr<PushButton> pPage6_Text;
142 VclPtr<PushButton> pPage6_Link;
143 VclPtr<PushButton> pPage6_VLink;
144 VclPtr<PushButton> pPage6_ALink;
145 VclPtr<RadioButton> pPage6_DocColors;
146 VclPtr<SdHtmlAttrPreview> pPage6_Preview;
148 boost::scoped_ptr< ButtonSet > mpButtonSet;
150 // standard controls
151 VclPtr<PushButton> pLastPageButton;
152 VclPtr<PushButton> pNextPageButton;
153 VclPtr<PushButton> pFinishButton;
155 Assistent aAssistentFunc;
157 bool m_bImpress;
158 bool m_bButtonsDirty;
160 void SetDefaults();
161 void CreatePages();
163 Color m_aBackColor, m_aTextColor, m_aLinkColor;
164 Color m_aVLinkColor, m_aALinkColor;
166 void ChangePage();
167 void UpdatePage();
169 boost::ptr_vector<SdPublishingDesign> m_aDesignList;
170 bool m_bDesignListDirty;
171 SdPublishingDesign* m_pDesign;
172 bool Load();
173 bool Save();
175 void GetDesign( SdPublishingDesign* pDesign );
176 void SetDesign( SdPublishingDesign* pDesign );
178 void LoadPreviewButtons();
180 DECL_LINK( FinishHdl, void * );
181 DECL_LINK( NextPageHdl, void * );
182 DECL_LINK( LastPageHdl, void * );
184 DECL_LINK( DesignHdl, RadioButton * );
185 DECL_LINK( DesignSelectHdl, void * );
186 DECL_LINK( DesignDeleteHdl, void * );
187 DECL_LINK( BaseHdl, void * );
188 DECL_LINK( ContentHdl, void * );
189 DECL_LINK( GfxFormatHdl, RadioButton * );
190 DECL_LINK( ResolutionHdl, RadioButton * );
191 DECL_LINK( ButtonsHdl, void * );
192 DECL_LINK( ColorHdl, PushButton * );
193 DECL_LINK( WebServerHdl, RadioButton * );
194 DECL_LINK( SlideChgHdl, void * );
196 public:
198 SdPublishingDlg(vcl::Window* pWindow, DocumentType eDocType);
199 virtual ~SdPublishingDlg();
200 virtual void dispose() SAL_OVERRIDE;
202 void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams );
205 #endif // INCLUDED_SD_SOURCE_UI_INC_PUBDLG_HXX
207 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */