summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2016-10-13 14:54:24 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-10-13 17:29:36 +0000
commitc3f95221b83f2302778e315330ff8ccf2998a397 (patch)
tree51e7861dada8d80f883c3a581254f98a59586173 /sw/source/uibase
parentab32758ea8378b56df04fb2a47791e0379adb5a2 (diff)
tdf#101390 Add "Diagonal Line" command to the writer arrowsbar.
Change-Id: If21ea239289b985e6a7cea717b41e073bc591c62 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/29768 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/ribbar/conrect.cxx1
-rw-r--r--sw/source/uibase/ribbar/drawbase.cxx2
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx1
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx1
4 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/ribbar/conrect.cxx b/sw/source/uibase/ribbar/conrect.cxx
index 2e0542f45c15..39ccea5766ab 100644
--- a/sw/source/uibase/ribbar/conrect.cxx
+++ b/sw/source/uibase/ribbar/conrect.cxx
@@ -167,6 +167,7 @@ void ConstRectangle::Activate(const sal_uInt16 nSlotId)
case SID_LINE_SQUARE_ARROW:
case SID_LINE_ARROWS:
case SID_DRAW_LINE:
+ case SID_DRAW_XLINE:
m_pWin->SetSdrDrawMode(OBJ_LINE);
break;
diff --git a/sw/source/uibase/ribbar/drawbase.cxx b/sw/source/uibase/ribbar/drawbase.cxx
index 48526fb5a520..820a99e14052 100644
--- a/sw/source/uibase/ribbar/drawbase.cxx
+++ b/sw/source/uibase/ribbar/drawbase.cxx
@@ -621,7 +621,7 @@ Point SwDrawBase::GetDefaultCenterPos()
// #i33136#
bool SwDrawBase::doConstructOrthogonal() const
{
- return ( m_nSlotId == SID_DRAW_XPOLYGON || m_nSlotId == SID_DRAW_XPOLYGON_NOFILL );
+ return ( m_nSlotId == SID_DRAW_XPOLYGON || m_nSlotId == SID_DRAW_XPOLYGON_NOFILL || m_nSlotId == SID_DRAW_XLINE );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index 750caf8c845d..dbe74d50549a 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -253,6 +253,7 @@ void SwView::ExecDraw(SfxRequest& rReq)
case SID_LINE_SQUARE_ARROW:
case SID_LINE_ARROWS:
case SID_DRAW_LINE:
+ case SID_DRAW_XLINE:
case SID_DRAW_MEASURELINE:
case SID_DRAW_RECT:
case SID_DRAW_ELLIPSE:
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index 1de3fc75951a..3f01b803d667 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -495,6 +495,7 @@ void SwView::GetDrawState(SfxItemSet &rSet)
switch(nWhich)
{
case SID_DRAW_LINE:
+ case SID_DRAW_XLINE:
case SID_LINE_ARROW_END:
case SID_LINE_ARROW_CIRCLE:
case SID_LINE_ARROW_SQUARE: