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
238ad07d
Kaydet (Commit)
238ad07d
authored
Nis 09, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
s/pathes/paths/
üst
383a9c77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
pathoptions.hxx
unotools/inc/unotools/pathoptions.hxx
+2
-2
defaultoptions.cxx
unotools/source/config/defaultoptions.cxx
+1
-1
pathoptions.cxx
unotools/source/config/pathoptions.cxx
+8
-8
No files found.
unotools/inc/unotools/pathoptions.hxx
Dosyayı görüntüle @
238ad07d
...
...
@@ -44,7 +44,7 @@ private:
SvtPathOptions_Impl
*
pImp
;
public
:
enum
Path
e
s
enum
Paths
{
PATH_ADDIN
,
PATH_AUTOCORRECT
,
...
...
@@ -129,7 +129,7 @@ public:
String
SubstituteVariable
(
const
String
&
rVar
)
const
;
String
ExpandMacros
(
const
String
&
rPath
)
const
;
String
UseVariable
(
const
String
&
rVar
)
const
;
sal_Bool
SearchFile
(
String
&
rIniFile
,
Path
e
s
ePath
=
PATH_USERCONFIG
);
sal_Bool
SearchFile
(
String
&
rIniFile
,
Paths
ePath
=
PATH_USERCONFIG
);
::
com
::
sun
::
star
::
lang
::
Locale
GetLocale
()
const
;
sal_Bool
IsReadonly
()
const
;
};
...
...
unotools/source/config/defaultoptions.cxx
Dosyayı görüntüle @
238ad07d
...
...
@@ -118,7 +118,7 @@ typedef String SvtDefaultOptions_Impl:: *PathStrPtr;
struct
PathToDefaultMapping_Impl
{
SvtPathOptions
::
Path
es
_ePath
;
SvtPathOptions
::
Path
s
_ePath
;
PathStrPtr
_pDefaultPath
;
};
...
...
unotools/source/config/pathoptions.cxx
Dosyayı görüntüle @
238ad07d
...
...
@@ -130,7 +130,7 @@ class SvtPathOptions_Impl
SvtPathOptions_Impl
();
// get the paths, not const because of using a mutex
const
String
&
GetPath
(
SvtPathOptions
::
Path
e
s
);
const
String
&
GetPath
(
SvtPathOptions
::
Paths
);
const
String
&
GetAddinPath
()
{
return
GetPath
(
SvtPathOptions
::
PATH_ADDIN
);
}
const
String
&
GetAutoCorrectPath
()
{
return
GetPath
(
SvtPathOptions
::
PATH_AUTOCORRECT
);
}
const
String
&
GetAutoTextPath
()
{
return
GetPath
(
SvtPathOptions
::
PATH_AUTOTEXT
);
}
...
...
@@ -157,7 +157,7 @@ class SvtPathOptions_Impl
const
String
&
GetFingerprintPath
()
{
return
GetPath
(
SvtPathOptions
::
PATH_FINGERPRINT
);
}
// set the paths
void
SetPath
(
SvtPathOptions
::
Path
e
s
,
const
String
&
rNewPath
);
void
SetPath
(
SvtPathOptions
::
Paths
,
const
String
&
rNewPath
);
void
SetAddinPath
(
const
String
&
rPath
)
{
SetPath
(
SvtPathOptions
::
PATH_ADDIN
,
rPath
);
}
void
SetAutoCorrectPath
(
const
String
&
rPath
)
{
SetPath
(
SvtPathOptions
::
PATH_AUTOCORRECT
,
rPath
);
}
void
SetAutoTextPath
(
const
String
&
rPath
)
{
SetPath
(
SvtPathOptions
::
PATH_AUTOTEXT
,
rPath
);
}
...
...
@@ -197,7 +197,7 @@ static sal_Int32 nRefCount = 0;
struct
PropertyStruct
{
const
char
*
pPropName
;
// The ascii name of the Office path
SvtPathOptions
::
Path
es
ePath
;
// The enum value used by SvtPathOptions
SvtPathOptions
::
Path
s
ePath
;
// The enum value used by SvtPathOptions
};
struct
VarNameAttribute
...
...
@@ -244,7 +244,7 @@ static VarNameAttribute aVarNameAttribute[] =
// class SvtPathOptions_Impl ---------------------------------------------
const
String
&
SvtPathOptions_Impl
::
GetPath
(
SvtPathOptions
::
Path
e
s
ePath
)
const
String
&
SvtPathOptions_Impl
::
GetPath
(
SvtPathOptions
::
Paths
ePath
)
{
if
(
ePath
>=
SvtPathOptions
::
PATH_COUNT
)
return
m_aEmptyString
;
...
...
@@ -268,7 +268,7 @@ const String& SvtPathOptions_Impl::GetPath( SvtPathOptions::Pathes ePath )
ePath
==
SvtPathOptions
::
PATH_STORAGE
)
{
// These office paths have to be converted to system pat
h
es
// These office paths have to be converted to system pates
utl
::
LocalFileHelper
::
ConvertURLToPhysicalName
(
aPathValue
,
aResult
);
aPathValue
=
aResult
;
}
...
...
@@ -283,7 +283,7 @@ const String& SvtPathOptions_Impl::GetPath( SvtPathOptions::Pathes ePath )
return
m_aEmptyString
;
}
void
SvtPathOptions_Impl
::
SetPath
(
SvtPathOptions
::
Path
e
s
ePath
,
const
String
&
rNewPath
)
void
SvtPathOptions_Impl
::
SetPath
(
SvtPathOptions
::
Paths
ePath
,
const
String
&
rNewPath
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
...
...
@@ -457,7 +457,7 @@ SvtPathOptions_Impl::SvtPathOptions_Impl() :
aTempHashMap
.
insert
(
NameToHandleMap
::
value_type
(
aProperty
.
Name
,
aProperty
.
Handle
));
}
// Create mapping between internal enum (SvtPathOptions::Path
e
s) and property handle
// Create mapping between internal enum (SvtPathOptions::Paths) and property handle
sal_Int32
nCount
=
sizeof
(
aPropNames
)
/
sizeof
(
PropertyStruct
);
sal_Int32
i
;
for
(
i
=
0
;
i
<
nCount
;
i
++
)
...
...
@@ -866,7 +866,7 @@ String SvtPathOptions::UseVariable( const String& rPath ) const
// -----------------------------------------------------------------------
sal_Bool
SvtPathOptions
::
SearchFile
(
String
&
rIniFile
,
Path
e
s
ePath
)
sal_Bool
SvtPathOptions
::
SearchFile
(
String
&
rIniFile
,
Paths
ePath
)
{
// check parameter: empty inifile name?
if
(
!
rIniFile
.
Len
()
)
...
...
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