optsave.cxx (f59eafcf) | optsave.cxx (4d2226ef) |
---|---|
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 --- 641 unchanged lines hidden (view full) --- 650// aAutoSavePromptBtn.Disable(); 651 } 652 } 653 return 0; 654} 655/* -----------------------------05.04.01 13:10-------------------------------- 656 657 ---------------------------------------------------------------------------*/ | 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 --- 641 unchanged lines hidden (view full) --- 650// aAutoSavePromptBtn.Disable(); 651 } 652 } 653 return 0; 654} 655/* -----------------------------05.04.01 13:10-------------------------------- 656 657 ---------------------------------------------------------------------------*/ |
658OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties) | 658OUString lcl_ExtracUIName(const Sequence<PropertyValue> &rProperties) |
659{ | 659{ |
660 OUString sRet; 661 sal_Int32 nFlags; 662 const PropertyValue* pProperties = rProperties.getConstArray(); 663 for(int nProp = 0; nProp < rProperties.getLength(); nProp++) | 660 OUString sName; 661 const PropertyValue* pPropVal = rProperties.getConstArray(); 662 const PropertyValue* const pEnd = pPropVal + rProperties.getLength(); 663 for( ; pPropVal != pEnd; pPropVal++ ) |
664 { | 664 { |
665 if(!pProperties[nProp].Name.compareToAscii("UIName")) | 665 const OUString &rName = pPropVal->Name; 666 if( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "UIName" ) ) ) |
666 { | 667 { |
667 if ( pProperties[nProp].Value >>= sRet ) 668 break; | 668 OUString sUIName; 669 if ( ( pPropVal->Value >>= sUIName ) && sUIName.getLength() ) 670 return sUIName; |
669 } | 671 } |
670 else if(!pProperties[nProp].Name.compareToAscii("Flags")) | 672 else if( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Name" ) ) ) |
671 { | 673 { |
672 if ( pProperties[nProp].Value >>= nFlags ) 673 { 674 nFlags &= 0x100; 675 } | 674 pPropVal->Value >>= sName; |
676 } | 675 } |
677 else if(!pProperties[nProp].Name.compareToAscii("Name")) 678 { 679 if ( !sRet.getLength() ) 680 pProperties[nProp].Value >>= sRet; 681 } | |
682 } | 676 } |
683 return sRet; | 677 678 OSL_ENSURE( false, "Filter without UIName!" ); 679 680 return sName; |
684} 685/* -----------------------------05.04.01 13:37-------------------------------- 686 687 ---------------------------------------------------------------------------*/ 688IMPL_LINK( SfxSaveTabPage, FilterHdl_Impl, ListBox *, pBox ) 689{ 690 sal_uInt16 nCurPos = aDocTypeLB.GetSelectEntryPos(); 691 --- 85 unchanged lines hidden --- | 681} 682/* -----------------------------05.04.01 13:37-------------------------------- 683 684 ---------------------------------------------------------------------------*/ 685IMPL_LINK( SfxSaveTabPage, FilterHdl_Impl, ListBox *, pBox ) 686{ 687 sal_uInt16 nCurPos = aDocTypeLB.GetSelectEntryPos(); 688 --- 85 unchanged lines hidden --- |