linkmgr2.cxx (45fd3b9a) linkmgr2.cxx (963c6022)
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

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

313 if( !pLink->IsVisible() ||
314 ( !bUpdateGrfLinks && OBJECT_CLIENT_GRF == pLink->GetObjType() ))
315 continue;
316
317 if( bAskUpdate )
318 {
319 int nRet = QueryBox( pParentWin, WB_YES_NO | WB_DEF_YES, SfxResId( STR_QUERY_UPDATE_LINKS ) ).Execute();
320 if( RET_YES != nRet )
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

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

313 if( !pLink->IsVisible() ||
314 ( !bUpdateGrfLinks && OBJECT_CLIENT_GRF == pLink->GetObjType() ))
315 continue;
316
317 if( bAskUpdate )
318 {
319 int nRet = QueryBox( pParentWin, WB_YES_NO | WB_DEF_YES, SfxResId( STR_QUERY_UPDATE_LINKS ) ).Execute();
320 if( RET_YES != nRet )
321 {
322 SfxObjectShell* pShell = pLink->GetLinkManager()->GetPersist();
323
324 if(pShell)
325 {
326 comphelper::EmbeddedObjectContainer& rEmbeddedObjectContainer = pShell->getEmbeddedObjectContainer();
327 rEmbeddedObjectContainer.setUserAllowsLinkUpdate(false);
328 }
329
321 return ; // es soll nichts geupdatet werden
330 return ; // es soll nichts geupdatet werden
331 }
322 bAskUpdate = sal_False; // einmal reicht
323 }
324
325 pLink->Update();
326 }
327}
328
329/************************************************************************

--- 302 unchanged lines hidden ---
332 bAskUpdate = sal_False; // einmal reicht
333 }
334
335 pLink->Update();
336 }
337}
338
339/************************************************************************

--- 302 unchanged lines hidden ---