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
88f12d9c
Kaydet (Commit)
88f12d9c
authored
Agu 18, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some oslCondition -> osl::Condition
Change-Id: I57c10b14cd8a5ab821516575768891b66f834ca6
üst
2861d5be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
21 deletions
+12
-21
XSLTFilter.cxx
filter/source/xsltfilter/XSLTFilter.cxx
+12
-21
No files found.
filter/source/xsltfilter/XSLTFilter.cxx
Dosyayı görüntüle @
88f12d9c
...
...
@@ -24,7 +24,7 @@
#include <sax/tools/documenthandleradapter.hxx>
#include <osl/time.h>
#include <osl/conditn.h>
#include <osl/conditn.h
xx
>
#include <rtl/strbuf.hxx>
#include <tools/urlobj.hxx>
...
...
@@ -110,7 +110,7 @@ namespace XSLT
css
::
uno
::
Reference
<
xslt
::
XXSLTTransformer
>
m_tcontrol
;
oslCondition
m_cTransformed
;
osl
::
Condition
m_cTransformed
;
bool
m_bTerminated
;
bool
m_bError
;
...
...
@@ -128,8 +128,6 @@ namespace XSLT
// ctor...
XSLTFilter
(
const
css
::
uno
::
Reference
<
XComponentContext
>
&
r
);
virtual
~
XSLTFilter
();
// XStreamListener
virtual
void
SAL_CALL
error
(
const
Any
&
a
)
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
...
...
@@ -162,14 +160,7 @@ namespace XSLT
XSLTFilter
::
XSLTFilter
(
const
css
::
uno
::
Reference
<
XComponentContext
>
&
r
)
:
m_xContext
(
r
),
m_bTerminated
(
false
),
m_bError
(
false
)
{
m_cTransformed
=
osl_createCondition
();
}
XSLTFilter
::~
XSLTFilter
()
{
osl_destroyCondition
(
m_cTransformed
);
}
{}
void
XSLTFilter
::
disposing
(
const
EventObject
&
)
throw
(
RuntimeException
,
std
::
exception
)
...
...
@@ -233,7 +224,7 @@ namespace XSLT
void
XSLTFilter
::
started
()
throw
(
RuntimeException
,
std
::
exception
)
{
osl_resetCondition
(
m_cTransformed
);
m_cTransformed
.
reset
(
);
}
void
XSLTFilter
::
error
(
const
Any
&
a
)
throw
(
RuntimeException
,
std
::
exception
)
...
...
@@ -244,18 +235,18 @@ namespace XSLT
SAL_WARN
(
"filter.xslt"
,
"XSLTFilter::error was called: "
<<
e
.
Message
);
}
m_bError
=
true
;
osl_setCondition
(
m_cTransformed
);
m_cTransformed
.
set
(
);
}
void
XSLTFilter
::
closed
()
throw
(
RuntimeException
,
std
::
exception
)
{
osl_setCondition
(
m_cTransformed
);
m_cTransformed
.
set
(
);
}
void
XSLTFilter
::
terminated
()
throw
(
RuntimeException
,
std
::
exception
)
{
m_bTerminated
=
true
;
osl_setCondition
(
m_cTransformed
);
m_cTransformed
.
set
(
);
}
OUString
...
...
@@ -370,8 +361,8 @@ namespace XSLT
// transform
m_tcontrol
->
start
();
TimeValue
timeout
=
{
TRANSFORMATION_TIMEOUT_SEC
,
0
};
osl
ConditionResult
result
(
osl_waitCondition
(
m_cTransformed
,
&
timeout
));
while
(
osl
_cond_
result_timeout
==
result
)
{
osl
::
Condition
::
Result
result
(
m_cTransformed
.
wait
(
&
timeout
));
while
(
osl
::
Condition
::
result_timeout
==
result
)
{
if
(
xInterActionHandler
.
is
())
{
Sequence
<
Any
>
excArgs
(
0
);
::
com
::
sun
::
star
::
ucb
::
InteractiveAugmentedIOException
exc
(
...
...
@@ -391,10 +382,10 @@ namespace XSLT
xInterActionHandler
->
handle
(
xRequest
);
if
(
pAbort
->
wasSelected
())
{
m_bError
=
true
;
osl_setCondition
(
m_cTransformed
);
m_cTransformed
.
set
(
);
}
}
result
=
osl_waitCondition
(
m_cTransformed
,
&
timeout
);
result
=
m_cTransformed
.
wait
(
&
timeout
);
};
if
(
!
m_bError
)
{
xSaxParser
->
parseStream
(
aInput
);
...
...
@@ -528,7 +519,7 @@ namespace XSLT
{
ExtendedDocumentHandlerAdapter
::
endDocument
();
// wait for the transformer to finish
osl_waitCondition
(
m_cTransformed
,
0
);
m_cTransformed
.
wait
(
);
m_tcontrol
->
terminate
();
if
(
!
m_bError
&&
!
m_bTerminated
)
{
...
...
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