summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-25 12:13:52 +0200
committerNoel Grandin <noel@peralex.com>2015-03-25 12:14:12 +0200
commiteb9c04ed215f9b12584c6e254c36303c6b3865ed (patch)
treee0bed2cc0a5591321c49fd7f54a31e02a2aea75b /sd
parent7dd09f07a12affb8da0afd731ec2a99575a51e2e (diff)
convert SPELLCMD_ constants to enum class
Change-Id: I0f57a60a44ddac63a73e0bb35df59b3b25857d43
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc4.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 48ac39eb684d..1c2b66cd069a 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -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 == SPELLCMD_IGNOREWORD
+ if (nCommand == SpellCallbackCommand::IGNOREWORD
// restart when add to dictionary takes place, too.
- || nCommand == SPELLCMD_ADDTODICTIONARY)
+ || nCommand == SpellCallbackCommand::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 == SPELLCMD_STARTSPELLDLG)
+ else if (nCommand == SpellCallbackCommand::STARTSPELLDLG)
{
SfxViewFrame::Current()->GetDispatcher()->Execute( SID_SPELL_DIALOG,
SfxCallMode::ASYNCHRON );