Kaydet (Commit) fb56de2e authored tarafından Noel Grandin's avatar Noel Grandin

remove unused RulerBorderStyle enum values

Change-Id: I4f10e323293485e7a1969fd4c80873aa05971e6c
Reviewed-on: https://gerrit.libreoffice.org/64084
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst e54d65de
......@@ -486,10 +486,6 @@ include/svtools/ivctrl.hxx:45
enum SvxIconViewFlags DROP_TARGET
include/svtools/ivctrl.hxx:46
enum SvxIconViewFlags BLOCK_EMPHASIS
include/svtools/ruler.hxx:506
enum RulerBorderStyle Snap
include/svtools/ruler.hxx:507
enum RulerBorderStyle Margin
include/svtools/table/tablemodel.hxx:48
enum ColumnAttributeGroup ALL
include/svx/EnhancedCustomShapeGeometry.hxx:46
......
......@@ -503,12 +503,10 @@ enum class RulerBorderStyle {
Moveable = 0x0002,
Variable = 0x0004,
Table = 0x0008,
Snap = 0x0010,
Margin = 0x0020,
Invisible = 0x0040
};
namespace o3tl {
template<> struct typed_flags<RulerBorderStyle> : is_typed_flags<RulerBorderStyle, 0x007f> {};
template<> struct typed_flags<RulerBorderStyle> : is_typed_flags<RulerBorderStyle, 0x004f> {};
}
struct RulerBorder
......
......@@ -725,18 +725,11 @@ void Ruler::ImplDrawBorders(vcl::RenderContext& rRenderContext, long nMin, long
n = n1 + ((n2 - n1) / 2);
rRenderContext.SetLineColor(rStyleSettings.GetShadowColor());
if (mpData->pBorders[i].nStyle & RulerBorderStyle::Snap)
ImplVDrawLine(rRenderContext, n, nVirTop, n, nVirBottom);
else if (mpData->pBorders[i].nStyle & RulerBorderStyle::Margin)
ImplVDrawLine(rRenderContext, n, nVirTop, n, nVirBottom);
else
{
ImplVDrawLine(rRenderContext, n - 1, nVirTop, n - 1, nVirBottom);
ImplVDrawLine(rRenderContext, n + 1, nVirTop, n + 1, nVirBottom);
rRenderContext.SetLineColor();
rRenderContext.SetFillColor(rStyleSettings.GetWindowColor());
ImplVDrawRect(rRenderContext, n, nVirTop, n, nVirBottom);
}
ImplVDrawLine(rRenderContext, n - 1, nVirTop, n - 1, nVirBottom);
ImplVDrawLine(rRenderContext, n + 1, nVirTop, n + 1, nVirBottom);
rRenderContext.SetLineColor();
rRenderContext.SetFillColor(rStyleSettings.GetWindowColor());
ImplVDrawRect(rRenderContext, n, nVirTop, n, nVirBottom);
}
}
}
......
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