appcfg.cxx (d119d52d) | appcfg.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 --- 191 unchanged lines hidden (view full) --- 200 case SID_ATTR_BACKUP : 201 { 202 bRet = sal_True; 203 if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_BACKUP)) 204 if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_BACKUP ),aSaveOptions.IsBackup()))) 205 bRet = sal_False; 206 } 207 break; | 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 --- 191 unchanged lines hidden (view full) --- 200 case SID_ATTR_BACKUP : 201 { 202 bRet = sal_True; 203 if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_BACKUP)) 204 if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_BACKUP ),aSaveOptions.IsBackup()))) 205 bRet = sal_False; 206 } 207 break; |
208 case SID_ATTR_ODFENCRYPTION: 209 { 210 bRet = sal_True; 211 if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_USESHA1INODF12) && 212 !aSaveOptions.IsReadOnly(SvtSaveOptions::E_USEBLOWFISHINODF12)) 213 if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_ODFENCRYPTION ), 214 !(aSaveOptions.IsUseSHA1InODF12() && aSaveOptions.IsUseBlowfishInODF12())))) 215 bRet = sal_False; 216 } 217 break; |
|
208 case SID_ATTR_PRETTYPRINTING: 209 { 210 bRet = sal_True; 211 if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_DOPRETTYPRINTING)) 212 if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), aSaveOptions.IsPrettyPrinting()))) 213 bRet = sal_False; 214 } 215 break; --- 342 unchanged lines hidden (view full) --- 558 559 // Backup 560 if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_BACKUP), sal_True, &pItem) ) 561 { 562 DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected"); 563 aSaveOptions.SetBackup( ( (const SfxBoolItem*)pItem )->GetValue() ); 564 } 565 | 218 case SID_ATTR_PRETTYPRINTING: 219 { 220 bRet = sal_True; 221 if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_DOPRETTYPRINTING)) 222 if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), aSaveOptions.IsPrettyPrinting()))) 223 bRet = sal_False; 224 } 225 break; --- 342 unchanged lines hidden (view full) --- 568 569 // Backup 570 if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_BACKUP), sal_True, &pItem) ) 571 { 572 DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected"); 573 aSaveOptions.SetBackup( ( (const SfxBoolItem*)pItem )->GetValue() ); 574 } 575 |
576 // ODF Encryption 577 if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_ATTR_ODFENCRYPTION ), sal_True, &pItem ) ) 578 { 579 DBG_ASSERT( pItem->ISA( SfxBoolItem ), "BoolItem expected" ); 580 sal_Bool bItemValue = static_cast< const SfxBoolItem*>(pItem)->GetValue(); 581 582 aSaveOptions.SetUseSHA1InODF12( !bItemValue ); 583 aSaveOptions.SetUseBlowfishInODF12( !bItemValue ); 584 } 585 |
|
566 // PrettyPrinting 567 if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), sal_True, &pItem ) ) 568 { 569 DBG_ASSERT( pItem->ISA( SfxBoolItem ), "BoolItem expected" ); 570 aSaveOptions.SetPrettyPrinting( static_cast< const SfxBoolItem*> ( pItem )->GetValue() ); 571 } 572 573 // WarnAlienFormat --- 445 unchanged lines hidden --- | 586 // PrettyPrinting 587 if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), sal_True, &pItem ) ) 588 { 589 DBG_ASSERT( pItem->ISA( SfxBoolItem ), "BoolItem expected" ); 590 aSaveOptions.SetPrettyPrinting( static_cast< const SfxBoolItem*> ( pItem )->GetValue() ); 591 } 592 593 // WarnAlienFormat --- 445 unchanged lines hidden --- |