1*c45d927aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c45d927aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c45d927aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c45d927aSAndrew Rist * distributed with this work for additional information 6*c45d927aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c45d927aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c45d927aSAndrew Rist * "License"); you may not use this file except in compliance 9*c45d927aSAndrew Rist * with the License. You may obtain a copy of the License at 10*c45d927aSAndrew Rist * 11*c45d927aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c45d927aSAndrew Rist * 13*c45d927aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c45d927aSAndrew Rist * software distributed under the License is distributed on an 15*c45d927aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c45d927aSAndrew Rist * KIND, either express or implied. See the License for the 17*c45d927aSAndrew Rist * specific language governing permissions and limitations 18*c45d927aSAndrew Rist * under the License. 19*c45d927aSAndrew Rist * 20*c45d927aSAndrew Rist *************************************************************/ 21*c45d927aSAndrew Rist 22*c45d927aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SD_PUBDLG_HXX 25cdf0e10cSrcweir #define _SD_PUBDLG_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp> 28cdf0e10cSrcweir #include <vcl/fixed.hxx> 29cdf0e10cSrcweir #ifndef _GROUP_HXX //autogen 30cdf0e10cSrcweir #include <vcl/group.hxx> 31cdf0e10cSrcweir #endif 32cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 33cdf0e10cSrcweir #include <vcl/button.hxx> 34cdf0e10cSrcweir #endif 35cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 36cdf0e10cSrcweir #include <vcl/button.hxx> 37cdf0e10cSrcweir #endif 38cdf0e10cSrcweir #ifndef _FIELD_HXX //autogen 39cdf0e10cSrcweir #include <vcl/field.hxx> 40cdf0e10cSrcweir #endif 41cdf0e10cSrcweir #ifndef _DIALOG_HXX //autogen 42cdf0e10cSrcweir #include <vcl/dialog.hxx> 43cdf0e10cSrcweir #endif 44cdf0e10cSrcweir #include "resltn.hxx" // enum PublishingResolution 45cdf0e10cSrcweir #include "pres.hxx" 46cdf0e10cSrcweir #include "assclass.hxx" 47cdf0e10cSrcweir 48cdf0e10cSrcweir #include <boost/scoped_ptr.hpp> 49cdf0e10cSrcweir 50cdf0e10cSrcweir #define NOOFPAGES 6 51cdf0e10cSrcweir 52cdf0e10cSrcweir enum HtmlPublishMode { PUBLISH_HTML, PUBLISH_FRAMES, PUBLISH_WEBCAST, PUBLISH_KIOSK }; 53cdf0e10cSrcweir 54cdf0e10cSrcweir class SfxItemSet; 55cdf0e10cSrcweir 56cdf0e10cSrcweir class FixedText; 57cdf0e10cSrcweir class RadioButton; 58cdf0e10cSrcweir class ListBox; 59cdf0e10cSrcweir class ComboBox; 60cdf0e10cSrcweir class Edit; 61cdf0e10cSrcweir class MultiLineEdit; 62cdf0e10cSrcweir class ValueSet; 63cdf0e10cSrcweir class SdHtmlAttrPreview; 64cdf0e10cSrcweir class List; 65cdf0e10cSrcweir class SdPublishingDesign; 66cdf0e10cSrcweir class ButtonSet; 67cdf0e10cSrcweir 68cdf0e10cSrcweir // ********************************************************************* 69cdf0e10cSrcweir // Html-Export Autopilot 70cdf0e10cSrcweir // ********************************************************************* 71cdf0e10cSrcweir 72cdf0e10cSrcweir class SdPublishingDlg : public ModalDialog 73cdf0e10cSrcweir { 74cdf0e10cSrcweir private: 75cdf0e10cSrcweir // page 1 controls 76cdf0e10cSrcweir FixedBitmap* pPage1_Bmp; 77cdf0e10cSrcweir FixedLine* pPage1_Titel; 78cdf0e10cSrcweir RadioButton* pPage1_NewDesign; 79cdf0e10cSrcweir RadioButton* pPage1_OldDesign; 80cdf0e10cSrcweir ListBox* pPage1_Designs; 81cdf0e10cSrcweir PushButton* pPage1_DelDesign; 82cdf0e10cSrcweir FixedText* pPage1_Desc; 83cdf0e10cSrcweir 84cdf0e10cSrcweir // page 2 controls 85cdf0e10cSrcweir FixedBitmap* pPage2_Bmp; 86cdf0e10cSrcweir FixedLine* pPage2_Titel; 87cdf0e10cSrcweir RadioButton* pPage2_Standard; 88cdf0e10cSrcweir RadioButton* pPage2_Frames; 89cdf0e10cSrcweir RadioButton* pPage2_Kiosk; 90cdf0e10cSrcweir RadioButton* pPage2_WebCast; 91cdf0e10cSrcweir FixedBitmap* pPage2_Standard_FB; 92cdf0e10cSrcweir FixedBitmap* pPage2_Frames_FB; 93cdf0e10cSrcweir FixedBitmap* pPage2_Kiosk_FB; 94cdf0e10cSrcweir FixedBitmap* pPage2_WebCast_FB; 95cdf0e10cSrcweir 96cdf0e10cSrcweir FixedLine* pPage2_Titel_Html; 97cdf0e10cSrcweir CheckBox* pPage2_Content; 98cdf0e10cSrcweir CheckBox* pPage2_Notes; 99cdf0e10cSrcweir 100cdf0e10cSrcweir FixedLine* pPage2_Titel_WebCast; 101cdf0e10cSrcweir RadioButton* pPage2_ASP; 102cdf0e10cSrcweir RadioButton* pPage2_PERL; 103cdf0e10cSrcweir FixedText* pPage2_URL_txt; 104cdf0e10cSrcweir Edit* pPage2_URL; 105cdf0e10cSrcweir FixedText* pPage2_CGI_txt; 106cdf0e10cSrcweir Edit* pPage2_CGI; 107cdf0e10cSrcweir FixedText* pPage2_Index_txt; 108cdf0e10cSrcweir Edit* pPage2_Index; 109cdf0e10cSrcweir FixedLine* pPage2_Vert; 110cdf0e10cSrcweir FixedLine* pPage2_Titel_Kiosk; 111cdf0e10cSrcweir RadioButton* pPage2_ChgDefault; 112cdf0e10cSrcweir RadioButton* pPage2_ChgAuto; 113cdf0e10cSrcweir FixedText* pPage2_Duration_txt; 114cdf0e10cSrcweir TimeField* pPage2_Duration; 115cdf0e10cSrcweir CheckBox* pPage2_Endless; 116cdf0e10cSrcweir 117cdf0e10cSrcweir // page 3 controls 118cdf0e10cSrcweir FixedBitmap* pPage3_Bmp; 119cdf0e10cSrcweir FixedLine* pPage3_Titel1; 120cdf0e10cSrcweir RadioButton* pPage3_Png; 121cdf0e10cSrcweir RadioButton* pPage3_Gif; 122cdf0e10cSrcweir RadioButton* pPage3_Jpg; 123cdf0e10cSrcweir FixedText* pPage3_Quality_txt; 124cdf0e10cSrcweir ComboBox* pPage3_Quality; 125cdf0e10cSrcweir FixedLine* pPage3_Vert; 126cdf0e10cSrcweir FixedLine* pPage3_Titel2; 127cdf0e10cSrcweir RadioButton* pPage3_Resolution_1; 128cdf0e10cSrcweir RadioButton* pPage3_Resolution_2; 129cdf0e10cSrcweir RadioButton* pPage3_Resolution_3; 130cdf0e10cSrcweir FixedLine* pPage3_Titel3; 131cdf0e10cSrcweir CheckBox* pPage3_SldSound; 132cdf0e10cSrcweir CheckBox* pPage3_HiddenSlides; 133cdf0e10cSrcweir // page 4 controls 134cdf0e10cSrcweir 135cdf0e10cSrcweir FixedBitmap* pPage4_Bmp; 136cdf0e10cSrcweir FixedLine* pPage4_Titel1; 137cdf0e10cSrcweir FixedText* pPage4_Author_txt; 138cdf0e10cSrcweir Edit* pPage4_Author; 139cdf0e10cSrcweir FixedText* pPage4_Email_txt; 140cdf0e10cSrcweir Edit* pPage4_Email; 141cdf0e10cSrcweir FixedText* pPage4_WWW_txt; 142cdf0e10cSrcweir Edit* pPage4_WWW; 143cdf0e10cSrcweir FixedText* pPage4_Titel2; 144cdf0e10cSrcweir MultiLineEdit* pPage4_Misc; 145cdf0e10cSrcweir CheckBox* pPage4_Download; 146cdf0e10cSrcweir //-/ CheckBox* pPage4_Created; 147cdf0e10cSrcweir 148cdf0e10cSrcweir // page 5 controls 149cdf0e10cSrcweir 150cdf0e10cSrcweir FixedBitmap* pPage5_Bmp; 151cdf0e10cSrcweir FixedLine* pPage5_Titel; 152cdf0e10cSrcweir CheckBox* pPage5_TextOnly; 153cdf0e10cSrcweir ValueSet* pPage5_Buttons; 154cdf0e10cSrcweir 155cdf0e10cSrcweir // page 6 controls 156cdf0e10cSrcweir 157cdf0e10cSrcweir FixedBitmap* pPage6_Bmp; 158cdf0e10cSrcweir FixedLine* pPage6_Titel; 159cdf0e10cSrcweir RadioButton* pPage6_Default; 160cdf0e10cSrcweir RadioButton* pPage6_User; 161cdf0e10cSrcweir PushButton* pPage6_Back; 162cdf0e10cSrcweir PushButton* pPage6_Text; 163cdf0e10cSrcweir PushButton* pPage6_Link; 164cdf0e10cSrcweir PushButton* pPage6_VLink; 165cdf0e10cSrcweir PushButton* pPage6_ALink; 166cdf0e10cSrcweir RadioButton* pPage6_DocColors; 167cdf0e10cSrcweir SdHtmlAttrPreview* pPage6_Preview; 168cdf0e10cSrcweir 169cdf0e10cSrcweir boost::scoped_ptr< ButtonSet > mpButtonSet; 170cdf0e10cSrcweir 171cdf0e10cSrcweir // CheckBox* pPage6_Sound; 172cdf0e10cSrcweir 173cdf0e10cSrcweir // standard controls 174cdf0e10cSrcweir FixedLine aBottomLine; 175cdf0e10cSrcweir HelpButton aHelpButton; 176cdf0e10cSrcweir CancelButton aCancelButton; 177cdf0e10cSrcweir PushButton aLastPageButton; 178cdf0e10cSrcweir PushButton aNextPageButton; 179cdf0e10cSrcweir OKButton aFinishButton; 180cdf0e10cSrcweir 181cdf0e10cSrcweir Assistent aAssistentFunc; 182cdf0e10cSrcweir 183cdf0e10cSrcweir sal_Bool m_bImpress; 184cdf0e10cSrcweir sal_Bool m_bButtonsDirty; 185cdf0e10cSrcweir 186cdf0e10cSrcweir void SetDefaults(); 187cdf0e10cSrcweir void CreatePages(); 188cdf0e10cSrcweir void RemovePages(); 189cdf0e10cSrcweir 190cdf0e10cSrcweir Color m_aBackColor, m_aTextColor, m_aLinkColor; 191cdf0e10cSrcweir Color m_aVLinkColor, m_aALinkColor; 192cdf0e10cSrcweir 193cdf0e10cSrcweir void ChangePage(); 194cdf0e10cSrcweir void UpdatePage(); 195cdf0e10cSrcweir 196cdf0e10cSrcweir List* m_pDesignList; 197cdf0e10cSrcweir sal_Bool m_bDesignListDirty; 198cdf0e10cSrcweir SdPublishingDesign* m_pDesign; 199cdf0e10cSrcweir sal_Bool Load(); 200cdf0e10cSrcweir sal_Bool Save(); 201cdf0e10cSrcweir 202cdf0e10cSrcweir void GetDesign( SdPublishingDesign* pDesign ); 203cdf0e10cSrcweir void SetDesign( SdPublishingDesign* pDesign ); 204cdf0e10cSrcweir 205cdf0e10cSrcweir void LoadPreviewButtons(); 206cdf0e10cSrcweir 207cdf0e10cSrcweir DECL_LINK( FinishHdl, OKButton * ); 208cdf0e10cSrcweir DECL_LINK( NextPageHdl, PushButton * ); 209cdf0e10cSrcweir DECL_LINK( LastPageHdl, PushButton * ); 210cdf0e10cSrcweir 211cdf0e10cSrcweir DECL_LINK( DesignHdl, RadioButton * ); 212cdf0e10cSrcweir DECL_LINK( DesignSelectHdl, ListBox * ); 213cdf0e10cSrcweir DECL_LINK( DesignDeleteHdl, PushButton * ); 214cdf0e10cSrcweir DECL_LINK( BaseHdl, RadioButton * ); 215cdf0e10cSrcweir DECL_LINK( ContentHdl, RadioButton * ); 216cdf0e10cSrcweir DECL_LINK( GfxFormatHdl, RadioButton * ); 217cdf0e10cSrcweir DECL_LINK( ResolutionHdl, RadioButton * ); 218cdf0e10cSrcweir DECL_LINK( ButtonsHdl, ValueSet* ); 219cdf0e10cSrcweir DECL_LINK( ColorHdl, PushButton * ); 220cdf0e10cSrcweir DECL_LINK( WebServerHdl, RadioButton * ); 221cdf0e10cSrcweir DECL_LINK( SlideChgHdl, RadioButton* ); 222cdf0e10cSrcweir 223cdf0e10cSrcweir public: 224cdf0e10cSrcweir 225cdf0e10cSrcweir SdPublishingDlg(Window* pWindow, DocumentType eDocType); 226cdf0e10cSrcweir ~SdPublishingDlg(); 227cdf0e10cSrcweir 228cdf0e10cSrcweir void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ); 229cdf0e10cSrcweir }; 230cdf0e10cSrcweir 231cdf0e10cSrcweir #endif // _SD_PUBDLG_HXX 232