summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewstat.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-07-13 23:38:13 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-07-15 01:26:22 +0300
commit489af4ed790a233c94051d2f08e51d7c44ddba37 (patch)
treebc14552c25ac019f215f14193edf019d7ef0f68e /sw/source/uibase/uiview/viewstat.cxx
parentdac1be92f22197c9e144ef36963547c46d12e77d (diff)
Convert insert buttons to the generic controller
Change-Id: If7c6c1c5000893fca4205162526b4b4035637c11
Diffstat (limited to 'sw/source/uibase/uiview/viewstat.cxx')
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index aabd463de92d..a7d2c16a8539 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -191,42 +191,12 @@ void SwView::GetState(SfxItemSet &rSet)
rSet.DisableItem(nWhich);
}
break;
- case FN_INSERT_CTRL:
- {
- SfxImageItem aImgItem(nWhich, bWeb ? SwView::m_nWebInsertCtrlState : SwView::m_nInsertCtrlState);
- SfxSlotPool& rPool = SfxSlotPool::GetSlotPool( GetViewFrame() );
- const SfxSlot* pSlot = rPool.GetSlot( aImgItem.GetValue() );
- if(pSlot && pSlot->IsMode( SfxSlotMode::IMAGEROTATION ))
- {
- if(m_pWrtShell->IsInVerticalText())
- aImgItem.SetRotation(2700);
- if(m_pWrtShell->IsInRightToLeftText())
- aImgItem.SetMirrored(true);
- }
- rSet.Put(aImgItem);
- }
- break;
-
case FN_INSERT_OBJ_CTRL:
if( bWeb
|| m_pWrtShell->CrsrInsideInputField() )
{
rSet.DisableItem(nWhich);
}
- else
- {
- SfxImageItem aImgItem(nWhich, SwView::m_nInsertObjectCtrlState);
- SfxSlotPool& rPool = SfxSlotPool::GetSlotPool( GetViewFrame() );
- const SfxSlot* pSlot = rPool.GetSlot( aImgItem.GetValue() );
- if(pSlot && pSlot->IsMode( SfxSlotMode::IMAGEROTATION ))
- {
- if (m_pWrtShell->IsInVerticalText())
- aImgItem.SetRotation(2700);
- if (m_pWrtShell->IsInRightToLeftText())
- aImgItem.SetMirrored(true);
- }
- rSet.Put(aImgItem);
- }
break;
case FN_UPDATE_TOX: