Commits

Anonymous committed ca2a86f

new_itemsets: alway put item at the which-id of the item (vbahelper)

Comments (0)

Files changed (1)

vbahelper/source/vbahelper/vbahelper.cxx

 		SfxAllItemSet aArgs( SFX_APP()->GetPool() );
 				
 		SfxBoolItem sfxCollate( SID_PRINT_COLLATE, bCollate );
-		aArgs.Put( sfxCollate, sfxCollate.Which() );
+		aArgs.Put( sfxCollate );
 		SfxInt16Item sfxCopies( SID_PRINT_COPIES, nCopies );
-		aArgs.Put( sfxCopies, sfxCopies.Which() );
+		aArgs.Put( sfxCopies );
 		if ( sFileName.getLength() )
 		{
 			SfxStringItem sfxFileName( SID_FILE_NAME, sFileName);
-			aArgs.Put( sfxFileName, sfxFileName.Which() );
+			aArgs.Put( sfxFileName );
 		
 		}
 		if (  sRange.getLength() )
 		{
 			SfxStringItem sfxRange( SID_PRINT_PAGES, sRange );
-			aArgs.Put( sfxRange, sfxRange.Which() );
+			aArgs.Put( sfxRange );
 		}
 		SfxBoolItem sfxSelection( SID_SELECTION, bSelection );
-		aArgs.Put( sfxSelection, sfxSelection.Which() );
+		aArgs.Put( sfxSelection );
 		SfxBoolItem sfxAsync( SID_ASYNCHRON, sal_False );
-		aArgs.Put( sfxAsync, sfxAsync.Which() );
+		aArgs.Put( sfxAsync );
 		SfxDispatcher* pDispatcher = pViewFrame->GetDispatcher();
 
 		if ( pDispatcher )