diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-27 23:19:53 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 01:38:15 +0200 |
commit | a630c368f791a178e068fac542c00086ae594c2a (patch) | |
tree | 89ff674f4101d4f77e1cf37f35779e76c3797f44 /starmath/inc/ElementsDockingWindow.hxx | |
parent | 22f4843900bd7ca1648f2fde2b9b94d0f93c70a7 (diff) |
Resolves: fdo#65583 Elements Dock window needs scroll bar
Based on the patch on Bugzilla by
Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Change-Id: I215b83894f228b1cc8908f98858b85c8d5378ddb
Diffstat (limited to 'starmath/inc/ElementsDockingWindow.hxx')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index 752954e44a99..e2ab95c9ab0f 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -16,11 +16,14 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ + #ifndef INCLUDED_STARMATH_INC_ELEMENTSDOCKINGWINDOW_HXX #define INCLUDED_STARMATH_INC_ELEMENTSDOCKINGWINDOW_HXX +#include <boost/scoped_ptr.hpp> #include <sfx2/dockwin.hxx> #include <svx/dlgctrl.hxx> +#include <vcl/scrbar.hxx> #include <document.hxx> #include <node.hxx> @@ -67,7 +70,6 @@ public: class SmElementsControl : public Control { - static const sal_uInt16 aUnaryBinaryOperatorsList[][2]; static const sal_uInt16 aRelationsList[][2]; static const sal_uInt16 aSetOperations[][2]; @@ -95,6 +97,7 @@ class SmElementsControl : public Control SmElementList maElementList; Size maMaxElementDimensions; bool mbVerticalMode; + boost::scoped_ptr< ScrollBar > mpScroll; void addElement(const OUString& aElementVisual, const OUString& aElementSource, const OUString& aHelpText); @@ -113,6 +116,9 @@ public: void setVerticalMode(bool bVertical); void SetSelectHdl(const Link& rLink) { aSelectHdlLink = rLink; } + + DECL_LINK( ScrollHdl, void* ); + void DoScroll(long nDelta); }; class SmElementsDockingWindow : public SfxDockingWindow @@ -151,7 +157,6 @@ protected: virtual ~SmElementsDockingWindowWrapper(); }; - -#endif // _SYMBOLDOCKINGWINDOW_HXX_ +#endif // INCLUDED_STARMATH_INC_ELEMENTSDOCKINGWINDOW_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |