diff options
author | Kai Ahrens <ka@openoffice.org> | 2001-04-26 18:51:18 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2001-04-26 18:51:18 +0000 |
commit | 49b1b3c6a54d0ca5eea14dde40080426d476deca (patch) | |
tree | 2fb594580e97e2d8555444e23618853466b9bbfc /sfx2 | |
parent | 87b135ad373fda33514efcec05f59dc1b85188be (diff) |
initial revision
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/printopt.cxx | 416 | ||||
-rw-r--r-- | sfx2/source/dialog/printopt.hrc | 89 | ||||
-rw-r--r-- | sfx2/source/dialog/printopt.src | 349 |
3 files changed, 854 insertions, 0 deletions
diff --git a/sfx2/source/dialog/printopt.cxx b/sfx2/source/dialog/printopt.cxx new file mode 100644 index 000000000000..dbf0e05fb322 --- /dev/null +++ b/sfx2/source/dialog/printopt.cxx @@ -0,0 +1,416 @@ +/************************************************************************* + * + * $RCSfile: printopt.cxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: ka $ $Date: 2001-04-26 19:51:18 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 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 + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#pragma hdrstop + +#ifndef INCLUDED_SVTOOLS_PRINTWARNINGOPTIONS_HXX +#include <svtools/printwarningoptions.hxx> +#endif +#ifndef INCLUDED_SVTOOLS_PRINTOPTIONS_HXX +#include <svtools/printoptions.hxx> +#endif +#ifndef _SFXFLAGITEM_HXX +#include <svtools/flagitem.hxx> +#endif + +#include "printopt.hrc" +#include "dialog.hrc" +#include "sfxresid.hxx" +#include "viewsh.hxx" +#include "printopt.hxx" + +// ----------- +// - statics - +// ----------- + +static USHORT aDPIArray[] = { 72, 96, 150, 200, 300, 600 }; + +// -------------------------------- +// - SfxCommonPrintOptionsTabPage - +// -------------------------------- + +SfxCommonPrintOptionsTabPage::SfxCommonPrintOptionsTabPage( Window* pParent, const SfxItemSet& rSet ) : + SfxTabPage( pParent, SfxResId( TP_COMMONPRINTOPTIONS ), rSet ), + + aReduceGB( this, ResId( GB_REDUCE ) ), + aOutputTypeFT( this, ResId( FT_OUTPUTTYPE ) ), + aPrinterOutputRB( this, ResId( RB_PRINTEROUTPUT ) ), + aPrintFileOutputRB( this, ResId( RB_PRINTFILEOUTPUT ) ), + aReduceTransparencyCB( this, ResId( CB_REDUCETRANSPARENCY ) ), + aReduceTransparencyAutoRB( this, ResId( RB_REDUCETRANSPARENCY_AUTO ) ), + aReduceTransparencyNoneRB( this, ResId( RB_REDUCETRANSPARENCY_NONE ) ), + aReduceGradientsCB( this, ResId( CB_REDUCEGRADIENTS ) ), + aReduceGradientsStripesRB( this, ResId( RB_REDUCEGRADIENTS_STRIPES ) ), + aReduceGradientsColorRB( this, ResId( RB_REDUCEGRADIENTS_COLOR ) ), + aReduceGradientsStepCountNF( this, ResId( NF_REDUCEGRADIENTS_STEPCOUNT ) ), + aReduceBitmapsCB( this, ResId( CB_REDUCEBITMAPS ) ), + aReduceBitmapsOptimalRB( this, ResId( RB_REDUCEBITMAPS_OPTIMAL ) ), + aReduceBitmapsNormalRB( this, ResId( RB_REDUCEBITMAPS_NORMAL ) ), + aReduceBitmapsResolutionRB( this, ResId( RB_REDUCEBITMAPS_RESOLUTION ) ), + aReduceBitmapsTransparencyCB( this, ResId( CB_REDUCEBITMAPS_TRANSPARENCY ) ), + aReduceBitmapsResolutionLB( this, ResId( LB_REDUCEBITMAPS_RESOLUTION ) ), + aConvertToGreyscalesCB( this, ResId( CB_CONVERTTOGREYSCALES ) ), + aWarnGB( this, ResId( GB_PRINT_WARN ) ), + aPaperSizeCB( this, ResId( CB_PAPERSIZE ) ), + aPaperOrientationCB( this, ResId( CB_PAPERORIENTATION ) ), + aTransparencyCB( this, ResId( CB_TRANSPARENCY ) ) +{ + FreeResource(); + + aPrinterOutputRB.SetToggleHdl( LINK( this, SfxCommonPrintOptionsTabPage, ToggleOutputPrinterRBHdl ) ); + aPrintFileOutputRB.SetToggleHdl( LINK( this, SfxCommonPrintOptionsTabPage, ToggleOutputPrintFileRBHdl ) ); + + aReduceTransparencyCB.SetClickHdl( LINK( this, SfxCommonPrintOptionsTabPage, ClickReduceTransparencyCBHdl ) ); + aReduceGradientsCB.SetClickHdl( LINK( this, SfxCommonPrintOptionsTabPage, ClickReduceGradientsCBHdl ) ); + aReduceBitmapsCB.SetClickHdl( LINK( this, SfxCommonPrintOptionsTabPage, ClickReduceBitmapsCBHdl ) ); + + aReduceGradientsStripesRB.SetToggleHdl( LINK( this, SfxCommonPrintOptionsTabPage, ToggleReduceGradientsStripesRBHdl ) ); + aReduceBitmapsResolutionRB.SetToggleHdl( LINK( this, SfxCommonPrintOptionsTabPage, ToggleReduceBitmapsResolutionRBHdl ) ); +} + +// ----------------------------------------------------------------------------- + +SfxCommonPrintOptionsTabPage::~SfxCommonPrintOptionsTabPage() +{ +} + +// ----------------------------------------------------------------------------- + +SfxTabPage* SfxCommonPrintOptionsTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet ) +{ + return( new SfxCommonPrintOptionsTabPage( pParent, rAttrSet ) ); +} + +// ----------------------------------------------------------------------------- + +BOOL SfxCommonPrintOptionsTabPage::FillItemSet( SfxItemSet& rSet ) +{ + SvtPrintWarningOptions aWarnOptions; + SvtPrinterOptions aPrinterOptions; + SvtPrintFileOptions aPrintFileOptions; + BOOL bModified = FALSE; + + + if( aPaperSizeCB.IsChecked() != aPaperSizeCB.GetSavedValue() || + aPaperOrientationCB.IsChecked() != aPaperOrientationCB.GetSavedValue() ) + { + USHORT nFlag = aPaperSizeCB.IsChecked() ? SFX_PRINTER_CHG_SIZE : 0; + + nFlag |= aPaperOrientationCB.IsChecked() ? SFX_PRINTER_CHG_ORIENTATION : 0; + bModified |= ( 0 != rSet.Put( SfxFlagItem( SID_PRINTER_CHANGESTODOC, nFlag ) ) ); + } + + if( aTransparencyCB.IsChecked() != aTransparencyCB.GetSavedValue() ) + aWarnOptions.SetTransparency( aTransparencyCB.IsChecked() ); + + ImplSaveControls( aPrinterOutputRB.IsChecked() ? &maPrinterOptions : &maPrintFileOptions ); + + ImplPrinterOptionsToConfig( &maPrinterOptions, &aPrinterOptions ); + ImplPrinterOptionsToConfig( &maPrintFileOptions, &aPrintFileOptions ); + + return bModified; +} + +// ----------------------------------------------------------------------------- + +void SfxCommonPrintOptionsTabPage::Reset( const SfxItemSet& rSet ) +{ + const SfxPoolItem* pItem; + SvtPrintWarningOptions aWarnOptions; + SvtPrinterOptions aPrinterOptions; + SvtPrintFileOptions aPrintFileOptions; + + if( SFX_ITEM_SET == rSet.GetItemState( SID_PRINTER_CHANGESTODOC, FALSE, &pItem ) ) + { + USHORT nFlag = ( (const SfxFlagItem*)pItem )->GetValue(); + + aPaperSizeCB.Check( 0 != ( nFlag & SFX_PRINTER_CHG_SIZE ) ); + aPaperOrientationCB.Check( 0 != ( nFlag & SFX_PRINTER_CHG_ORIENTATION ) ); + } + else + { + aPaperSizeCB.Check( aWarnOptions.IsPaperSize() ); + aPaperOrientationCB.Check( aWarnOptions.IsPaperOrientation() ); + } + + aTransparencyCB.Check( aWarnOptions.IsTransparency() ); + + aPaperSizeCB.SaveValue(); + aPaperOrientationCB.SaveValue(); + aTransparencyCB.SaveValue(); + + ImplConfigToPrinterOptions( &aPrinterOptions, &maPrinterOptions ); + ImplConfigToPrinterOptions( &aPrintFileOptions, &maPrintFileOptions ); + + ImplUpdateControls( &maPrinterOptions ); + + aPrinterOutputRB.Check( TRUE ); +} + +// ----------------------------------------------------------------------------- + +int SfxCommonPrintOptionsTabPage::DeactivatePage( SfxItemSet* pSet ) +{ + if( pSet ) + FillItemSet( *pSet ); + + return LEAVE_PAGE; +} + +// ----------------------------------------------------------------------------- + +void SfxCommonPrintOptionsTabPage::ImplConfigToPrinterOptions( SvtBasePrintOptions* pConfig, PrinterOptions* pPrinterOptions ) +{ + pPrinterOptions->SetReduceTransparency( pConfig->IsReduceTransparency() ); + pPrinterOptions->SetReducedTransparencyMode( (PrinterTransparencyMode) pConfig->GetReducedTransparencyMode() ); + pPrinterOptions->SetReduceGradients( pConfig->IsReduceGradients() ); + pPrinterOptions->SetReducedGradientMode( (PrinterGradientMode) pConfig->GetReducedGradientMode() ); + pPrinterOptions->SetReducedGradientStepCount( pConfig->GetReducedGradientStepCount() ); + pPrinterOptions->SetReduceBitmaps( pConfig->IsReduceBitmaps() ); + pPrinterOptions->SetReducedBitmapMode( (PrinterBitmapMode) pConfig->GetReducedBitmapMode() ); + pPrinterOptions->SetReducedBitmapResolution( aDPIArray[ Min( (USHORT) pConfig->GetReducedBitmapResolution(), + (USHORT)( sizeof( aDPIArray ) / sizeof( aDPIArray[ 0 ] ) - 1 ) ) ] ); + pPrinterOptions->SetReducedBitmapIncludesTransparency( pConfig->IsReducedBitmapIncludesTransparency() ); + pPrinterOptions->SetConvertToGreyscales( pConfig->IsConvertToGreyscales() ); +} + +// ----------------------------------------------------------------------------- + +void SfxCommonPrintOptionsTabPage::ImplPrinterOptionsToConfig( PrinterOptions* pPrinterOptions, SvtBasePrintOptions* pConfig ) +{ + pConfig->SetReduceTransparency( pPrinterOptions->IsReduceTransparency() ); + pConfig->SetReducedTransparencyMode( pPrinterOptions->GetReducedTransparencyMode() ); + pConfig->SetReduceGradients( pPrinterOptions->IsReduceGradients() ); + pConfig->SetReducedGradientMode( pPrinterOptions->GetReducedGradientMode() ); + pConfig->SetReducedGradientStepCount( pPrinterOptions->GetReducedGradientStepCount() ); + pConfig->SetReduceBitmaps( pPrinterOptions->IsReduceBitmaps() ); + pConfig->SetReducedBitmapMode( pPrinterOptions->GetReducedBitmapMode() ); + pConfig->SetReducedBitmapIncludesTransparency( pPrinterOptions->IsReducedBitmapIncludesTransparency() ); + pConfig->SetConvertToGreyscales( pPrinterOptions->IsConvertToGreyscales() ); + + const USHORT nDPI = pPrinterOptions->GetReducedBitmapResolution(); + + for( long i = ( sizeof( aDPIArray ) / sizeof( aDPIArray[ 0 ] ) - 1 ); i >= 0; i-- ) + { + if( nDPI >= aDPIArray[ i ] ) + { + pConfig->SetReducedBitmapResolution( (USHORT) i ); + i = -1; + } + } +} + +// ----------------------------------------------------------------------------- + +void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCurrentOptions ) +{ + aReduceTransparencyCB.Check( pCurrentOptions->IsReduceTransparency() ); + + if( pCurrentOptions->GetReducedTransparencyMode() == PRINTER_TRANSPARENCY_AUTO ) + aReduceTransparencyAutoRB.Check( TRUE ); + else + aReduceTransparencyNoneRB.Check( TRUE ); + + aReduceGradientsCB.Check( pCurrentOptions->IsReduceGradients() ); + + if( pCurrentOptions->GetReducedGradientMode() == PRINTER_GRADIENT_STRIPES ) + aReduceGradientsStripesRB.Check( TRUE ); + else + aReduceGradientsColorRB.Check( TRUE ); + + aReduceGradientsStepCountNF.SetValue( pCurrentOptions->GetReducedGradientStepCount() ); + + aReduceBitmapsCB.Check( pCurrentOptions->IsReduceBitmaps() ); + + if( pCurrentOptions->GetReducedBitmapMode() == PRINTER_BITMAP_OPTIMAL ) + aReduceBitmapsOptimalRB.Check( TRUE ); + else if( pCurrentOptions->GetReducedBitmapMode() == PRINTER_BITMAP_NORMAL ) + aReduceBitmapsNormalRB.Check( TRUE ); + else + aReduceBitmapsResolutionRB.Check( TRUE ); + + const USHORT nDPI = pCurrentOptions->GetReducedBitmapResolution(); + + for( long i = ( sizeof( aDPIArray ) / sizeof( aDPIArray[ 0 ] ) - 1 ); i >= 0; i-- ) + { + if( nDPI >= aDPIArray[ i ] ) + { + aReduceBitmapsResolutionLB.SelectEntryPos( aDPIArray[ i ] ); + aReduceBitmapsResolutionLB.SetText( aReduceBitmapsResolutionLB.GetSelectEntry() ); + i = -1; + } + } + + aReduceBitmapsTransparencyCB.Check( pCurrentOptions->IsReducedBitmapIncludesTransparency() ); + aConvertToGreyscalesCB.Check( pCurrentOptions->IsConvertToGreyscales() ); + + ClickReduceTransparencyCBHdl( &aReduceTransparencyCB ); + ClickReduceGradientsCBHdl( &aReduceGradientsCB ); + ClickReduceBitmapsCBHdl( &aReduceBitmapsCB ); +} + +// ----------------------------------------------------------------------------- + +void SfxCommonPrintOptionsTabPage::ImplSaveControls( PrinterOptions* pCurrentOptions ) +{ + pCurrentOptions->SetReduceTransparency( aReduceTransparencyCB.IsChecked() ); + pCurrentOptions->SetReducedTransparencyMode( aReduceTransparencyAutoRB.IsChecked() ? PRINTER_TRANSPARENCY_AUTO : PRINTER_TRANSPARENCY_NONE ); + pCurrentOptions->SetReduceGradients( aReduceGradientsCB.IsChecked() ); + pCurrentOptions->SetReducedGradientMode( aReduceGradientsStripesRB.IsChecked() ? PRINTER_GRADIENT_STRIPES : PRINTER_GRADIENT_COLOR ); + pCurrentOptions->SetReducedGradientStepCount( (USHORT) aReduceGradientsStepCountNF.GetValue() ); + pCurrentOptions->SetReduceBitmaps( aReduceBitmapsCB.IsChecked() ); + pCurrentOptions->SetReducedBitmapMode( aReduceBitmapsOptimalRB.IsChecked() ? PRINTER_BITMAP_OPTIMAL : + ( aReduceBitmapsNormalRB.IsChecked() ? PRINTER_BITMAP_NORMAL : PRINTER_BITMAP_RESOLUTION ) ); + pCurrentOptions->SetReducedBitmapResolution( aDPIArray[ Min( (USHORT) aReduceBitmapsResolutionLB.GetSelectEntryPos(), + (USHORT)( sizeof( aDPIArray ) / sizeof( aDPIArray[ 0 ] ) - 1 ) ) ] ); + pCurrentOptions->SetReducedBitmapIncludesTransparency( aReduceBitmapsTransparencyCB.IsChecked() ); + pCurrentOptions->SetConvertToGreyscales( aConvertToGreyscalesCB.IsChecked() ); +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceTransparencyCBHdl, CheckBox*, pBox ) +{ + const BOOL bEnable = aReduceTransparencyCB.IsChecked(); + + aReduceTransparencyAutoRB.Enable( bEnable ); + aReduceTransparencyNoneRB.Enable( bEnable ); + + return 0; +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceGradientsCBHdl, CheckBox*, pBox ) +{ + const BOOL bEnable = aReduceGradientsCB.IsChecked(); + + aReduceGradientsStripesRB.Enable( bEnable ); + aReduceGradientsColorRB.Enable( bEnable ); + aReduceGradientsStepCountNF.Enable( bEnable ); + + ToggleReduceGradientsStripesRBHdl( &aReduceGradientsStripesRB ); + + return 0; +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceBitmapsCBHdl, CheckBox*, pBox ) +{ + const BOOL bEnable = aReduceBitmapsCB.IsChecked(); + + aReduceBitmapsOptimalRB.Enable( bEnable ); + aReduceBitmapsNormalRB.Enable( bEnable ); + aReduceBitmapsResolutionRB.Enable( bEnable ); + aReduceBitmapsTransparencyCB.Enable( bEnable ); + aReduceBitmapsResolutionLB.Enable( bEnable ); + + ToggleReduceBitmapsResolutionRBHdl( &aReduceBitmapsResolutionRB ); + + return 0; +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ToggleReduceGradientsStripesRBHdl, RadioButton*, pButton ) +{ + const BOOL bEnable = aReduceGradientsCB.IsChecked() && aReduceGradientsStripesRB.IsChecked(); + + aReduceGradientsStepCountNF.Enable( bEnable ); + + return 0; +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ToggleReduceBitmapsResolutionRBHdl, RadioButton*, pButton ) +{ + const BOOL bEnable = aReduceBitmapsCB.IsChecked() && aReduceBitmapsResolutionRB.IsChecked(); + + aReduceBitmapsResolutionLB.Enable( bEnable ); + + return 0; +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ToggleOutputPrinterRBHdl, RadioButton*, pButton ) +{ + if( pButton->IsChecked() ) + ImplUpdateControls( &maPrinterOptions ); + else + ImplSaveControls( &maPrinterOptions ); + + return 0; +} + +// ----------------------------------------------------------------------------- + +IMPL_LINK( SfxCommonPrintOptionsTabPage, ToggleOutputPrintFileRBHdl, RadioButton*, pButton ) +{ + if( pButton->IsChecked() ) + ImplUpdateControls( &maPrintFileOptions ); + else + ImplSaveControls( &maPrintFileOptions ); + + return 0; +} diff --git a/sfx2/source/dialog/printopt.hrc b/sfx2/source/dialog/printopt.hrc new file mode 100644 index 000000000000..877c390620a6 --- /dev/null +++ b/sfx2/source/dialog/printopt.hrc @@ -0,0 +1,89 @@ +/************************************************************************* + * + * $RCSfile: printopt.hrc,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: ka $ $Date: 2001-04-26 19:51:18 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 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 + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#define GB_REDUCE 1 + +#define FT_OUTPUTTYPE 2 +#define RB_PRINTEROUTPUT 3 +#define RB_PRINTFILEOUTPUT 4 + +#define CB_REDUCETRANSPARENCY 10 +#define RB_REDUCETRANSPARENCY_AUTO 11 +#define RB_REDUCETRANSPARENCY_NONE 12 + +#define CB_REDUCEGRADIENTS 20 +#define RB_REDUCEGRADIENTS_STRIPES 21 +#define RB_REDUCEGRADIENTS_COLOR 22 +#define NF_REDUCEGRADIENTS_STEPCOUNT 23 + +#define CB_REDUCEBITMAPS 30 +#define RB_REDUCEBITMAPS_OPTIMAL 31 +#define RB_REDUCEBITMAPS_NORMAL 32 +#define RB_REDUCEBITMAPS_RESOLUTION 33 +#define CB_REDUCEBITMAPS_TRANSPARENCY 34 +#define LB_REDUCEBITMAPS_RESOLUTION 35 + +#define CB_CONVERTTOGREYSCALES 40 + +#define GB_PRINT_WARN 50 +#define CB_PAPERSIZE 51 +#define CB_PAPERORIENTATION 52 +#define CB_TRANSPARENCY 53 diff --git a/sfx2/source/dialog/printopt.src b/sfx2/source/dialog/printopt.src new file mode 100644 index 000000000000..2a3af6467184 --- /dev/null +++ b/sfx2/source/dialog/printopt.src @@ -0,0 +1,349 @@ +/************************************************************************* + * + * $RCSfile: printopt.src,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: ka $ $Date: 2001-04-26 19:51:18 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 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 + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +// include --------------------------------------------------------------- + +#include "sfx.hrc" +#include "printopt.hrc" +#include "dialog.hrc" +#include "helpid.hrc" + +//**************************************************************************** +// +// TabPage +// +//**************************************************************************** + +TabPage TP_COMMONPRINTOPTIONS +{ + HelpID = HID_TP_COMMONPRINTOPTIONS; + SVLook = TRUE ; + Size = MAP_APPFONT ( 260 , 185 ) ; + Hide = TRUE ; + + FixedLine GB_REDUCE + { + Pos = MAP_APPFONT ( 6, 3 ) ; + Size = MAP_APPFONT ( 248 , 8 ) ; + Text = "Druckdaten reduzieren" ; + Text [ English ] = "Reduce printing data" ; + }; + FixedText FT_OUTPUTTYPE + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 12, 14 ) ; + Size = MAP_APPFONT ( 60, 10 ) ; + Text = "Einstellungen fr" ; + Text [ ENGLISH ] = "Settings for" ; + }; + RadioButton RB_PRINTEROUTPUT + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 81, 14 ) ; + Size = MAP_APPFONT ( 60, 10 ) ; + Text = "~Drucker" ; + Text [ ENGLISH ] = "~Printer" ; + }; + RadioButton RB_PRINTFILEOUTPUT + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 142, 14 ) ; + Size = MAP_APPFONT ( 100, 10 ) ; + Text = "Drucken ~in Datei" ; + Text [ ENGLISH ] = "Print to ~file" ; + }; + + // ----------- + + CheckBox CB_REDUCETRANSPARENCY + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 12, 30 ) ; + Size = MAP_APPFONT ( 121, 10 ) ; + Text = "Transparenz ~reduzieren" ; + Text [ ENGLISH ] = "~Reduce transparency" ; + }; + RadioButton RB_REDUCETRANSPARENCY_AUTO + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 18, 43 ) ; + Size = MAP_APPFONT ( 115, 10 ) ; + Text = "Auto~matisch" ; + Text [ ENGLISH ] = "Auto~matic" ; + }; + RadioButton RB_REDUCETRANSPARENCY_NONE + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 18, 56 ) ; + Size = MAP_APPFONT ( 115, 10 ) ; + Text = "~Keine Transparenz" ; + Text [ ENGLISH ] = "~No transparency" ; + }; + + // ----------- + + CheckBox CB_REDUCEGRADIENTS + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 136, 30 ) ; + Size = MAP_APPFONT ( 121, 10 ) ; + Text = "Farb~verlufe reduzieren" ; + Text [ ENGLISH ] = "Reduce ~gradients" ; + }; + RadioButton RB_REDUCEGRADIENTS_STRIPES + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 142, 43 ) ; + Size = MAP_APPFONT ( 79, 10 ) ; + Text = "Fabverlauf~sstreifen" ; + Text [ ENGLISH ] = "Gradient ~stripes" ; + }; + NumericField NF_REDUCEGRADIENTS_STEPCOUNT + { + TabStop = TRUE; + Border = TRUE ; + Pos = MAP_APPFONT ( 224, 43 ) ; + Size = MAP_APPFONT ( 24, 12 ) ; + Minimum = 2; + Maximum = 256; + Spin = TRUE ; + Repeat = TRUE ; + }; + RadioButton RB_REDUCEGRADIENTS_COLOR + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 142, 56 ) ; + Size = MAP_APPFONT ( 112, 10 ) ; + Text = "~Zwischenfarbe" ; + Text [ ENGLISH ] = "Medium ~color" ; + }; + + // ----------- + + CheckBox CB_REDUCEBITMAPS + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 12, 72 ) ; + Size = MAP_APPFONT ( 242, 10 ) ; + Text = "~Bitmaps reduzieren" ; + Text [ ENGLISH ] = "Reduce ~bitmaps" ; + }; + RadioButton RB_REDUCEBITMAPS_OPTIMAL + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 18, 85 ) ; + Size = MAP_APPFONT ( 236, 10 ) ; + Text = "~Gute Druckqualitt" ; + Text [ ENGLISH ] = "~Good quality" ; + }; + RadioButton RB_REDUCEBITMAPS_NORMAL + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 18, 98 ) ; + Size = MAP_APPFONT ( 236, 10 ) ; + Text = "N~ormale Druckqualitt" ; + Text [ ENGLISH ] = "N~ormal quality" ; + }; + RadioButton RB_REDUCEBITMAPS_RESOLUTION + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 18, 111 ) ; + Size = MAP_APPFONT ( 60, 10 ) ; + Text = "Aufl~sung" ; + Text [ ENGLISH ] = "Reso~lution" ; + }; + ListBox LB_REDUCEBITMAPS_RESOLUTION + { + TabStop = TRUE; + Border = TRUE ; + Pos = MAP_APPFONT ( 81, 111 ) ; + Size = MAP_APPFONT ( 40, 100 ) ; + DropDown = TRUE; + + StringList = + { + < "72 DPI"; 0; > ; + < "96 DPI"; 0; > ; + < "150 DPI (Fax)"; 0; > ; + < "200 DPI (Voreinstellung)"; 0; > ; + < "300 DPI"; 0; > ; + < "600 DPI"; 0; > ; + }; + StringList [English] = + { + < "72 DPI"; 0; > ; + < "96 DPI"; 0; > ; + < "150 DPI (Fax)"; 0; > ; + < "200 DPI (Default)"; 0; > ; + < "300 DPI"; 0; > ; + < "600 DPI"; 0; > ; + }; + }; + CheckBox CB_REDUCEBITMAPS_TRANSPARENCY + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 18, 124 ) ; + Size = MAP_APPFONT ( 236, 10 ) ; + Text = "Transparente Ob~jekte einschlieen" ; + Text [ ENGLISH ] = "Include transparent ob~jects" ; + }; + + // ----------- + + CheckBox CB_CONVERTTOGREYSCALES + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 136, 30 ) ; + Size = MAP_APPFONT ( 123, 10 ) ; + Text = "Transparente Ob~jekte einschlieen" ; + Text [ ENGLISH ] = "Include transparent ob~jects" ; + }; + + // ----------- + + FixedLine GB_PRINT_WARN + { + Pos = MAP_APPFONT ( 6, 140 ) ; + Size = MAP_APPFONT ( 248 , 8 ) ; + Text = "Drucker-Warnungen" ; + Text [ English ] = "Printer Warnings" ; + Text [ norwegian ] = "Warnings" ; + Text [ italian ] = "Avvertenze di stampa" ; + Text [ portuguese_brazilian ] = "Advertncias" ; + Text [ portuguese ] = "Advertncias" ; + Text [ finnish ] = "Varoitukset" ; + Text [ danish ] = "Advarsler" ; + Text [ french ] = "Avertissements" ; + Text [ swedish ] = "Skrivarvarningar" ; + Text [ dutch ] = "Printer-waarschuwingen" ; + Text [ spanish ] = "Advertencias de impresora" ; + Text [ english_us ] = "Printer warnings" ; + Text[ chinese_simplified ] = "ӡľ"; + Text[ russian ] = " "; + Text[ polish ] = "Ostrzeenia wydawane przez drukark"; + Text[ japanese ] = "̌x"; + Text[ chinese_traditional ] = "Lĵi"; + Text[ arabic ] = " "; + Text[ greek ] = " "; + Text[ korean ] = "-"; + Text[ turkish ] = "Uyarlar"; + }; + CheckBox CB_PAPERSIZE + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 12, 151 ) ; + Size = MAP_APPFONT ( 123, 10 ) ; + Text = "P~apiergre" ; + Text [ ENGLISH ] = "P~aper size" ; + Text [ english_us ] = "P~aper size" ; + Text [ italian ] = "~Dimensione carta" ; + Text [ spanish ] = "~Tamao del papel" ; + Text [ french ] = "~Taille du papier" ; + Text [ dutch ] = "Papiergr~ootte" ; + Text [ swedish ] = "~Pappersstorlek" ; + Text [ danish ] = "Papirstrrelse" ; + Text [ portuguese_brazilian ] = "Papiergr~e" ; + Text [ portuguese ] = "~Tamanho do papel" ; + Text[ chinese_simplified ] = "ֽŴС(~S)"; + Text[ russian ] = " "; + Text[ polish ] = "Rozmiar papieru"; + Text[ japanese ] = "p(~S)"; + Text[ chinese_traditional ] = "ȱijp(~S)"; + Text[ arabic ] = " "; + Text[ greek ] = " "; + Text[ korean ] = " ũ(~S)"; + Text[ turkish ] = "Sayfa boyutu"; + }; + CheckBox CB_PAPERORIENTATION + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 12, 164 ) ; + Size = MAP_APPFONT ( 123 , 10 ) ; + Text = "Papi~erorientierung" ; + Text [ ENGLISH ] = "Pap~er orientation" ; + Text [ dutch ] = "Papi~erorintering" ; + Text [ english_us ] = "Pap~er orientation" ; + Text [ italian ] = "~Orientamento carta" ; + Text [ spanish ] = "~Orientacin del papel" ; + Text [ french ] = "~Orientation du papier" ; + Text [ swedish ] = "Papp~ersorientering" ; + Text [ danish ] = "Papirretning" ; + Text [ portuguese_brazilian ] = "~Papierorientierung" ; + Text [ portuguese ] = "~Orientao do papel" ; + Text[ chinese_simplified ] = "ֽ(~O)"; + Text[ russian ] = " "; + Text[ polish ] = "Orientacja papieru"; + Text[ japanese ] = "(~O)"; + Text[ chinese_traditional ] = "ȱiV(~O)"; + Text[ arabic ] = " "; + Text[ greek ] = " "; + Text[ korean ] = " (~O)"; + Text[ turkish ] = "Sayfa duruu"; + }; + CheckBox CB_TRANSPARENCY + { + TabStop = TRUE; + Pos = MAP_APPFONT ( 136, 151 ) ; + Size = MAP_APPFONT ( 123, 10 ) ; + Text = "~Transparenz" ; + Text [ ENGLISH ] = "~Transparency" ; + }; +}; |