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
94fc0b47
Kaydet (Commit)
94fc0b47
authored
Nis 29, 2014
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
prevent duplicated redline accept/reject spellcheck popup items
Change-Id: Ib7bd7e471b017f7e09a447f987ab7ce8bf506b53
üst
aea15180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
olmenu.cxx
sw/source/core/uibase/lingu/olmenu.cxx
+6
-3
No files found.
sw/source/core/uibase/lingu/olmenu.cxx
Dosyayı görüntüle @
94fc0b47
...
...
@@ -607,15 +607,13 @@ void SwSpellPopup::checkRedline()
// Build an item set that contains a void item for each menu entry. The
// WhichId of each item is set, so SwView may clear it.
static
const
sal_uInt16
pRedlineIds
[]
=
{
FN_REDLINE_ACCEPT_DIRECT
,
FN_REDLINE_REJECT_DIRECT
,
FN_REDLINE_NEXT_CHANGE
,
FN_REDLINE_PREV_CHANGE
,
FN_REDLINE_ACCEPT_DIRECT_SELECTION
,
FN_REDLINE_REJECT_DIRECT_SELECTION
};
SwDoc
*
pDoc
=
m_pSh
->
GetDoc
();
SfxItemSet
aSet
(
pDoc
->
GetAttrPool
(),
FN_REDLINE_
ACCEPT_DIRECT
,
FN_REDLINE_REJECT_DIRECT_SELECTION
);
SfxItemSet
aSet
(
pDoc
->
GetAttrPool
(),
FN_REDLINE_
NEXT_CHANGE
,
FN_REDLINE_REJECT_DIRECT_SELECTION
);
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
pRedlineIds
);
++
i
)
{
const
sal_uInt16
nWhich
=
pRedlineIds
[
i
];
...
...
@@ -630,6 +628,11 @@ void SwSpellPopup::checkRedline()
const
sal_uInt16
nWhich
=
pRedlineIds
[
i
];
EnableItem
(
nWhich
,
aSet
.
Get
(
nWhich
).
Which
());
}
// Spellcheck popup selects the whole word, so xxx_SELECTION items would be enabled if needed,
// and there would be needless duplicates (and if only a part of the word is redlined,
// these might not work anyway).
EnableItem
(
FN_REDLINE_ACCEPT_DIRECT
,
false
);
EnableItem
(
FN_REDLINE_REJECT_DIRECT
,
false
);
}
sal_uInt16
SwSpellPopup
::
Execute
(
const
Rectangle
&
rWordPos
,
Window
*
pWin
)
...
...
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