Kaydet (Commit) db546688 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Fix indentation

Change-Id: I53a967ab6ad5a6ed89dc807120dd1db540b26a92
Reviewed-on: https://gerrit.libreoffice.org/45894Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst e5ab9e7c
...@@ -77,31 +77,31 @@ void SwView::GetState(SfxItemSet &rSet) ...@@ -77,31 +77,31 @@ void SwView::GetState(SfxItemSet &rSet)
{ {
switch(nWhich) switch(nWhich)
{ {
case FN_NAV_ELEMENT: case FN_NAV_ELEMENT:
// used to update all instances of this control // used to update all instances of this control
rSet.InvalidateItem( nWhich ); rSet.InvalidateItem( nWhich );
break;
case FN_EDIT_LINK_DLG:
if( m_pWrtShell->GetLinkManager().GetLinks().empty() )
rSet.DisableItem(nWhich);
else if( m_pWrtShell->IsSelFrameMode() &&
m_pWrtShell->IsSelObjProtected(FlyProtectFlags::Content) != FlyProtectFlags::NONE)
{
rSet.DisableItem(nWhich);
}
break; break;
case FN_EDIT_LINK_DLG:
if( m_pWrtShell->GetLinkManager().GetLinks().empty() )
rSet.DisableItem(nWhich);
else if( m_pWrtShell->IsSelFrameMode() &&
m_pWrtShell->IsSelObjProtected(FlyProtectFlags::Content) != FlyProtectFlags::NONE)
{
rSet.DisableItem(nWhich);
}
break;
case SID_DRAWTBX_LINES: case SID_DRAWTBX_LINES:
if ( bWeb ) if ( bWeb )
rSet.DisableItem(nWhich); rSet.DisableItem(nWhich);
break; break;
case SID_INSERT_GRAPHIC: case SID_INSERT_GRAPHIC:
if( m_pWrtShell->CursorInsideInputField() ) if( m_pWrtShell->CursorInsideInputField() )
{ {
rSet.DisableItem(nWhich); rSet.DisableItem(nWhich);
} }
break; break;
case FN_INSERT_CAPTION: case FN_INSERT_CAPTION:
{ {
......
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