LibreOffice Module filter (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XMLFilterTestDialog Class Reference

#include <xmlfiltertestdialog.hxx>

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

Public Member Functions

 XMLFilterTestDialog (weld::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~XMLFilterTestDialog () override
 
void test (const filter_info_impl &rFilterInfo)
 
void updateCurrentDocumentButtonState (css::uno::Reference< css::lang::XComponent > const *pRef=nullptr)
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (ClickHdl_Impl, weld::Button &, void)
 
void onExportBrowse ()
 
void onExportCurrentDocument ()
 
void onImportBrowse ()
 
void initDialog ()
 
css::uno::Reference< css::lang::XComponent > getFrontMostDocument (const OUString &rServiceName)
 returns the front most open component that supports the given service More...
 
void import (const OUString &rURL)
 
void doExport (const css::uno::Reference< css::lang::XComponent > &xComp)
 

Static Private Member Functions

static void displayXMLFile (const OUString &rURL)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > mxContext
 
css::uno::Reference< css::document::XDocumentEventBroadcaster > mxGlobalBroadcaster
 
css::uno::Reference< css::document::XDocumentEventListener > mxGlobalEventListener
 
css::uno::WeakReference< css::lang::XComponent > mxLastFocusModel
 
OUString m_sImportRecentFile
 
OUString m_sExportRecentFile
 
std::unique_ptr< filter_info_implm_xFilterInfo
 
OUString m_sDialogTitle
 
std::unique_ptr< weld::Widgetm_xExport
 
std::unique_ptr< weld::Labelm_xFTExportXSLTFile
 
std::unique_ptr< weld::Buttonm_xPBExportBrowse
 
std::unique_ptr< weld::Buttonm_xPBCurrentDocument
 
std::unique_ptr< weld::Labelm_xFTNameOfCurrentFile
 
std::unique_ptr< weld::Widgetm_xImport
 
std::unique_ptr< weld::Labelm_xFTImportXSLTFile
 
std::unique_ptr< weld::Labelm_xFTImportTemplate
 
std::unique_ptr< weld::Labelm_xFTImportTemplateFile
 
std::unique_ptr< weld::CheckButtonm_xCBXDisplaySource
 
std::unique_ptr< weld::Buttonm_xPBImportBrowse
 
std::unique_ptr< weld::Buttonm_xPBRecentFile
 
std::unique_ptr< weld::Labelm_xFTNameOfRecentFile
 
std::unique_ptr< weld::Buttonm_xPBClose
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 30 of file xmlfiltertestdialog.hxx.

Constructor & Destructor Documentation

◆ XMLFilterTestDialog()

XMLFilterTestDialog::XMLFilterTestDialog ( weld::Window pParent,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)

◆ ~XMLFilterTestDialog()

XMLFilterTestDialog::~XMLFilterTestDialog ( )
overridevirtual

Member Function Documentation

◆ DECL_LINK()

XMLFilterTestDialog::DECL_LINK ( ClickHdl_Impl  ,
weld::Button ,
void   
)
private

◆ displayXMLFile()

void XMLFilterTestDialog::displayXMLFile ( const OUString &  rURL)
staticprivate

Definition at line 510 of file xmlfiltertestdialog.cxx.

References comphelper::getProcessComponentContext().

Referenced by doExport(), and import().

◆ doExport()

void XMLFilterTestDialog::doExport ( const css::uno::Reference< css::lang::XComponent > &  xComp)
private

◆ getFrontMostDocument()

Reference< XComponent > XMLFilterTestDialog::getFrontMostDocument ( const OUString &  rServiceName)
private

returns the front most open component that supports the given service

Definition at line 643 of file xmlfiltertestdialog.cxx.

References checkComponent(), Exception, mxContext, mxLastFocusModel, and TOOLS_WARN_EXCEPTION.

Referenced by onExportCurrentDocument(), and updateCurrentDocumentButtonState().

◆ import()

void XMLFilterTestDialog::import ( const OUString &  rURL)
private

◆ initDialog()

void XMLFilterTestDialog::initDialog ( )
private

◆ onExportBrowse()

void XMLFilterTestDialog::onExportBrowse ( )
private

◆ onExportCurrentDocument()

void XMLFilterTestDialog::onExportCurrentDocument ( )
private

Definition at line 409 of file xmlfiltertestdialog.cxx.

References doExport(), getFrontMostDocument(), and m_xFilterInfo.

◆ onImportBrowse()

void XMLFilterTestDialog::onImportBrowse ( )
private

◆ test()

void XMLFilterTestDialog::test ( const filter_info_impl rFilterInfo)

◆ updateCurrentDocumentButtonState()

void XMLFilterTestDialog::updateCurrentDocumentButtonState ( css::uno::Reference< css::lang::XComponent > const *  pRef = nullptr)

Member Data Documentation

◆ m_sDialogTitle

OUString XMLFilterTestDialog::m_sDialogTitle
private

Definition at line 63 of file xmlfiltertestdialog.hxx.

Referenced by initDialog(), and XMLFilterTestDialog().

◆ m_sExportRecentFile

OUString XMLFilterTestDialog::m_sExportRecentFile
private

Definition at line 61 of file xmlfiltertestdialog.hxx.

Referenced by onExportBrowse().

◆ m_sImportRecentFile

OUString XMLFilterTestDialog::m_sImportRecentFile
private

Definition at line 60 of file xmlfiltertestdialog.hxx.

Referenced by initDialog(), onImportBrowse(), and test().

◆ m_xCBXDisplaySource

std::unique_ptr<weld::CheckButton> XMLFilterTestDialog::m_xCBXDisplaySource
private

Definition at line 74 of file xmlfiltertestdialog.hxx.

Referenced by import().

◆ m_xExport

std::unique_ptr<weld::Widget> XMLFilterTestDialog::m_xExport
private

Definition at line 65 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xFilterInfo

std::unique_ptr<filter_info_impl> XMLFilterTestDialog::m_xFilterInfo
private

◆ m_xFTExportXSLTFile

std::unique_ptr<weld::Label> XMLFilterTestDialog::m_xFTExportXSLTFile
private

Definition at line 66 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xFTImportTemplate

std::unique_ptr<weld::Label> XMLFilterTestDialog::m_xFTImportTemplate
private

Definition at line 72 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xFTImportTemplateFile

std::unique_ptr<weld::Label> XMLFilterTestDialog::m_xFTImportTemplateFile
private

Definition at line 73 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xFTImportXSLTFile

std::unique_ptr<weld::Label> XMLFilterTestDialog::m_xFTImportXSLTFile
private

Definition at line 71 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xFTNameOfCurrentFile

std::unique_ptr<weld::Label> XMLFilterTestDialog::m_xFTNameOfCurrentFile
private

Definition at line 69 of file xmlfiltertestdialog.hxx.

Referenced by updateCurrentDocumentButtonState().

◆ m_xFTNameOfRecentFile

std::unique_ptr<weld::Label> XMLFilterTestDialog::m_xFTNameOfRecentFile
private

Definition at line 77 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xImport

std::unique_ptr<weld::Widget> XMLFilterTestDialog::m_xImport
private

Definition at line 70 of file xmlfiltertestdialog.hxx.

Referenced by initDialog().

◆ m_xPBClose

std::unique_ptr<weld::Button> XMLFilterTestDialog::m_xPBClose
private

Definition at line 78 of file xmlfiltertestdialog.hxx.

Referenced by XMLFilterTestDialog().

◆ m_xPBCurrentDocument

std::unique_ptr<weld::Button> XMLFilterTestDialog::m_xPBCurrentDocument
private

◆ m_xPBExportBrowse

std::unique_ptr<weld::Button> XMLFilterTestDialog::m_xPBExportBrowse
private

Definition at line 67 of file xmlfiltertestdialog.hxx.

Referenced by XMLFilterTestDialog().

◆ m_xPBImportBrowse

std::unique_ptr<weld::Button> XMLFilterTestDialog::m_xPBImportBrowse
private

Definition at line 75 of file xmlfiltertestdialog.hxx.

Referenced by XMLFilterTestDialog().

◆ m_xPBRecentFile

std::unique_ptr<weld::Button> XMLFilterTestDialog::m_xPBRecentFile
private

Definition at line 76 of file xmlfiltertestdialog.hxx.

Referenced by initDialog(), and XMLFilterTestDialog().

◆ mxContext

css::uno::Reference< css::uno::XComponentContext > XMLFilterTestDialog::mxContext
private

◆ mxGlobalBroadcaster

css::uno::Reference< css::document::XDocumentEventBroadcaster > XMLFilterTestDialog::mxGlobalBroadcaster
private

Definition at line 56 of file xmlfiltertestdialog.hxx.

Referenced by XMLFilterTestDialog(), and ~XMLFilterTestDialog().

◆ mxGlobalEventListener

css::uno::Reference< css::document::XDocumentEventListener > XMLFilterTestDialog::mxGlobalEventListener
private

Definition at line 57 of file xmlfiltertestdialog.hxx.

Referenced by XMLFilterTestDialog(), and ~XMLFilterTestDialog().

◆ mxLastFocusModel

css::uno::WeakReference< css::lang::XComponent > XMLFilterTestDialog::mxLastFocusModel
private

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