summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/csvcontrol.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-14 11:05:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-17 13:38:03 +0200
commit1e97ca02773e2ba968606eed61d25d88f0d7e417 (patch)
treefea05eb4d8162b8db030d6a970dfb12f8fadd37e /sc/source/ui/inc/csvcontrol.hxx
parentdae96d4e629c5eccaacdc763cd390d341c16175d (diff)
weld ScImportAsciiDlg
notably the csv control is always LTR even in RTL mode, but the surrounding ScrollingWindow follows the environment direction, except the horizontal scrolling widget itself must LTR scroll. Change-Id: I72ee2b9dade73a11bcc4391e755fdb02886a884d Reviewed-on: https://gerrit.libreoffice.org/80765 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/csvcontrol.hxx')
-rw-r--r--sc/source/ui/inc/csvcontrol.hxx27
1 files changed, 10 insertions, 17 deletions
diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx
index 8a5f77f3d299..a7d7a9765c9d 100644
--- a/sc/source/ui/inc/csvcontrol.hxx
+++ b/sc/source/ui/inc/csvcontrol.hxx
@@ -26,8 +26,10 @@
#include "csvsplits.hxx"
#include <com/sun/star/uno/Reference.hxx>
#include <o3tl/typed_flags_set.hxx>
+#include <rtl/ref.hxx>
+#include <vcl/customweld.hxx>
+#include "AccessibleCsvControl.hxx"
-class ScAccessibleCsvControl;
namespace com { namespace sun { namespace star { namespace accessibility {
class XAccessible;
} } } }
@@ -222,21 +224,21 @@ inline void ScCsvCmd::Set( ScCsvCmdType eType, sal_Int32 nParam1, sal_Int32 nPar
}
/** Base class for the CSV ruler and the data grid control. Implements command handling. */
-class SC_DLLPUBLIC ScCsvControl : public Control
+class SC_DLLPUBLIC ScCsvControl : public weld::CustomWidgetController
{
private:
Link<ScCsvControl&,void> maCmdHdl; /// External command handler.
ScCsvCmd maCmd; /// Data of last command.
const ScCsvLayoutData& mrData; /// Shared layout data.
- rtl::Reference<ScAccessibleCsvControl> mxAccessible; /// Reference to the accessible implementation object.
bool mbValidGfx; /// Content of virtual devices valid?
+protected:
+ rtl::Reference<ScAccessibleCsvControl> mxAccessible; /// Reference to the accessible implementation object.
+
public:
- explicit ScCsvControl( ScCsvControl& rParent );
- explicit ScCsvControl( vcl::Window* pParent, const ScCsvLayoutData& rData, WinBits nBits );
+ explicit ScCsvControl(const ScCsvLayoutData& rData);
virtual ~ScCsvControl() override;
- virtual void dispose() override;
// event handling ---------------------------------------------------------
@@ -258,6 +260,8 @@ public:
/** Sends a table model changed event for a removed column to the accessibility object. */
void AccSendRemoveColumnEvent( sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn );
+ ScAccessibleCsvControl* GetAccessible() { return mxAccessible.get(); }
+
// repaint helpers --------------------------------------------------------
/** Sets the graphic invalid (next Redraw() will not use cached graphic). */
@@ -369,17 +373,6 @@ public:
/** Returns direction code for the keys UP, DOWN, HOME, END, PAGE UP, PAGE DOWN.
@param bHomeEnd false = ignore HOME and END key. */
static ScMoveMode GetVertDirection( sal_uInt16 nCode, bool bHomeEnd );
-
- // accessibility ----------------------------------------------------------
-public:
- /** Creates and returns the accessible object of this control. Do not overwrite in
- derived classes, use ImplCreateAccessible() instead. */
- virtual css::uno::Reference< css::accessibility::XAccessible >
- CreateAccessible() override;
-
-protected:
- /** Derived classes create a new accessible object here. */
- virtual rtl::Reference<ScAccessibleCsvControl> ImplCreateAccessible() = 0;
};
#endif