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
03802af7
Kaydet (Commit)
03802af7
authored
Eki 26, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlhelp: apparently "picture.jar" hasn't existed for a long time
Change-Id: I9ac46ffcf21e8af2cb3b92d4068981cafb271ebc
üst
6a87d1d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
82 deletions
+9
-82
content.cxx
xmlhelp/source/cxxhelp/provider/content.cxx
+1
-5
urlparameter.cxx
xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+8
-76
urlparameter.hxx
xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+0
-1
No files found.
xmlhelp/source/cxxhelp/provider/content.cxx
Dosyayı görüntüle @
03802af7
...
...
@@ -421,11 +421,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
else
if
(
rProp
.
Name
==
"IsErrorDocument"
)
xRow
->
appendBoolean
(
rProp
,
m_aURLParameter
.
isErrorDocument
()
);
else
if
(
rProp
.
Name
==
"MediaType"
)
if
(
m_aURLParameter
.
isPicture
()
)
xRow
->
appendString
(
rProp
,
OUString
(
"image/gif"
)
);
else
if
(
m_aURLParameter
.
isActive
()
)
if
(
m_aURLParameter
.
isActive
()
)
xRow
->
appendString
(
rProp
,
OUString
(
"text/plain"
)
);
...
...
xmlhelp/source/cxxhelp/provider/urlparameter.cxx
Dosyayı görüntüle @
03802af7
...
...
@@ -396,60 +396,16 @@ void URLParameter::open( const Command& aCommand,
if
(
!
xDataSink
.
is
()
)
return
;
if
(
isPicture
()
)
// a standard document or else an active help text, plug in the new input stream
InputStreamTransformer
*
p
=
new
InputStreamTransformer
(
this
,
m_pDatabases
,
isRoot
()
);
try
{
Reference
<
XInputStream
>
xStream
;
Reference
<
XHierarchicalNameAccess
>
xNA
=
m_pDatabases
->
jarFile
(
OUString
(
"picture.jar"
),
get_language
()
);
OUString
path
=
get_path
();
if
(
xNA
.
is
()
)
{
try
{
Any
aEntry
=
xNA
->
getByHierarchicalName
(
path
);
Reference
<
XActiveDataSink
>
xSink
;
if
(
(
aEntry
>>=
xSink
)
&&
xSink
.
is
()
)
xStream
=
xSink
->
getInputStream
();
}
catch
(
NoSuchElementException
&
)
{
}
}
if
(
xStream
.
is
()
)
{
sal_Int32
ret
;
Sequence
<
sal_Int8
>
aSeq
(
4096
);
while
(
true
)
{
try
{
ret
=
xStream
->
readBytes
(
aSeq
,
4096
);
xDataSink
->
writeBytes
(
aSeq
);
if
(
ret
<
4096
)
break
;
}
catch
(
const
Exception
&
)
{
break
;
}
}
}
xDataSink
->
writeBytes
(
Sequence
<
sal_Int8
>
(
p
->
getData
(),
p
->
getLen
()
)
);
}
else
catch
(
const
Exception
&
)
{
// a standard document or else an active help text, plug in the new input stream
InputStreamTransformer
*
p
=
new
InputStreamTransformer
(
this
,
m_pDatabases
,
isRoot
()
);
try
{
xDataSink
->
writeBytes
(
Sequence
<
sal_Int8
>
(
p
->
getData
(),
p
->
getLen
()
)
);
}
catch
(
const
Exception
&
)
{
}
delete
p
;
}
delete
p
;
xDataSink
->
closeOutput
();
}
...
...
@@ -464,32 +420,8 @@ void URLParameter::open( const Command& aCommand,
(
void
)
CommandId
;
(
void
)
Environment
;
if
(
isPicture
()
)
{
Reference
<
XInputStream
>
xStream
;
Reference
<
XHierarchicalNameAccess
>
xNA
=
m_pDatabases
->
jarFile
(
OUString
(
"picture.jar"
),
get_language
()
);
OUString
path
=
get_path
();
if
(
xNA
.
is
()
)
{
try
{
Any
aEntry
=
xNA
->
getByHierarchicalName
(
path
);
Reference
<
XActiveDataSink
>
xSink
;
if
(
(
aEntry
>>=
xSink
)
&&
xSink
.
is
()
)
xStream
=
xSink
->
getInputStream
();
}
catch
(
NoSuchElementException
&
)
{
}
}
xDataSink
->
setInputStream
(
turnToSeekable
(
xStream
)
);
}
else
// a standard document or else an active help text, plug in the new input stream
xDataSink
->
setInputStream
(
new
InputStreamTransformer
(
this
,
m_pDatabases
,
isRoot
()
)
);
// a standard document or else an active help text, plug in the new input stream
xDataSink
->
setInputStream
(
new
InputStreamTransformer
(
this
,
m_pDatabases
,
isRoot
()
)
);
}
...
...
xmlhelp/source/cxxhelp/provider/urlparameter.hxx
Dosyayı görüntüle @
03802af7
...
...
@@ -116,7 +116,6 @@ namespace chelp {
Databases
*
pDatabases
)
throw
(
com
::
sun
::
star
::
ucb
::
IllegalIdentifierException
);
bool
isPicture
()
const
{
return
m_aModule
==
"picture"
;
}
bool
isActive
()
const
{
return
!
m_aActive
.
isEmpty
()
&&
m_aActive
==
"true"
;
}
bool
isQuery
()
const
{
return
m_aId
.
isEmpty
()
&&
!
m_aQuery
.
isEmpty
();
}
bool
isFile
()
const
{
return
!
m_aId
.
isEmpty
();
}
...
...
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