optsave.cxx (4d2226ef) optsave.cxx (972a6c96)
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

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

173 aAutoSaveEdit ( this, CUI_RES( ED_AUTOSAVE ) ),
174 aMinuteFT ( this, CUI_RES( FT_MINUTE ) ),
175 aRelativeFsysCB ( this, CUI_RES( BTN_RELATIVE_FSYS ) ),
176 aRelativeInetCB ( this, CUI_RES( BTN_RELATIVE_INET ) ),
177
178 aDefaultFormatFL ( this, CUI_RES( FL_FILTER ) ),
179 aODFVersionFT ( this, CUI_RES( FT_ODF_VERSION ) ),
180 aODFVersionLB ( this, CUI_RES( LB_ODF_VERSION ) ),
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

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

173 aAutoSaveEdit ( this, CUI_RES( ED_AUTOSAVE ) ),
174 aMinuteFT ( this, CUI_RES( FT_MINUTE ) ),
175 aRelativeFsysCB ( this, CUI_RES( BTN_RELATIVE_FSYS ) ),
176 aRelativeInetCB ( this, CUI_RES( BTN_RELATIVE_INET ) ),
177
178 aDefaultFormatFL ( this, CUI_RES( FL_FILTER ) ),
179 aODFVersionFT ( this, CUI_RES( FT_ODF_VERSION ) ),
180 aODFVersionLB ( this, CUI_RES( LB_ODF_VERSION ) ),
181 aODFEncryptionCB ( this, CUI_RES( BTN_ODFENCRYPTION ) ),
181 aSizeOptimizationCB ( this, CUI_RES( BTN_NOPRETTYPRINTING ) ),
182 aWarnAlienFormatCB ( this, CUI_RES( BTN_WARNALIENFORMAT ) ),
183 aDocTypeFT ( this, CUI_RES( FT_APP ) ),
184 aDocTypeLB ( this, CUI_RES( LB_APP ) ),
185 aSaveAsFT ( this, CUI_RES( FT_FILTER ) ),
186 aSaveAsFI ( this, CUI_RES( FI_FILTER ) ),
187 aSaveAsLB ( this, CUI_RES( LB_FILTER ) ),
188 aODFWarningFI ( this, CUI_RES( FI_ODF_WARNING ) ),

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

379
380 if ( aBackupCB.IsEnabled() && aBackupCB.IsChecked() != aBackupCB.GetSavedValue() )
381 {
382 rSet.Put( SfxBoolItem( GetWhich( SID_ATTR_BACKUP ),
383 aBackupCB.IsChecked() ) );
384 bModified |= sal_True;
385 }
386
182 aSizeOptimizationCB ( this, CUI_RES( BTN_NOPRETTYPRINTING ) ),
183 aWarnAlienFormatCB ( this, CUI_RES( BTN_WARNALIENFORMAT ) ),
184 aDocTypeFT ( this, CUI_RES( FT_APP ) ),
185 aDocTypeLB ( this, CUI_RES( LB_APP ) ),
186 aSaveAsFT ( this, CUI_RES( FT_FILTER ) ),
187 aSaveAsFI ( this, CUI_RES( FI_FILTER ) ),
188 aSaveAsLB ( this, CUI_RES( LB_FILTER ) ),
189 aODFWarningFI ( this, CUI_RES( FI_ODF_WARNING ) ),

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

380
381 if ( aBackupCB.IsEnabled() && aBackupCB.IsChecked() != aBackupCB.GetSavedValue() )
382 {
383 rSet.Put( SfxBoolItem( GetWhich( SID_ATTR_BACKUP ),
384 aBackupCB.IsChecked() ) );
385 bModified |= sal_True;
386 }
387
388 if ( aODFEncryptionCB.IsChecked() != aODFEncryptionCB.GetSavedValue() )
389 {
390 rSet.Put( SfxBoolItem( GetWhich( SID_ATTR_ODFENCRYPTION ), aODFEncryptionCB.IsChecked() ) );
391 bModified |= sal_True;
392 }
393
387 if ( aSizeOptimizationCB.IsChecked() != aSizeOptimizationCB.GetSavedValue() )
388 {
389 rSet.Put( SfxBoolItem( GetWhich( SID_ATTR_PRETTYPRINTING ), !aSizeOptimizationCB.IsChecked() ) );
390 bModified |= sal_True;
391 }
392
393 if ( aAutoSaveCB.IsChecked() != aAutoSaveCB.GetSavedValue() )
394 {

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

591 aBackupCB.Enable(!bBackupRO);
592 aBackupFI.Show(bBackupRO);
593
594 aAutoSaveCB.Check(aSaveOpt.IsAutoSave());
595 aWarnAlienFormatCB.Check(aSaveOpt.IsWarnAlienFormat());
596 aWarnAlienFormatCB.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_WARNALIENFORMAT));
597// aAutoSaveCB.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_AUTOSAVE));
598
394 if ( aSizeOptimizationCB.IsChecked() != aSizeOptimizationCB.GetSavedValue() )
395 {
396 rSet.Put( SfxBoolItem( GetWhich( SID_ATTR_PRETTYPRINTING ), !aSizeOptimizationCB.IsChecked() ) );
397 bModified |= sal_True;
398 }
399
400 if ( aAutoSaveCB.IsChecked() != aAutoSaveCB.GetSavedValue() )
401 {

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

598 aBackupCB.Enable(!bBackupRO);
599 aBackupFI.Show(bBackupRO);
600
601 aAutoSaveCB.Check(aSaveOpt.IsAutoSave());
602 aWarnAlienFormatCB.Check(aSaveOpt.IsWarnAlienFormat());
603 aWarnAlienFormatCB.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_WARNALIENFORMAT));
604// aAutoSaveCB.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_AUTOSAVE));
605
606 // ODF encryption
607 aODFEncryptionCB.Check( !aSaveOpt.IsUseSHA1InODF12());
608
599 // the pretty printing
600 aSizeOptimizationCB.Check( !aSaveOpt.IsPrettyPrinting());
601// aSizeOptimizationCB.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_DOPRETTYPRINTING ));
602
603
604 aAutoSaveEdit.SetValue( aSaveOpt.GetAutoSaveTime() );
605// aAutoSaveEdit.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_AUTOSAVETIME));
606

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

615 aODFVersionLB.SelectEntryPos( aODFVersionLB.GetEntryPos( pDefaultVersion ) );
616
617 AutoClickHdl_Impl( &aAutoSaveCB );
618 ODFVersionHdl_Impl( &aODFVersionLB );
619
620 aDocInfoCB.SaveValue();
621 aBackupCB.SaveValue();
622 aWarnAlienFormatCB.SaveValue();
609 // the pretty printing
610 aSizeOptimizationCB.Check( !aSaveOpt.IsPrettyPrinting());
611// aSizeOptimizationCB.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_DOPRETTYPRINTING ));
612
613
614 aAutoSaveEdit.SetValue( aSaveOpt.GetAutoSaveTime() );
615// aAutoSaveEdit.Enable(!aSaveOpt.IsReadOnly(SvtSaveOptions::E_AUTOSAVETIME));
616

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

625 aODFVersionLB.SelectEntryPos( aODFVersionLB.GetEntryPos( pDefaultVersion ) );
626
627 AutoClickHdl_Impl( &aAutoSaveCB );
628 ODFVersionHdl_Impl( &aODFVersionLB );
629
630 aDocInfoCB.SaveValue();
631 aBackupCB.SaveValue();
632 aWarnAlienFormatCB.SaveValue();
633 aODFEncryptionCB.SaveValue();
623 aSizeOptimizationCB.SaveValue();
624 aAutoSaveCB.SaveValue();
625 aAutoSaveEdit.SaveValue();
626// aAutoSavePromptBtn.SaveValue();
627
628 aRelativeFsysCB.SaveValue();
629 aRelativeInetCB.SaveValue();
630 aODFVersionLB.SaveValue();

--- 143 unchanged lines hidden ---
634 aSizeOptimizationCB.SaveValue();
635 aAutoSaveCB.SaveValue();
636 aAutoSaveEdit.SaveValue();
637// aAutoSavePromptBtn.SaveValue();
638
639 aRelativeFsysCB.SaveValue();
640 aRelativeInetCB.SaveValue();
641 aODFVersionLB.SaveValue();

--- 143 unchanged lines hidden ---