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< OString, OUString > stringmap
 
typedef std::map< OString, std::pair< OString, OString > > 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, OString sID=OString(), 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 OString &sID)
 
template<typename T = vcl::Window>
T * get (const OString &sID)
 
vcl::Windowget_widget_root ()
 
PopupMenuget_menu (std::string_view sID)
 
void drop_ownership (const vcl::Window *pWindow)
 
void setDeferredProperties ()
 
const OString & 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< OString, intImageSizeMap
 

Private Member Functions

 VclBuilder (const VclBuilder &)=delete
 
VclBuilderoperator= (const VclBuilder &)=delete
 
const ListStoreget_model_by_name (const OString &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 OString &sID) const
 
const Adjustmentget_adjustment_by_name (const OString &sID) const
 
vcl::Windowget_by_name (std::string_view sID)
 
void delete_by_name (const OString &sID)
 
VclPtr< vcl::WindowinsertObject (vcl::Window *pParent, const OString &rClass, const OString &rID, stringmap &rProps, stringmap &rPangoAttributes, stringmap &rAtkProps)
 
VclPtr< vcl::WindowmakeObject (vcl::Window *pParent, const OString &rClass, const OString &rID, stringmap &rVec)
 
void connectNumericFormatterAdjustment (const OString &id, const OUString &rAdjustment)
 
void connectFormattedFormatterAdjustment (const OString &id, const OUString &rAdjustment)
 
void extractGroup (const OString &id, stringmap &rVec)
 
void extractModel (const OString &id, stringmap &rVec)
 
void extractBuffer (const OString &id, stringmap &rVec)
 
void extractButtonImage (const OString &id, stringmap &rMap, bool bRadio)
 
void extractMnemonicWidget (const OString &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 OString &rClass, const OString &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 OString &rID, std::string_view rClass)
 
void handleRow (xmlreader::XmlReader &reader, const OString &rID)
 
void handleTabChild (vcl::Window *pParent, xmlreader::XmlReader &reader)
 
VclPtr< MenuhandleMenu (xmlreader::XmlReader &reader, const OString &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::string_view sID, short nResponse)
 
OString 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 OString &id, stringmap &rVec, std::vector< WidgetAdjustmentMap > &rAdjustmentMap)
 
static std::vector< vcl::EnumContext::ContexthandleStyle (xmlreader::XmlReader &reader, int &nPriority)
 
static OString 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
 
OString m_sID
 
OString 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<OString, std::pair<OString, OString> > 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<OString, 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<OString, 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,
OString  sID = OString(),
css::uno::Reference< css::frame::XFrame >  xFrame = css::uno::Reference<css::frame::XFrame>(),
bool  bLegacy = true,
const NotebookBarAddonsItem pNotebookBarAddonsItem = nullptr 
)

Definition at line 445 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(), OUStringToOString(), 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 808 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 3072 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 OString &  id,
const OUString &  rAdjustment 
)
private

Definition at line 1273 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ connectNumericFormatterAdjustment()

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

Definition at line 1267 of file builder.cxx.

References m_pParserState.

◆ delete_by_name()

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

Definition at line 4092 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 4103 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 813 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 4109 of file builder.cxx.

References m_aChildren.

Referenced by delete_by_window().

◆ extractAdjustmentToMap()

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

Definition at line 1279 of file builder.cxx.

Referenced by makeObject().

◆ extractBuffer()

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

Definition at line 1354 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractButtonImage()

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

Definition at line 1373 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractGroup()

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

Definition at line 1253 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractMnemonicWidget()

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

Definition at line 1383 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ extractModel()

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

Definition at line 1343 of file builder.cxx.

References m_pParserState.

Referenced by makeObject().

◆ get() [1/2]

template<typename T >
T * VclBuilder::get ( const OString &  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 OString &  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 OString &  sID) const
private

Definition at line 4170 of file builder.cxx.

References m_pParserState.

Referenced by VclBuilder().

◆ get_buffer_by_name()

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

Definition at line 4162 of file builder.cxx.

References m_pParserState.

Referenced by VclBuilder().

◆ get_by_name()

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

Definition at line 4027 of file builder.cxx.

References m_aChildren.

Referenced by get(), and VclBuilder().

◆ get_by_window()

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

Definition at line 4117 of file builder.cxx.

References m_aChildren.

Referenced by makeObject().

◆ get_menu()

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

Definition at line 4038 of file builder.cxx.

References m_aMenus.

Referenced by VclBuilder().

◆ get_model_by_name()

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

Definition at line 4154 of file builder.cxx.

References m_pParserState.

Referenced by VclBuilder().

◆ get_widget_root()

vcl::Window * VclBuilder::get_widget_root ( )

Definition at line 4022 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 1364 of file builder.cxx.

Referenced by makeObject().

◆ getStyleClass()

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

◆ getUIFile()

const OString & 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 3036 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 OString &  rID,
std::string_view  rClass 
)
private

Definition at line 2998 of file builder.cxx.

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

Referenced by handleObject().

◆ handleMenu()

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

◆ handleMenuChild()

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

Definition at line 3214 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 3709 of file builder.cxx.

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

Referenced by handleChild().

◆ handleRow()

void VclBuilder::handleRow ( xmlreader::XmlReader reader,
const OString &  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 OString &  rClass,
const OString &  rID,
stringmap rProps,
stringmap rAtkProps,
accelmap rAccels 
)
private

◆ insertObject()

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

◆ makeObject()

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

Definition at line 1555 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 125 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 4262 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 4328 of file builder.cxx.

References rTarget, and SAL_INFO.

◆ mungeAdjustment() [4/4]

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

Definition at line 4352 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 4178 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 4205 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 4232 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 4376 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::string_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 4145 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

OString VclBuilder::m_sHelpRoot
private

Definition at line 296 of file builder.hxx.

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

◆ m_sID

OString 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: