LibreOffice Module sfx2 (master) 1
|
#include <guisaveas.hxx>
Public Member Functions | |
SfxStoringHelper () | |
bool | GUIStoreModel (const css::uno::Reference< css::frame::XModel > &xModel, std::u16string_view aSlotName, css::uno::Sequence< css::beans::PropertyValue > &aArgsSequence, bool bPreselectPassword, SignatureState nDocumentSignatureState, bool bIsAsync) |
Static Public Member Functions | |
static bool | CheckFilterOptionsAppearance (const css::uno::Reference< css::container::XNameAccess > &xFilterCFG, const OUString &aFilterName) |
static void | SetDocInfoState (const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::document::XDocumentProperties > &i_xOldDocInfo) |
static bool | WarnUnacceptableFormat (const css::uno::Reference< css::frame::XModel > &xModel, std::u16string_view aOldUIName, const OUString &aDefExtension, bool rDefaultIsAlien) |
static css::uno::Reference< css::awt::XWindow > | GetModelXWindow (const css::uno::Reference< css::frame::XModel > &rModel) |
static weld::Window * | GetModelWindow (const css::uno::Reference< css::frame::XModel > &xModel) |
Private Member Functions | |
css::uno::Reference< css::container::XNameAccess > const & | GetFilterConfiguration () |
css::uno::Reference< css::container::XContainerQuery > const & | GetFilterQuery () |
css::uno::Reference< css::frame::XModuleManager2 > const & | GetModuleManager () |
void | CallFinishGUIStoreModel () |
Static Private Member Functions | |
static bool | FinishGUIStoreModel (::comphelper::SequenceAsHashMap::const_iterator &aFileNameIter, ModelData_Impl &aModelData, bool bRemote, sal_Int16 nStoreMode, css::uno::Sequence< css::beans::PropertyValue > &aFilterProps, bool bSetStandardName, bool bPreselectPassword, bool bDialogUsed, std::u16string_view aFilterFromMediaDescr, std::u16string_view aOldFilterName, css::uno::Sequence< css::beans::PropertyValue > &aArgsSequence, OUString aFilterName) |
Private Attributes | |
css::uno::Reference< css::container::XNameAccess > | m_xFilterCFG |
css::uno::Reference< css::container::XContainerQuery > | m_xFilterQuery |
css::uno::Reference< css::frame::XModuleManager2 > | m_xModuleManager |
std::shared_ptr< ModelData_Impl > | m_xModelData |
css::uno::Sequence< css::beans::PropertyValue > | m_aArgsSequence |
bool | m_bRemote |
bool | m_bPreselectPassword |
bool | m_bDialogUsed |
bool | m_bSetStandardName |
sal_Int16 | m_nStoreMode |
Friends | |
class | ModelData_Impl |
Definition at line 49 of file guisaveas.hxx.
SfxStoringHelper::SfxStoringHelper | ( | ) |
Definition at line 1361 of file guisaveas.cxx.
|
private |
Definition at line 658 of file guisaveas.cxx.
References aFilterNameString, SfxViewShell::Current(), FinishGUIStoreModel(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), m_aArgsSequence, m_bDialogUsed, m_bPreselectPassword, m_bRemote, m_bSetStandardName, m_nStoreMode, m_xModelData, and SfxViewShell::SetStoringHelper().
|
static |
Definition at line 1858 of file guisaveas.cxx.
References DBG_ASSERT, and comphelper::SequenceAsHashMap::getUnpackedValueOrDefault().
Referenced by ModelData_Impl::OutputFileDialog().
|
staticprivate |
Definition at line 1578 of file guisaveas.cxx.
References aFilterDataString, aFilterNameString, aFilterOptionsString, aURL, ModelData_Impl::CheckFilter(), SfxViewShell::Current(), DBG_ASSERT, SfxObjectShell::EnableSetModified(), comphelper::SequenceAsHashMap::end(), EPUBEXPORT_REQUESTED, ERRCODE_IO_INVALIDPARAMETER, ModelData_Impl::ExecuteFilterDialog_Impl(), EXPORT_REQUESTED, comphelper::SequenceAsHashMap::find(), ModelData_Impl::FreeDocumentProps(), comphelper::SequenceAsHashMap::getAsConstPropertyValueList(), ModelData_Impl::GetDocProps(), ModelData_Impl::GetMediaDescr(), ModelData_Impl::GetModel(), SfxViewShell::GetObjectShell(), ModelData_Impl::GetStorable(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), comphelper::LibreOfficeKit::isActive(), SfxObjectShell::IsEnableSetModified(), ModelData_Impl::IsRecommendReadOnly(), SfxObjectShell::IsUseUserData(), INetURLObject::NONE, ModelData_Impl::OutputFileDialog(), PDFEXPORT_REQUESTED, FilterConfigItem::ReadBool(), SAL_WARN, SAVEAS_REQUESTED, SetDocInfoState(), SFX2_IMPL_DIALOG_CONFIG, SFX2_IMPL_DIALOG_OOO, SFX2_IMPL_DIALOG_REMOTE, SFX2_IMPL_DIALOG_SYSTEM, SfxResId(), ModelData_Impl::ShowDocumentInfoDialog(), sStandardDir, STATUS_SAVE, STATUS_SAVEAS_STANDARDNAME, DateTime::SYSTEM, and u.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 1370 of file guisaveas.cxx.
References createInstance(), comphelper::getProcessServiceFactory(), and m_xFilterCFG.
Referenced by ModelData_Impl::CheckFilter(), ModelData_Impl::ExecuteFilterDialog_Impl(), ModelData_Impl::GetDocServiceDefaultFilter(), GetFilterQuery(), and ModelData_Impl::OutputFileDialog().
|
private |
Definition at line 1381 of file guisaveas.cxx.
References GetFilterConfiguration(), and m_xFilterQuery.
Referenced by ModelData_Impl::CheckFilterOptionsDialogExistence(), ModelData_Impl::GetDocServiceAnyFilter(), and ModelData_Impl::GetPreselectedFilter_Impl().
|
static |
Definition at line 2000 of file guisaveas.cxx.
References Application::GetFrameWeld(), GetModelXWindow(), and xModel.
Referenced by ModelData_Impl::CheckSaveAcceptable(), GUIStoreModel(), ModelData_Impl::OutputFileDialog(), and WarnUnacceptableFormat().
|
static |
Definition at line 1977 of file guisaveas.cxx.
References xController, xFrame, and xModel.
Referenced by ModelData_Impl::ExecuteFilterDialog_Impl(), and GetModelWindow().
|
private |
Definition at line 1391 of file guisaveas.cxx.
References comphelper::getProcessComponentContext(), and m_xModuleManager.
Referenced by ModelData_Impl::GetModuleName(), and ModelData_Impl::GetModuleProps().
bool SfxStoringHelper::GUIStoreModel | ( | const css::uno::Reference< css::frame::XModel > & | xModel, |
std::u16string_view | aSlotName, | ||
css::uno::Sequence< css::beans::PropertyValue > & | aArgsSequence, | ||
bool | bPreselectPassword, | ||
SignatureState | nDocumentSignatureState, | ||
bool | bIsAsync | ||
) |
Definition at line 1402 of file guisaveas.cxx.
References aFilterDataString, aFilterNameString, aFilterOptionsString, ModelData_Impl::CheckSaveAcceptable(), ModelData_Impl::CheckStateForSave(), Application::CreateMessageDialog(), SfxViewShell::Current(), DBG_ASSERT, comphelper::SequenceAsHashMap::end(), EPUBDIRECTEXPORT_REQUESTED, EPUBEXPORT_REQUESTED, ERRCODE_IO_ABORT, ERRCODE_IO_INVALIDPARAMETER, ModelData_Impl::ExecuteFilterDialog_Impl(), EXPORT_REQUESTED, comphelper::SequenceAsHashMap::find(), FinishGUIStoreModel(), ModelData_Impl::FreeDocumentProps(), comphelper::SequenceAsHashMap::getAsConstPropertyValueList(), ModelData_Impl::GetDocProps(), ModelData_Impl::GetMediaDescr(), GetModelWindow(), SfxViewShell::GetObjectShell(), ModelData_Impl::GetPreselectedFilter_Impl(), ModelData_Impl::GetStorable(), ModelData_Impl::GetStorable2(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), INVALID, comphelper::LibreOfficeKit::isActive(), SfxObjectShell::IsRememberingSignature(), m_aArgsSequence, m_bDialogUsed, m_bPreselectPassword, m_bRemote, m_bSetStandardName, m_nStoreMode, m_xModelData, NOTVALIDATED, OK, PARTIAL_OK, PDFDIRECTEXPORT_REQUESTED, PDFEXPORT_REQUESTED, RET_YES, SAVE_REQUESTED, SAVEACOPY_REQUESTED, SAVEAS_REQUESTED, SAVEASREMOTE_REQUESTED, SfxResId(), STATUS_NO_ACTION, STATUS_SAVE, STATUS_SAVEAS, STATUS_SAVEAS_STANDARDNAME, TOOLS_WARN_EXCEPTION, WIDEEXPORT_REQUESTED, and xModel.
|
static |
Definition at line 1887 of file guisaveas.cxx.
References TOOLS_INFO_EXCEPTION, and xModel.
Referenced by FinishGUIStoreModel().
|
static |
Definition at line 1963 of file guisaveas.cxx.
References GetModelWindow(), RET_OK, weld::DialogController::run(), and xModel.
Referenced by ModelData_Impl::CheckFilter().
|
friend |
Definition at line 51 of file guisaveas.hxx.
|
private |
Definition at line 59 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 67 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 66 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 65 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 68 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 69 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 54 of file guisaveas.hxx.
Referenced by GetFilterConfiguration().
|
private |
Definition at line 55 of file guisaveas.hxx.
Referenced by GetFilterQuery().
|
private |
Definition at line 58 of file guisaveas.hxx.
Referenced by CallFinishGUIStoreModel(), and GUIStoreModel().
|
private |
Definition at line 56 of file guisaveas.hxx.
Referenced by GetModuleManager().