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
808be973
Kaydet (Commit)
808be973
authored
Nis 14, 2012
tarafından
Rob Snelders
Kaydeden (comit)
Miklos Vajna
Nis 17, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#40778 Remove dictionary choice when adding new entry to the spellchecker
üst
223b9916
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
SpellDialog.cxx
cui/source/dialogs/SpellDialog.cxx
+17
-4
SpellDialog.hxx
cui/source/inc/SpellDialog.hxx
+3
-1
No files found.
cui/source/dialogs/SpellDialog.cxx
Dosyayı görüntüle @
808be973
...
@@ -324,7 +324,10 @@ void SpellDialog::Init_Impl()
...
@@ -324,7 +324,10 @@ void SpellDialog::Init_Impl()
aSuggestionLB
.
SetDoubleClickHdl
(
LINK
(
this
,
SpellDialog
,
ChangeHdl
)
);
aSuggestionLB
.
SetDoubleClickHdl
(
LINK
(
this
,
SpellDialog
,
ChangeHdl
)
);
aSentenceED
.
SetModifyHdl
(
LINK
(
this
,
SpellDialog
,
ModifyHdl
)
);
aSentenceED
.
SetModifyHdl
(
LINK
(
this
,
SpellDialog
,
ModifyHdl
)
);
aAddToDictMB
.
SetSelectHdl
(
LINK
(
this
,
SpellDialog
,
AddToDictionaryHdl
)
);
aAddToDictMB
.
SetMenuMode
(
MENUBUTTON_MENUMODE_TIMED
);
aAddToDictMB
.
SetSelectHdl
(
LINK
(
this
,
SpellDialog
,
AddToDictSelectHdl
)
);
aAddToDictMB
.
SetClickHdl
(
LINK
(
this
,
SpellDialog
,
AddToDictClickHdl
)
);
aLanguageLB
.
SetSelectHdl
(
LINK
(
this
,
SpellDialog
,
LanguageSelectHdl
)
);
aLanguageLB
.
SetSelectHdl
(
LINK
(
this
,
SpellDialog
,
LanguageSelectHdl
)
);
aExplainLink
.
SetClickHdl
(
LINK
(
this
,
SpellDialog
,
HandleHyperlink
)
);
aExplainLink
.
SetClickHdl
(
LINK
(
this
,
SpellDialog
,
HandleHyperlink
)
);
...
@@ -1003,7 +1006,19 @@ void SpellDialog::InitUserDicts()
...
@@ -1003,7 +1006,19 @@ void SpellDialog::InitUserDicts()
}
}
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
IMPL_LINK
(
SpellDialog
,
AddToDictionaryHdl
,
MenuButton
*
,
pButton
)
IMPL_LINK
(
SpellDialog
,
AddToDictClickHdl
,
MenuButton
*
,
pButton
)
{
return
AddToDictionaryExecute
(
1
,
pButton
->
GetPopupMenu
());
}
//-----------------------------------------------------------------------
IMPL_LINK
(
SpellDialog
,
AddToDictSelectHdl
,
MenuButton
*
,
pButton
)
{
return
AddToDictionaryExecute
(
pButton
->
GetCurItemId
(),
pButton
->
GetPopupMenu
());
}
//-----------------------------------------------------------------------
int
SpellDialog
::
AddToDictionaryExecute
(
sal_uInt16
nItemId
,
PopupMenu
*
pMenu
)
{
{
aSentenceED
.
UndoActionStart
(
SPELLUNDO_CHANGE_GROUP
);
aSentenceED
.
UndoActionStart
(
SPELLUNDO_CHANGE_GROUP
);
...
@@ -1011,8 +1026,6 @@ IMPL_LINK(SpellDialog, AddToDictionaryHdl, MenuButton*, pButton )
...
@@ -1011,8 +1026,6 @@ IMPL_LINK(SpellDialog, AddToDictionaryHdl, MenuButton*, pButton )
//manually changed
//manually changed
const
String
aNewWord
=
aSentenceED
.
GetErrorText
();
const
String
aNewWord
=
aSentenceED
.
GetErrorText
();
sal_uInt16
nItemId
=
pButton
->
GetCurItemId
();
PopupMenu
*
pMenu
=
pButton
->
GetPopupMenu
();
String
aDicName
(
pMenu
->
GetItemText
(
nItemId
)
);
String
aDicName
(
pMenu
->
GetItemText
(
nItemId
)
);
uno
::
Reference
<
linguistic2
::
XDictionary
>
xDic
;
uno
::
Reference
<
linguistic2
::
XDictionary
>
xDic
;
...
...
cui/source/inc/SpellDialog.hxx
Dosyayı görüntüle @
808be973
...
@@ -212,13 +212,15 @@ private:
...
@@ -212,13 +212,15 @@ private:
DECL_LINK
(
CancelHdl
,
void
*
);
DECL_LINK
(
CancelHdl
,
void
*
);
DECL_LINK
(
ModifyHdl
,
SentenceEditWindow_Impl
*
);
DECL_LINK
(
ModifyHdl
,
SentenceEditWindow_Impl
*
);
DECL_LINK
(
UndoHdl
,
void
*
);
DECL_LINK
(
UndoHdl
,
void
*
);
DECL_LINK
(
AddToDictionaryHdl
,
MenuButton
*
);
DECL_LINK
(
AddToDictSelectHdl
,
MenuButton
*
);
DECL_LINK
(
AddToDictClickHdl
,
MenuButton
*
);
DECL_LINK
(
LanguageSelectHdl
,
SvxLanguageBox
*
);
DECL_LINK
(
LanguageSelectHdl
,
SvxLanguageBox
*
);
DECL_LINK
(
DialogUndoHdl
,
SpellUndoAction_Impl
*
);
DECL_LINK
(
DialogUndoHdl
,
SpellUndoAction_Impl
*
);
DECL_LINK
(
HandleHyperlink
,
svt
::
FixedHyperlink
*
);
DECL_LINK
(
HandleHyperlink
,
svt
::
FixedHyperlink
*
);
DECL_STATIC_LINK
(
SpellDialog
,
InitHdl
,
SpellDialog
*
);
DECL_STATIC_LINK
(
SpellDialog
,
InitHdl
,
SpellDialog
*
);
int
AddToDictionaryExecute
(
sal_uInt16
ItemId
,
PopupMenu
*
pMenu
);
void
StartSpellOptDlg_Impl
();
void
StartSpellOptDlg_Impl
();
void
InitUserDicts
();
void
InitUserDicts
();
void
UpdateBoxes_Impl
();
void
UpdateBoxes_Impl
();
...
...
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