tpoption.cxx (79aad27f) tpoption.cxx (2da1a64c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 247 unchanged lines hidden (view full) ---

256 aCbxCrookNoContortion ( this, SdResId( CBX_CROOK_NO_CONTORTION ) ),
257
258 aTxtMetric ( this, SdResId( FT_METRIC ) ),
259 aLbMetric ( this, SdResId( LB_METRIC ) ),
260 aTxtTabstop ( this, SdResId( FT_TABSTOP ) ),
261 aMtrFldTabstop ( this, SdResId( MTR_FLD_TABSTOP ) ),
262
263 aCbxStartWithActualPage ( this, SdResId( CBX_START_WITH_ACTUAL_PAGE ) ),
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 247 unchanged lines hidden (view full) ---

256 aCbxCrookNoContortion ( this, SdResId( CBX_CROOK_NO_CONTORTION ) ),
257
258 aTxtMetric ( this, SdResId( FT_METRIC ) ),
259 aLbMetric ( this, SdResId( LB_METRIC ) ),
260 aTxtTabstop ( this, SdResId( FT_TABSTOP ) ),
261 aMtrFldTabstop ( this, SdResId( MTR_FLD_TABSTOP ) ),
262
263 aCbxStartWithActualPage ( this, SdResId( CBX_START_WITH_ACTUAL_PAGE ) ),
264 aCbxStartWithPresenterScreen( this, SdResId( CBX_START_WITH_PRESENTER_SCREEN ) ),
264 aGrpStartWithActualPage ( this, SdResId( GRP_START_WITH_ACTUAL_PAGE ) ),
265 aTxtCompatibility ( this, SdResId( FT_COMPATIBILITY ) ),
266 aCbxUsePrinterMetrics ( this, SdResId( CB_USE_PRINTER_METRICS ) ),
267 aCbxCompatibility ( this, SdResId( CB_MERGE_PARA_DIST ) ),
268 aGrpScale ( this, SdResId( GRP_SCALE ) ),
269 aFtScale ( this, SdResId( FT_SCALE ) ),
270 aCbScale ( this, SdResId( CB_SCALE ) ),
271 aFtOriginal ( this, SdResId( FT_ORIGINAL ) ),

--- 150 unchanged lines hidden (view full) ---

422 if( aCbxStartWithTemplate.GetSavedValue() != aCbxStartWithTemplate.IsChecked() ||
423 aCbxMarkedHitMovesAlways.GetSavedValue()!= aCbxMarkedHitMovesAlways.IsChecked() ||
424 aCbxCrookNoContortion.GetSavedValue() != aCbxCrookNoContortion.IsChecked() ||
425 aCbxQuickEdit.GetSavedValue() != aCbxQuickEdit.IsChecked() ||
426 aCbxPickThrough.GetSavedValue() != aCbxPickThrough.IsChecked() ||
427 aCbxMasterPageCache.GetSavedValue() != aCbxMasterPageCache.IsChecked() ||
428 aCbxCopy.GetSavedValue() != aCbxCopy.IsChecked() ||
429 aCbxStartWithActualPage.GetSavedValue() != aCbxStartWithActualPage.IsChecked() ||
265 aGrpStartWithActualPage ( this, SdResId( GRP_START_WITH_ACTUAL_PAGE ) ),
266 aTxtCompatibility ( this, SdResId( FT_COMPATIBILITY ) ),
267 aCbxUsePrinterMetrics ( this, SdResId( CB_USE_PRINTER_METRICS ) ),
268 aCbxCompatibility ( this, SdResId( CB_MERGE_PARA_DIST ) ),
269 aGrpScale ( this, SdResId( GRP_SCALE ) ),
270 aFtScale ( this, SdResId( FT_SCALE ) ),
271 aCbScale ( this, SdResId( CB_SCALE ) ),
272 aFtOriginal ( this, SdResId( FT_ORIGINAL ) ),

--- 150 unchanged lines hidden (view full) ---

423 if( aCbxStartWithTemplate.GetSavedValue() != aCbxStartWithTemplate.IsChecked() ||
424 aCbxMarkedHitMovesAlways.GetSavedValue()!= aCbxMarkedHitMovesAlways.IsChecked() ||
425 aCbxCrookNoContortion.GetSavedValue() != aCbxCrookNoContortion.IsChecked() ||
426 aCbxQuickEdit.GetSavedValue() != aCbxQuickEdit.IsChecked() ||
427 aCbxPickThrough.GetSavedValue() != aCbxPickThrough.IsChecked() ||
428 aCbxMasterPageCache.GetSavedValue() != aCbxMasterPageCache.IsChecked() ||
429 aCbxCopy.GetSavedValue() != aCbxCopy.IsChecked() ||
430 aCbxStartWithActualPage.GetSavedValue() != aCbxStartWithActualPage.IsChecked() ||
431 aCbxStartWithPresenterScreen.GetSavedValue() != aCbxStartWithPresenterScreen.IsChecked() ||
430 aCbxCompatibility.GetSavedValue() != aCbxCompatibility.IsChecked() ||
431 aCbxUsePrinterMetrics.GetSavedValue() != aCbxUsePrinterMetrics.IsChecked() )
432 {
433 SdOptionsMiscItem aOptsItem( ATTR_OPTIONS_MISC );
434
435 aOptsItem.GetOptionsMisc().SetStartWithTemplate( aCbxStartWithTemplate.IsChecked() );
436 aOptsItem.GetOptionsMisc().SetMarkedHitMovesAlways( aCbxMarkedHitMovesAlways.IsChecked() );
437 aOptsItem.GetOptionsMisc().SetCrookNoContortion( aCbxCrookNoContortion.IsChecked() );
438 aOptsItem.GetOptionsMisc().SetQuickEdit( aCbxQuickEdit.IsChecked() );
439 aOptsItem.GetOptionsMisc().SetPickThrough( aCbxPickThrough.IsChecked() );
440 aOptsItem.GetOptionsMisc().SetMasterPagePaintCaching( aCbxMasterPageCache.IsChecked() );
441 aOptsItem.GetOptionsMisc().SetDragWithCopy( aCbxCopy.IsChecked() );
442 aOptsItem.GetOptionsMisc().SetStartWithActualPage( aCbxStartWithActualPage.IsChecked() );
432 aCbxCompatibility.GetSavedValue() != aCbxCompatibility.IsChecked() ||
433 aCbxUsePrinterMetrics.GetSavedValue() != aCbxUsePrinterMetrics.IsChecked() )
434 {
435 SdOptionsMiscItem aOptsItem( ATTR_OPTIONS_MISC );
436
437 aOptsItem.GetOptionsMisc().SetStartWithTemplate( aCbxStartWithTemplate.IsChecked() );
438 aOptsItem.GetOptionsMisc().SetMarkedHitMovesAlways( aCbxMarkedHitMovesAlways.IsChecked() );
439 aOptsItem.GetOptionsMisc().SetCrookNoContortion( aCbxCrookNoContortion.IsChecked() );
440 aOptsItem.GetOptionsMisc().SetQuickEdit( aCbxQuickEdit.IsChecked() );
441 aOptsItem.GetOptionsMisc().SetPickThrough( aCbxPickThrough.IsChecked() );
442 aOptsItem.GetOptionsMisc().SetMasterPagePaintCaching( aCbxMasterPageCache.IsChecked() );
443 aOptsItem.GetOptionsMisc().SetDragWithCopy( aCbxCopy.IsChecked() );
444 aOptsItem.GetOptionsMisc().SetStartWithActualPage( aCbxStartWithActualPage.IsChecked() );
445 aOptsItem.GetOptionsMisc().SetStartWithPresenterScreen( aCbxStartWithPresenterScreen.IsChecked() );
443 aOptsItem.GetOptionsMisc().SetSummationOfParagraphs( aCbxCompatibility.IsChecked() );
444 aOptsItem.GetOptionsMisc().SetPrinterIndependentLayout (
445 aCbxUsePrinterMetrics.IsChecked()
446 ? ::com::sun::star::document::PrinterIndependentLayout::DISABLED
447 : ::com::sun::star::document::PrinterIndependentLayout::ENABLED);
448 rAttrs.Put( aOptsItem );
449
450 bModified = sal_True;

--- 41 unchanged lines hidden (view full) ---

492 aCbxStartWithTemplate.Check( aOptsItem.GetOptionsMisc().IsStartWithTemplate() );
493 aCbxMarkedHitMovesAlways.Check( aOptsItem.GetOptionsMisc().IsMarkedHitMovesAlways() );
494 aCbxCrookNoContortion.Check( aOptsItem.GetOptionsMisc().IsCrookNoContortion() );
495 aCbxQuickEdit.Check( aOptsItem.GetOptionsMisc().IsQuickEdit() );
496 aCbxPickThrough.Check( aOptsItem.GetOptionsMisc().IsPickThrough() );
497 aCbxMasterPageCache.Check( aOptsItem.GetOptionsMisc().IsMasterPagePaintCaching() );
498 aCbxCopy.Check( aOptsItem.GetOptionsMisc().IsDragWithCopy() );
499 aCbxStartWithActualPage.Check( aOptsItem.GetOptionsMisc().IsStartWithActualPage() );
446 aOptsItem.GetOptionsMisc().SetSummationOfParagraphs( aCbxCompatibility.IsChecked() );
447 aOptsItem.GetOptionsMisc().SetPrinterIndependentLayout (
448 aCbxUsePrinterMetrics.IsChecked()
449 ? ::com::sun::star::document::PrinterIndependentLayout::DISABLED
450 : ::com::sun::star::document::PrinterIndependentLayout::ENABLED);
451 rAttrs.Put( aOptsItem );
452
453 bModified = sal_True;

--- 41 unchanged lines hidden (view full) ---

495 aCbxStartWithTemplate.Check( aOptsItem.GetOptionsMisc().IsStartWithTemplate() );
496 aCbxMarkedHitMovesAlways.Check( aOptsItem.GetOptionsMisc().IsMarkedHitMovesAlways() );
497 aCbxCrookNoContortion.Check( aOptsItem.GetOptionsMisc().IsCrookNoContortion() );
498 aCbxQuickEdit.Check( aOptsItem.GetOptionsMisc().IsQuickEdit() );
499 aCbxPickThrough.Check( aOptsItem.GetOptionsMisc().IsPickThrough() );
500 aCbxMasterPageCache.Check( aOptsItem.GetOptionsMisc().IsMasterPagePaintCaching() );
501 aCbxCopy.Check( aOptsItem.GetOptionsMisc().IsDragWithCopy() );
502 aCbxStartWithActualPage.Check( aOptsItem.GetOptionsMisc().IsStartWithActualPage() );
503 aCbxStartWithPresenterScreen.Check( aOptsItem.GetOptionsMisc().IsStartWithPresenterScreen() );
500 aCbxCompatibility.Check( aOptsItem.GetOptionsMisc().IsSummationOfParagraphs() );
501 aCbxUsePrinterMetrics.Check( aOptsItem.GetOptionsMisc().GetPrinterIndependentLayout()==1 );
502 aCbxStartWithTemplate.SaveValue();
503 aCbxMarkedHitMovesAlways.SaveValue();
504 aCbxCrookNoContortion.SaveValue();
505 aCbxQuickEdit.SaveValue();
506 aCbxPickThrough.SaveValue();
507
508 aCbxMasterPageCache.SaveValue();
509 aCbxCopy.SaveValue();
510 aCbxStartWithActualPage.SaveValue();
504 aCbxCompatibility.Check( aOptsItem.GetOptionsMisc().IsSummationOfParagraphs() );
505 aCbxUsePrinterMetrics.Check( aOptsItem.GetOptionsMisc().GetPrinterIndependentLayout()==1 );
506 aCbxStartWithTemplate.SaveValue();
507 aCbxMarkedHitMovesAlways.SaveValue();
508 aCbxCrookNoContortion.SaveValue();
509 aCbxQuickEdit.SaveValue();
510 aCbxPickThrough.SaveValue();
511
512 aCbxMasterPageCache.SaveValue();
513 aCbxCopy.SaveValue();
514 aCbxStartWithActualPage.SaveValue();
515 aCbxStartWithPresenterScreen.SaveValue();
511 aCbxCompatibility.SaveValue();
512 aCbxUsePrinterMetrics.SaveValue();
513
514 // Metrik
515 sal_uInt16 nWhich = GetWhich( SID_ATTR_METRIC );
516 aLbMetric.SetNoSelection();
517
518 if ( rAttrs.GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )

--- 110 unchanged lines hidden (view full) ---

629 lcl_MoveWin (aCbxMarkedHitMovesAlways, -nLineHeight);
630 lcl_MoveWin (aCbxCrookNoContortion, -nLineHeight);
631 lcl_MoveWin (aTxtMetric, -nLineHeight);
632 lcl_MoveWin (aLbMetric, -nLineHeight);
633 lcl_MoveWin (aTxtTabstop, -nLineHeight);
634 lcl_MoveWin (aMtrFldTabstop, -nLineHeight);
635 lcl_MoveWin (aGrpStartWithActualPage, -nLineHeight);
636 lcl_MoveWin (aCbxStartWithActualPage, -nLineHeight);
516 aCbxCompatibility.SaveValue();
517 aCbxUsePrinterMetrics.SaveValue();
518
519 // Metrik
520 sal_uInt16 nWhich = GetWhich( SID_ATTR_METRIC );
521 aLbMetric.SetNoSelection();
522
523 if ( rAttrs.GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )

--- 110 unchanged lines hidden (view full) ---

634 lcl_MoveWin (aCbxMarkedHitMovesAlways, -nLineHeight);
635 lcl_MoveWin (aCbxCrookNoContortion, -nLineHeight);
636 lcl_MoveWin (aTxtMetric, -nLineHeight);
637 lcl_MoveWin (aLbMetric, -nLineHeight);
638 lcl_MoveWin (aTxtTabstop, -nLineHeight);
639 lcl_MoveWin (aMtrFldTabstop, -nLineHeight);
640 lcl_MoveWin (aGrpStartWithActualPage, -nLineHeight);
641 lcl_MoveWin (aCbxStartWithActualPage, -nLineHeight);
642
643 lcl_MoveWin (aCbxStartWithPresenterScreen,
644 nDialogWidth/2 - aCbxStartWithPresenterScreen.GetPosPixel().X(),
645 -nLineHeight);
646
637 lcl_MoveWin (aTxtCompatibility, -nLineHeight);
638
639 // Move the printer-independent-metrics check box up two lines to change
640 // places with spacing-between-paragraphs check box.
641 lcl_MoveWin (aCbxUsePrinterMetrics, -2*nLineHeight);
642}
643
644void SdTpOptionsMisc::SetDrawMode()
645{
646 aCbxStartWithTemplate.Hide();
647 aGrpProgramStart.Hide();
648 aCbxStartWithActualPage.Hide();
647 lcl_MoveWin (aTxtCompatibility, -nLineHeight);
648
649 // Move the printer-independent-metrics check box up two lines to change
650 // places with spacing-between-paragraphs check box.
651 lcl_MoveWin (aCbxUsePrinterMetrics, -2*nLineHeight);
652}
653
654void SdTpOptionsMisc::SetDrawMode()
655{
656 aCbxStartWithTemplate.Hide();
657 aGrpProgramStart.Hide();
658 aCbxStartWithActualPage.Hide();
659 aCbxStartWithPresenterScreen.Hide();
649 aCbxCompatibility.Hide();
650 aGrpStartWithActualPage.Hide();
651 aCbxCrookNoContortion.Show();
652
653 aGrpScale.Show();
654 aFtScale.Show();
655 aCbScale.Show();
656

--- 198 unchanged lines hidden ---
660 aCbxCompatibility.Hide();
661 aGrpStartWithActualPage.Hide();
662 aCbxCrookNoContortion.Show();
663
664 aGrpScale.Show();
665 aFtScale.Show();
666 aCbScale.Show();
667

--- 198 unchanged lines hidden ---