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
178b73da
Kaydet (Commit)
178b73da
authored
Şub 27, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: get rid of no longer needed TOOLS_CONSTASCII_STRINGPARAM define
Change-Id: I595907d345c0438858e53ca76fbb2ae7d79743e6
üst
94d7c1e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
swhtml.cxx
sw/source/filter/html/swhtml.cxx
+7
-11
No files found.
sw/source/filter/html/swhtml.cxx
Dosyayı görüntüle @
178b73da
...
@@ -113,10 +113,6 @@
...
@@ -113,10 +113,6 @@
#define HTML_SPTYPE_HORI 2
#define HTML_SPTYPE_HORI 2
#define HTML_SPTYPE_VERT 3
#define HTML_SPTYPE_VERT 3
#ifndef TOOLS_CONSTASCII_STRINGPARAM
#define TOOLS_CONSTASCII_STRINGPARAM( constAsciiStr ) constAsciiStr, sizeof( constAsciiStr )-1
#endif
using
editeng
::
SvxBorderLine
;
using
editeng
::
SvxBorderLine
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
...
@@ -148,17 +144,17 @@ HTMLReader::HTMLReader()
...
@@ -148,17 +144,17 @@ HTMLReader::HTMLReader()
String
HTMLReader
::
GetTemplateName
()
const
String
HTMLReader
::
GetTemplateName
()
const
{
{
String
sTemplate
(
rtl
::
OUString
(
"html"
)
);
OUString
sTemplate
(
"html"
);
String
sTemplateWithoutExt
(
sTemplate
);
OU
String
sTemplateWithoutExt
(
sTemplate
);
// first search for OpenDocument Writer/Web template
// first search for OpenDocument Writer/Web template
sTemplate
.
AppendAscii
(
TOOLS_CONSTASCII_STRINGPARAM
(
".oth"
)
)
;
sTemplate
+=
".oth"
;
//Added path for the common HTML template
//Added path for the common HTML template
SvtPathOptions
aPathOpt
;
SvtPathOptions
aPathOpt
;
const
String
sCommonTemplatePath
(
"share/template/common/internal"
);
const
String
sCommonTemplatePath
(
"share/template/common/internal"
);
aPathOpt
.
SetTemplatePath
(
sCommonTemplatePath
);
aPathOpt
.
SetTemplatePath
(
sCommonTemplatePath
);
// OpenDocument Writer/Web template (extension .oth)
// OpenDocument Writer/Web template (extension .oth)
sal_Bool
bSet
=
aPathOpt
.
SearchFile
(
sTemplate
,
SvtPathOptions
::
PATH_TEMPLATE
);
sal_Bool
bSet
=
aPathOpt
.
SearchFile
(
String
().
Assign
(
sTemplate
)
,
SvtPathOptions
::
PATH_TEMPLATE
);
if
(
!
bSet
)
if
(
!
bSet
)
{
{
...
@@ -166,13 +162,13 @@ String HTMLReader::GetTemplateName() const
...
@@ -166,13 +162,13 @@ String HTMLReader::GetTemplateName() const
sTemplate
=
sTemplateWithoutExt
;
sTemplate
=
sTemplateWithoutExt
;
// no OpenDocument Writer/Web template found.
// no OpenDocument Writer/Web template found.
// search for OpenOffice.org Writer/Web template
// search for OpenOffice.org Writer/Web template
sTemplate
.
AppendAscii
(
TOOLS_CONSTASCII_STRINGPARAM
(
".stw"
)
)
;
sTemplate
+=
".stw"
;
bSet
=
aPathOpt
.
SearchFile
(
sTemplate
,
SvtPathOptions
::
PATH_TEMPLATE
);
bSet
=
aPathOpt
.
SearchFile
(
String
().
Assign
(
sTemplate
)
,
SvtPathOptions
::
PATH_TEMPLATE
);
}
}
if
(
!
bSet
)
if
(
!
bSet
)
{
{
sTemplate
.
Erase
()
;
sTemplate
=
""
;
OSL_ENSURE
(
!
this
,
OSL_ENSURE
(
!
this
,
"Die html.vor befindet sich nicht mehr im definierten Directory!"
);
"Die html.vor befindet sich nicht mehr im definierten Directory!"
);
}
}
...
...
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