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
914cb68e
Kaydet (Commit)
914cb68e
authored
Şub 24, 2013
tarafından
Ariel Constenla-Haile
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i114817 - Fix missing css::view::PrintableState_JOB_STARTED notification
üst
3e3649d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
printhelper.cxx
sfx2/source/doc/printhelper.cxx
+23
-24
No files found.
sfx2/source/doc/printhelper.cxx
Dosyayı görüntüle @
914cb68e
...
@@ -785,32 +785,31 @@ void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >&
...
@@ -785,32 +785,31 @@ void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >&
void
IMPL_PrintListener_DataContainer
::
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
)
void
IMPL_PrintListener_DataContainer
::
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
)
{
{
if
(
&
rBC
==
m_pObjectShell
)
SfxPrintingHint
*
pPrintHint
=
PTR_CAST
(
SfxPrintingHint
,
&
rHint
);
if
(
&
rBC
!=
m_pObjectShell
||
!
pPrintHint
||
pPrintHint
->
GetWhich
()
==
-
2
)
// -2 : CancelPrintJob
return
;
if
(
pPrintHint
->
GetWhich
()
==
com
::
sun
::
star
::
view
::
PrintableState_JOB_STARTED
)
{
{
SfxPrintingHint
*
pPrintHint
=
PTR_CAST
(
SfxPrintingHint
,
&
rHint
);
if
(
!
m_xPrintJob
.
is
()
)
if
(
pPrintHint
)
m_xPrintJob
=
new
SfxPrintJob_Impl
(
this
);
{
m_aPrintOptions
=
pPrintHint
->
GetOptions
();
if
(
pPrintHint
->
GetWhich
()
==
com
::
sun
::
star
::
view
::
PrintableState_JOB_STARTED
)
{
if
(
!
m_xPrintJob
.
is
()
)
m_xPrintJob
=
new
SfxPrintJob_Impl
(
this
);
m_aPrintOptions
=
pPrintHint
->
GetOptions
();
}
else
if
(
pPrintHint
->
GetWhich
()
!=
-
2
)
// -2 : CancelPrintJob
{
view
::
PrintJobEvent
aEvent
;
aEvent
.
Source
=
m_xPrintJob
;
aEvent
.
State
=
(
com
::
sun
::
star
::
view
::
PrintableState
)
pPrintHint
->
GetWhich
();
::
cppu
::
OInterfaceContainerHelper
*
pContainer
=
m_aInterfaceContainer
.
getContainer
(
::
getCppuType
(
(
const
uno
::
Reference
<
view
::
XPrintJobListener
>*
)
NULL
)
);
if
(
pContainer
!=
NULL
)
{
::
cppu
::
OInterfaceIteratorHelper
pIterator
(
*
pContainer
);
while
(
pIterator
.
hasMoreElements
())
((
view
::
XPrintJobListener
*
)
pIterator
.
next
())
->
printJobEvent
(
aEvent
);
}
}
}
}
}
::
cppu
::
OInterfaceContainerHelper
*
pContainer
=
m_aInterfaceContainer
.
getContainer
(
::
getCppuType
(
(
const
uno
::
Reference
<
view
::
XPrintJobListener
>*
)
NULL
)
);
if
(
!
pContainer
)
return
;
view
::
PrintJobEvent
aEvent
;
aEvent
.
Source
=
m_xPrintJob
;
aEvent
.
State
=
(
com
::
sun
::
star
::
view
::
PrintableState
)
pPrintHint
->
GetWhich
();
::
cppu
::
OInterfaceIteratorHelper
pIterator
(
*
pContainer
);
while
(
pIterator
.
hasMoreElements
())
((
view
::
XPrintJobListener
*
)
pIterator
.
next
())
->
printJobEvent
(
aEvent
);
}
}
void
SAL_CALL
SfxPrintHelper
::
addPrintJobListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
view
::
XPrintJobListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
void
SAL_CALL
SfxPrintHelper
::
addPrintJobListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
view
::
XPrintJobListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
...
...
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