LibreOffice Module svx (master) 1
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
sfx2 Namespace Reference

Namespaces

namespace  PreventDuplicateInteraction
 
namespace  sidebar
 
namespace  SvLinkSource
 
namespace  XmlIdRegistryClipboard
 
namespace  XmlIdRegistryDocument
 

Classes

class  DocumentInserter
 
class  DocumentMacroMode
 
struct  DocumentMacroMode_Data
 
class  DocumentMetadataAccess
 
struct  DocumentMetadataAccess_Impl
 
class  DocumentSigner
 
class  DocumentStorageModifyListener
 
class  DocumentUndoManager
 
struct  DocumentUndoManager_Impl
 
class  FileDialogHelper
 
class  FileDialogHelper_Impl
 
class  IMacroDocumentAccess
 
class  IModifiableDocument
 
struct  ImplBaseLinkData
 
class  IXmlIdRegistry
 
class  LinkManager
 
struct  LoadRecentFile
 
class  MetadatableClipboard
 
class  MetadatableMixin
 
class  MetadatableUndo
 
class  PreventDuplicateInteraction
 
class  RecentDocsView
 
class  SafeMode
 
class  SearchDialog
 
class  SfxNotebookBar
 
class  StyleManager
 
class  StylePreviewRenderer
 
class  SvBaseLink
 
class  SvDDEObject
 
class  SvLinkSource
 
struct  SvLinkSource_Impl
 
class  TSortedFilterList
 
class  UserInputInterception
 
struct  UserInputInterception_Data
 
class  WarningDialogsParent
 
class  WarningDialogsParentScope
 
class  XmlIdRegistry
 

Typedefs

typedef std::unordered_map< OUString, intKeywordInfo
 
typedef StringPair FilterDescriptor
 
typedef ::std::list< FilterDescriptorFilterGroup
 
typedef ::std::list< FilterGroupGroupedFilterList
 
typedef OUString FilterName
 
typedef ::std::map< OUString, FilterGroup::iterator > FilterGroupEntryReferrer
 
typedef ::std::list< FilterClass > FilterClassList
 
typedef ::std::map< OUString, FilterClassList::iterator > FilterClassReferrer
 
typedef ::std::vector< ::std::pair< FilterGroupEntryReferrer::mapped_type, FilterGroup::iterator > > MapGroupEntry2GroupEntry
 
typedef ::std::vector< Metadatable * > XmlIdVector_t
 
typedef std::unordered_map< OUString, ::std::pair< XmlIdVector_t, XmlIdVector_t > > XmlIdMap_t
 
typedef std::unordered_map< const Metadatable *, ::std::pair< OUString, OUString >, PtrHash< Metadatable > > XmlIdReverseMap_t
 
typedef std::unordered_map< const Metadatable *, struct RMapEntry, PtrHash< Metadatable > > ClipboardXmlIdReverseMap_t
 
typedef std::unordered_map< OUString, ::std::pair< Metadatable *, Metadatable * > > ClipboardXmlIdMap_t
 
typedef comphelper::ConfigurationListenerProperty< OUString > ClassificationPropertyListenerBase
 
typedef cppu::ImplInheritanceHelper< svt::ToolboxController, lang::XServiceInfo > ClassificationCategoriesControllerBase
 
typedef std::vector< tools::SvRef< SvBaseLink > > SvBaseLinks
 
typedef o3tl::sorted_vector< SvLinkSource * > SvLinkSources
 
typedef tools::SvRef< SvLinkSourceSvLinkSourceRef
 

Enumerations

enum  ApplicationType {
  TYPE_NONE ,
  TYPE_WRITER ,
  TYPE_CALC ,
  TYPE_IMPRESS ,
  TYPE_DRAW ,
  TYPE_DATABASE ,
  TYPE_MATH ,
  TYPE_OTHER
}
 
enum  SvBaseLinkObjectType {
  Internal ,
  DdeExternal ,
  ClientSo ,
  ClientDde ,
  ClientFile ,
  ClientGraphic ,
  ClientOle
}
 

Functions

 IMPL_LINK_NOARG (SvDDELinkEditDialog, EditHdl_Impl, weld::Entry &, void)
 
 IMPL_LINK (SvDDEObject, ImplGetDDEData, const DdeData *, pData, void)
 
 IMPL_LINK (SvDDEObject, ImplDoneDDEData, bool, bValid, void)
 
void MakeLnkName (OUString &rName, const OUString *pType, std::u16string_view rFile, std::u16string_view rLink, const OUString *pFilter)
 
static OUString lcl_DDE_RelToAbs (const OUString &rTopic, std::u16string_view rBaseURL)
 
static void StartTimer (std::unique_ptr< SvLinkSourceTimer > &pTimer, SvLinkSource *pOwner, sal_uInt64 nTimeout)
 
 IMPL_LINK (SvBaseLink, EndEditHdl, const OUString &, _rNewName, void)
 
static OUString PrepareSearchString (const OUString &rSearchString, const Reference< XBreakIterator > &xBreak, bool bForSearch)
 
 IMPL_STATIC_LINK_NOARG (WarningDialogsParent, TerminateDesktop, void *, void)
 
 IMPL_LINK (RecentDocsView, ExecuteHdl_Impl, void *, p, void)
 
static std::optional< OUString > GetLastFilterConfigId (FileDialogHelper::Context _eContext)
 
static OUString EncodeSpaces_Impl (const OUString &rSource)
 
static OUString DecodeSpaces_Impl (const OUString &rSource)
 
 IMPL_LINK_NOARG (FileDialogHelper_Impl, TimeOutHdl_Impl, Timer *, void)
 
static bool lcl_isSystemFilePicker (const uno::Reference< XExecutableDialog > &_rxFP)
 
static open_or_save_t lcl_OpenOrSave (sal_Int16 const nDialogType)
 
css::uno::Reference< css::ui::dialogs::XFolderPicker2 > createFolderPicker (const css::uno::Reference< css::uno::XComponentContext > &rContext, weld::Window *pPreferredParent)
 
 IMPL_LINK_NOARG (FileDialogHelper_Impl, InitControls, void *, void)
 
static void SetToken (OUString &rOrigStr, sal_Int32 nToken, sal_Unicode cTok, std::u16string_view rStr)
 
 IMPL_LINK_NOARG (FileDialogHelper, ExecuteSystemFilePicker, void *, void)
 
static int impl_isFolder (const OUString &rPath)
 
ErrCode FileOpenDialog_Impl (weld::Window *pParent, sal_Int16 nDialogType, FileDialogFlags nFlags, std::vector< OUString > &rpURLList, OUString &rFilter, std::optional< SfxAllItemSet > &rpSet, const OUString *pPath, sal_Int16 nDialog, const OUString &rStandardDir, const css::uno::Sequence< OUString > &rDenyList)
 
bool IsMSType (const std::shared_ptr< const SfxFilter > &pCurrentFilter)
 
bool IsOOXML (const std::shared_ptr< const SfxFilter > &pCurrentFilter)
 
ErrCode SetPassword (const std::shared_ptr< const SfxFilter > &pCurrentFilter, SfxItemSet *pSet, const OUString &rPasswordToOpen, std::u16string_view rPasswordToModify, bool bAllowPasswordReset)
 
ErrCode RequestPassword (const std::shared_ptr< const SfxFilter > &pCurrentFilter, OUString const &aURL, SfxItemSet *pSet, const css::uno::Reference< css::awt::XWindow > &rParent)
 
static void lcl_ReadFilterClass (const OConfigurationNode &_rClassesNode, const OUString &_rLogicalClassName, FilterClass &_rClass)
 
static void lcl_ReadGlobalFilters (const OConfigurationNode &_rFilterClassification, FilterClassList &_rGlobalClasses, std::vector< OUString > &_rGlobalClassNames)
 
static void lcl_ReadLocalFilters (const OConfigurationNode &_rFilterClassification, FilterClassList &_rLocalClasses)
 
static void lcl_ReadClassification (FilterClassList &_rGlobalClasses, std::vector< OUString > &_rGlobalClassNames, FilterClassList &_rLocalClasses)
 
const sal_Unicode s_cWildcardSeparator (';')
 
static OUString getSeparatorString ()
 
static void lcl_InitGlobalClasses (GroupedFilterList &_rAllFilters, const FilterClassList &_rGlobalClasses, FilterGroupEntryReferrer &_rGlobalClassesRef)
 
static void lcl_GroupAndClassify (TSortedFilterList &_rFilterMatcher, GroupedFilterList &_rAllFilters)
 
static bool lcl_hasAllFilesFilter (TSortedFilterList &_rFilterMatcher, OUString &_rAllFilterName)
 
static void lcl_EnsureAllFilesEntry (TSortedFilterList &_rFilterMatcher, GroupedFilterList &_rFilters)
 
void appendFiltersForSave (TSortedFilterList &_rFilterMatcher, const Reference< XFilterManager > &_rxFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl, std::u16string_view _rFactory)
 
void appendExportFilters (TSortedFilterList &_rFilterMatcher, const Reference< XFilterManager > &_rxFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl)
 
void appendFiltersForOpen (TSortedFilterList &_rFilterMatcher, const Reference< XFilterManager > &_rxFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl)
 
OUString addExtension (const OUString &_rDisplayText, const OUString &_rExtension, bool _bForOpen, FileDialogHelper_Impl &_rFileDlgImpl)
 
void appendFiltersForSave (TSortedFilterList &_rFilterMatcher, const css::uno::Reference< css::ui::dialogs::XFilterManager > &_rFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl, std::u16string_view _rFactory)
 
void appendExportFilters (TSortedFilterList &_rFilterMatcher, const css::uno::Reference< css::ui::dialogs::XFilterManager > &_rFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl)
 
void appendFiltersForOpen (TSortedFilterList &_rFilterMatcher, const css::uno::Reference< css::ui::dialogs::XFilterManager > &_rFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl)
 
 IMPL_LINK_NOARG (SearchDialog, FindHdl, weld::Button &, void)
 
ErrCode LoadOlePropertySet (const uno::Reference< document::XDocumentProperties > &i_xDocProps, SotStorage *i_pStorage)
 
bool SaveOlePropertySet (const uno::Reference< document::XDocumentProperties > &i_xDocProps, SotStorage *i_pStorage, const uno::Sequence< sal_Int8 > *i_pThumb, const uno::Sequence< sal_Int8 > *i_pGuid, const uno::Sequence< sal_Int8 > *i_pHyperlinks)
 
uno::Sequence< sal_Int8convertMetaFile (GDIMetaFile const *i_pThumb)
 
static void impl_FillURLList (sfx2::FileDialogHelper const *_pFileDlg, std::vector< OUString > &_rpURLList)
 
 IMPL_LINK_NOARG (DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper *, void)
 
bool isValidNCName (std::u16string_view i_rIdref)
 
static bool isContentFile (std::u16string_view i_rPath)
 
static bool isStylesFile (std::u16string_view i_rPath)
 
bool isValidXmlId (std::u16string_view i_rStreamName, std::u16string_view i_rIdref)
 
static bool isReservedFile (std::u16string_view i_rPath)
 
uno::Reference< rdf::XURI > createBaseURI (uno::Reference< uno::XComponentContext > const &i_xContext, uno::Reference< frame::XModel > const &i_xModel, OUString const &i_rPkgURI, std::u16string_view i_rSubDocument)
 
static uno::Reference< rdf::XURI > const & getURI (uno::Reference< uno::XComponentContext > const &i_xContext)
 
static bool isFileNameValid (std::u16string_view i_rFileName)
 
static bool splitPath (OUString const &i_rPath, OUString &o_rDir, OUString &o_rRest)
 
static bool splitXmlId (std::u16string_view i_XmlId, OUString &o_StreamName, OUString &o_Idref)
 
static uno::Reference< rdf::XURI > getURIForStream (struct DocumentMetadataAccess_Impl const &i_rImpl, OUString const &i_rPath)
 
static void addFile (struct DocumentMetadataAccess_Impl const &i_rImpl, uno::Reference< rdf::XURI > const &i_xType, OUString const &i_rPath, const uno::Sequence< uno::Reference< rdf::XURI > > *i_pTypes)
 
static bool addContentOrStylesFileImpl (struct DocumentMetadataAccess_Impl const &i_rImpl, const OUString &i_rPath)
 
static void addMetadataFileImpl (struct DocumentMetadataAccess_Impl const &i_rImpl, const OUString &i_rPath, const uno::Sequence< uno::Reference< rdf::XURI > > &i_rTypes)
 
static void removeFile (struct DocumentMetadataAccess_Impl const &i_rImpl, uno::Reference< rdf::XURI > const &i_xPart)
 
static ::std::vector< uno::Reference< rdf::XURI > > getAllParts (struct DocumentMetadataAccess_Impl const &i_rImpl)
 
static bool isPartOfType (struct DocumentMetadataAccess_Impl const &i_rImpl, uno::Reference< rdf::XURI > const &i_xPart, uno::Reference< rdf::XURI > const &i_xType)
 
static ::std::vector< uno::Reference< rdf::XURI > > getAllParts (struct DocumentMetadataAccess_Impl const &i_rImpl, const uno::Reference< rdf::XURI > &i_xType)
 
static ucb::InteractiveAugmentedIOException mkException (OUString const &i_rMessage, ucb::IOErrorCode const i_ErrorCode, OUString const &i_rUri, OUString const &i_rResource)
 
static bool handleError (ucb::InteractiveAugmentedIOException const &i_rException, const uno::Reference< task::XInteractionHandler > &i_xHandler)
 
static void collectFilesFromStorage (uno::Reference< embed::XStorage > const &i_xStorage, std::set< OUString > &o_rFiles)
 
static void readStream (struct DocumentMetadataAccess_Impl &i_rImpl, uno::Reference< embed::XStorage > const &i_xStorage, OUString const &i_rPath, OUString const &i_rBaseURI)
 
static void importFile (struct DocumentMetadataAccess_Impl &i_rImpl, uno::Reference< embed::XStorage > const &i_xStorage, OUString const &i_rBaseURI, uno::Reference< task::XInteractionHandler > const &i_xHandler, const OUString &i_rPath)
 
static void exportStream (struct DocumentMetadataAccess_Impl const &i_rImpl, uno::Reference< embed::XStorage > const &i_xStorage, uno::Reference< rdf::XURI > const &i_xGraphName, OUString const &i_rFileName, OUString const &i_rBaseURI)
 
static void writeStream (struct DocumentMetadataAccess_Impl &i_rImpl, uno::Reference< embed::XStorage > const &i_xStorage, uno::Reference< rdf::XURI > const &i_xGraphName, OUString const &i_rPath, OUString const &i_rBaseURI)
 
static void initLoading (struct DocumentMetadataAccess_Impl &i_rImpl, const uno::Reference< embed::XStorage > &i_xStorage, const uno::Reference< rdf::XURI > &i_xBaseURI, const uno::Reference< task::XInteractionHandler > &i_xHandler)
 
static void init (struct DocumentMetadataAccess_Impl &i_rImpl)
 
::sfx2::IXmlIdRegistrycreateXmlIdRegistry (const bool i_DocIsClipboard)
 
static OUString create_id (const std::unordered_map< OUString, T > &i_rXmlIdMap)
 
static void rmIter (XmlIdMap_t &i_rXmlIdMap, XmlIdMap_t::iterator const &i_rIter, std::u16string_view i_rStream, Metadatable const &i_rObject)
 
static void removeLink (Metadatable *i_pObject)
 
static void rmIter (ClipboardXmlIdMap_t &i_rXmlIdMap, ClipboardXmlIdMap_t::iterator const &i_rIter, std::u16string_view i_rStream, Metadatable const &i_rObject)
 
static const ::sfx2::IXmlIdRegistryGetRegistryConst (Metadatable const &i_rObject)
 
css::uno::Reference< css::uno::XInterface > createSfxModelInstance (const css::uno::Sequence< css::uno::Any > &rxArgs, std::function< css::uno::Reference< css::uno::XInterface >(SfxModelFlags)> creationFunc)
 
void openUriExternally (const OUString &sURI, bool bHandleSystemShellExecuteException, weld::Widget *pDialogParent)
 
 IMPL_LINK (ClassificationCategoriesController, SelectHdl, weld::ComboBox &, rCategory, void)
 
 IMPL_LINK (ClassificationControl, KeyInputHdl, const KeyEvent &, rKEvt, bool)
 
void closedialogs (SystemWindow &rTopLevel, bool bCloseRoot)
 
class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE ("crosscast") DigitalSignatures
 
ErrCode SFX2_DLLPUBLIC LoadOlePropertySet (const css::uno::Reference< css::document::XDocumentProperties > &i_xDocProps, SotStorage *i_pStorage)
 
bool SFX2_DLLPUBLIC SaveOlePropertySet (const css::uno::Reference< css::document::XDocumentProperties > &i_xDocProps, SotStorage *i_pStorage, const css::uno::Sequence< sal_Int8 > *i_pThumb=nullptr, const css::uno::Sequence< sal_Int8 > *i_pGuid=nullptr, const css::uno::Sequence< sal_Int8 > *i_pHyperlinks=nullptr)
 
css::uno::Reference< css::rdf::XURI > SFX2_DLLPUBLIC createBaseURI (css::uno::Reference< css::uno::XComponentContext > const &i_xContext, css::uno::Reference< css::frame::XModel > const &i_xModel, OUString const &i_rPkgURI, std::u16string_view i_rSubDocument=std::u16string_view())
 
constexpr bool isClientType (SvBaseLinkObjectType t)
 
constexpr bool isClientFileType (SvBaseLinkObjectType t)
 

Variables

constexpr tools::Long gnTextHeight
 
constexpr tools::Long gnItemPadding
 
constexpr OUStringLiteral GRF_CONFIG_STR
 
constexpr OUStringLiteral STD_CONFIG_STR
 
constexpr OUStringLiteral s_content
 
constexpr OUStringLiteral s_styles
 
constexpr OUStringLiteral s_manifest
 
const char s_odfmime []
 
const sal_Unicode cTokenSeparator