LibreOffice Module sfx2 (master) 1
|
Public Member Functions | |
ModelData_Impl (SfxStoringHelper &aOwner, uno::Reference< frame::XModel > xModel, const uno::Sequence< beans::PropertyValue > &aMediaDescr) | |
~ModelData_Impl () | |
void | FreeDocumentProps () |
uno::Reference< frame::XModel > const & | GetModel () const |
uno::Reference< frame::XStorable > const & | GetStorable () |
uno::Reference< frame::XStorable2 > const & | GetStorable2 () |
::comphelper::SequenceAsHashMap & | GetMediaDescr () |
bool | IsRecommendReadOnly () const |
const ::comphelper::SequenceAsHashMap & | GetDocProps () |
OUString const & | GetModuleName () |
const ::comphelper::SequenceAsHashMap & | GetModuleProps () |
void | CheckInteractionHandler () |
OUString | GetDocServiceName () |
uno::Sequence< beans::PropertyValue > | GetDocServiceDefaultFilterCheckFlags (SfxFilterFlags nMust, SfxFilterFlags nDont) |
uno::Sequence< beans::PropertyValue > | GetDocServiceAnyFilter (SfxFilterFlags nMust, SfxFilterFlags nDont) |
uno::Sequence< beans::PropertyValue > | GetPreselectedFilter_Impl (sal_Int16 nStoreMode) |
uno::Sequence< beans::PropertyValue > | GetDocServiceDefaultFilter () |
bool | ExecuteFilterDialog_Impl (const OUString &aFilterName, bool bAsync) |
sal_Int8 | CheckSaveAcceptable (sal_Int8 nCurStatus) |
sal_Int8 | CheckStateForSave () |
sal_Int8 | CheckFilter (const OUString &) |
bool | CheckFilterOptionsDialogExistence () |
bool | OutputFileDialog (sal_Int16 nStoreMode, const ::comphelper::SequenceAsHashMap &aPreselectedFilterPropsHM, bool bSetStandardName, OUString &aSuggestedName, bool bPreselectPassword, OUString &aSuggestedDir, sal_Int16 nDialog, const OUString &rStandardDir, const css::uno::Sequence< OUString > &rDenyList) |
bool | ShowDocumentInfoDialog () |
OUString | GetRecommendedDir (const OUString &aSuggestedDir) |
OUString | GetRecommendedName (const OUString &aSuggestedName, const OUString &aTypeName) |
Static Public Member Functions | |
static OUString | GetRecommendedExtension (const OUString &aTypeName) |
Private Member Functions | |
DECL_LINK (OptionsDialogClosedHdl, css::ui::dialogs::DialogClosedEvent *, void) | |
Private Attributes | |
SfxStoringHelper * | m_pOwner |
uno::Reference< frame::XModel > | m_xModel |
uno::Reference< frame::XStorable > | m_xStorable |
uno::Reference< frame::XStorable2 > | m_xStorable2 |
OUString | m_aModuleName |
std::unique_ptr<::comphelper::SequenceAsHashMap > | m_pDocumentPropsHM |
std::unique_ptr<::comphelper::SequenceAsHashMap > | m_pModulePropsHM |
uno::Reference< beans::XPropertyAccess > | m_xFilterProperties |
uno::Reference< ui::dialogs::XAsynchronousExecutableDialog > | m_xFilterDialog |
::comphelper::SequenceAsHashMap | m_aMediaDescrHM |
bool | m_bRecommendReadOnly |
Definition at line 262 of file guisaveas.cxx.
ModelData_Impl::ModelData_Impl | ( | SfxStoringHelper & | aOwner, |
uno::Reference< frame::XModel > | xModel, | ||
const uno::Sequence< beans::PropertyValue > & | aMediaDescr | ||
) |
Definition at line 342 of file guisaveas.cxx.
References CheckInteractionHandler(), m_pOwner, m_xModel, and xModel.
ModelData_Impl::~ModelData_Impl | ( | ) |
Definition at line 354 of file guisaveas.cxx.
References FreeDocumentProps(), m_pDocumentPropsHM, m_pModulePropsHM, and m_xFilterProperties.
sal_Int8 ModelData_Impl::CheckFilter | ( | const OUString & | aFilterName | ) |
Definition at line 762 of file guisaveas.cxx.
References aUIName, comphelper::SequenceAsHashMap::empty(), GetDocProps(), GetDocServiceDefaultFilterCheckFlags(), SfxStoringHelper::GetFilterConfiguration(), GetModel(), GetRecommendedExtension(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), m_pOwner, STATUS_SAVE, STATUS_SAVEAS, STATUS_SAVEAS_STANDARDNAME, and SfxStoringHelper::WarnUnacceptableFormat().
Referenced by CheckStateForSave(), and SfxStoringHelper::FinishGUIStoreModel().
bool ModelData_Impl::CheckFilterOptionsDialogExistence | ( | ) |
Definition at line 851 of file guisaveas.cxx.
References GetDocServiceName(), SfxStoringHelper::GetFilterQuery(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), and m_pOwner.
Referenced by OutputFileDialog().
void ModelData_Impl::CheckInteractionHandler | ( | ) |
Definition at line 444 of file guisaveas.cxx.
References DBG_ASSERT, comphelper::SequenceAsHashMap::end(), comphelper::SequenceAsHashMap::find(), comphelper::getProcessComponentContext(), m_aMediaDescrHM, and u.
Referenced by ModelData_Impl().
Definition at line 694 of file guisaveas.cxx.
References Application::CreateMessageDialog(), end, find(), GetMediaDescr(), SfxStoringHelper::GetModelWindow(), GetStorable(), m_xModel, RET_OK, SfxResId(), STATUS_NO_ACTION, and STATUS_SAVEAS.
Referenced by SfxStoringHelper::GUIStoreModel().
sal_Int8 ModelData_Impl::CheckStateForSave | ( | ) |
Definition at line 720 of file guisaveas.cxx.
References aFilterNameString, CheckFilter(), DBG_ASSERT, end, find(), GetDocProps(), GetMediaDescr(), GetStorable(), size, comphelper::SequenceAsHashMap::size(), STATUS_SAVEAS, and u.
Referenced by SfxStoringHelper::GUIStoreModel().
|
private |
bool ModelData_Impl::ExecuteFilterDialog_Impl | ( | const OUString & | aFilterName, |
bool | bAsync | ||
) |
Definition at line 553 of file guisaveas.cxx.
References ERRCODE_IO_ABORT, ERRCODE_IO_INVALIDPARAMETER, SfxStoringHelper::GetFilterConfiguration(), GetMediaDescr(), GetModel(), SfxStoringHelper::GetModelXWindow(), comphelper::getProcessServiceFactory(), comphelper::InitAnyPropertySequence(), LINK, m_pOwner, m_xFilterDialog, m_xFilterProperties, m_xModel, and TOOLS_WARN_EXCEPTION.
Referenced by SfxStoringHelper::FinishGUIStoreModel(), and SfxStoringHelper::GUIStoreModel().
void ModelData_Impl::FreeDocumentProps | ( | ) |
Definition at line 364 of file guisaveas.cxx.
References m_pDocumentPropsHM.
Referenced by SfxStoringHelper::FinishGUIStoreModel(), SfxStoringHelper::GUIStoreModel(), and ~ModelData_Impl().
const ::comphelper::SequenceAsHashMap & ModelData_Impl::GetDocProps | ( | ) |
Definition at line 401 of file guisaveas.cxx.
References GetModel(), and m_pDocumentPropsHM.
Referenced by CheckFilter(), CheckStateForSave(), SfxStoringHelper::FinishGUIStoreModel(), SfxStoringHelper::GUIStoreModel(), and OutputFileDialog().
uno::Sequence< beans::PropertyValue > ModelData_Impl::GetDocServiceAnyFilter | ( | SfxFilterFlags | nMust, |
SfxFilterFlags | nDont | ||
) |
Definition at line 498 of file guisaveas.cxx.
References GetDocServiceName(), SfxStoringHelper::GetFilterQuery(), and m_pOwner.
Referenced by GetPreselectedFilter_Impl().
uno::Sequence< beans::PropertyValue > ModelData_Impl::GetDocServiceDefaultFilter | ( | ) |
Definition at line 468 of file guisaveas.cxx.
References SfxStoringHelper::GetFilterConfiguration(), GetModuleProps(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), and m_pOwner.
Referenced by GetDocServiceDefaultFilterCheckFlags().
uno::Sequence< beans::PropertyValue > ModelData_Impl::GetDocServiceDefaultFilterCheckFlags | ( | SfxFilterFlags | nMust, |
SfxFilterFlags | nDont | ||
) |
Definition at line 480 of file guisaveas.cxx.
References GetDocServiceDefaultFilter(), and comphelper::SequenceAsHashMap::getUnpackedValueOrDefault().
Referenced by CheckFilter(), and GetPreselectedFilter_Impl().
OUString ModelData_Impl::GetDocServiceName | ( | ) |
Definition at line 438 of file guisaveas.cxx.
References GetModuleProps(), and comphelper::SequenceAsHashMap::getUnpackedValueOrDefault().
Referenced by CheckFilterOptionsDialogExistence(), GetDocServiceAnyFilter(), GetPreselectedFilter_Impl(), and OutputFileDialog().
|
inline |
Definition at line 295 of file guisaveas.cxx.
References m_aMediaDescrHM.
Referenced by CheckSaveAcceptable(), CheckStateForSave(), ExecuteFilterDialog_Impl(), SfxStoringHelper::FinishGUIStoreModel(), GetRecommendedDir(), SfxStoringHelper::GUIStoreModel(), and OutputFileDialog().
uno::Reference< frame::XModel > const & ModelData_Impl::GetModel | ( | ) | const |
Definition at line 370 of file guisaveas.cxx.
References m_xModel.
Referenced by CheckFilter(), ExecuteFilterDialog_Impl(), SfxStoringHelper::FinishGUIStoreModel(), GetDocProps(), GetRecommendedName(), OutputFileDialog(), and ShowDocumentInfoDialog().
OUString const & ModelData_Impl::GetModuleName | ( | ) |
Definition at line 410 of file guisaveas.cxx.
References SfxStoringHelper::GetModuleManager(), m_aModuleName, m_pOwner, and m_xModel.
Referenced by GetModuleProps().
const ::comphelper::SequenceAsHashMap & ModelData_Impl::GetModuleProps | ( | ) |
Definition at line 423 of file guisaveas.cxx.
References SfxStoringHelper::GetModuleManager(), GetModuleName(), m_pModulePropsHM, and m_pOwner.
Referenced by GetDocServiceDefaultFilter(), and GetDocServiceName().
uno::Sequence< beans::PropertyValue > ModelData_Impl::GetPreselectedFilter_Impl | ( | sal_Int16 | nStoreMode | ) |
Definition at line 506 of file guisaveas.cxx.
References EPUBEXPORT_REQUESTED, GetDocServiceAnyFilter(), GetDocServiceDefaultFilterCheckFlags(), GetDocServiceName(), SfxStoringHelper::GetFilterQuery(), m_pOwner, PDFEXPORT_REQUESTED, SAVEAS_REQUESTED, SAVEASREMOTE_REQUESTED, and comphelper::MimeConfigurationHelper::SearchForFilter().
Referenced by SfxStoringHelper::GUIStoreModel().
OUString ModelData_Impl::GetRecommendedDir | ( | const OUString & | aSuggestedDir | ) |
Definition at line 1268 of file guisaveas.cxx.
References INetURLObject::GetMainURL(), GetMediaDescr(), GetStorable(), INetURLObject::HasError(), MAX_PATH, INetURLObject::NONE, INetURLObject::removeSegment(), and INetURLObject::setFinalSlash().
Referenced by OutputFileDialog().
|
static |
Definition at line 1242 of file guisaveas.cxx.
References createInstance(), comphelper::getProcessServiceFactory(), and comphelper::SequenceAsHashMap::getUnpackedValueOrDefault().
Referenced by CheckFilter(), and GetRecommendedName().
OUString ModelData_Impl::GetRecommendedName | ( | const OUString & | aSuggestedName, |
const OUString & | aTypeName | ||
) |
Definition at line 1323 of file guisaveas.cxx.
References INetURLObject::All, createInstance(), INetURLObject::GetLastName(), GetModel(), comphelper::getProcessServiceFactory(), GetRecommendedExtension(), GetStorable(), INetURLObject::SetExtension(), and INetURLObject::WithCharset.
Referenced by OutputFileDialog().
uno::Reference< frame::XStorable > const & ModelData_Impl::GetStorable | ( | ) |
Definition at line 379 of file guisaveas.cxx.
References m_xModel, and m_xStorable.
Referenced by CheckSaveAcceptable(), CheckStateForSave(), SfxStoringHelper::FinishGUIStoreModel(), GetRecommendedDir(), GetRecommendedName(), SfxStoringHelper::GUIStoreModel(), and OutputFileDialog().
uno::Reference< frame::XStorable2 > const & ModelData_Impl::GetStorable2 | ( | ) |
Definition at line 390 of file guisaveas.cxx.
References m_xModel, and m_xStorable2.
Referenced by SfxStoringHelper::GUIStoreModel().
|
inline |
Definition at line 297 of file guisaveas.cxx.
References m_bRecommendReadOnly.
Referenced by SfxStoringHelper::FinishGUIStoreModel().
bool ModelData_Impl::OutputFileDialog | ( | sal_Int16 | nStoreMode, |
const ::comphelper::SequenceAsHashMap & | aPreselectedFilterPropsHM, | ||
bool | bSetStandardName, | ||
OUString & | aSuggestedName, | ||
bool | bPreselectPassword, | ||
OUString & | aSuggestedDir, | ||
sal_Int16 | nDialog, | ||
const OUString & | rStandardDir, | ||
const css::uno::Sequence< OUString > & | rDenyList | ||
) |
Definition at line 873 of file guisaveas.cxx.
References aFilterDataString, aFilterNameString, aFilterOptionsString, aURL, sfx2::FileDialogHelper::CalcExport, sfx2::FileDialogHelper::CalcSaveAs, SfxStoringHelper::CheckFilterOptionsAppearance(), CheckFilterOptionsDialogExistence(), DBG_ASSERT, sfx2::FileDialogHelper::DrawExport, sfx2::FileDialogHelper::DrawSaveAs, comphelper::SequenceAsHashMap::end(), end, EPUBEXPORT_REQUESTED, comphelper::SequenceAsHashMap::erase(), ERRCODE_IO_ABORT, ERRCODE_IO_INVALIDPARAMETER, ERRCODE_NONE, Export, EXPORT_REQUESTED, find(), comphelper::SequenceAsHashMap::find(), GetDocProps(), GetDocServiceName(), SfxStoringHelper::GetFilterConfiguration(), GetMediaDescr(), GetModel(), SfxStoringHelper::GetModelWindow(), GetRecommendedDir(), GetRecommendedName(), GetStorable(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), SfxBoolItem::GetValue(), sfx2::FileDialogHelper::ImpressExport, sfx2::FileDialogHelper::ImpressSaveAs, comphelper::LibreOfficeKit::isActive(), m_bRecommendReadOnly, m_pOwner, m_xModel, INetURLObject::NONE, NONE, nPos, PDFEXPORT_REQUESTED, SaveACopy, SAVEACOPY_REQUESTED, SAVEAS_REQUESTED, SAVEASREMOTE_REQUESTED, SfxGetpApp(), SfxResId(), TransformItems(), TransformParameters(), u, sfx2::FileDialogHelper::UnknownContext, WIDEEXPORT_REQUESTED, INetURLObject::WithCharset, sfx2::FileDialogHelper::WriterExport, and sfx2::FileDialogHelper::WriterSaveAs.
Referenced by SfxStoringHelper::FinishGUIStoreModel().
bool ModelData_Impl::ShowDocumentInfoDialog | ( | ) |
Definition at line 1197 of file guisaveas.cxx.
References aProperties, aURL, GetModel(), comphelper::getProcessComponentContext(), comphelper::makePropertyValue(), xController, and xDispatch.
Referenced by SfxStoringHelper::FinishGUIStoreModel().
|
private |
Definition at line 276 of file guisaveas.cxx.
Referenced by CheckInteractionHandler(), and GetMediaDescr().
|
private |
Definition at line 269 of file guisaveas.cxx.
Referenced by GetModuleName().
|
private |
Definition at line 278 of file guisaveas.cxx.
Referenced by IsRecommendReadOnly(), and OutputFileDialog().
|
private |
Definition at line 270 of file guisaveas.cxx.
Referenced by FreeDocumentProps(), GetDocProps(), and ~ModelData_Impl().
|
private |
Definition at line 271 of file guisaveas.cxx.
Referenced by GetModuleProps(), and ~ModelData_Impl().
|
private |
Definition at line 264 of file guisaveas.cxx.
Referenced by CheckFilter(), CheckFilterOptionsDialogExistence(), ExecuteFilterDialog_Impl(), GetDocServiceAnyFilter(), GetDocServiceDefaultFilter(), GetModuleName(), GetModuleProps(), GetPreselectedFilter_Impl(), and OutputFileDialog().
|
private |
Definition at line 274 of file guisaveas.cxx.
Referenced by ExecuteFilterDialog_Impl().
|
private |
Definition at line 273 of file guisaveas.cxx.
Referenced by ExecuteFilterDialog_Impl(), and ~ModelData_Impl().
|
private |
Definition at line 265 of file guisaveas.cxx.
Referenced by CheckSaveAcceptable(), ExecuteFilterDialog_Impl(), GetModel(), GetModuleName(), GetStorable(), GetStorable2(), and OutputFileDialog().
|
private |
Definition at line 266 of file guisaveas.cxx.
Referenced by GetStorable().
|
private |
Definition at line 267 of file guisaveas.cxx.
Referenced by GetStorable2().