Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f88576cb
Kaydet (Commit)
f88576cb
authored
Ara 14, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move var decl to where it gets actually used
Change-Id: I8f9e74f7fbbff055c67cafba5d534db4635e5399
üst
1c035f1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
accframebase.cxx
sw/source/core/access/accframebase.cxx
+20
-18
No files found.
sw/source/core/access/accframebase.cxx
Dosyayı görüntüle @
f88576cb
...
...
@@ -215,33 +215,35 @@ SwAccessibleFrameBase::~SwAccessibleFrameBase()
void
SwAccessibleFrameBase
::
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
{
sal_uInt16
nWhich
=
pOld
?
pOld
->
Which
()
:
pNew
?
pNew
->
Which
()
:
0
;
const
SwFlyFrame
*
pFlyFrame
=
static_cast
<
const
SwFlyFrame
*
>
(
GetFrame
()
);
switch
(
nWhich
)
{
case
RES_NAME_CHANGED
:
if
(
pFlyFrame
)
{
const
SwFrameFormat
*
pFrameFormat
=
pFlyFrame
->
GetFormat
();
assert
(
pFrameFormat
==
GetRegisteredIn
()
&&
"invalid frame"
);
const
SwFlyFrame
*
pFlyFrame
=
static_cast
<
const
SwFlyFrame
*
>
(
GetFrame
()
);
if
(
pFlyFrame
)
{
const
SwFrameFormat
*
pFrameFormat
=
pFlyFrame
->
GetFormat
();
assert
(
pFrameFormat
==
GetRegisteredIn
()
&&
"invalid frame"
);
const
OUString
sOldName
(
GetName
()
);
assert
(
!
pOld
||
static_cast
<
const
SwStringMsgPoolItem
*>
(
pOld
)
->
GetString
()
==
GetName
());
const
OUString
sOldName
(
GetName
()
);
assert
(
!
pOld
||
static_cast
<
const
SwStringMsgPoolItem
*>
(
pOld
)
->
GetString
()
==
GetName
());
SetName
(
pFrameFormat
->
GetName
()
);
assert
(
!
pNew
||
static_cast
<
const
SwStringMsgPoolItem
*>
(
pNew
)
->
GetString
()
==
GetName
());
SetName
(
pFrameFormat
->
GetName
()
);
assert
(
!
pNew
||
static_cast
<
const
SwStringMsgPoolItem
*>
(
pNew
)
->
GetString
()
==
GetName
());
if
(
sOldName
!=
GetName
()
)
{
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
NAME_CHANGED
;
aEvent
.
OldValue
<<=
sOldName
;
aEvent
.
NewValue
<<=
GetName
();
FireAccessibleEvent
(
aEvent
);
if
(
sOldName
!=
GetName
()
)
{
AccessibleEventObject
aEvent
;
aEvent
.
EventId
=
AccessibleEventId
::
NAME_CHANGED
;
aEvent
.
OldValue
<<=
sOldName
;
aEvent
.
NewValue
<<=
GetName
();
FireAccessibleEvent
(
aEvent
);
}
}
break
;
}
break
;
case
RES_OBJECTDYING
:
// mba: it seems that this class intentionally does not call code in base class SwClient
if
(
pOld
&&
(
GetRegisteredIn
()
==
static_cast
<
SwModify
*>
(
static_cast
<
const
SwPtrMsgPoolItem
*
>
(
pOld
)
->
pObject
)
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment