]>
Commit | Line | Data |
---|---|---|
f6bd72df | 1 | Index: svx/source/svdraw/svdoole2.cxx |
2 | =================================================================== | |
3 | --- svx/source/svdraw/svdoole2.cxx.orig 2003-06-06 12:44:20.000000000 +0200 | |
4 | +++ svx/source/svdraw/svdoole2.cxx 2003-11-09 15:07:54.000000000 +0100 | |
5 | @@ -2,9 +2,9 @@ | |
6 | * | |
7 | * $RCSfile$ | |
8 | * | |
9 | - * $Revision$ | |
10 | + * $Revision$ | |
11 | * | |
12 | - * last change: $Author$ $Date$ | |
13 | + * last change: $Author$ $Date$ | |
14 | * | |
15 | * The Contents of this file are made available subject to the terms of | |
16 | * either of the following licenses | |
17 | @@ -377,6 +377,8 @@ void SdrOle2Obj::Connect() | |
18 | { | |
19 | pInfo->SetDeleted(FALSE); | |
20 | } | |
21 | + | |
22 | + mpImpl->mbConnected = true; | |
23 | } | |
24 | ||
25 | // In Cache einfuegen | |
26 | @@ -412,7 +414,6 @@ void SdrOle2Obj::Connect() | |
27 | xBC->addModifyListener( xListener ); | |
28 | } | |
29 | ||
30 | - mpImpl->mbConnected = true; | |
31 | } | |
32 | } | |
33 | ||
34 | @@ -570,7 +571,13 @@ XubString SdrOle2Obj::GetName() const | |
35 | ||
36 | void SdrOle2Obj::SetPersistName( const String& rPersistName ) | |
37 | { | |
38 | + if( mpImpl->mbConnected ) | |
39 | + Disconnect(); | |
40 | + | |
41 | mpImpl->aPersistName = rPersistName; | |
42 | + | |
43 | + Connect(); | |
44 | + | |
45 | SetChanged(); | |
46 | } | |
47 | ||
48 | @@ -1283,7 +1290,11 @@ const SvInPlaceObjectRef& SdrOle2Obj::Ge | |
49 | uno::Reference< util::XModifyListener > xListener( pModifyListener ); | |
50 | xBC->addModifyListener( xListener ); | |
51 | } | |
52 | + | |
53 | } | |
54 | + | |
55 | + // we are always connected if we loaded it | |
56 | + mpImpl->mbConnected = true; | |
57 | } | |
58 | } | |
59 |