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
eb9c04ed
Kaydet (Commit)
eb9c04ed
authored
Mar 25, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SPELLCMD_ constants to enum class
Change-Id: I0f57a60a44ddac63a73e0bb35df59b3b25857d43
üst
7dd09f07
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
20 deletions
+23
-20
editview.cxx
editeng/source/editeng/editview.cxx
+4
-4
editstat.hxx
include/editeng/editstat.hxx
+12
-9
gridwin.cxx
sc/source/ui/view/gridwin.cxx
+1
-1
drawdoc4.cxx
sd/source/core/drawdoc4.cxx
+4
-4
SidebarTxtControl.cxx
sw/source/uibase/docvw/SidebarTxtControl.cxx
+1
-1
viewdraw.cxx
sw/source/uibase/uiview/viewdraw.cxx
+1
-1
No files found.
editeng/source/editeng/editview.cxx
Dosyayı görüntüle @
eb9c04ed
...
...
@@ -938,7 +938,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
OUString
aWord
=
pImpEditView
->
SpellIgnoreOrAddWord
(
false
);
if
(
pCallBack
)
{
SpellCallbackInfo
aInf
(
S
PELLCMD_
IGNOREWORD
,
aWord
);
SpellCallbackInfo
aInf
(
S
pellCallbackCommand
::
IGNOREWORD
,
aWord
);
pCallBack
->
Call
(
&
aInf
);
}
SetSelection
(
aOldSel
);
...
...
@@ -967,7 +967,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
if
(
pCallBack
)
{
SpellCallbackInfo
aInf
(
(
nId
==
MN_WORDLANGUAGE
)
?
S
PELLCMD_WORDLANGUAGE
:
SPELLCMD_
PARALANGUAGE
,
nLangToUse
);
SpellCallbackInfo
aInf
(
(
nId
==
MN_WORDLANGUAGE
)
?
S
pellCallbackCommand
::
WORDLANGUAGE
:
SpellCallbackCommand
::
PARALANGUAGE
,
nLangToUse
);
pCallBack
->
Call
(
&
aInf
);
}
SetSelection
(
aOldSel
);
...
...
@@ -986,7 +986,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
}
else
{
SpellCallbackInfo
aInf
(
S
PELLCMD_
STARTSPELLDLG
,
OUString
()
);
SpellCallbackInfo
aInf
(
S
pellCallbackCommand
::
STARTSPELLDLG
,
OUString
()
);
pCallBack
->
Call
(
&
aInf
);
}
}
...
...
@@ -1014,7 +1014,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
if
(
pCallBack
)
{
SpellCallbackInfo
aInf
(
S
PELLCMD_
ADDTODICTIONARY
,
aSelected
);
SpellCallbackInfo
aInf
(
S
pellCallbackCommand
::
ADDTODICTIONARY
,
aSelected
);
pCallBack
->
Call
(
&
aInf
);
}
SetSelection
(
aOldSel
);
...
...
include/editeng/editstat.hxx
Dosyayı görüntüle @
eb9c04ed
...
...
@@ -138,26 +138,29 @@ public:
sal_Int32
&
GetPrevParagraph
()
{
return
nPrevPara
;
}
};
#define SPELLCMD_IGNOREWORD 0x0001
#define SPELLCMD_STARTSPELLDLG 0x0002
#define SPELLCMD_ADDTODICTIONARY 0x0003
#define SPELLCMD_WORDLANGUAGE 0x0004
#define SPELLCMD_PARALANGUAGE 0x0005
enum
class
SpellCallbackCommand
{
IGNOREWORD
=
0x0001
,
STARTSPELLDLG
=
0x0002
,
ADDTODICTIONARY
=
0x0003
,
WORDLANGUAGE
=
0x0004
,
PARALANGUAGE
=
0x0005
,
};
struct
SpellCallbackInfo
{
sal_uInt16
nCommand
;
SpellCallbackCommand
nCommand
;
OUString
aWord
;
LanguageType
eLanguage
;
SpellCallbackInfo
(
sal_uInt16
nCMD
,
const
OUString
&
rWord
)
:
aWord
(
rWord
)
SpellCallbackInfo
(
SpellCallbackCommand
nCMD
,
const
OUString
&
rWord
)
:
aWord
(
rWord
)
{
nCommand
=
nCMD
;
eLanguage
=
LANGUAGE_DONTKNOW
;
}
SpellCallbackInfo
(
sal_uInt16
nCMD
,
LanguageType
eLang
)
SpellCallbackInfo
(
SpellCallbackCommand
nCMD
,
LanguageType
eLang
)
{
nCommand
=
nCMD
;
eLanguage
=
eLang
;
...
...
sc/source/ui/view/gridwin.cxx
Dosyayı görüntüle @
eb9c04ed
...
...
@@ -554,7 +554,7 @@ IMPL_LINK_NOARG(ScGridWindow, PopupModeEndHdl)
IMPL_LINK
(
ScGridWindow
,
PopupSpellingHdl
,
SpellCallbackInfo
*
,
pInfo
)
{
if
(
pInfo
->
nCommand
==
S
PELLCMD_
STARTSPELLDLG
)
if
(
pInfo
->
nCommand
==
S
pellCallbackCommand
::
STARTSPELLDLG
)
pViewData
->
GetDispatcher
().
Execute
(
SID_SPELL_DIALOG
,
SfxCallMode
::
ASYNCHRON
);
return
0
;
}
...
...
sd/source/core/drawdoc4.cxx
Dosyayı görüntüle @
eb9c04ed
...
...
@@ -973,11 +973,11 @@ void SdDrawDocument::ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject*
delete
mpOnlineSearchItem
;
mpOnlineSearchItem
=
NULL
;
sal_uInt16
nCommand
=
pInfo
->
nCommand
;
SpellCallbackCommand
nCommand
=
pInfo
->
nCommand
;
if
(
nCommand
==
S
PELLCMD_
IGNOREWORD
if
(
nCommand
==
S
pellCallbackCommand
::
IGNOREWORD
// restart when add to dictionary takes place, too.
||
nCommand
==
S
PELLCMD_
ADDTODICTIONARY
)
||
nCommand
==
S
pellCallbackCommand
::
ADDTODICTIONARY
)
{
if
(
pObj
&&
pOutl
&&
pObj
->
ISA
(
SdrTextObj
))
{
...
...
@@ -991,7 +991,7 @@ void SdDrawDocument::ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject*
mpOnlineSearchItem
->
SetSearchString
(
pInfo
->
aWord
);
StartOnlineSpelling
();
}
else
if
(
nCommand
==
S
PELLCMD_
STARTSPELLDLG
)
else
if
(
nCommand
==
S
pellCallbackCommand
::
STARTSPELLDLG
)
{
SfxViewFrame
::
Current
()
->
GetDispatcher
()
->
Execute
(
SID_SPELL_DIALOG
,
SfxCallMode
::
ASYNCHRON
);
...
...
sw/source/uibase/docvw/SidebarTxtControl.cxx
Dosyayı görüntüle @
eb9c04ed
...
...
@@ -321,7 +321,7 @@ void SidebarTxtControl::MouseButtonUp( const MouseEvent& rMEvt )
IMPL_LINK
(
SidebarTxtControl
,
OnlineSpellCallback
,
SpellCallbackInfo
*
,
pInfo
)
{
if
(
pInfo
->
nCommand
==
S
PELLCMD_
STARTSPELLDLG
)
if
(
pInfo
->
nCommand
==
S
pellCallbackCommand
::
STARTSPELLDLG
)
{
mrDocView
.
GetViewFrame
()
->
GetDispatcher
()
->
Execute
(
FN_SPELL_GRAMMAR_DIALOG
,
SfxCallMode
::
ASYNCHRON
);
}
...
...
sw/source/uibase/uiview/viewdraw.cxx
Dosyayı görüntüle @
eb9c04ed
...
...
@@ -721,7 +721,7 @@ bool SwView::HasOnlyObj(SdrObject *pSdrObj, sal_uInt32 eObjInventor) const
//#i87414# mod
IMPL_LINK
(
SwView
,
OnlineSpellCallback
,
SpellCallbackInfo
*
,
pInfo
)
{
if
(
pInfo
->
nCommand
==
S
PELLCMD_
STARTSPELLDLG
)
if
(
pInfo
->
nCommand
==
S
pellCallbackCommand
::
STARTSPELLDLG
)
GetViewFrame
()
->
GetDispatcher
()
->
Execute
(
FN_SPELL_GRAMMAR_DIALOG
,
SfxCallMode
::
ASYNCHRON
);
return
0
;
}
...
...
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