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
a78ee843
Kaydet (Commit)
a78ee843
authored
May 17, 2012
tarafından
Rob Snelders
Kaydeden (comit)
Caolán McNamara
May 18, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fd0#40778 - Remove dictionary choice when adding new entry
Change-Id: Id7bd039b505d30e71065c2cdf27eba1cb466be56
üst
c867a303
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
editeng.hrc
editeng/inc/editeng.hrc
+1
-0
editview.hxx
editeng/inc/editeng/editview.hxx
+1
-0
editeng.src
editeng/source/editeng/editeng.src
+6
-0
editview.cxx
editeng/source/editeng/editview.cxx
+10
-4
No files found.
editeng/inc/editeng.hrc
Dosyayı görüntüle @
a78ee843
...
...
@@ -35,6 +35,7 @@
#define MN_AUTOCORR 4
#define MN_WORDLANGUAGE 5
#define MN_PARALANGUAGE 6
#define MN_INSERT_SINGLE 7
#define MN_ALTSTART 1000
#define MN_AUTOSTART 2000
...
...
editeng/inc/editeng/editview.hxx
Dosyayı görüntüle @
a78ee843
...
...
@@ -82,6 +82,7 @@ public: // Needed for Undo
private
:
ImpEditView
*
pImpEditView
;
String
aDicNameSingle
;
EDITENG_DLLPRIVATE
EditView
(
const
EditView
&
);
EDITENG_DLLPRIVATE
EditView
&
operator
=
(
const
EditView
&
);
...
...
editeng/source/editeng/editeng.src
Dosyayı görüntüle @
a78ee843
...
...
@@ -94,6 +94,12 @@ Menu RID_MENU_SPELL
Text [ en-US ] = "~Add" ;
};
MenuItem
{
Identifier = MN_INSERT_SINGLE ;
HelpId = HID_EDITENG_SPELLER_ADDWORD;
Text [ en-US ] = "~Add" ;
};
MenuItem
{
Identifier = MN_IGNORE ;
HelpId = HID_EDITENG_SPELLER_IGNORE;
...
...
editeng/source/editeng/editview.cxx
Dosyayı görüntüle @
a78ee843
...
...
@@ -1037,6 +1037,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
// linguistic entry above
sal_uInt16
nPos
=
MN_DICTSTART
+
i
;
pInsertMenu
->
InsertItem
(
nPos
,
xDicTmp
->
getName
()
);
aDicNameSingle
=
xDicTmp
->
getName
();
uno
::
Reference
<
lang
::
XServiceInfo
>
xSvcInfo
(
xDicTmp
,
uno
::
UNO_QUERY
);
if
(
xSvcInfo
.
is
())
...
...
@@ -1052,8 +1053,9 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
}
}
}
if
(
!
pInsertMenu
->
GetItemCount
()
)
if
(
pInsertMenu
->
GetItemCount
()
!=
1
)
aPopupMenu
.
EnableItem
(
MN_INSERT_SINGLE
,
sal_False
);
if
(
pInsertMenu
->
GetItemCount
()
<
2
)
aPopupMenu
.
EnableItem
(
MN_INSERT
,
sal_False
);
aPopupMenu
.
RemoveDisabledEntries
(
sal_True
,
sal_True
);
...
...
@@ -1121,9 +1123,13 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
pCallBack
->
Call
(
&
aInf
);
}
}
else
if
(
nId
>=
MN_DICTSTART
)
else
if
(
nId
>=
MN_DICTSTART
||
nId
==
MN_INSERT_SINGLE
)
{
String
aDicName
(
pInsertMenu
->
GetItemText
(
nId
)
);
String
aDicName
;
if
(
nId
>=
MN_DICTSTART
)
aDicName
=
pInsertMenu
->
GetItemText
(
nId
);
else
aDicName
=
aDicNameSingle
;
uno
::
Reference
<
linguistic2
::
XDictionary
>
xDic
;
if
(
xDicList
.
is
())
...
...
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