linkmgr2.cxx (b0c1db7e) linkmgr2.cxx (789caf29)
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

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

154
155 if( pLink == *pTmp )
156 return sal_False;
157 }
158
159 SvBaseLinkRef* pTmp = new SvBaseLinkRef( pLink );
160 pLink->SetLinkManager( this );
161 aLinkTbl.Insert( pTmp, aLinkTbl.Count() );
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

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

154
155 if( pLink == *pTmp )
156 return sal_False;
157 }
158
159 SvBaseLinkRef* pTmp = new SvBaseLinkRef( pLink );
160 pLink->SetLinkManager( this );
161 aLinkTbl.Insert( pTmp, aLinkTbl.Count() );
162 Window *parent = GetPersist()->GetDialogParent();
163 if (mAutoAskUpdateAllLinks)
164 {
162 if (mAutoAskUpdateAllLinks)
163 {
164 Window *parent = NULL;
165 SfxObjectShell* persist = GetPersist();
166 if (persist != NULL)
167 parent = GetPersist()->GetDialogParent();
168
165 SetUserAllowsLinkUpdate(pLink, GetUserAllowsLinkUpdate(parent));
166 }
167
168 return sal_True;
169}
170
171
172sal_Bool LinkManager::InsertLink( SvBaseLink * pLink,

--- 494 unchanged lines hidden ---
169 SetUserAllowsLinkUpdate(pLink, GetUserAllowsLinkUpdate(parent));
170 }
171
172 return sal_True;
173}
174
175
176sal_Bool LinkManager::InsertLink( SvBaseLink * pLink,

--- 494 unchanged lines hidden ---