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
0f9976f9
Kaydet (Commit)
0f9976f9
authored
Eyl 06, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/editeng/splwrap.hxx from String to OUString
Change-Id: I52e6e34776fe494da431f8387f5f330b9aca36fe
üst
76fa859a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
29 deletions
+29
-29
SpellDialog.cxx
cui/source/dialogs/SpellDialog.cxx
+2
-2
edtspell.cxx
editeng/source/editeng/edtspell.cxx
+4
-4
edtspell.hxx
editeng/source/editeng/edtspell.hxx
+4
-4
splwrap.cxx
editeng/source/misc/splwrap.cxx
+11
-11
splwrap.hxx
include/editeng/splwrap.hxx
+6
-6
olmenu.cxx
sw/source/ui/lingu/olmenu.cxx
+2
-2
No files found.
cui/source/dialogs/SpellDialog.cxx
Dosyayı görüntüle @
0f9976f9
...
@@ -463,7 +463,7 @@ IMPL_LINK( SpellDialog, ExtClickHdl, Button *, pBtn )
...
@@ -463,7 +463,7 @@ IMPL_LINK( SpellDialog, ExtClickHdl, Button *, pBtn )
const
SpellErrorDescription
*
pSpellErrorDescription
=
m_pSentenceED
->
GetAlternatives
();
const
SpellErrorDescription
*
pSpellErrorDescription
=
m_pSentenceED
->
GetAlternatives
();
if
(
pSpellErrorDescription
)
if
(
pSpellErrorDescription
)
{
{
String
sWrong
(
pSpellErrorDescription
->
sErrorText
);
OU
String
sWrong
(
pSpellErrorDescription
->
sErrorText
);
//if the word has not been edited in the MultiLineEdit then
//if the word has not been edited in the MultiLineEdit then
//the current suggestion should be used
//the current suggestion should be used
//if it's not the 'no suggestions' entry
//if it's not the 'no suggestions' entry
...
@@ -581,7 +581,7 @@ IMPL_LINK_NOARG(SpellDialog, ChangeAllHdl)
...
@@ -581,7 +581,7 @@ IMPL_LINK_NOARG(SpellDialog, ChangeAllHdl)
LanguageType
eLang
=
GetSelectedLang_Impl
();
LanguageType
eLang
=
GetSelectedLang_Impl
();
// add new word to ChangeAll list
// add new word to ChangeAll list
String
aOldWord
(
m_pSentenceED
->
GetErrorText
()
);
OU
String
aOldWord
(
m_pSentenceED
->
GetErrorText
()
);
SvxPrepareAutoCorrect
(
aOldWord
,
aString
);
SvxPrepareAutoCorrect
(
aOldWord
,
aString
);
Reference
<
XDictionary
>
aXDictionary
(
SvxGetChangeAllList
(),
UNO_QUERY
);
Reference
<
XDictionary
>
aXDictionary
(
SvxGetChangeAllList
(),
UNO_QUERY
);
sal_uInt8
nAdded
=
linguistic
::
AddEntryToDic
(
aXDictionary
,
sal_uInt8
nAdded
=
linguistic
::
AddEntryToDic
(
aXDictionary
,
...
...
editeng/source/editeng/edtspell.cxx
Dosyayı görüntüle @
0f9976f9
...
@@ -150,7 +150,7 @@ void EditSpellWrapper::ScrollArea()
...
@@ -150,7 +150,7 @@ void EditSpellWrapper::ScrollArea()
// still anywhere.
// still anywhere.
}
}
void
EditSpellWrapper
::
ReplaceAll
(
const
String
&
rNewText
,
void
EditSpellWrapper
::
ReplaceAll
(
const
OU
String
&
rNewText
,
sal_Int16
)
sal_Int16
)
{
{
// Is called when the word is in ReplaceList of the spell checker
// Is called when the word is in ReplaceList of the spell checker
...
@@ -158,7 +158,7 @@ void EditSpellWrapper::ReplaceAll( const String &rNewText,
...
@@ -158,7 +158,7 @@ void EditSpellWrapper::ReplaceAll( const String &rNewText,
CheckSpellTo
();
CheckSpellTo
();
}
}
void
EditSpellWrapper
::
ChangeWord
(
const
String
&
rNewWord
,
void
EditSpellWrapper
::
ChangeWord
(
const
OU
String
&
rNewWord
,
const
sal_uInt16
)
const
sal_uInt16
)
{
{
// Will be called when Word Button Change
// Will be called when Word Button Change
...
@@ -171,13 +171,13 @@ void EditSpellWrapper::ChangeWord( const String& rNewWord,
...
@@ -171,13 +171,13 @@ void EditSpellWrapper::ChangeWord( const String& rNewWord,
CheckSpellTo
();
CheckSpellTo
();
}
}
void
EditSpellWrapper
::
ChangeThesWord
(
const
String
&
rNewWord
)
void
EditSpellWrapper
::
ChangeThesWord
(
const
OU
String
&
rNewWord
)
{
{
pEditView
->
InsertText
(
rNewWord
);
pEditView
->
InsertText
(
rNewWord
);
CheckSpellTo
();
CheckSpellTo
();
}
}
void
EditSpellWrapper
::
AutoCorrect
(
const
String
&
,
const
String
&
)
void
EditSpellWrapper
::
AutoCorrect
(
const
OUString
&
,
const
OU
String
&
)
{
{
}
}
...
...
editeng/source/editeng/edtspell.hxx
Dosyayı görüntüle @
0f9976f9
...
@@ -47,14 +47,14 @@ private:
...
@@ -47,14 +47,14 @@ private:
protected
:
protected
:
virtual
void
SpellStart
(
SvxSpellArea
eArea
);
virtual
void
SpellStart
(
SvxSpellArea
eArea
);
virtual
sal_Bool
SpellContinue
();
// Check area
virtual
sal_Bool
SpellContinue
();
// Check area
virtual
void
ReplaceAll
(
const
String
&
rNewText
,
sal_Int16
nLanguage
);
virtual
void
ReplaceAll
(
const
OU
String
&
rNewText
,
sal_Int16
nLanguage
);
virtual
void
SpellEnd
();
virtual
void
SpellEnd
();
virtual
sal_Bool
SpellMore
();
virtual
sal_Bool
SpellMore
();
virtual
sal_Bool
HasOtherCnt
();
virtual
sal_Bool
HasOtherCnt
();
virtual
void
ScrollArea
();
virtual
void
ScrollArea
();
virtual
void
ChangeWord
(
const
String
&
rNewWord
,
const
sal_uInt16
nLang
);
virtual
void
ChangeWord
(
const
OU
String
&
rNewWord
,
const
sal_uInt16
nLang
);
virtual
void
ChangeThesWord
(
const
String
&
rNewWord
);
virtual
void
ChangeThesWord
(
const
OU
String
&
rNewWord
);
virtual
void
AutoCorrect
(
const
String
&
rOldWord
,
const
String
&
rNewWord
);
virtual
void
AutoCorrect
(
const
OUString
&
rOldWord
,
const
OU
String
&
rNewWord
);
public
:
public
:
EditSpellWrapper
(
Window
*
pWin
,
EditSpellWrapper
(
Window
*
pWin
,
...
...
editeng/source/misc/splwrap.cxx
Dosyayı görüntüle @
0f9976f9
...
@@ -53,7 +53,7 @@ using namespace ::com::sun::star::linguistic2;
...
@@ -53,7 +53,7 @@ using namespace ::com::sun::star::linguistic2;
// misc functions ---------------------------------------------
// misc functions ---------------------------------------------
void
SvxPrepareAutoCorrect
(
String
&
rOldText
,
String
&
rNewText
)
void
SvxPrepareAutoCorrect
(
OUString
&
rOldText
,
const
OU
String
&
rNewText
)
{
{
// This function should be used to strip (or add) trailing '.' from
// This function should be used to strip (or add) trailing '.' from
// the strings before passing them on to the autocorrect function in
// the strings before passing them on to the autocorrect function in
...
@@ -64,15 +64,15 @@ void SvxPrepareAutoCorrect( String &rOldText, String &rNewText )
...
@@ -64,15 +64,15 @@ void SvxPrepareAutoCorrect( String &rOldText, String &rNewText )
// rOldText: text to be replaced
// rOldText: text to be replaced
// rNewText: replacement text
// rNewText: replacement text
xub_StrLen
nOldLen
=
rOldText
.
Len
(),
xub_StrLen
nOldLen
=
rOldText
.
getLength
(),
nNewLen
=
rNewText
.
Len
();
nNewLen
=
rNewText
.
getLength
();
if
(
nOldLen
&&
nNewLen
)
if
(
nOldLen
&&
nNewLen
)
{
{
sal_Bool
bOldHasDot
=
sal_Unicode
(
'.'
)
==
rOldText
.
GetChar
(
nOldLen
-
1
)
,
bool
bOldHasDot
=
'.'
==
rOldText
[
nOldLen
-
1
]
,
bNewHasDot
=
sal_Unicode
(
'.'
)
==
rNewText
.
GetChar
(
nNewLen
-
1
)
;
bNewHasDot
=
'.'
==
rNewText
[
nNewLen
-
1
]
;
if
(
bOldHasDot
&&
!
bNewHasDot
if
(
bOldHasDot
&&
!
bNewHasDot
/*this is: !(bOldHasDot && bNewHasDot) && bOldHasDot*/
)
/*this is: !(bOldHasDot && bNewHasDot) && bOldHasDot*/
)
rOldText
.
Erase
(
nOldLen
-
1
);
rOldText
=
rOldText
.
copy
(
0
,
nOldLen
-
1
);
}
}
}
}
...
@@ -282,7 +282,7 @@ sal_Bool SvxSpellWrapper::SpellContinue()
...
@@ -282,7 +282,7 @@ sal_Bool SvxSpellWrapper::SpellContinue()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
SvxSpellWrapper
::
AutoCorrect
(
const
String
&
,
const
String
&
)
void
SvxSpellWrapper
::
AutoCorrect
(
const
OUString
&
,
const
OU
String
&
)
{
{
}
}
...
@@ -296,21 +296,21 @@ void SvxSpellWrapper::ScrollArea()
...
@@ -296,21 +296,21 @@ void SvxSpellWrapper::ScrollArea()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
SvxSpellWrapper
::
ChangeWord
(
const
String
&
,
const
sal_uInt16
)
void
SvxSpellWrapper
::
ChangeWord
(
const
OU
String
&
,
const
sal_uInt16
)
{
// Insert Word
{
// Insert Word
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
SvxSpellWrapper
::
ChangeThesWord
(
const
String
&
)
void
SvxSpellWrapper
::
ChangeThesWord
(
const
OU
String
&
)
{
{
// replace word due to Thesaurus.
// replace word due to Thesaurus.
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
SvxSpellWrapper
::
StartThesaurus
(
const
String
&
rWord
,
sal_uInt16
nLanguage
)
void
SvxSpellWrapper
::
StartThesaurus
(
const
OU
String
&
rWord
,
sal_uInt16
nLanguage
)
{
{
Reference
<
XThesaurus
>
xThes
(
SvxGetThesaurus
()
);
Reference
<
XThesaurus
>
xThes
(
SvxGetThesaurus
()
);
if
(
!
xThes
.
is
())
if
(
!
xThes
.
is
())
...
@@ -332,7 +332,7 @@ void SvxSpellWrapper::StartThesaurus( const String &rWord, sal_uInt16 nLanguage
...
@@ -332,7 +332,7 @@ void SvxSpellWrapper::StartThesaurus( const String &rWord, sal_uInt16 nLanguage
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
SvxSpellWrapper
::
ReplaceAll
(
const
String
&
,
sal_Int16
)
void
SvxSpellWrapper
::
ReplaceAll
(
const
OU
String
&
,
sal_Int16
)
{
// Replace Word from the Replace list
{
// Replace Word from the Replace list
}
}
...
...
include/editeng/splwrap.hxx
Dosyayı görüntüle @
0f9976f9
...
@@ -36,7 +36,7 @@ class Window;
...
@@ -36,7 +36,7 @@ class Window;
// misc functions ---------------------------------------------------------------
// misc functions ---------------------------------------------------------------
void
EDITENG_DLLPUBLIC
SvxPrepareAutoCorrect
(
String
&
rOldText
,
String
&
rNewText
);
void
EDITENG_DLLPUBLIC
SvxPrepareAutoCorrect
(
OUString
&
rOldText
,
const
OU
String
&
rNewText
);
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
Description: The SpellWrapper
Description: The SpellWrapper
...
@@ -129,19 +129,19 @@ protected:
...
@@ -129,19 +129,19 @@ protected:
virtual
void
SpellStart
(
SvxSpellArea
eSpell
);
// Preparing the area
virtual
void
SpellStart
(
SvxSpellArea
eSpell
);
// Preparing the area
virtual
sal_Bool
SpellContinue
();
// Check Areas
virtual
sal_Bool
SpellContinue
();
// Check Areas
// Result available through GetLast
// Result available through GetLast
virtual
void
ReplaceAll
(
const
String
&
rNewText
,
sal_Int16
nLanguage
);
//Replace word from the replace list
virtual
void
ReplaceAll
(
const
OU
String
&
rNewText
,
sal_Int16
nLanguage
);
//Replace word from the replace list
virtual
void
StartThesaurus
(
const
String
&
rWord
,
sal_uInt16
nLang
);
virtual
void
StartThesaurus
(
const
OU
String
&
rWord
,
sal_uInt16
nLang
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XDictionary
>
::
com
::
sun
::
star
::
linguistic2
::
XDictionary
>
GetAllRightDic
()
const
;
GetAllRightDic
()
const
;
virtual
void
SpellEnd
();
// Finish area
virtual
void
SpellEnd
();
// Finish area
virtual
void
ScrollArea
();
// Set ScrollArea
virtual
void
ScrollArea
();
// Set ScrollArea
// Replace word
// Replace word
virtual
void
ChangeWord
(
const
String
&
rNewWord
,
const
sal_uInt16
nLang
);
virtual
void
ChangeWord
(
const
OU
String
&
rNewWord
,
const
sal_uInt16
nLang
);
// Wort via Thesaurus ersetzen
// Wort via Thesaurus ersetzen
virtual
void
ChangeThesWord
(
const
String
&
rNewWord
);
virtual
void
ChangeThesWord
(
const
OU
String
&
rNewWord
);
virtual
void
SetLanguage
(
const
sal_uInt16
nLang
);
// Change Language
virtual
void
SetLanguage
(
const
sal_uInt16
nLang
);
// Change Language
virtual
void
AutoCorrect
(
const
String
&
rAktStr
,
const
String
&
rNewStr
);
virtual
void
AutoCorrect
(
const
OUString
&
rAktStr
,
const
OU
String
&
rNewStr
);
virtual
void
InsertHyphen
(
const
sal_uInt16
nPos
);
// Insert hyphen
virtual
void
InsertHyphen
(
const
sal_uInt16
nPos
);
// Insert hyphen
};
};
...
...
sw/source/ui/lingu/olmenu.cxx
Dosyayı görüntüle @
0f9976f9
...
@@ -691,8 +691,8 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
...
@@ -691,8 +691,8 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
// record only if it's NOT already present in autocorrection
// record only if it's NOT already present in autocorrection
SvxAutoCorrect
*
pACorr
=
SvxAutoCorrCfg
::
Get
().
GetAutoCorrect
();
SvxAutoCorrect
*
pACorr
=
SvxAutoCorrCfg
::
Get
().
GetAutoCorrect
();
String
aOrigWord
(
bGrammarResults
?
OUString
()
:
xSpellAlt
->
getWord
()
)
;
OU
String
aOrigWord
(
bGrammarResults
?
OUString
()
:
xSpellAlt
->
getWord
()
)
;
String
aNewWord
(
aSuggestions
[
nAltIdx
]
);
OU
String
aNewWord
(
aSuggestions
[
nAltIdx
]
);
SvxPrepareAutoCorrect
(
aOrigWord
,
aNewWord
);
SvxPrepareAutoCorrect
(
aOrigWord
,
aNewWord
);
if
(
MN_AUTOCORR_START
<=
nId
&&
nId
<=
MN_AUTOCORR_END
)
if
(
MN_AUTOCORR_START
<=
nId
&&
nId
<=
MN_AUTOCORR_END
)
...
...
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