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
76fa859a
Kaydet (Commit)
76fa859a
authored
Eyl 06, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SvxAutoCorrectLanguageLists from String to OUString
Change-Id: Ib10ec6b9ab8d3a6538a5e6cafa349774d123531c
üst
7b3f9c73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+10
-10
svxacorr.hxx
include/editeng/svxacorr.hxx
+9
-9
No files found.
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
76fa859a
...
...
@@ -1871,8 +1871,8 @@ OUString SvxAutoCorrect::GetAutoCorrFileName( LanguageType eLang,
SvxAutoCorrectLanguageLists
::
SvxAutoCorrectLanguageLists
(
SvxAutoCorrect
&
rParent
,
const
String
&
rShareAutoCorrectFile
,
const
String
&
rUserAutoCorrectFile
)
const
OU
String
&
rShareAutoCorrectFile
,
const
OU
String
&
rUserAutoCorrectFile
)
:
sShareAutoCorrFile
(
rShareAutoCorrectFile
),
sUserAutoCorrFile
(
rUserAutoCorrectFile
),
aModifiedDate
(
Date
::
EMPTY
),
...
...
@@ -2121,10 +2121,10 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::GetCplSttExceptList()
return
pCplStt_ExcptLst
;
}
sal_Bool
SvxAutoCorrectLanguageLists
::
AddToCplSttExceptList
(
const
String
&
rNew
)
sal_Bool
SvxAutoCorrectLanguageLists
::
AddToCplSttExceptList
(
const
OU
String
&
rNew
)
{
sal_Bool
aRet
=
sal_False
;
if
(
rNew
.
Len
()
&&
GetCplSttExceptList
()
->
insert
(
rNew
).
second
)
if
(
!
rNew
.
isEmpty
()
&&
GetCplSttExceptList
()
->
insert
(
rNew
).
second
)
{
MakeUserStorage_Impl
();
SotStorageRef
xStg
=
new
SotStorage
(
sUserAutoCorrFile
,
STREAM_READWRITE
,
sal_True
);
...
...
@@ -2141,11 +2141,11 @@ sal_Bool SvxAutoCorrectLanguageLists::AddToCplSttExceptList(const String& rNew)
return
aRet
;
}
sal_Bool
SvxAutoCorrectLanguageLists
::
AddToWrdSttExceptList
(
const
String
&
rNew
)
sal_Bool
SvxAutoCorrectLanguageLists
::
AddToWrdSttExceptList
(
const
OU
String
&
rNew
)
{
sal_Bool
aRet
=
sal_False
;
SvStringsISortDtor
*
pExceptList
=
LoadWrdSttExceptList
();
if
(
rNew
.
Len
()
&&
pExceptList
&&
pExceptList
->
insert
(
rNew
).
second
)
if
(
!
rNew
.
isEmpty
()
&&
pExceptList
&&
pExceptList
->
insert
(
rNew
).
second
)
{
MakeUserStorage_Impl
();
SotStorageRef
xStg
=
new
SotStorage
(
sUserAutoCorrFile
,
STREAM_READWRITE
,
sal_True
);
...
...
@@ -2244,7 +2244,7 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::GetWrdSttExceptList()
return
pWrdStt_ExcptLst
;
}
void
SvxAutoCorrectLanguageLists
::
RemoveStream_Imp
(
const
String
&
rName
)
void
SvxAutoCorrectLanguageLists
::
RemoveStream_Imp
(
const
OU
String
&
rName
)
{
if
(
sShareAutoCorrFile
!=
sUserAutoCorrFile
)
{
...
...
@@ -2489,7 +2489,7 @@ sal_Bool SvxAutoCorrectLanguageLists::MakeCombinedChanges( std::vector<SvxAutoco
return
bRet
;
}
sal_Bool
SvxAutoCorrectLanguageLists
::
PutText
(
const
String
&
rShort
,
const
String
&
rLong
)
sal_Bool
SvxAutoCorrectLanguageLists
::
PutText
(
const
OUString
&
rShort
,
const
OU
String
&
rLong
)
{
// First get the current list!
GetAutocorrWordList
();
...
...
@@ -2535,7 +2535,7 @@ sal_Bool SvxAutoCorrectLanguageLists::PutText( const String& rShort, const Strin
return
bRet
;
}
sal_Bool
SvxAutoCorrectLanguageLists
::
PutText
(
const
String
&
rShort
,
sal_Bool
SvxAutoCorrectLanguageLists
::
PutText
(
const
OU
String
&
rShort
,
SfxObjectShell
&
rShell
)
{
// First get the current list!
...
...
@@ -2572,7 +2572,7 @@ sal_Bool SvxAutoCorrectLanguageLists::PutText( const String& rShort,
}
// Delete an entry
sal_Bool
SvxAutoCorrectLanguageLists
::
DeleteText
(
const
String
&
rShort
)
sal_Bool
SvxAutoCorrectLanguageLists
::
DeleteText
(
const
OU
String
&
rShort
)
{
// First get the current list!
GetAutocorrWordList
();
...
...
include/editeng/svxacorr.hxx
Dosyayı görüntüle @
76fa859a
...
...
@@ -170,7 +170,7 @@ public:
class
EDITENG_DLLPUBLIC
SvxAutoCorrectLanguageLists
{
String
sShareAutoCorrFile
,
sUserAutoCorrFile
;
OU
String
sShareAutoCorrFile
,
sUserAutoCorrFile
;
// If the AutoCorr file is newer
Date
aModifiedDate
;
Time
aModifiedTime
,
aLastCheckTime
;
...
...
@@ -192,13 +192,13 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists
sal_Bool
bConvert
=
sal_False
);
sal_Bool
MakeBlocklist_Imp
(
SotStorage
&
rStg
);
void
RemoveStream_Imp
(
const
String
&
rName
);
void
RemoveStream_Imp
(
const
OU
String
&
rName
);
void
MakeUserStorage_Impl
();
public
:
SvxAutoCorrectLanguageLists
(
SvxAutoCorrect
&
rParent
,
const
String
&
rShareAutoCorrectFile
,
const
String
&
rUserAutoCorrectFile
);
const
OU
String
&
rShareAutoCorrectFile
,
const
OU
String
&
rUserAutoCorrectFile
);
~
SvxAutoCorrectLanguageLists
();
// Load, Set, Get - the replacement list
...
...
@@ -212,7 +212,7 @@ public:
void
SaveCplSttExceptList
();
void
SetCplSttExceptList
(
SvStringsISortDtor
*
pList
);
SvStringsISortDtor
*
GetCplSttExceptList
();
sal_Bool
AddToCplSttExceptList
(
const
String
&
rNew
);
sal_Bool
AddToCplSttExceptList
(
const
OU
String
&
rNew
);
// Load, Set, Get the exception list for 2 Capital letters at the
// beginning of a word.
...
...
@@ -220,17 +220,17 @@ public:
void
SaveWrdSttExceptList
();
void
SetWrdSttExceptList
(
SvStringsISortDtor
*
pList
);
SvStringsISortDtor
*
GetWrdSttExceptList
();
sal_Bool
AddToWrdSttExceptList
(
const
String
&
rNew
);
sal_Bool
AddToWrdSttExceptList
(
const
OU
String
&
rNew
);
// Save word substitutions:
// Store these directly in the storage. The word list is updated
// accordingly!
// - pure Text
sal_Bool
PutText
(
const
String
&
rShort
,
const
String
&
rLong
);
sal_Bool
PutText
(
const
OUString
&
rShort
,
const
OU
String
&
rLong
);
// - Text with attribution (only the SWG - SWG format!)
sal_Bool
PutText
(
const
String
&
rShort
,
SfxObjectShell
&
);
sal_Bool
PutText
(
const
OU
String
&
rShort
,
SfxObjectShell
&
);
// - Deleting an entry
sal_Bool
DeleteText
(
const
String
&
rShort
);
sal_Bool
DeleteText
(
const
OU
String
&
rShort
);
// - Make combined changes in one pass
sal_Bool
MakeCombinedChanges
(
std
::
vector
<
SvxAutocorrWord
>&
aNewEntries
,
std
::
vector
<
SvxAutocorrWord
>&
aDeleteEntries
);
};
...
...
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