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
7b0546a5
Kaydet (Commit)
7b0546a5
authored
Eki 25, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
micro optimization
üst
dcf67b25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
pathsettings.cxx
framework/source/services/pathsettings.cxx
+10
-9
No files found.
framework/source/services/pathsettings.cxx
Dosyayı görüntüle @
7b0546a5
...
...
@@ -63,10 +63,8 @@
#define CFG_READONLY_DEFAULT sal_False
const
::
rtl
::
OUString
CFGPROP_INTERNALPATHES
=
::
rtl
::
OUString
::
createFromAscii
(
"InternalPaths"
);
const
::
rtl
::
OUString
CFGPROP_USERPATHES
=
::
rtl
::
OUString
::
createFromAscii
(
"UserPaths"
);
const
::
rtl
::
OUString
CFGPROP_WRITEPATH
=
::
rtl
::
OUString
::
createFromAscii
(
"WritePath"
);
const
::
rtl
::
OUString
CFGPROP_ISSINGLEPATH
=
::
rtl
::
OUString
::
createFromAscii
(
"IsSinglePath"
);
const
::
rtl
::
OUString
CFGPROP_USERPATHES
(
RTL_CONSTASCII_USTRINGPARAM
(
"UserPaths"
));
const
::
rtl
::
OUString
CFGPROP_WRITEPATH
(
RTL_CONSTASCII_USTRINGPARAM
(
"WritePath"
));
/*
0 : old style "Template" string using ";" as seperator
...
...
@@ -75,9 +73,9 @@ const ::rtl::OUString CFGPROP_ISSINGLEPATH = ::rtl::OUString::createFromAscii(
3 : write path "Template_write" string
*/
const
::
rtl
::
OUString
POSTFIX_INTERNAL_PATHES
=
::
rtl
::
OUString
::
createFromAscii
(
"_internal"
);
const
::
rtl
::
OUString
POSTFIX_USER_PATHES
=
::
rtl
::
OUString
::
createFromAscii
(
"_user"
);
const
::
rtl
::
OUString
POSTFIX_WRITE_PATH
=
::
rtl
::
OUString
::
createFromAscii
(
"_writable"
);
const
::
rtl
::
OUString
POSTFIX_INTERNAL_PATHES
(
RTL_CONSTASCII_USTRINGPARAM
(
"_internal"
)
);
const
::
rtl
::
OUString
POSTFIX_USER_PATHES
(
RTL_CONSTASCII_USTRINGPARAM
(
"_user"
)
);
const
::
rtl
::
OUString
POSTFIX_WRITE_PATH
(
RTL_CONSTASCII_USTRINGPARAM
(
"_writable"
)
);
const
sal_Int32
IDGROUP_OLDSTYLE
=
0
;
const
sal_Int32
IDGROUP_INTERNAL_PATHES
=
1
;
...
...
@@ -272,6 +270,9 @@ OUStringList PathSettings::impl_readOldFormat(const ::rtl::OUString& sPath)
// NO substitution here ! It's done outside ...
PathSettings
::
PathInfo
PathSettings
::
impl_readNewFormat
(
const
::
rtl
::
OUString
&
sPath
)
{
const
static
::
rtl
::
OUString
CFGPROP_INTERNALPATHES
(
RTL_CONSTASCII_USTRINGPARAM
(
"InternalPaths"
));
const
static
::
rtl
::
OUString
CFGPROP_ISSINGLEPATH
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsSinglePath"
));
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>
xCfg
=
fa_getCfgNew
();
// get access to the "queried" path
...
...
@@ -1117,7 +1118,7 @@ css::uno::Reference< css::util::XStringSubstitution > PathSettings::fa_getSubsti
//-----------------------------------------------------------------------------
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>
PathSettings
::
fa_getCfgOld
()
{
const
static
::
rtl
::
OUString
CFG_NODE_OLD
=
::
rtl
::
OUString
::
createFromAscii
(
"org.openoffice.Office.Common/Path/Current"
);
const
static
::
rtl
::
OUString
CFG_NODE_OLD
(
RTL_CONSTASCII_USTRINGPARAM
(
"org.openoffice.Office.Common/Path/Current"
)
);
// SAFE ->
ReadGuard
aReadLock
(
m_aLock
);
...
...
@@ -1147,7 +1148,7 @@ css::uno::Reference< css::container::XNameAccess > PathSettings::fa_getCfgOld()
//-----------------------------------------------------------------------------
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>
PathSettings
::
fa_getCfgNew
()
{
const
static
::
rtl
::
OUString
CFG_NODE_NEW
=
::
rtl
::
OUString
::
createFromAscii
(
"org.openoffice.Office.Paths/Paths"
);
const
static
::
rtl
::
OUString
CFG_NODE_NEW
(
RTL_CONSTASCII_USTRINGPARAM
(
"org.openoffice.Office.Paths/Paths"
)
);
// SAFE ->
ReadGuard
aReadLock
(
m_aLock
);
...
...
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