From 531c3c5ed456133611d328fdbd5a86542cf92eff Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 6 Mar 2008 15:34:49 +0000 Subject: INTEGRATION: CWS impresshandouts01 (1.1.4); FILE ADDED 2008/03/05 13:43:57 cl 1.1.4.2: #i85355# enhanced handout printing 2008/01/18 11:40:13 cl 1.1.4.1: file printdialog.hxx was added on branch cws_dev300_impresshandouts01 on 2008-03-05 13:43:57 +0000 --- sd/source/ui/inc/printdialog.hxx | 69 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 sd/source/ui/inc/printdialog.hxx (limited to 'sd/source/ui/inc/printdialog.hxx') diff --git a/sd/source/ui/inc/printdialog.hxx b/sd/source/ui/inc/printdialog.hxx new file mode 100644 index 000000000000..36fb7364edd5 --- /dev/null +++ b/sd/source/ui/inc/printdialog.hxx @@ -0,0 +1,69 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: printdialog.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2008-03-06 16:34:48 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef _SD_PRINTDIALOG_HXX_ +#define _SD_PRINTDIALOG_HXX_ + +#include +#include +#include +#include + +class SdOptionsPrintItem; + +class SdPrintDialog : public PrintDialog +{ + public: + static SdPrintDialog* Create( Window* pWindow, bool bImpress ); + virtual ~SdPrintDialog(); + + void Init( const SdOptionsPrintItem* pPrintOpts ); + bool Fill( SdOptionsPrintItem* pPrintOpts ); + +private: + SdPrintDialog( Window* pWindow, bool bImpress ); + + void UpdateStates(); + void LoadPreviewImages(); + + DECL_LINK( UpdateStatesHdl, void* ); + + std::vector< boost::shared_ptr< Control > > mpControls; + std::vector< boost::shared_ptr< Image > > mpPreviews; + std::vector< boost::shared_ptr< Image > > mpPreviewsHC; + bool mbImpress; +}; + +#endif // _SD_PRINTDIALOG_HXX_ + -- cgit