LibreOffice Module filter (master) 1
|
#include <xmlfiltertestdialog.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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_impl > | m_xFilterInfo |
OUString | m_sDialogTitle |
std::unique_ptr< weld::Widget > | m_xExport |
std::unique_ptr< weld::Label > | m_xFTExportXSLTFile |
std::unique_ptr< weld::Button > | m_xPBExportBrowse |
std::unique_ptr< weld::Button > | m_xPBCurrentDocument |
std::unique_ptr< weld::Label > | m_xFTNameOfCurrentFile |
std::unique_ptr< weld::Widget > | m_xImport |
std::unique_ptr< weld::Label > | m_xFTImportXSLTFile |
std::unique_ptr< weld::Label > | m_xFTImportTemplate |
std::unique_ptr< weld::Label > | m_xFTImportTemplateFile |
std::unique_ptr< weld::CheckButton > | m_xCBXDisplaySource |
std::unique_ptr< weld::Button > | m_xPBImportBrowse |
std::unique_ptr< weld::Button > | m_xPBRecentFile |
std::unique_ptr< weld::Label > | m_xFTNameOfRecentFile |
std::unique_ptr< weld::Button > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 30 of file xmlfiltertestdialog.hxx.
XMLFilterTestDialog::XMLFilterTestDialog | ( | weld::Window * | pParent, |
const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ||
) |
Definition at line 139 of file xmlfiltertestdialog.cxx.
References Exception, LINK, m_sDialogTitle, weld::GenericDialogController::m_xDialog, m_xPBClose, m_xPBCurrentDocument, m_xPBExportBrowse, m_xPBImportBrowse, m_xPBRecentFile, mxContext, mxContext, mxGlobalBroadcaster, mxGlobalEventListener, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 178 of file xmlfiltertestdialog.cxx.
References Exception, mxGlobalBroadcaster, mxGlobalEventListener, and TOOLS_WARN_EXCEPTION.
|
private |
|
staticprivate |
Definition at line 510 of file xmlfiltertestdialog.cxx.
References comphelper::getProcessComponentContext().
Referenced by doExport(), and import().
|
private |
Definition at line 414 of file xmlfiltertestdialog.cxx.
References Any, displayXMLFile(), Exception, File, getApplicationInfo(), utl::TempFileNamed::GetURL(), gentoken::i, m_xFilterInfo, comphelper::makePropertyValue(), application_info_impl::maXMLExporter, mxContext, TOOLS_WARN_EXCEPTION, and u.
Referenced by onExportBrowse(), and onExportCurrentDocument().
|
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().
|
private |
Definition at line 564 of file xmlfiltertestdialog.cxx.
References aArguments, displayXMLFile(), Exception, File, utl::TempFileNamed::GetURL(), m_xCBXDisplaySource, m_xFilterInfo, comphelper::makePropertyValue(), mxContext, TOOLS_WARN_EXCEPTION, and u.
|
private |
Definition at line 254 of file xmlfiltertestdialog.cxx.
References DBG_ASSERT, getFileNameFromURL(), m_sDialogTitle, m_sImportRecentFile, weld::GenericDialogController::m_xDialog, m_xExport, m_xFilterInfo, m_xFTExportXSLTFile, m_xFTImportTemplate, m_xFTImportTemplateFile, m_xFTImportXSLTFile, m_xFTNameOfRecentFile, m_xImport, m_xPBRecentFile, and updateCurrentDocumentButtonState().
Referenced by onExportBrowse(), onImportBrowse(), and test().
|
private |
Definition at line 284 of file xmlfiltertestdialog.cxx.
References aArguments, sfx2::FileDialogHelper::AddFilter(), Any, doExport(), ERRCODE_NONE, Exception, sfx2::FileDialogHelper::Execute(), sfx2::FileDialogHelper::GetPath(), initDialog(), m_sExportRecentFile, weld::GenericDialogController::m_xDialog, m_xFilterInfo, comphelper::makePropertyValue(), mxContext, n, nCount, sfx2::FileDialogHelper::SetCurrentFilter(), sfx2::FileDialogHelper::SetDisplayDirectory(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 409 of file xmlfiltertestdialog.cxx.
References doExport(), getFrontMostDocument(), and m_xFilterInfo.
|
private |
Definition at line 517 of file xmlfiltertestdialog.cxx.
References sfx2::FileDialogHelper::AddFilter(), ERRCODE_NONE, sfx2::FileDialogHelper::Execute(), sfx2::FileDialogHelper::GetPath(), gentoken::i, initDialog(), m_sImportRecentFile, weld::GenericDialogController::m_xDialog, m_xFilterInfo, and sfx2::FileDialogHelper::SetDisplayDirectory().
void XMLFilterTestDialog::test | ( | const filter_info_impl & | rFilterInfo | ) |
Definition at line 191 of file xmlfiltertestdialog.cxx.
References initDialog(), m_sImportRecentFile, weld::GenericDialogController::m_xDialog, and m_xFilterInfo.
Referenced by XMLFilterSettingsDialog::onTest().
void XMLFilterTestDialog::updateCurrentDocumentButtonState | ( | css::uno::Reference< css::lang::XComponent > const * | pRef = nullptr | ) |
Definition at line 209 of file xmlfiltertestdialog.cxx.
References aURL, checkComponent(), getFileNameFromURL(), getFrontMostDocument(), m_xFilterInfo, m_xFTNameOfCurrentFile, m_xPBCurrentDocument, and mxLastFocusModel.
Referenced by initDialog().
|
private |
Definition at line 63 of file xmlfiltertestdialog.hxx.
Referenced by initDialog(), and XMLFilterTestDialog().
|
private |
Definition at line 61 of file xmlfiltertestdialog.hxx.
Referenced by onExportBrowse().
|
private |
Definition at line 60 of file xmlfiltertestdialog.hxx.
Referenced by initDialog(), onImportBrowse(), and test().
|
private |
Definition at line 74 of file xmlfiltertestdialog.hxx.
Referenced by import().
|
private |
Definition at line 65 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 62 of file xmlfiltertestdialog.hxx.
Referenced by doExport(), import(), initDialog(), onExportBrowse(), onExportCurrentDocument(), onImportBrowse(), test(), and updateCurrentDocumentButtonState().
|
private |
Definition at line 66 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 72 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 73 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 71 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 69 of file xmlfiltertestdialog.hxx.
Referenced by updateCurrentDocumentButtonState().
|
private |
Definition at line 77 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 70 of file xmlfiltertestdialog.hxx.
Referenced by initDialog().
|
private |
Definition at line 78 of file xmlfiltertestdialog.hxx.
Referenced by XMLFilterTestDialog().
|
private |
Definition at line 68 of file xmlfiltertestdialog.hxx.
Referenced by updateCurrentDocumentButtonState(), and XMLFilterTestDialog().
|
private |
Definition at line 67 of file xmlfiltertestdialog.hxx.
Referenced by XMLFilterTestDialog().
|
private |
Definition at line 75 of file xmlfiltertestdialog.hxx.
Referenced by XMLFilterTestDialog().
|
private |
Definition at line 76 of file xmlfiltertestdialog.hxx.
Referenced by initDialog(), and XMLFilterTestDialog().
|
private |
Definition at line 55 of file xmlfiltertestdialog.hxx.
Referenced by doExport(), getFrontMostDocument(), import(), onExportBrowse(), and XMLFilterTestDialog().
|
private |
Definition at line 56 of file xmlfiltertestdialog.hxx.
Referenced by XMLFilterTestDialog(), and ~XMLFilterTestDialog().
|
private |
Definition at line 57 of file xmlfiltertestdialog.hxx.
Referenced by XMLFilterTestDialog(), and ~XMLFilterTestDialog().
|
private |
Definition at line 58 of file xmlfiltertestdialog.hxx.
Referenced by getFrontMostDocument(), and updateCurrentDocumentButtonState().