summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-05 14:08:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-05 14:37:50 +0100
commit8f6d8d471d62f412956cb3dad339e5ab9a99dd5f (patch)
tree7a222080eb467a53c6370063ec130449d8e98be4 /vcl/inc
parent06e3724d1c166e6715455555788f5b11c310d60a (diff)
sort by grid position, then pack type, then pack position
so that focus ends up on the visually first enabled control Change-Id: Ia279c4531536305ce43eb8372abde2445769487d
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/vcl/builder.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/inc/vcl/builder.hxx b/vcl/inc/vcl/builder.hxx
index 191079151e21..246f68dd208c 100644
--- a/vcl/inc/vcl/builder.hxx
+++ b/vcl/inc/vcl/builder.hxx
@@ -121,6 +121,18 @@ private:
Window *get_by_name(OString sID);
void delete_by_name(OString sID);
+
+ class sortIntoBestTabTraversalOrder
+ : public std::binary_function<const Window*, const Window*, bool>
+ {
+ VclBuilder *m_pBuilder;
+ public:
+ sortIntoBestTabTraversalOrder(VclBuilder *pBuilder)
+ : m_pBuilder(pBuilder)
+ {
+ }
+ bool operator()(const Window *pA, const Window *pB) const;
+ };
public:
VclBuilder(Window *pParent, OUString sUIRootDir, OUString sUIFile, OString sID = OString());
~VclBuilder();