LibreOffice Module vcl (master) 1
|
#include <sal/config.h>
#include <config_libcxx.h>
#include <string_view>
#include <config_features.h>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <comphelper/base64.hxx>
#include <comphelper/lok.hxx>
#include <o3tl/enumarray.hxx>
#include <o3tl/enumrange.hxx>
#include <o3tl/string_view.hxx>
#include <tools/stream.hxx>
#include <utility>
#include <vcl/builder.hxx>
#include <vcl/toolkit/button.hxx>
#include <vcl/cvtgrf.hxx>
#include <vcl/decoview.hxx>
#include <vcl/help.hxx>
#include <vcl/toolkit/dialog.hxx>
#include <vcl/layout.hxx>
#include <vcl/toolkit/scrbar.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/split.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/virdev.hxx>
#include <bitmaps.hlst>
#include <messagedialog.hxx>
#include <svdata.hxx>
#include <window.h>
#include <boost/multi_array.hpp>
#include <vcl/toolkit/vclmedit.hxx>
#include <vcl/uitest/uiobject.hxx>
#include <sal/log.hxx>
#include <tools/json_writer.hxx>
Go to the source code of this file.
Classes | |
class | DisclosureButton |
Macros | |
#define | DEFAULT_CHILD_MIN_WIDTH 85 |
#define | DEFAULT_CHILD_MIN_HEIGHT 27 |
Typedefs | |
typedef boost::multi_array< GridEntry, 2 > | array_type |
Functions | |
static tools::Long | getMaxNonOutlier (const std::vector< tools::Long > &rG, tools::Long nAvgDimension) |
static std::vector< tools::Long > | setButtonSizes (const std::vector< tools::Long > &rG, const std::vector< bool > &rNonHomogeneous, tools::Long nAvgDimension, tools::Long nMaxNonOutlier, tools::Long nMinWidth) |
static int | getButtonPriority (std::u16string_view rType) |
void | sort_native_button_order (const VclBox &rContainer) |
static array_type | assembleGrid (const VclGrid &rGrid) |
static bool | isNullGrid (const array_type &A) |
static void | calcMaxs (const array_type &A, std::vector< VclGrid::Value > &rWidths, std::vector< VclGrid::Value > &rHeights) |
static bool | compareValues (const VclGrid::Value &i, const VclGrid::Value &j) |
static VclGrid::Value | accumulateValues (const VclGrid::Value &i, const VclGrid::Value &j) |
bool | toBool (std::u16string_view rValue) |
IMPL_LINK (VclFrame, WindowEventListener, VclWindowEvent &, rEvent, void) | |
IMPL_LINK (VclExpander, ClickHdl, CheckBox &, rBtn, void) | |
IMPL_LINK_NOARG (VclScrolledWindow, ScrollBarHdl, ScrollBar *, void) | |
IMPL_LINK (VclVPaned, SplitHdl, Splitter *, pSplitter, void) | |
IMPL_LINK (VclHPaned, SplitHdl, Splitter *, pSplitter, void) | |
Size | getLegacyBestSizeForChildren (const vcl::Window &rWindow) |
vcl::Window * | getNonLayoutParent (vcl::Window *pWindow) |
bool | isVisibleInLayout (const vcl::Window *pWindow) |
bool | isEnabledInLayout (const vcl::Window *pWindow) |
bool | isLayoutEnabled (const vcl::Window *pWindow) |
#define DEFAULT_CHILD_MIN_HEIGHT 27 |
Definition at line 419 of file layout.cxx.
#define DEFAULT_CHILD_MIN_WIDTH 85 |
Definition at line 418 of file layout.cxx.
typedef boost::multi_array<GridEntry, 2> array_type |
Definition at line 898 of file layout.cxx.
|
static |
Definition at line 1211 of file layout.cxx.
References i, VclGrid::Value::m_bExpand, and VclGrid::Value::m_nValue.
Referenced by VclGrid::calculateRequisitionForSpacings().
|
static |
Definition at line 904 of file layout.cxx.
References A, B, FirstChild, VclGrid::get_column_homogeneous(), VclGrid::get_row_homogeneous(), vcl::Window::GetWindow(), vcl::Window::IsVisible(), Next, x, and y.
Referenced by VclGrid::calculateRequisitionForSpacings(), and VclGrid::setAllocation().
|
static |
Definition at line 1074 of file layout.cxx.
References A, vcl::Window::get_hexpand(), vcl::Window::get_vexpand(), VclContainer::getLayoutRequisition(), Size::Height(), vcl::Window::IsVisible(), Size::Width(), x, and y.
Referenced by VclGrid::calculateRequisitionForSpacings(), and VclGrid::setAllocation().
|
static |
Definition at line 1206 of file layout.cxx.
References i, and VclGrid::Value::m_nValue.
Referenced by VclGrid::calculateRequisitionForSpacings().
|
static |
Definition at line 772 of file layout.cxx.
References Application::GetDesktopEnvironment(), i, and u.
Size getLegacyBestSizeForChildren | ( | const vcl::Window & | rWindow | ) |
Definition at line 2943 of file layout.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), FirstChild, vcl::Window::GetPosPixel(), tools::Rectangle::GetSize(), vcl::Window::GetSizePixel(), vcl::Window::GetWindow(), tools::Rectangle::IsEmpty(), vcl::Window::IsVisible(), Next, tools::Rectangle::TopLeft(), tools::Rectangle::Union(), Point::X(), and Point::Y().
Referenced by TabPage::GetOptimalSize().
|
static |
Definition at line 453 of file layout.cxx.
Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().
vcl::Window * getNonLayoutParent | ( | vcl::Window * | pWindow | ) |
Definition at line 2968 of file layout.cxx.
References vcl::Window::GetParent(), and isContainerWindow().
Referenced by OKButton::Click(), CancelButton::Click(), ImplGetTopParentOfTabHierarchy(), and ImplHasIndirectTabParent().
IMPL_LINK | ( | VclExpander | , |
ClickHdl | , | ||
CheckBox & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 1850 of file layout.cxx.
References SystemWindow::setOptimalLayoutSize(), and vcl::Window::Show().
IMPL_LINK | ( | VclFrame | , |
WindowEventListener | , | ||
VclWindowEvent & | , | ||
rEvent | , | ||
void | |||
) |
Definition at line 1521 of file layout.cxx.
References ObjectDying.
Definition at line 2830 of file layout.cxx.
References Size::Width().
Definition at line 2711 of file layout.cxx.
References Size::Height().
IMPL_LINK_NOARG | ( | VclScrolledWindow | , |
ScrollBarHdl | , | ||
ScrollBar * | , | ||
void | |||
) |
Definition at line 1908 of file layout.cxx.
References FirstChild, vcl::Window::GetWindow(), and vcl::Window::SetPosPixel().
bool isEnabledInLayout | ( | const vcl::Window * | pWindow | ) |
Definition at line 2992 of file layout.cxx.
References vcl::Window::GetParent(), isContainerWindow(), and vcl::Window::IsEnabled().
Referenced by Dialog::GetFirstControlForFocus(), ImplGetChildWindow(), and vcl::Window::ImplGetDlgWindow().
bool isLayoutEnabled | ( | const vcl::Window * | pWindow | ) |
Definition at line 3005 of file layout.cxx.
References FirstChild, vcl::Window::GetWindow(), isContainerWindow(), and Next.
Referenced by SystemWindow::DoInitialLayout(), NotebookBar::GetOptimalSize(), SystemWindow::GetOptimalSize(), TabPage::GetOptimalSize(), IMPL_LINK_NOARG(), isContainerWindow(), SystemWindow::isLayoutEnabled(), SystemWindow::queue_resize(), TabPage::SetPosPixel(), TabPage::SetPosSizePixel(), NotebookBar::setPosSizePixel(), and TabPage::SetSizePixel().
|
static |
Definition at line 1066 of file layout.cxx.
References A.
Referenced by VclGrid::calculateRequisitionForSpacings(), and VclGrid::setAllocation().
bool isVisibleInLayout | ( | const vcl::Window * | pWindow | ) |
Definition at line 2979 of file layout.cxx.
References bVisible, vcl::Window::GetParent(), isContainerWindow(), and vcl::Window::IsVisible().
Referenced by Dialog::GetFirstControlForFocus(), vcl::ImplGetLabeledBy(), ImplGetLabelFor(), and ImplGetSubChildWindow().
|
static |
Definition at line 467 of file layout.cxx.
Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().
void sort_native_button_order | ( | const VclBox & | rContainer | ) |
Definition at line 862 of file layout.cxx.
References FirstChild, VclBox::get_orientation(), vcl::Window::GetWindow(), Next, and BuilderUtils::reorderWithinParent().
Referenced by MessageDialog::create_message_area(), SalInstanceDialog::run(), SalInstanceDialog::runAsync(), and JSTreeView::select().
bool toBool | ( | std::u16string_view | rValue | ) |
Definition at line 1415 of file layout.cxx.
Referenced by VclSizeGroup::set_property(), VclBox::set_property(), VclGrid::set_property(), and VclExpander::set_property().