LibreOffice Module vcl (master)  1
Classes | Macros | Typedefs | Functions
layout.cxx File Reference
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <o3tl/enumarray.hxx>
#include <o3tl/enumrange.hxx>
#include <vcl/decoview.hxx>
#include <vcl/dialog.hxx>
#include <vcl/layout.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <messagedialog.hxx>
#include <window.h>
#include <boost/multi_array.hpp>
#include <boost/property_tree/ptree.hpp>
#include <vcl/vclmedit.hxx>
#include <sal/log.hxx>
Include dependency graph for layout.cxx:

Go to the source code of this file.

Classes

struct  ButtonOrder
 
class  sortButtons
 
struct  GridEntry
 

Macros

#define DEFAULT_CHILD_MIN_WIDTH   85
 
#define DEFAULT_CHILD_MIN_HEIGHT   27
 

Typedefs

typedef boost::multi_array< GridEntry, 2 > array_type
 

Functions

static long getMaxNonOutlier (const std::vector< long > &rG, long nAvgDimension)
 
static std::vector< long > setButtonSizes (const std::vector< long > &rG, const std::vector< bool > &rNonHomogeneous, long nAvgDimension, long nMaxNonOutlier, long nMinWidth)
 
static int getButtonPriority (const OString &rType)
 
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 (const OUString &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::WindowgetNonLayoutParent (vcl::Window *pWindow)
 
bool isVisibleInLayout (const vcl::Window *pWindow)
 
bool isEnabledInLayout (const vcl::Window *pWindow)
 
bool isLayoutEnabled (const vcl::Window *pWindow)
 

Macro Definition Documentation

#define DEFAULT_CHILD_MIN_HEIGHT   27

Definition at line 377 of file layout.cxx.

Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().

#define DEFAULT_CHILD_MIN_WIDTH   85

Definition at line 376 of file layout.cxx.

Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().

Typedef Documentation

typedef boost::multi_array<GridEntry, 2> array_type

Definition at line 811 of file layout.cxx.

Function Documentation

static VclGrid::Value accumulateValues ( const VclGrid::Value i,
const VclGrid::Value j 
)
static
array_type assembleGrid ( const VclGrid rGrid)
static
static void calcMaxs ( const array_type A,
std::vector< VclGrid::Value > &  rWidths,
std::vector< VclGrid::Value > &  rHeights 
)
static
static bool compareValues ( const VclGrid::Value i,
const VclGrid::Value j 
)
static

Definition at line 1098 of file layout.cxx.

References VclGrid::Value::m_nValue.

Referenced by VclGrid::calculateRequisitionForSpacings().

static int getButtonPriority ( const OString &  rType)
static
Size getLegacyBestSizeForChildren ( const vcl::Window rWindow)
static long getMaxNonOutlier ( const std::vector< long > &  rG,
long  nAvgDimension 
)
static

Definition at line 411 of file layout.cxx.

Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().

vcl::Window* getNonLayoutParent ( vcl::Window pWindow)
IMPL_LINK ( VclFrame  ,
WindowEventListener  ,
VclWindowEvent ,
rEvent  ,
void   
)

Definition at line 1407 of file layout.cxx.

References ObjectDying.

IMPL_LINK ( VclExpander  ,
ClickHdl  ,
CheckBox ,
rBtn  ,
void   
)

Definition at line 1655 of file layout.cxx.

References SystemWindow::setOptimalLayoutSize(), and vcl::Window::Show().

IMPL_LINK ( VclVPaned  ,
SplitHdl  ,
Splitter ,
pSplitter  ,
void   
)

Definition at line 2371 of file layout.cxx.

IMPL_LINK ( VclHPaned  ,
SplitHdl  ,
Splitter ,
pSplitter  ,
void   
)

Definition at line 2478 of file layout.cxx.

IMPL_LINK_NOARG ( VclScrolledWindow  ,
ScrollBarHdl  ,
ScrollBar ,
void   
)

Definition at line 1691 of file layout.cxx.

References FirstChild, vcl::Window::GetWindow(), and vcl::Window::SetPosPixel().

bool isEnabledInLayout ( const vcl::Window pWindow)
bool isLayoutEnabled ( const vcl::Window pWindow)
static bool isNullGrid ( const array_type A)
static

Definition at line 972 of file layout.cxx.

Referenced by VclGrid::calculateRequisitionForSpacings(), and VclGrid::setAllocation().

bool isVisibleInLayout ( const vcl::Window pWindow)
static std::vector<long> setButtonSizes ( const std::vector< long > &  rG,
const std::vector< bool > &  rNonHomogeneous,
long  nAvgDimension,
long  nMaxNonOutlier,
long  nMinWidth 
)
static

Definition at line 425 of file layout.cxx.

Referenced by VclButtonBox::calculatePrimarySecondaryRequisitions().

bool toBool ( const OUString &  rValue)