LibreOffice Module vcl (master)
1
|
#include <sal/config.h>
#include <string_view>
#include <config_features.h>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <comphelper/base64.hxx>
#include <o3tl/enumarray.hxx>
#include <o3tl/enumrange.hxx>
#include <o3tl/string_view.hxx>
#include <tools/stream.hxx>
#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/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 403 of file layout.cxx.
Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().
#define DEFAULT_CHILD_MIN_WIDTH 85 |
Definition at line 402 of file layout.cxx.
Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().
typedef boost::multi_array<GridEntry, 2> array_type |
Definition at line 882 of file layout.cxx.
|
static |
Definition at line 1174 of file layout.cxx.
References VclGrid::Value::m_bExpand, and VclGrid::Value::m_nValue.
Referenced by VclGrid::calculateRequisitionForSpacings().
|
static |
Definition at line 888 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 1051 of file layout.cxx.
References 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 1169 of file layout.cxx.
References VclGrid::Value::m_nValue.
Referenced by VclGrid::calculateRequisitionForSpacings().
|
static |
Definition at line 756 of file layout.cxx.
References Application::GetDesktopEnvironment(), i, and u.
Size getLegacyBestSizeForChildren | ( | const vcl::Window & | rWindow | ) |
Definition at line 2850 of file layout.cxx.
References FirstChild, vcl::Window::GetPosPixel(), tools::Rectangle::GetSize(), vcl::Window::GetSizePixel(), vcl::Window::GetWindow(), tools::Rectangle::IsEmpty(), vcl::Window::IsVisible(), Next, Point, tools::Rectangle::TopLeft(), and tools::Rectangle::Union().
Referenced by TabPage::GetOptimalSize().
|
static |
Definition at line 437 of file layout.cxx.
Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().
vcl::Window* getNonLayoutParent | ( | vcl::Window * | pWindow | ) |
Definition at line 2875 of file layout.cxx.
References vcl::Window::GetParent(), and isContainerWindow().
Referenced by OKButton::Click(), CancelButton::Click(), ImplGetTopParentOfTabHierarchy(), and ImplHasIndirectTabParent().
IMPL_LINK | ( | VclFrame | , |
WindowEventListener | , | ||
VclWindowEvent & | , | ||
rEvent | , | ||
void | |||
) |
Definition at line 1477 of file layout.cxx.
References ObjectDying.
IMPL_LINK | ( | VclExpander | , |
ClickHdl | , | ||
CheckBox & | , | ||
rBtn | , | ||
void | |||
) |
Definition at line 1806 of file layout.cxx.
References SystemWindow::setOptimalLayoutSize(), and vcl::Window::Show().
Definition at line 2618 of file layout.cxx.
Definition at line 2737 of file layout.cxx.
IMPL_LINK_NOARG | ( | VclScrolledWindow | , |
ScrollBarHdl | , | ||
ScrollBar * | , | ||
void | |||
) |
Definition at line 1864 of file layout.cxx.
References FirstChild, vcl::Window::GetWindow(), Point, and vcl::Window::SetPosPixel().
bool isEnabledInLayout | ( | const vcl::Window * | pWindow | ) |
Definition at line 2899 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 2912 of file layout.cxx.
References FirstChild, vcl::Window::GetWindow(), isContainerWindow(), and Next.
Referenced by NotebookBar::GetOptimalSize(), TabPage::GetOptimalSize(), IMPL_LINK_NOARG(), isContainerWindow(), TabPage::SetPosPixel(), NotebookBar::setPosSizePixel(), TabPage::SetPosSizePixel(), and TabPage::SetSizePixel().
|
static |
Definition at line 1043 of file layout.cxx.
Referenced by VclGrid::calculateRequisitionForSpacings(), and VclGrid::setAllocation().
bool isVisibleInLayout | ( | const vcl::Window * | pWindow | ) |
Definition at line 2886 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 451 of file layout.cxx.
Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().
Definition at line 846 of file layout.cxx.
References FirstChild, VclBox::get_orientation(), vcl::Window::GetWindow(), Next, and BuilderUtils::reorderWithinParent().
Referenced by MessageDialog::create_message_area(), SalInstanceDialog::run(), and SalInstanceDialog::runAsync().
bool toBool | ( | std::u16string_view | rValue | ) |
Definition at line 1371 of file layout.cxx.
Referenced by VclBox::set_property(), VclGrid::set_property(), VclExpander::set_property(), and VclSizeGroup::set_property().