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
6a23af75
Kaydet (Commit)
6a23af75
authored
Şub 24, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Ensure listener is removed during ~SdModule
Change-Id: I17fb441eac2593a0b43809f177250d46d6862a58
üst
c98f569d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
sdmod.hxx
sd/inc/sdmod.hxx
+2
-0
sdmod.cxx
sd/source/ui/app/sdmod.cxx
+4
-9
sdmod1.cxx
sd/source/ui/app/sdmod1.cxx
+2
-4
No files found.
sd/inc/sdmod.hxx
Dosyayı görüntüle @
6a23af75
...
...
@@ -159,6 +159,8 @@ private:
*/
::
std
::
unique_ptr
<
::
sd
::
SdGlobalResourceContainer
>
mpResourceContainer
;
bool
mbEventListenerAdded
;
/** Create a new summary page. When the document has been created in
the kiosk mode with automatical transitions then this method adds
this kind of transition to the new summary page.
...
...
sd/source/ui/app/sdmod.cxx
Dosyayı görüntüle @
6a23af75
...
...
@@ -78,7 +78,8 @@ SdModule::SdModule(SfxObjectFactory* pFact1, SfxObjectFactory* pFact2 )
pSearchItem
(
NULL
),
pNumberFormatter
(
NULL
),
bWaterCan
(
false
),
mpResourceContainer
(
new
::
sd
::
SdGlobalResourceContainer
())
mpResourceContainer
(
new
::
sd
::
SdGlobalResourceContainer
()),
mbEventListenerAdded
(
false
)
{
SetName
(
OUString
(
"StarDraw"
)
);
// Do not translate!
pSearchItem
=
new
SvxSearchItem
(
SID_SEARCH_ITEM
);
...
...
@@ -105,15 +106,9 @@ SdModule::~SdModule()
delete
pSearchItem
;
delete
pNumberFormatter
;
::
sd
::
DrawDocShell
*
pDocShell
=
PTR_CAST
(
::
sd
::
DrawDocShell
,
SfxObjectShell
::
Current
());
if
(
pDocShell
)
if
(
mbEventListenerAdded
)
{
::
sd
::
ViewShell
*
pViewShell
=
pDocShell
->
GetViewShell
();
if
(
pViewShell
)
{
// Removing our event listener
Application
::
RemoveEventListener
(
LINK
(
this
,
SdModule
,
EventListenerHdl
)
);
}
Application
::
RemoveEventListener
(
LINK
(
this
,
SdModule
,
EventListenerHdl
)
);
}
mpResourceContainer
.
reset
();
...
...
sd/source/ui/app/sdmod1.cxx
Dosyayı görüntüle @
6a23af75
...
...
@@ -315,8 +315,6 @@ bool SdModule::OutlineToImpress(SfxRequest& rRequest)
return
rRequest
.
IsDone
();
}
static
bool
bOnce
=
false
;
void
SdModule
::
GetState
(
SfxItemSet
&
rItemSet
)
{
// disable Autopilot during presentation
...
...
@@ -403,7 +401,7 @@ void SdModule::GetState(SfxItemSet& rItemSet)
rItemSet
.
Put
(
SvxLanguageItem
(
pDocSh
->
GetDoc
()
->
GetLanguage
(
EE_CHAR_LANGUAGE_CTL
),
SID_ATTR_CHAR_CTL_LANGUAGE
)
);
}
if
(
!
bOnce
)
if
(
!
mbEventListenerAdded
)
{
::
sd
::
DrawDocShell
*
pDocShell
=
PTR_CAST
(
::
sd
::
DrawDocShell
,
SfxObjectShell
::
Current
());
if
(
pDocShell
)
// Impress or Draw ?
...
...
@@ -414,7 +412,7 @@ void SdModule::GetState(SfxItemSet& rItemSet)
{
// add our event listener as soon as possible
Application
::
AddEventListener
(
LINK
(
this
,
SdModule
,
EventListenerHdl
)
);
bOnce
=
true
;
mbEventListenerAdded
=
true
;
}
}
}
...
...
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