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

#include <jsdialogbuilder.hxx>

Inheritance diagram for JSInstanceBuilder:
[legend]
Collaboration diagram for JSInstanceBuilder:
[legend]

Public Member Functions

virtual ~JSInstanceBuilder () override
 
virtual std::unique_ptr< weld::MessageDialogweld_message_dialog (const OString &id) override
 
virtual std::unique_ptr< weld::Dialogweld_dialog (const OString &id) override
 
virtual std::unique_ptr< weld::Labelweld_label (const OString &id) override
 
virtual std::unique_ptr< weld::Buttonweld_button (const OString &id) override
 
virtual std::unique_ptr< weld::Entryweld_entry (const OString &id) override
 
virtual std::unique_ptr< weld::ComboBoxweld_combo_box (const OString &id) override
 
virtual std::unique_ptr< weld::Notebookweld_notebook (const OString &id) override
 
virtual std::unique_ptr< weld::SpinButtonweld_spin_button (const OString &id) override
 
virtual std::unique_ptr< weld::CheckButtonweld_check_button (const OString &id) override
 
virtual std::unique_ptr< weld::DrawingAreaweld_drawing_area (const OString &id, const a11yref &rA11yImpl=nullptr, FactoryFunction pUITestFactoryFunction=nullptr, void *pUserData=nullptr) override
 
virtual std::unique_ptr< weld::Toolbarweld_toolbar (const OString &id) override
 
virtual std::unique_ptr< weld::TextViewweld_text_view (const OString &id) override
 
virtual std::unique_ptr< weld::TreeViewweld_tree_view (const OString &id) override
 
virtual std::unique_ptr< weld::Expanderweld_expander (const OString &id) override
 
virtual std::unique_ptr< weld::IconViewweld_icon_view (const OString &id) override
 
virtual std::unique_ptr< weld::RadioButtonweld_radio_button (const OString &id) override
 
- Public Member Functions inherited from SalInstanceBuilder
 SalInstanceBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, const css::uno::Reference< css::frame::XFrame > &rFrame=css::uno::Reference< css::frame::XFrame >())
 
virtual std::unique_ptr< weld::Assistantweld_assistant (const OString &id) override
 
virtual std::unique_ptr< weld::Windowcreate_screenshot_window () override
 
virtual std::unique_ptr< weld::Widgetweld_widget (const OString &id) override
 
virtual std::unique_ptr< weld::Containerweld_container (const OString &id) override
 
virtual std::unique_ptr< weld::Boxweld_box (const OString &id) override
 
virtual std::unique_ptr< weld::Panedweld_paned (const OString &id) override
 
virtual std::unique_ptr< weld::Frameweld_frame (const OString &id) override
 
virtual std::unique_ptr< weld::ScrolledWindowweld_scrolled_window (const OString &id, bool bUserManagedScrolling=false) override
 
virtual std::unique_ptr< weld::MenuButtonweld_menu_button (const OString &id) override
 
virtual std::unique_ptr< weld::MenuToggleButtonweld_menu_toggle_button (const OString &id) override
 
virtual std::unique_ptr< weld::LinkButtonweld_link_button (const OString &id) override
 
virtual std::unique_ptr< weld::ToggleButtonweld_toggle_button (const OString &id) override
 
virtual std::unique_ptr< weld::Scaleweld_scale (const OString &id) override
 
virtual std::unique_ptr< weld::ProgressBarweld_progress_bar (const OString &id) override
 
virtual std::unique_ptr< weld::Spinnerweld_spinner (const OString &id) override
 
virtual std::unique_ptr< weld::Imageweld_image (const OString &id) override
 
virtual std::unique_ptr< weld::Calendarweld_calendar (const OString &id) override
 
virtual std::unique_ptr< weld::MetricSpinButtonweld_metric_spin_button (const OString &id, FieldUnit eUnit) override
 
virtual std::unique_ptr< weld::FormattedSpinButtonweld_formatted_spin_button (const OString &id) override
 
virtual std::unique_ptr< weld::EntryTreeViewweld_entry_tree_view (const OString &containerid, const OString &entryid, const OString &treeviewid) override
 
virtual std::unique_ptr< weld::Menuweld_menu (const OString &id) override
 
virtual std::unique_ptr< weld::SizeGroupcreate_size_group () override
 
OString get_current_page_help_id () const
 
virtual ~SalInstanceBuilder () override
 
- Public Member Functions inherited from weld::Builder
virtual ~Builder ()
 
- Public Member Functions inherited from JSDialogSender
 JSDialogSender ()=default
 
 JSDialogSender (VclPtr< vcl::Window > aNotifierWindow, VclPtr< vcl::Window > aContentWindow, std::string sTypeOfJSON)
 
virtual ~JSDialogSender ()=default
 
virtual void sendFullUpdate (bool bForce=false)
 
void sendClose ()
 
virtual void sendUpdate (VclPtr< vcl::Window > pWindow)
 
void flush ()
 

Static Public Member Functions

static JSInstanceBuilderCreateDialogBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 
static JSInstanceBuilderCreateNotebookbarBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, const css::uno::Reference< css::frame::XFrame > &rFrame, sal_uInt64 nWindowId=0)
 
static JSInstanceBuilderCreateAutofilterWindowBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 
static weld::MessageDialogCreateMessageDialog (weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage)
 

Private Member Functions

void RememberWidget (const OString &id, weld::Widget *pWidget)
 
 JSInstanceBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 used for dialogs More...
 
 JSInstanceBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, const css::uno::Reference< css::frame::XFrame > &rFrame, sal_uInt64 nWindowId=0)
 used for notebookbar, optional nWindowId is used if getting parent id failed More...
 
 JSInstanceBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 for autofilter dropdown More...
 
const std::string & GetTypeOfJSON ()
 
VclPtr< vcl::Window > & GetContentWindow ()
 
VclPtr< vcl::Window > & GetNotifierWindow ()
 

Static Private Member Functions

static std::map< sal_uInt64, WidgetMap > & GetLOKWeldWidgetsMap ()
 
static void InsertWindowToMap (sal_uInt64 nWindowId)
 
static weld::WidgetFindWeldWidgetsMap (sal_uInt64 nWindowId, const OString &rWidget)
 

Private Attributes

sal_uInt64 m_nWindowId
 
VclPtr< vcl::Windowm_aParentDialog
 used in case of tab pages where dialog is not a direct top level More...
 
VclPtr< vcl::Windowm_aContentWindow
 
std::list< std::string > m_aRememberedWidgets
 
std::string m_sTypeOfJSON
 
bool m_bHasTopLevelDialog
 
bool m_bIsNotebookbar
 

Friends

VCL_DLLPUBLIC bool jsdialog::ExecuteAction (sal_uInt64 nWindowId, const OString &rWidget, StringMap &rData)
 

Additional Inherited Members

- Protected Member Functions inherited from JSDialogSender
void initializeSender (VclPtr< vcl::Window > aNotifierWindow, VclPtr< vcl::Window > aContentWindow, std::string sTypeOfJSON)
 
- Protected Attributes inherited from SalInstanceBuilder
std::unique_ptr< VclBuilderm_xBuilder
 
VclPtr< vcl::Windowm_aOwnedToplevel
 

Detailed Description

Definition at line 136 of file jsdialogbuilder.hxx.

Constructor & Destructor Documentation

JSInstanceBuilder::JSInstanceBuilder ( weld::Widget pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
private

used for dialogs

JSInstanceBuilder::JSInstanceBuilder ( vcl::Window pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
sal_uInt64  nWindowId = 0 
)
private

used for notebookbar, optional nWindowId is used if getting parent id failed

JSInstanceBuilder::JSInstanceBuilder ( vcl::Window pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
private

for autofilter dropdown

virtual JSInstanceBuilder::~JSInstanceBuilder ( )
overridevirtual

Member Function Documentation

static JSInstanceBuilder* JSInstanceBuilder::CreateAutofilterWindowBuilder ( vcl::Window pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
static
static JSInstanceBuilder* JSInstanceBuilder::CreateDialogBuilder ( weld::Widget pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
static
static weld::MessageDialog* JSInstanceBuilder::CreateMessageDialog ( weld::Widget pParent,
VclMessageType  eMessageType,
VclButtonsType  eButtonType,
const OUString &  rPrimaryMessage 
)
static
static JSInstanceBuilder* JSInstanceBuilder::CreateNotebookbarBuilder ( vcl::Window pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
sal_uInt64  nWindowId = 0 
)
static
static weld::Widget* JSInstanceBuilder::FindWeldWidgetsMap ( sal_uInt64  nWindowId,
const OString &  rWidget 
)
staticprivate
VclPtr<vcl::Window>& JSInstanceBuilder::GetContentWindow ( )
private
static std::map<sal_uInt64, WidgetMap>& JSInstanceBuilder::GetLOKWeldWidgetsMap ( )
staticprivate
VclPtr<vcl::Window>& JSInstanceBuilder::GetNotifierWindow ( )
private
const std::string& JSInstanceBuilder::GetTypeOfJSON ( )
private
static void JSInstanceBuilder::InsertWindowToMap ( sal_uInt64  nWindowId)
staticprivate
void JSInstanceBuilder::RememberWidget ( const OString &  id,
weld::Widget pWidget 
)
private
virtual std::unique_ptr<weld::Button> JSInstanceBuilder::weld_button ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::CheckButton> JSInstanceBuilder::weld_check_button ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::ComboBox> JSInstanceBuilder::weld_combo_box ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::Dialog> JSInstanceBuilder::weld_dialog ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::DrawingArea> JSInstanceBuilder::weld_drawing_area ( const OString &  id,
const a11yref rA11yImpl = nullptr,
FactoryFunction  pUITestFactoryFunction = nullptr,
void pUserData = nullptr 
)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::Entry> JSInstanceBuilder::weld_entry ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::Expander> JSInstanceBuilder::weld_expander ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::IconView> JSInstanceBuilder::weld_icon_view ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::Label> JSInstanceBuilder::weld_label ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::MessageDialog> JSInstanceBuilder::weld_message_dialog ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::Notebook> JSInstanceBuilder::weld_notebook ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::RadioButton> JSInstanceBuilder::weld_radio_button ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::SpinButton> JSInstanceBuilder::weld_spin_button ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::TextView> JSInstanceBuilder::weld_text_view ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::Toolbar> JSInstanceBuilder::weld_toolbar ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

virtual std::unique_ptr<weld::TreeView> JSInstanceBuilder::weld_tree_view ( const OString &  id)
overridevirtual

Reimplemented from SalInstanceBuilder.

Friends And Related Function Documentation

VCL_DLLPUBLIC bool jsdialog::ExecuteAction ( sal_uInt64  nWindowId,
const OString &  rWidget,
StringMap rData 
)
friend

Member Data Documentation

VclPtr<vcl::Window> JSInstanceBuilder::m_aContentWindow
private

Definition at line 141 of file jsdialogbuilder.hxx.

VclPtr<vcl::Window> JSInstanceBuilder::m_aParentDialog
private

used in case of tab pages where dialog is not a direct top level

Definition at line 140 of file jsdialogbuilder.hxx.

std::list<std::string> JSInstanceBuilder::m_aRememberedWidgets
private

Definition at line 142 of file jsdialogbuilder.hxx.

bool JSInstanceBuilder::m_bHasTopLevelDialog
private

Definition at line 144 of file jsdialogbuilder.hxx.

bool JSInstanceBuilder::m_bIsNotebookbar
private

Definition at line 145 of file jsdialogbuilder.hxx.

sal_uInt64 JSInstanceBuilder::m_nWindowId
private

Definition at line 138 of file jsdialogbuilder.hxx.

std::string JSInstanceBuilder::m_sTypeOfJSON
private

Definition at line 143 of file jsdialogbuilder.hxx.


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