embeddedobjectcontainer.cxx (cf914f84) embeddedobjectcontainer.cxx (611fcdab)
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

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

122 return mxImageStorage;
123}
124
125EmbeddedObjectContainer::EmbeddedObjectContainer()
126{
127 pImpl = new EmbedImpl;
128 pImpl->mxStorage = ::comphelper::OStorageHelper::GetTemporaryStorage();
129 pImpl->mbOwnsStorage = true;
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

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

122 return mxImageStorage;
123}
124
125EmbeddedObjectContainer::EmbeddedObjectContainer()
126{
127 pImpl = new EmbedImpl;
128 pImpl->mxStorage = ::comphelper::OStorageHelper::GetTemporaryStorage();
129 pImpl->mbOwnsStorage = true;
130 pImpl->mbUserAllowsLinkUpdate = false;
130 pImpl->mbUserAllowsLinkUpdate = true;
131 pImpl->mpTempObjectContainer = 0;
132}
133
134EmbeddedObjectContainer::EmbeddedObjectContainer( const uno::Reference < embed::XStorage >& rStor )
135{
136 pImpl = new EmbedImpl;
137 pImpl->mxStorage = rStor;
138 pImpl->mbOwnsStorage = false;
131 pImpl->mpTempObjectContainer = 0;
132}
133
134EmbeddedObjectContainer::EmbeddedObjectContainer( const uno::Reference < embed::XStorage >& rStor )
135{
136 pImpl = new EmbedImpl;
137 pImpl->mxStorage = rStor;
138 pImpl->mbOwnsStorage = false;
139 pImpl->mbUserAllowsLinkUpdate = false;
139 pImpl->mbUserAllowsLinkUpdate = true;
140 pImpl->mpTempObjectContainer = 0;
141}
142
143EmbeddedObjectContainer::EmbeddedObjectContainer( const uno::Reference < embed::XStorage >& rStor, const uno::Reference < uno::XInterface >& xModel )
144{
145 pImpl = new EmbedImpl;
146 pImpl->mxStorage = rStor;
147 pImpl->mbOwnsStorage = false;
140 pImpl->mpTempObjectContainer = 0;
141}
142
143EmbeddedObjectContainer::EmbeddedObjectContainer( const uno::Reference < embed::XStorage >& rStor, const uno::Reference < uno::XInterface >& xModel )
144{
145 pImpl = new EmbedImpl;
146 pImpl->mxStorage = rStor;
147 pImpl->mbOwnsStorage = false;
148 pImpl->mbUserAllowsLinkUpdate = false;
148 pImpl->mbUserAllowsLinkUpdate = true;
149 pImpl->mpTempObjectContainer = 0;
150 pImpl->m_xModel = xModel;
151}
152
153void EmbeddedObjectContainer::SwitchPersistence( const uno::Reference < embed::XStorage >& rStor )
154{
155 ReleaseImageSubStorage();
156

--- 1552 unchanged lines hidden ---
149 pImpl->mpTempObjectContainer = 0;
150 pImpl->m_xModel = xModel;
151}
152
153void EmbeddedObjectContainer::SwitchPersistence( const uno::Reference < embed::XStorage >& rStor )
154{
155 ReleaseImageSubStorage();
156

--- 1552 unchanged lines hidden ---