diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-22 16:31:49 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-22 19:58:32 -0500 |
commit | 3d9545757246c20d261db0723f70dd91f92d3519 (patch) | |
tree | 75b7f96dc0a081d1cc5d1356523dc37d01dc08a9 /include/svtools/ctrlbox.hxx | |
parent | dabf147d1d7e892ce07202fbe89a584f0d592a62 (diff) |
Only allow approved border styles in cell borders.
Line styles such as inset, outset, embossed etc are not supportable in Calc.
So, don't show them in the UI.
Change-Id: Ie7be74193d01e13a79132a979e2d9a2e4d06de3f
Diffstat (limited to 'include/svtools/ctrlbox.hxx')
-rw-r--r-- | include/svtools/ctrlbox.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 29fee682a516..6b8cc8fed78a 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -310,6 +310,9 @@ class SVT_DLLPUBLIC LineListBox : public ListBox sal_uInt16 GetStylePos( sal_uInt16 nListPos, long nWidth ); public: + typedef Color (*ColorFunc)(Color); + typedef Color (*ColorDistFunc)(Color, Color); + LineListBox( Window* pParent, WinBits nWinStyle = WB_BORDER ); virtual ~LineListBox(); @@ -323,9 +326,9 @@ public: /** Insert a listbox entry with all widths in Twips. */ void InsertEntry( BorderWidthImpl aWidthImpl, sal_uInt16 nStyle, long nMinWidth = 0, - Color (*pColor1Fn)(Color) = &sameColor, - Color (*pColor2Fn)( Color ) = &sameColor, - Color (*pColorDistFn)( Color, Color ) = &sameDistColor ); + ColorFunc pColor1Fn = &sameColor, + ColorFunc pColor2Fn = &sameColor, + ColorDistFunc pColorDistFn = &sameDistColor ); using ListBox::RemoveEntry; virtual void RemoveEntry( sal_uInt16 nPos ); |