office-gobmx/sd/source/ui/inc/pubdlg.hxx
Michael Meeks 837e2808f7 re-base on ALv2 code. Includes:
Patches contributed by Armin Le-Grand
    #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles...
    http://svn.apache.org/viewvc?view=revision&revision=1293316
    #118485# - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166

    Patches contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1172128
    http://svn.apache.org/viewvc?view=revision&revision=1172133

    Patch contributed by Ariel Constenla-Haile
    i#118505# - Remove MN_OLE_OBJECT menu item from Draw/Impress
    contextmenu  - CWS contextmenu1
    http://svn.apache.org/viewvc?view=revision&revision=1182915

    Patch contributed by Zhang Jian Fang
    #118876#, Add check if the OutlinerParaObject is created successfully
    http://svn.apache.org/viewvc?view=revision&revision=1243381

restore a re-based rdbedit.
2012-11-28 12:48:36 +00:00

207 lines
6.2 KiB
C++

/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _SD_PUBDLG_HXX
#define _SD_PUBDLG_HXX
#include <com/sun/star/beans/PropertyValue.hpp>
#include <vcl/fixed.hxx>
#include <vcl/group.hxx>
#include <vcl/button.hxx>
#include <vcl/field.hxx>
#include <vcl/dialog.hxx>
#include "resltn.hxx" // enum PublishingResolution
#include "pres.hxx"
#include "assclass.hxx"
#include <boost/scoped_ptr.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#define NOOFPAGES 6
enum HtmlPublishMode { PUBLISH_HTML, PUBLISH_FRAMES, PUBLISH_WEBCAST, PUBLISH_KIOSK };
class FixedText;
class RadioButton;
class ListBox;
class ComboBox;
class Edit;
class MultiLineEdit;
class ValueSet;
class SdHtmlAttrPreview;
class SdPublishingDesign;
class ButtonSet;
// *********************************************************************
// Html-Export Autopilot
// *********************************************************************
class SdPublishingDlg : public ModalDialog
{
private:
// page 1 controls
FixedLine* pPage1_Titel;
RadioButton* pPage1_NewDesign;
RadioButton* pPage1_OldDesign;
ListBox* pPage1_Designs;
PushButton* pPage1_DelDesign;
FixedText* pPage1_Desc;
// page 2 controls
FixedLine* pPage2_Titel;
RadioButton* pPage2_Standard;
RadioButton* pPage2_Frames;
RadioButton* pPage2_Kiosk;
RadioButton* pPage2_WebCast;
FixedBitmap* pPage2_Standard_FB;
FixedBitmap* pPage2_Frames_FB;
FixedBitmap* pPage2_Kiosk_FB;
FixedBitmap* pPage2_WebCast_FB;
FixedLine* pPage2_Titel_Html;
CheckBox* pPage2_Content;
CheckBox* pPage2_Notes;
FixedLine* pPage2_Titel_WebCast;
RadioButton* pPage2_ASP;
RadioButton* pPage2_PERL;
FixedText* pPage2_URL_txt;
Edit* pPage2_URL;
FixedText* pPage2_CGI_txt;
Edit* pPage2_CGI;
FixedText* pPage2_Index_txt;
Edit* pPage2_Index;
FixedLine* pPage2_Vert;
FixedLine* pPage2_Titel_Kiosk;
RadioButton* pPage2_ChgDefault;
RadioButton* pPage2_ChgAuto;
FixedText* pPage2_Duration_txt;
TimeField* pPage2_Duration;
CheckBox* pPage2_Endless;
// page 3 controls
FixedLine* pPage3_Titel1;
RadioButton* pPage3_Png;
RadioButton* pPage3_Gif;
RadioButton* pPage3_Jpg;
FixedText* pPage3_Quality_txt;
ComboBox* pPage3_Quality;
FixedLine* pPage3_Vert;
FixedLine* pPage3_Titel2;
RadioButton* pPage3_Resolution_1;
RadioButton* pPage3_Resolution_2;
RadioButton* pPage3_Resolution_3;
FixedLine* pPage3_Titel3;
CheckBox* pPage3_SldSound;
CheckBox* pPage3_HiddenSlides;
// page 4 controls
FixedLine* pPage4_Titel1;
FixedText* pPage4_Author_txt;
Edit* pPage4_Author;
FixedText* pPage4_Email_txt;
Edit* pPage4_Email;
FixedText* pPage4_WWW_txt;
Edit* pPage4_WWW;
FixedText* pPage4_Titel2;
MultiLineEdit* pPage4_Misc;
CheckBox* pPage4_Download;
// page 5 controls
FixedLine* pPage5_Titel;
CheckBox* pPage5_TextOnly;
ValueSet* pPage5_Buttons;
// page 6 controls
FixedLine* pPage6_Titel;
RadioButton* pPage6_Default;
RadioButton* pPage6_User;
PushButton* pPage6_Back;
PushButton* pPage6_Text;
PushButton* pPage6_Link;
PushButton* pPage6_VLink;
PushButton* pPage6_ALink;
RadioButton* pPage6_DocColors;
SdHtmlAttrPreview* pPage6_Preview;
boost::scoped_ptr< ButtonSet > mpButtonSet;
// standard controls
FixedLine aBottomLine;
HelpButton aHelpButton;
CancelButton aCancelButton;
PushButton aLastPageButton;
PushButton aNextPageButton;
OKButton aFinishButton;
Assistent aAssistentFunc;
sal_Bool m_bImpress;
sal_Bool m_bButtonsDirty;
void SetDefaults();
void CreatePages();
void RemovePages();
Color m_aBackColor, m_aTextColor, m_aLinkColor;
Color m_aVLinkColor, m_aALinkColor;
void ChangePage();
void UpdatePage();
boost::ptr_vector<SdPublishingDesign> m_aDesignList;
sal_Bool m_bDesignListDirty;
SdPublishingDesign* m_pDesign;
sal_Bool Load();
sal_Bool Save();
void GetDesign( SdPublishingDesign* pDesign );
void SetDesign( SdPublishingDesign* pDesign );
void LoadPreviewButtons();
DECL_LINK( FinishHdl, void * );
DECL_LINK( NextPageHdl, void * );
DECL_LINK( LastPageHdl, void * );
DECL_LINK( DesignHdl, RadioButton * );
DECL_LINK( DesignSelectHdl, void * );
DECL_LINK( DesignDeleteHdl, void * );
DECL_LINK( BaseHdl, void * );
DECL_LINK( ContentHdl, void * );
DECL_LINK( GfxFormatHdl, RadioButton * );
DECL_LINK( ResolutionHdl, RadioButton * );
DECL_LINK( ButtonsHdl, void * );
DECL_LINK( ColorHdl, PushButton * );
DECL_LINK( WebServerHdl, RadioButton * );
DECL_LINK( SlideChgHdl, void * );
public:
SdPublishingDlg(Window* pWindow, DocumentType eDocType);
~SdPublishingDlg();
void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams );
};
#endif // _SD_PUBDLG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */