view2.cxx (870262e3) | view2.cxx (fefd526c) |
---|---|
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 --- 323 unchanged lines hidden (view full) --- 332 ListboxControlActions::ADD_ITEMS , aTemplates ); 333 334 Any aSelectPos(&nSelect, ::getCppuType(&nSelect)); 335 xCtrlAcc->setValue( ExtendedFilePickerElementIds::LISTBOX_IMAGE_TEMPLATE, 336 ListboxControlActions::SET_SELECT_ITEM, aSelectPos ); 337 } 338 catch(Exception& ) 339 { | 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 --- 323 unchanged lines hidden (view full) --- 332 ListboxControlActions::ADD_ITEMS , aTemplates ); 333 334 Any aSelectPos(&nSelect, ::getCppuType(&nSelect)); 335 xCtrlAcc->setValue( ExtendedFilePickerElementIds::LISTBOX_IMAGE_TEMPLATE, 336 ListboxControlActions::SET_SELECT_ITEM, aSelectPos ); 337 } 338 catch(Exception& ) 339 { |
340 DBG_ERROR("control acces failed"); | 340 DBG_ERROR("control access failed"); |
341 } 342 343 SFX_REQUEST_ARG( rReq, pName, SfxStringItem, SID_INSERT_GRAPHIC , sal_False ); 344 sal_Bool bShowError = !pName; 345 if( pName || ERRCODE_NONE == pFileDlg->Execute() ) 346 { 347 348 String aFileName, aFilterName; --- 25 unchanged lines hidden (view full) --- 374 ExtendedFilePickerElementIds::LISTBOX_IMAGE_TEMPLATE, 375 ListboxControlActions::GET_SELECTED_ITEM ); 376 OUString sTmpl; 377 aTemplateValue >>= sTmpl; 378 rReq.AppendItem( SfxStringItem( FN_PARAM_2, sTmpl) ); 379 } 380 catch(Exception& ) 381 { | 341 } 342 343 SFX_REQUEST_ARG( rReq, pName, SfxStringItem, SID_INSERT_GRAPHIC , sal_False ); 344 sal_Bool bShowError = !pName; 345 if( pName || ERRCODE_NONE == pFileDlg->Execute() ) 346 { 347 348 String aFileName, aFilterName; --- 25 unchanged lines hidden (view full) --- 374 ExtendedFilePickerElementIds::LISTBOX_IMAGE_TEMPLATE, 375 ListboxControlActions::GET_SELECTED_ITEM ); 376 OUString sTmpl; 377 aTemplateValue >>= sTmpl; 378 rReq.AppendItem( SfxStringItem( FN_PARAM_2, sTmpl) ); 379 } 380 catch(Exception& ) 381 { |
382 DBG_ERROR("control acces failed"); | 382 DBG_ERROR("control access failed"); |
383 } 384 } 385 rReq.AppendItem( SfxBoolItem( FN_PARAM_1, bAsLink ) ); 386 } 387 388 SFX_REQUEST_ARG( rReq, pAsLink, SfxBoolItem, FN_PARAM_1 , sal_False ); 389 SFX_REQUEST_ARG( rReq, pStyle, SfxStringItem, FN_PARAM_2 , sal_False ); 390 --- 2115 unchanged lines hidden --- | 383 } 384 } 385 rReq.AppendItem( SfxBoolItem( FN_PARAM_1, bAsLink ) ); 386 } 387 388 SFX_REQUEST_ARG( rReq, pAsLink, SfxBoolItem, FN_PARAM_1 , sal_False ); 389 SFX_REQUEST_ARG( rReq, pStyle, SfxStringItem, FN_PARAM_2 , sal_False ); 390 --- 2115 unchanged lines hidden --- |