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
a24a1701
Kaydet (Commit)
a24a1701
authored
Ock 10, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename weird "NetPath" term to the more descriptive "InstallationRootPath"
üst
9d0c50e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
helper.cxx
vcl/generic/fontmanager/helper.cxx
+12
-12
helper.hxx
vcl/inc/vcl/helper.hxx
+1
-1
No files found.
vcl/generic/fontmanager/helper.cxx
Dosyayı görüntüle @
a24a1701
...
...
@@ -51,7 +51,7 @@ namespace psp {
OUString
getOfficePath
(
enum
whichOfficePath
ePath
)
{
static
OUString
a
Ne
tPath
;
static
OUString
a
InstallationRoo
tPath
;
static
OUString
aUserPath
;
static
OUString
aConfigPath
;
static
OUString
aEmpty
;
...
...
@@ -61,8 +61,8 @@ OUString getOfficePath( enum whichOfficePath ePath )
{
bOnce
=
true
;
OUString
aIni
;
Bootstrap
::
get
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"BRAND_BASE_DIR"
)
),
a
Ne
tPath
);
aIni
=
a
Ne
tPath
+
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/program/"
SAL_CONFIGFILE
(
"bootstrap"
)
)
);
Bootstrap
::
get
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"BRAND_BASE_DIR"
)
),
a
InstallationRoo
tPath
);
aIni
=
a
InstallationRoo
tPath
+
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/program/"
SAL_CONFIGFILE
(
"bootstrap"
)
)
);
Bootstrap
aBootstrap
(
aIni
);
aBootstrap
.
getFrom
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CustomDataUrl"
)
),
aConfigPath
);
aBootstrap
.
getFrom
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"UserInstallation"
)
),
aUserPath
);
...
...
@@ -74,11 +74,11 @@ OUString getOfficePath( enum whichOfficePath ePath )
if
(
osl_getSystemPathFromFileURL
(
aConfigPath
.
pData
,
&
aSysPath
.
pData
)
==
osl_File_E_None
)
aConfigPath
=
aSysPath
;
}
if
(
!
a
Ne
tPath
.
compareToAscii
(
"file://"
,
7
)
)
if
(
!
a
InstallationRoo
tPath
.
compareToAscii
(
"file://"
,
7
)
)
{
OUString
aSysPath
;
if
(
osl_getSystemPathFromFileURL
(
a
Ne
tPath
.
pData
,
&
aSysPath
.
pData
)
==
osl_File_E_None
)
a
Ne
tPath
=
aSysPath
;
if
(
osl_getSystemPathFromFileURL
(
a
InstallationRoo
tPath
.
pData
,
&
aSysPath
.
pData
)
==
osl_File_E_None
)
a
InstallationRoo
tPath
=
aSysPath
;
}
if
(
!
aUserPath
.
compareToAscii
(
"file://"
,
7
)
)
{
...
...
@@ -100,7 +100,7 @@ OUString getOfficePath( enum whichOfficePath ePath )
switch
(
ePath
)
{
case
ConfigPath
:
return
aConfigPath
;
case
NetPath
:
return
aNe
tPath
;
case
InstallationRootPath
:
return
aInstallationRoo
tPath
;
case
UserPath
:
return
aUserPath
;
}
return
aEmpty
;
...
...
@@ -128,7 +128,7 @@ void psp::getPrinterPathList( std::list< OUString >& rPathList, const char* pSub
OUStringBuffer
aPathBuffer
(
256
);
// append net path
aPathBuffer
.
append
(
getOfficePath
(
psp
::
Ne
tPath
)
);
aPathBuffer
.
append
(
getOfficePath
(
psp
::
InstallationRoo
tPath
)
);
if
(
aPathBuffer
.
getLength
()
)
{
aPathBuffer
.
appendAscii
(
"/share/psprint"
);
...
...
@@ -206,7 +206,7 @@ OUString psp::getFontPath()
OUStringBuffer
aPathBuffer
(
512
);
OUString
aConfigPath
(
getOfficePath
(
psp
::
ConfigPath
)
);
OUString
a
NetPath
(
getOfficePath
(
psp
::
Ne
tPath
)
);
OUString
a
InstallationRootPath
(
getOfficePath
(
psp
::
InstallationRoo
tPath
)
);
OUString
aUserPath
(
getOfficePath
(
psp
::
UserPath
)
);
if
(
aConfigPath
.
getLength
()
)
{
...
...
@@ -227,11 +227,11 @@ OUString psp::getFontPath()
}
if
(
aConfigPath
.
getLength
()
==
0
)
{
if
(
a
Ne
tPath
.
getLength
()
)
if
(
a
InstallationRoo
tPath
.
getLength
()
)
{
aPathBuffer
.
append
(
a
Ne
tPath
);
aPathBuffer
.
append
(
a
InstallationRoo
tPath
);
aPathBuffer
.
appendAscii
(
"/share/fonts/truetype;"
);
aPathBuffer
.
append
(
a
Ne
tPath
);
aPathBuffer
.
append
(
a
InstallationRoo
tPath
);
aPathBuffer
.
appendAscii
(
"/share/fonts/type1;"
);
}
if
(
aUserPath
.
getLength
()
)
...
...
vcl/inc/vcl/helper.hxx
Dosyayı görüntüle @
a24a1701
...
...
@@ -57,7 +57,7 @@ void VCL_DLLPUBLIC normPath( rtl::OString& rPath );
// rOrgPath will be subject to normPath
void
VCL_DLLPUBLIC
splitPath
(
rtl
::
OString
&
rOrgPath
,
rtl
::
OString
&
rDir
,
rtl
::
OString
&
rBase
);
enum
whichOfficePath
{
Ne
tPath
,
UserPath
,
ConfigPath
};
enum
whichOfficePath
{
InstallationRoo
tPath
,
UserPath
,
ConfigPath
};
// note: gcc 3.4.1 warns about visibility if we retunr a const rtl::OUString& here
// seems to be a bug in gcc, now we return an object instead of a reference
rtl
::
OUString
VCL_DLLPUBLIC
getOfficePath
(
enum
whichOfficePath
ePath
);
...
...
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