summaryrefslogtreecommitdiff
path: root/vcl/source/window/layout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r--vcl/source/window/layout.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 981ac621aa60..db0f26397927 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -684,12 +684,16 @@ void VclButtonBox::setAllocation(const Size &rAllocation)
}
}
+namespace {
+
struct ButtonOrder
{
const char* m_aType;
int const m_nPriority;
};
+}
+
static int getButtonPriority(const OString &rType)
{
static const size_t N_TYPES = 6;
@@ -733,6 +737,8 @@ static int getButtonPriority(const OString &rType)
return -1;
}
+namespace {
+
class sortButtons
{
bool const m_bVerticalContainer;
@@ -744,6 +750,8 @@ public:
bool operator()(const vcl::Window *pA, const vcl::Window *pB) const;
};
+}
+
bool sortButtons::operator()(const vcl::Window *pA, const vcl::Window *pB) const
{
//sort into two groups of pack start and pack end
@@ -791,6 +799,8 @@ void VclButtonBox::sort_native_button_order()
BuilderUtils::reorderWithinParent(aChilds, true);
}
+namespace {
+
struct GridEntry
{
VclPtr<vcl::Window> pChild;
@@ -808,6 +818,8 @@ struct GridEntry
}
};
+}
+
typedef boost::multi_array<GridEntry, 2> array_type;
static array_type assembleGrid(const VclGrid &rGrid);