LibreOffice Module vcl (master) 1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
VclBuilder Class Reference

Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar, etc. More...

#include <builder.hxx>

Collaboration diagram for VclBuilder:
[legend]

Classes

struct  ButtonImageWidgetMap
 
struct  ComboBoxModelMap
 
struct  ListStore
 
struct  MenuAndId
 
struct  PackingData
 
struct  ParserState
 
struct  SizeGroup
 
class  sortIntoBestTabTraversalOrder
 
struct  StringPair
 
struct  UStringPair
 
struct  WinAndId
 

Public Types

typedef std::map< OUString, OUString > stringmap
 
typedef std::map< OUString, std::pair< OUString, OUString > > accelmap
 
typedef void(* customMakeWidget) (VclPtr< vcl::Window > &rRet, const VclPtr< vcl::Window > &pParent, stringmap &rVec)
 These functions create a new widget with parent pParent and return it in rRet. More...
 

Public Member Functions

 VclBuilder (vcl::Window *pParent, const OUString &sUIRootDir, const OUString &sUIFile, OUString sID={}, css::uno::Reference< css::frame::XFrame > xFrame=css::uno::Reference< css::frame::XFrame >(), bool bLegacy=true, const NotebookBarAddonsItem *pNotebookBarAddonsItem=nullptr)
 
 ~VclBuilder ()
 
void disposeBuilder ()
 releases references and disposes all children. More...
 
template<typename T >
T * get (VclPtr< T > &ret, const OUString &sID)
 
template<typename T = vcl::Window>
T * get (const OUString &sID)
 
vcl::Windowget_widget_root ()
 
PopupMenuget_menu (std::u16string_view sID)
 
void drop_ownership (const vcl::Window *pWindow)
 
void setDeferredProperties ()
 
const OUString & getUIFile () const
 return UI-File name (without '.ui') More...
 

Static Public Member Functions

static SymbolType mapStockToSymbol (std::u16string_view icon_name)
 

Private Types

typedef StringPair RadioButtonGroupMap
 
typedef UStringPair TextBufferMap
 
typedef UStringPair WidgetAdjustmentMap
 
typedef UStringPair ButtonMenuMap
 
typedef UStringPair MnemonicWidgetMap
 
typedef stringmap TextBuffer
 
typedef stringmap Adjustment
 
typedef std::map< OUString, intImageSizeMap
 

Private Member Functions

 VclBuilder (const VclBuilder &)=delete
 
VclBuilderoperator= (const VclBuilder &)=delete
 
const ListStoreget_model_by_name (const OUString &sID) const
 
void mungeModel (ListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId)
 
void mungeModel (ComboBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId)
 
void mungeModel (SvTabListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId)
 
const TextBufferget_buffer_by_name (const OUString &sID) const
 
const Adjustmentget_adjustment_by_name (const OUString &sID) const
 
vcl::Windowget_by_name (std::u16string_view sID)
 
void delete_by_name (const OUString &sID)
 
VclPtr< vcl::WindowinsertObject (vcl::Window *pParent, const OUString &rClass, const OUString &rID, stringmap &rProps, stringmap &rPangoAttributes, stringmap &rAtkProps)
 
VclPtr< vcl::WindowmakeObject (vcl::Window *pParent, const OUString &rClass, const OUString &rID, stringmap &rVec)
 
void connectNumericFormatterAdjustment (const OUString &id, const OUString &rAdjustment)
 
void connectFormattedFormatterAdjustment (const OUString &id, const OUString &rAdjustment)
 
void extractGroup (const OUString &id, stringmap &rVec)
 
void extractModel (const OUString &id, stringmap &rVec)
 
void extractBuffer (const OUString &id, stringmap &rVec)
 
void extractButtonImage (const OUString &id, stringmap &rMap, bool bRadio)
 
void extractMnemonicWidget (const OUString &id, stringmap &rMap)
 
void handleChild (vcl::Window *pParent, stringmap *pAtkProps, xmlreader::XmlReader &reader)
 
VclPtr< vcl::WindowhandleObject (vcl::Window *pParent, stringmap *pAtkProps, xmlreader::XmlReader &reader)
 
void handlePacking (vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader)
 
void applyPackingProperty (vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader)
 
void collectProperty (xmlreader::XmlReader &reader, stringmap &rVec) const
 
void insertMenuObject (Menu *pParent, PopupMenu *pSubMenu, const OUString &rClass, const OUString &rID, stringmap &rProps, stringmap &rAtkProps, accelmap &rAccels)
 
void handleMenuChild (Menu *pParent, xmlreader::XmlReader &reader)
 
void handleMenuObject (Menu *pParent, xmlreader::XmlReader &reader)
 
void handleListStore (xmlreader::XmlReader &reader, const OUString &rID, std::u16string_view rClass)
 
void handleRow (xmlreader::XmlReader &reader, const OUString &rID)
 
void handleTabChild (vcl::Window *pParent, xmlreader::XmlReader &reader)
 
VclPtr< MenuhandleMenu (xmlreader::XmlReader &reader, const OUString &rID, bool bMenuBar)
 
std::vector< ComboBoxTextItemhandleItems (xmlreader::XmlReader &reader) const
 
void handleSizeGroup (xmlreader::XmlReader &reader)
 
stringmap handleAtkObject (xmlreader::XmlReader &reader) const
 
void handleActionWidget (xmlreader::XmlReader &reader)
 
PackingData get_window_packing_data (const vcl::Window *pWindow) const
 
void set_window_packing_position (const vcl::Window *pWindow, sal_Int32 nPosition)
 
void cleanupWidgetOwnScrolling (vcl::Window *pScrollParent, vcl::Window *pWindow, stringmap &rMap)
 
void set_response (std::u16string_view sID, short nResponse)
 
OUString get_by_window (const vcl::Window *pWindow) const
 
void delete_by_window (vcl::Window *pWindow)
 

Static Private Member Functions

static void mungeTextBuffer (VclMultiLineEdit &rTarget, const TextBuffer &rTextBuffer)
 
static void mungeAdjustment (NumericFormatter &rTarget, const Adjustment &rAdjustment)
 
static void mungeAdjustment (FormattedField &rTarget, const Adjustment &rAdjustment)
 
static void mungeAdjustment (ScrollBar &rTarget, const Adjustment &rAdjustment)
 
static void mungeAdjustment (Slider &rTarget, const Adjustment &rAdjustment)
 
static int getImageSize (const stringmap &rMap)
 
static bool extractAdjustmentToMap (const OUString &id, stringmap &rVec, std::vector< WidgetAdjustmentMap > &rAdjustmentMap)
 
static std::vector< vcl::EnumContext::ContexthandleStyle (xmlreader::XmlReader &reader, int &nPriority)
 
static OUString getStyleClass (xmlreader::XmlReader &reader)
 
static void collectPangoAttribute (xmlreader::XmlReader &reader, stringmap &rMap)
 
static void collectAtkRelationAttribute (xmlreader::XmlReader &reader, stringmap &rMap)
 
static void collectAtkRoleAttribute (xmlreader::XmlReader &reader, stringmap &rMap)
 
static void collectAccelerator (xmlreader::XmlReader &reader, accelmap &rMap)
 
static void applyAtkProperties (vcl::Window *pWindow, const stringmap &rProperties)
 
static vcl::WindowprepareWidgetOwnScrolling (vcl::Window *pParent, WinBits &rWinStyle)
 

Private Attributes

std::vector< std::unique_ptr< OUString > > m_aUserData
 
stringmap m_aDeferredProperties
 
std::unique_ptr< NotebookBarAddonsItemm_pNotebookBarAddonsItem
 
std::vector< WinAndIdm_aChildren
 
std::vector< MenuAndIdm_aMenus
 
OUString m_sID
 
OUString m_sHelpRoot
 
ResHookProc m_pStringReplace
 
VclPtr< vcl::Windowm_pParent
 
bool m_bToplevelHasDeferredInit
 
bool m_bToplevelHasDeferredProperties
 
bool m_bToplevelParentFound
 
bool m_bLegacy
 
std::unique_ptr< ParserStatem_pParserState
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 XFrame to be able to extract labels and other properties of the UNO commands (like of .uno:Bold). More...
 

Detailed Description

Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar, etc.

Definition at line 68 of file builder.hxx.

Member Typedef Documentation

◆ accelmap

typedef std::map<OUString, std::pair<OUString, OUString> > VclBuilder::accelmap

Definition at line 72 of file builder.hxx.

◆ Adjustment

Definition at line 234 of file builder.hxx.

◆ ButtonMenuMap

Definition at line 202 of file builder.hxx.

◆ customMakeWidget

typedef void(* VclBuilder::customMakeWidget) (VclPtr< vcl::Window > &rRet, const VclPtr< vcl::Window > &pParent, stringmap &rVec)

These functions create a new widget with parent pParent and return it in rRet.

Definition at line 74 of file builder.hxx.

◆ ImageSizeMap

typedef std::map<OUString, int> VclBuilder::ImageSizeMap
private

Definition at line 242 of file builder.hxx.

◆ MnemonicWidgetMap

Definition at line 203 of file builder.hxx.

◆ RadioButtonGroupMap

Definition at line 185 of file builder.hxx.

◆ stringmap

typedef std::map<OUString, OUString> VclBuilder::stringmap

Definition at line 71 of file builder.hxx.

◆ TextBuffer

Definition at line 229 of file builder.hxx.

◆ TextBufferMap

Definition at line 200 of file builder.hxx.

◆ WidgetAdjustmentMap

Definition at line 201 of file builder.hxx.

Constructor & Destructor Documentation

◆ VclBuilder() [1/2]

VclBuilder::VclBuilder ( vcl::Window pParent,
const OUString &  sUIRootDir,
const OUString &  sUIFile,
OUString  sID = {},
css::uno::Reference< css::frame::XFrame >  xFrame = css::uno::Reference<css::frame::XFrame>(),
bool  bLegacy = true,
const NotebookBarAddonsItem pNotebookBarAddonsItem = nullptr 
)

Definition at line 446 of file builder.cxx.

References vcl::Window::add_to_size_group(), CrashReporter::addKeyValue(), Size::AdjustHeight(), Size::AdjustWidth(), DBG_UNHANDLED_EXCEPTION, delete_by_name(), delete_by_window(), DONTKNOW, psp::eSymbol, FIXEDTEXT, get(), get_adjustment_by_name(), get_buffer_by_name(), get_by_name(), vcl::Window::get_height_request(), get_menu(), get_model_by_name(), vcl::Window::get_width_request(), vcl::Window::GetControlFont(), FixedImage::GetImage(), Control::GetOptimalSize(), GetReadStringHook(), BuilderUtils::getRoleFromName(), Image::GetSizePixel(), Image::GetStock(), vcl::Window::GetStyle(), vcl::Window::GetText(), vcl::Window::GetType(), vcl::Window::GetWindow(), RadioButton::group(), handleChild(), Size::Height(), IMAGE, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), comphelper::LibreOfficeKit::isActive(), vcl::Window::IsControlFont(), vcl::Window::IsDialog(), vcl::Window::IsDockingWindow(), vcl::Window::IsSystemWindow(), LastChild, m_aChildren, m_bLegacy, m_bToplevelHasDeferredInit, m_bToplevelHasDeferredProperties, m_bToplevelParentFound, m_pParent, m_pParserState, m_sHelpRoot, m_sID, m_xFrame, RadioButton::m_xGroup, mapStockToSymbol(), mungeAdjustment(), mungeModel(), mungeTextBuffer(), SAL_WARN, SAL_WARN_IF, vcl::Window::set_height_request(), FixedText::set_mnemonic_widget(), vcl::Window::set_width_request(), vcl::Window::SetAccessibleRelationLabeledBy(), vcl::Window::SetAccessibleRelationLabelFor(), vcl::Window::SetAccessibleRole(), vcl::Window::SetControlFont(), Button::SetModeImage(), RadioButton::SetModeRadioImage(), MenuButton::SetPopupMenu(), Button::SetSmallSymbol(), vcl::Window::SetStyle(), PushButton::SetSymbol(), WB_DEFBUTTON, WB_SMALLSTYLE, Size::Width(), CrashReporter::Write, and xFrame.

◆ ~VclBuilder()

VclBuilder::~VclBuilder ( )

Definition at line 803 of file builder.cxx.

References disposeBuilder().

◆ VclBuilder() [2/2]

VclBuilder::VclBuilder ( const VclBuilder )
privatedelete

Member Function Documentation

◆ applyAtkProperties()

void VclBuilder::applyAtkProperties ( vcl::Window pWindow,
const stringmap rProperties 
)
staticprivate

Definition at line 3090 of file builder.cxx.

References SAL_WARN, and vcl::Window::set_property().

Referenced by handleObject().

◆ applyPackingProperty()

void VclBuilder::applyPackingProperty ( vcl::Window pCurrent,
vcl::Window pParent,
xmlreader::XmlReader reader 
)
private

◆ cleanupWidgetOwnScrolling()

void VclBuilder::cleanupWidgetOwnScrolling ( vcl::Window pScrollParent,
vcl::Window pWindow,
stringmap rMap 
)
private

◆ collectAccelerator()

void VclBuilder::collectAccelerator ( xmlreader::XmlReader reader,
accelmap rMap 
)
staticprivate

◆ collectAtkRelationAttribute()

void VclBuilder::collectAtkRelationAttribute ( xmlreader::XmlReader reader,
stringmap rMap 
)
staticprivate

◆ collectAtkRoleAttribute()

void VclBuilder::collectAtkRoleAttribute ( xmlreader::XmlReader reader,
stringmap rMap 
)
staticprivate

◆ collectPangoAttribute()

void VclBuilder::collectPangoAttribute ( xmlreader::XmlReader reader,
stringmap rMap 
)
staticprivate

◆ collectProperty()

void VclBuilder::collectProperty ( xmlreader::XmlReader reader,
stringmap rVec 
) const
private

◆ connectFormattedFormatterAdjustment()

void VclBuilder::connectFormattedFormatterAdjustment ( const OUString &  id,
const OUString &  rAdjustment 
)
private

Definition at line 1267 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ connectNumericFormatterAdjustment()

void VclBuilder::connectNumericFormatterAdjustment ( const OUString &  id,
const OUString &  rAdjustment 
)
private

Definition at line 1261 of file builder.cxx.

References m_pParserState.

◆ delete_by_name()

void VclBuilder::delete_by_name ( const OUString &  sID)
private

Definition at line 4097 of file builder.cxx.

References m_aChildren.

Referenced by VclBuilder().

◆ delete_by_window()

void VclBuilder::delete_by_window ( vcl::Window pWindow)
private

Definition at line 4108 of file builder.cxx.

References VclReferenceBase::disposeOnce(), and drop_ownership().

Referenced by VclBuilder().

◆ disposeBuilder()

void VclBuilder::disposeBuilder ( )

releases references and disposes all children.

Definition at line 808 of file builder.cxx.

References VclPtr< reference_type >::clear(), m_aChildren, m_aMenus, and m_pParent.

Referenced by ~VclBuilder().

◆ drop_ownership()

void VclBuilder::drop_ownership ( const vcl::Window pWindow)

Definition at line 4114 of file builder.cxx.

References m_aChildren.

Referenced by delete_by_window().

◆ extractAdjustmentToMap()

bool VclBuilder::extractAdjustmentToMap ( const OUString &  id,
VclBuilder::stringmap rMap,
std::vector< WidgetAdjustmentMap > &  rAdjustmentMap 
)
staticprivate

Definition at line 1273 of file builder.cxx.

Referenced by makeObject().

◆ extractBuffer()

void VclBuilder::extractBuffer ( const OUString &  id,
stringmap rVec 
)
private

Definition at line 1348 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractButtonImage()

void VclBuilder::extractButtonImage ( const OUString &  id,
stringmap rMap,
bool  bRadio 
)
private

Definition at line 1367 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractGroup()

void VclBuilder::extractGroup ( const OUString &  id,
stringmap rVec 
)
private

Definition at line 1247 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractMnemonicWidget()

void VclBuilder::extractMnemonicWidget ( const OUString &  id,
stringmap rMap 
)
private

Definition at line 1377 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractModel()

void VclBuilder::extractModel ( const OUString &  id,
stringmap rVec 
)
private

Definition at line 1337 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ get() [1/2]

template<typename T >
T * VclBuilder::get ( const OUString &  sID)
inline

Definition at line 435 of file builder.hxx.

References get_by_name(), name, SAL_WARN_IF, and w.

◆ get() [2/2]

template<typename T >
T * VclBuilder::get ( VclPtr< T > &  ret,
const OUString &  sID 
)
inline

Definition at line 421 of file builder.hxx.

References VclPtr< reference_type >::get(), get_by_name(), name, SAL_WARN_IF, and w.

Referenced by VclBuilder().

◆ get_adjustment_by_name()

const VclBuilder::Adjustment * VclBuilder::get_adjustment_by_name ( const OUString &  sID) const
private

Definition at line 4175 of file builder.cxx.

References m_pParserState.

Referenced by VclBuilder().

◆ get_buffer_by_name()

const VclBuilder::TextBuffer * VclBuilder::get_buffer_by_name ( const OUString &  sID) const
private

Definition at line 4167 of file builder.cxx.

References m_pParserState.

Referenced by VclBuilder().

◆ get_by_name()

vcl::Window * VclBuilder::get_by_name ( std::u16string_view  sID)
private

Definition at line 4032 of file builder.cxx.

References m_aChildren.

Referenced by get(), and VclBuilder().

◆ get_by_window()

OUString VclBuilder::get_by_window ( const vcl::Window pWindow) const
private

Definition at line 4122 of file builder.cxx.

References m_aChildren.

Referenced by makeObject().

◆ get_menu()

PopupMenu * VclBuilder::get_menu ( std::u16string_view  sID)

Definition at line 4043 of file builder.cxx.

References m_aMenus.

Referenced by VclBuilder().

◆ get_model_by_name()

const VclBuilder::ListStore * VclBuilder::get_model_by_name ( const OUString &  sID) const
private

Definition at line 4159 of file builder.cxx.

References m_pParserState.

Referenced by VclBuilder().

◆ get_widget_root()

vcl::Window * VclBuilder::get_widget_root ( )

Definition at line 4027 of file builder.cxx.

References m_aChildren.

◆ get_window_packing_data()

VclBuilder::PackingData VclBuilder::get_window_packing_data ( const vcl::Window pWindow) const
private

◆ getImageSize()

int VclBuilder::getImageSize ( const stringmap rMap)
staticprivate

Definition at line 1358 of file builder.cxx.

Referenced by makeObject().

◆ getStyleClass()

OUString VclBuilder::getStyleClass ( xmlreader::XmlReader reader)
staticprivate

◆ getUIFile()

const OUString & VclBuilder::getUIFile ( ) const
inline

return UI-File name (without '.ui')

Definition at line 107 of file builder.hxx.

◆ handleActionWidget()

void VclBuilder::handleActionWidget ( xmlreader::XmlReader reader)
private

◆ handleAtkObject()

VclBuilder::stringmap VclBuilder::handleAtkObject ( xmlreader::XmlReader reader) const
private

Definition at line 3054 of file builder.cxx.

References aProperties, collectProperty(), name, and xmlreader::XmlReader::nextItem().

Referenced by handleObject().

◆ handleChild()

void VclBuilder::handleChild ( vcl::Window pParent,
stringmap pAtkProps,
xmlreader::XmlReader reader 
)
private

◆ handleItems()

std::vector< ComboBoxTextItem > VclBuilder::handleItems ( xmlreader::XmlReader reader) const
private

◆ handleListStore()

void VclBuilder::handleListStore ( xmlreader::XmlReader reader,
const OUString &  rID,
std::u16string_view  rClass 
)
private

Definition at line 3016 of file builder.cxx.

References handleRow(), name, xmlreader::XmlReader::nextItem(), and u.

Referenced by handleObject().

◆ handleMenu()

VclPtr< Menu > VclBuilder::handleMenu ( xmlreader::XmlReader reader,
const OUString &  rID,
bool  bMenuBar 
)
private

◆ handleMenuChild()

void VclBuilder::handleMenuChild ( Menu pParent,
xmlreader::XmlReader reader 
)
private

Definition at line 3230 of file builder.cxx.

References handleMenuObject(), name, and xmlreader::XmlReader::nextItem().

Referenced by handleMenu().

◆ handleMenuObject()

void VclBuilder::handleMenuObject ( Menu pParent,
xmlreader::XmlReader reader 
)
private

◆ handleObject()

VclPtr< vcl::Window > VclBuilder::handleObject ( vcl::Window pParent,
stringmap pAtkProps,
xmlreader::XmlReader reader 
)
private

◆ handlePacking()

void VclBuilder::handlePacking ( vcl::Window pCurrent,
vcl::Window pParent,
xmlreader::XmlReader reader 
)
private

Definition at line 3716 of file builder.cxx.

References applyPackingProperty(), name, and xmlreader::XmlReader::nextItem().

Referenced by handleChild().

◆ handleRow()

void VclBuilder::handleRow ( xmlreader::XmlReader reader,
const OUString &  rID 
)
private

◆ handleSizeGroup()

void VclBuilder::handleSizeGroup ( xmlreader::XmlReader reader)
private

◆ handleStyle()

std::vector< vcl::EnumContext::Context > VclBuilder::handleStyle ( xmlreader::XmlReader reader,
int nPriority 
)
staticprivate

◆ handleTabChild()

void VclBuilder::handleTabChild ( vcl::Window pParent,
xmlreader::XmlReader reader 
)
private

◆ insertMenuObject()

void VclBuilder::insertMenuObject ( Menu pParent,
PopupMenu pSubMenu,
const OUString &  rClass,
const OUString &  rID,
stringmap rProps,
stringmap rAtkProps,
accelmap rAccels 
)
private

◆ insertObject()

VclPtr< vcl::Window > VclBuilder::insertObject ( vcl::Window pParent,
const OUString &  rClass,
const OUString &  rID,
stringmap rProps,
stringmap rPangoAttributes,
stringmap rAtkProps 
)
private

◆ makeObject()

VclPtr< vcl::Window > VclBuilder::makeObject ( vcl::Window pParent,
const OUString &  rClass,
const OUString &  rID,
stringmap rVec 
)
private

Definition at line 1585 of file builder.cxx.

References aCommand, AUTOCHECK, CENTER, CHECKABLE, cleanupWidgetOwnScrolling(), CLICKABLE, connectFormattedFormatterAdjustment(), VclPtr< reference_type >::Create(), Dialog::Default, DOWNARROW, DROPDOWN, CheckBox::EnableTriState(), BuilderUtils::ensureDefaultWidthChars(), extractAdjustmentToMap(), extractBuffer(), extractButtonImage(), BuilderUtils::extractCustomProperty(), BuilderUtils::extractDropdown(), extractGroup(), extractMnemonicWidget(), extractModel(), VclPtr< reference_type >::get(), get_by_window(), vcl::Window::get_preferred_size(), SvHeaderTabListBox::GetHeaderBar(), vcl::Window::GetHelpId(), getImageSize(), ToolBox::GetItemCount(), ToolBox::GetItemId(), TabControl::GetPageCount(), VerticalTabControl::GetPageParent(), vcl::Window::GetSizePixel(), vcl::Window::GetType(), Size::Height(), ToolBox::HideItem(), vcl::Window::ImplGetWindowImpl(), ToolBox::InsertItem(), TabControl::InsertPage(), ToolBox::InsertSeparator(), LEFT, Left, LEFTIMAGE, FixedImage::loadThemeImage(), m_aChildren, m_bLegacy, m_pNotebookBarAddonsItem, m_pParserState, m_sHelpRoot, m_xFrame, WindowImpl::mbDisabled, MENUBUTTON, NotebookBarAddonsMerger::MergeNotebookBarAddons(), MODELESSDIALOG, WindowImpl::mpBorderWindow, WindowImpl::mpParent, WindowImpl::mpRealParent, name, NONE, Dialog::NoParent, prepareWidgetOwnScrolling(), PUSHBUTTON, RADIOCHECK, RIGHT, SAL_INFO, SAL_INFO_IF, SAL_WARN_IF, sBorder, vcl::Window::set_border_width(), vcl::Window::set_expand(), vcl::Window::SetAccessibleRole(), TabControl::SetCurPageId(), PushButton::SetDropDown(), SvTreeListBox::SetEntryHeight(), Size::setHeight(), vcl::Window::SetHelpId(), ToolBox::SetHelpId(), SvTreeListBox::SetHighlightRange(), FixedImage::SetImage(), Button::SetImageAlign(), ToolBox::SetItemExpand(), ToolBox::SetItemImage(), ToolBox::SetItemWindow(), SvTreeListBox::SetNoAutoCurEntry(), ToolBox::SetQuickHelpText(), SvTreeListBox::SetQuickSearch(), vcl::Window::SetSizePixel(), SvTreeListBox::SetSpaceBetweenEntries(), CheckBox::SetState(), TabControl::SetTabPage(), vcl::Window::SetType(), vcl::Window::Show(), sType, TABCONTROL, TOOLBOX, TRISTATE_INDET, VERTICALTABCONTROL, WB_3DLOOK, WB_ALLOWMENUBAR, WB_BORDER, WB_BUTTONSTYLE, WB_CENTER, WB_CLIPCHILDREN, WB_CLOSEABLE, WB_DOCKABLE, WB_DROPDOWN, WB_FLATBUTTON, WB_HASBUTTONS, WB_HASBUTTONSATROOT, WB_HORZ, WB_LEFT, WB_MOVEABLE, WB_NOLABEL, WB_REPEAT, WB_SCALE, WB_SIMPLEMODE, WB_SIZEABLE, WB_SPIN, WB_STDTABCONTROL, WB_TABSTOP, WB_VCENTER, and WB_VERT.

Referenced by insertObject().

◆ mapStockToSymbol()

SymbolType VclBuilder::mapStockToSymbol ( std::u16string_view  icon_name)
static

Definition at line 126 of file builder.cxx.

References ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, CLOSE, DONTKNOW, FIRST, HELP, IMAGE, LAST, NEXT, PLAY, PLUS, PREV, SPIN_DOWN, SPIN_UP, STOP, sType, and u.

Referenced by VclBuilder().

◆ mungeAdjustment() [1/4]

void VclBuilder::mungeAdjustment ( FormattedField rTarget,
const Adjustment rAdjustment 
)
staticprivate

◆ mungeAdjustment() [2/4]

void VclBuilder::mungeAdjustment ( NumericFormatter &  rTarget,
const Adjustment rAdjustment 
)
staticprivate

Definition at line 4267 of file builder.cxx.

References nValue, rTarget, and SAL_INFO.

Referenced by VclBuilder().

◆ mungeAdjustment() [3/4]

void VclBuilder::mungeAdjustment ( ScrollBar rTarget,
const Adjustment rAdjustment 
)
staticprivate

Definition at line 4327 of file builder.cxx.

References rTarget, and SAL_INFO.

◆ mungeAdjustment() [4/4]

void VclBuilder::mungeAdjustment ( Slider rTarget,
const Adjustment rAdjustment 
)
staticprivate

Definition at line 4348 of file builder.cxx.

References rTarget, and SAL_INFO.

◆ mungeModel() [1/3]

void VclBuilder::mungeModel ( ComboBox rTarget,
const ListStore rStore,
sal_uInt16  nActiveId 
)
private

Definition at line 4183 of file builder.cxx.

References VclBuilder::ListStore::m_aEntries, m_aUserData, m_bLegacy, nValue, and rTarget.

◆ mungeModel() [2/3]

void VclBuilder::mungeModel ( ListBox rTarget,
const ListStore rStore,
sal_uInt16  nActiveId 
)
private

Definition at line 4210 of file builder.cxx.

References VclBuilder::ListStore::m_aEntries, m_aUserData, m_bLegacy, nValue, and rTarget.

Referenced by VclBuilder().

◆ mungeModel() [3/3]

void VclBuilder::mungeModel ( SvTabListBox rTarget,
const ListStore rStore,
sal_uInt16  nActiveId 
)
private

Definition at line 4237 of file builder.cxx.

References VclBuilder::ListStore::m_aEntries, m_aUserData, m_bLegacy, nValue, and rTarget.

◆ mungeTextBuffer()

void VclBuilder::mungeTextBuffer ( VclMultiLineEdit rTarget,
const TextBuffer rTextBuffer 
)
staticprivate

Definition at line 4369 of file builder.cxx.

References rTarget, and SAL_INFO.

Referenced by VclBuilder().

◆ operator=()

VclBuilder & VclBuilder::operator= ( const VclBuilder )
privatedelete

◆ prepareWidgetOwnScrolling()

vcl::Window * VclBuilder::prepareWidgetOwnScrolling ( vcl::Window pParent,
WinBits rWinStyle 
)
staticprivate

◆ set_response()

void VclBuilder::set_response ( std::u16string_view  sID,
short  nResponse 
)
private

◆ set_window_packing_position()

void VclBuilder::set_window_packing_position ( const vcl::Window pWindow,
sal_Int32  nPosition 
)
private

Definition at line 4150 of file builder.cxx.

References m_aChildren.

Referenced by applyPackingProperty().

◆ setDeferredProperties()

void VclBuilder::setDeferredProperties ( )

Member Data Documentation

◆ m_aChildren

std::vector<WinAndId> VclBuilder::m_aChildren
private

◆ m_aDeferredProperties

stringmap VclBuilder::m_aDeferredProperties
private

Definition at line 126 of file builder.hxx.

Referenced by insertObject(), and setDeferredProperties().

◆ m_aMenus

std::vector<MenuAndId> VclBuilder::m_aMenus
private

Definition at line 161 of file builder.hxx.

Referenced by disposeBuilder(), get_menu(), handleMenu(), and handleMenuObject().

◆ m_aUserData

std::vector<std::unique_ptr<OUString> > VclBuilder::m_aUserData
private

Definition at line 119 of file builder.hxx.

Referenced by handleObject(), and mungeModel().

◆ m_bLegacy

bool VclBuilder::m_bLegacy
private

Definition at line 302 of file builder.hxx.

Referenced by handleMenuObject(), handleObject(), makeObject(), mungeModel(), and VclBuilder().

◆ m_bToplevelHasDeferredInit

bool VclBuilder::m_bToplevelHasDeferredInit
private

Definition at line 299 of file builder.hxx.

Referenced by insertObject(), and VclBuilder().

◆ m_bToplevelHasDeferredProperties

bool VclBuilder::m_bToplevelHasDeferredProperties
private

Definition at line 300 of file builder.hxx.

Referenced by insertObject(), setDeferredProperties(), and VclBuilder().

◆ m_bToplevelParentFound

bool VclBuilder::m_bToplevelParentFound
private

Definition at line 301 of file builder.hxx.

Referenced by insertObject(), and VclBuilder().

◆ m_pNotebookBarAddonsItem

std::unique_ptr<NotebookBarAddonsItem> VclBuilder::m_pNotebookBarAddonsItem
private

Definition at line 128 of file builder.hxx.

Referenced by insertMenuObject(), and makeObject().

◆ m_pParent

VclPtr<vcl::Window> VclBuilder::m_pParent
private

Definition at line 298 of file builder.hxx.

Referenced by disposeBuilder(), insertObject(), setDeferredProperties(), and VclBuilder().

◆ m_pParserState

std::unique_ptr<ParserState> VclBuilder::m_pParserState
private

◆ m_pStringReplace

ResHookProc VclBuilder::m_pStringReplace
private

Definition at line 297 of file builder.hxx.

Referenced by collectProperty(), and handleItems().

◆ m_sHelpRoot

OUString VclBuilder::m_sHelpRoot
private

Definition at line 296 of file builder.hxx.

Referenced by insertMenuObject(), insertObject(), makeObject(), and VclBuilder().

◆ m_sID

OUString VclBuilder::m_sID
private

Definition at line 295 of file builder.hxx.

Referenced by insertObject(), and VclBuilder().

◆ m_xFrame

css::uno::Reference<css::frame::XFrame> VclBuilder::m_xFrame
private

XFrame to be able to extract labels and other properties of the UNO commands (like of .uno:Bold).

Definition at line 321 of file builder.hxx.

Referenced by makeObject().


The documentation for this class was generated from the following files: