Kaydet (Commit) 6cd775cc authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

Scope breaks; and add number comments to SwFieldIds

SwFieldIds is fixed, so add number comments to easier find the ID
in the long list.

Change-Id: I2b9fc00bd0ddc15fc327324c2895810d61e2870e
Reviewed-on: https://gerrit.libreoffice.org/60795
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst bb26bd61
...@@ -43,7 +43,7 @@ enum class SwFieldIds : sal_uInt16 { ...@@ -43,7 +43,7 @@ enum class SwFieldIds : sal_uInt16 {
Author, Author,
Chapter, Chapter,
DocStat, DocStat,
GetExp, GetExp, // 10
SetExp, SetExp,
GetRef, GetRef,
HiddenText, HiddenText,
...@@ -53,7 +53,7 @@ enum class SwFieldIds : sal_uInt16 { ...@@ -53,7 +53,7 @@ enum class SwFieldIds : sal_uInt16 {
Reg, Reg,
VarReg, VarReg,
SetRef, SetRef,
Input, Input, // 20
Macro, Macro,
Dde, Dde,
Table, Table,
...@@ -63,7 +63,7 @@ enum class SwFieldIds : sal_uInt16 { ...@@ -63,7 +63,7 @@ enum class SwFieldIds : sal_uInt16 {
DbNextSet, DbNextSet,
DbNumSet, DbNumSet,
DbSetNumber, DbSetNumber,
ExtUser, ExtUser, // 30
RefPageSet, RefPageSet,
RefPageGet, RefPageGet,
Internet, Internet,
...@@ -73,7 +73,7 @@ enum class SwFieldIds : sal_uInt16 { ...@@ -73,7 +73,7 @@ enum class SwFieldIds : sal_uInt16 {
TableOfAuthorities, TableOfAuthorities,
CombinedChars, CombinedChars,
Dropdown, Dropdown,
ParagraphSignature, ParagraphSignature, // 40
LAST = ParagraphSignature, LAST = ParagraphSignature,
Unknown = USHRT_MAX, // used as default value in some method calls Unknown = USHRT_MAX, // used as default value in some method calls
......
...@@ -160,8 +160,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) ...@@ -160,8 +160,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
sText = OStringToOUString(OString::number( sText = OStringToOUString(OString::number(
static_cast<const SwTableBoxValue*>(aContentAtPos.aFnd.pAttr)->GetValue()), static_cast<const SwTableBoxValue*>(aContentAtPos.aFnd.pAttr)->GetValue()),
osl_getThreadTextEncoding()); osl_getThreadTextEncoding());
break;
} }
break;
case IsAttrAtPos::CurrAttrs: case IsAttrAtPos::CurrAttrs:
sText = aContentAtPos.sStr; sText = aContentAtPos.sStr;
break; break;
...@@ -241,8 +241,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) ...@@ -241,8 +241,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
aModStr = aModStr.replaceFirst(aCode.GetName(), ""); aModStr = aModStr.replaceFirst(aCode.GetName(), "");
aModStr = aModStr.replaceAll("+", ""); aModStr = aModStr.replaceAll("+", "");
sText = SwResId(STR_SMARTTAG_CLICK).replaceAll("%s", aModStr); sText = SwResId(STR_SMARTTAG_CLICK).replaceAll("%s", aModStr);
break;
} }
break;
case IsAttrAtPos::Ftn: case IsAttrAtPos::Ftn:
if( aContentAtPos.pFndTextAttr && aContentAtPos.aFnd.pAttr ) if( aContentAtPos.pFndTextAttr && aContentAtPos.aFnd.pAttr )
...@@ -264,8 +264,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) ...@@ -264,8 +264,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
const bool bShowInlineTooltips = rSh.GetViewOptions()->IsShowInlineTooltips(); const bool bShowInlineTooltips = rSh.GetViewOptions()->IsShowInlineTooltips();
if ( bShowTrackChanges && bShowInlineTooltips ) if ( bShowTrackChanges && bShowInlineTooltips )
sText = lcl_GetRedlineHelp(*aContentAtPos.aFnd.pRedl, bBalloon); sText = lcl_GetRedlineHelp(*aContentAtPos.aFnd.pRedl, bBalloon);
break;
} }
break;
case IsAttrAtPos::ToxMark: case IsAttrAtPos::ToxMark:
sText = aContentAtPos.sStr; sText = aContentAtPos.sStr;
...@@ -280,6 +280,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) ...@@ -280,6 +280,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
} }
} }
break; break;
case IsAttrAtPos::RefMark: case IsAttrAtPos::RefMark:
if(aContentAtPos.aFnd.pAttr) if(aContentAtPos.aFnd.pAttr)
{ {
...@@ -357,8 +358,9 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) ...@@ -357,8 +358,9 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
sText = static_cast<const SwGetRefField*>(pField)->GetSetRefName(); sText = static_cast<const SwGetRefField*>(pField)->GetSetRefName();
} }
} }
break;
} }
break;
default: break; default: break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment