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

Namespaces

namespace  sidebar
 

Classes

class  DocumentInserter
 
class  DocumentMacroMode
 encapsulates handling the macro mode of a document More...
 
struct  DocumentMacroMode_Data
 
class  DocumentMetadataAccess
 
struct  DocumentMetadataAccess_Impl
 
class  DocumentSigner
 
class  DocumentStorageModifyListener
 
class  DocumentUndoManager
 
struct  DocumentUndoManager_Impl
 
class  FileDialogHelper
 
class  FileDialogHelper_Impl
 
class  IMacroDocumentAccess
 provides access to several settings of a document, which are needed by ->DocumentMacroMode to properly determine the current macro execution mode of this document More...
 
class  IModifiableDocument
 callback for the DocumentStorageModifyListener class More...
 
struct  ImplBaseLinkData
 
class  IXmlIdRegistry
 interface for getElementByMetadataReference; for use by sfx2::DocumentMetadataAccess More...
 
class  LinkManager
 
struct  LoadRecentFile
 
class  MetadatableClipboard
 the horrible Clipboard Metadatable: inserted into lists to track position More...
 
class  MetadatableMixin
 base class for UNO objects that implement XMetadatable. More...
 
class  MetadatableUndo
 the horrible Undo Metadatable: is inserted into lists to track position More...
 
class  PreventDuplicateInteraction
 Prevent us from showing the same interaction more than once during the same transaction. More...
 
class  RecentDocsView
 
class  SafeMode
 
class  SearchDialog
 
class  SfxNotebookBar
 Helpers for easier access to NotebookBar via the sfx2 infrastructure. More...
 
class  StyleManager
 
class  StylePreviewRenderer
 
class  SvBaseLink
 
class  SvDDEObject
 
class  SvLinkSource
 
struct  SvLinkSource_Impl
 
class  TSortedFilterList
 
class  UserInputInterception
 helper class for implementing the XUserInputInterception interface for a controller implementation More...
 
struct  UserInputInterception_Data
 
class  WarningDialogsParent
 
class  WarningDialogsParentScope
 
class  XmlIdRegistry
 handles registration of XMetadatable. More...
 

Typedefs

typedef std::unordered_map< OUString, intKeywordInfo
 
typedef StringPair FilterDescriptor
 Some general words about what's going on here... More...
 
typedef ::std::list< FilterDescriptorFilterGroup
 
typedef ::std::list< FilterGroupGroupedFilterList
 
typedef OUString FilterName
 the logical name of a filter More...
 
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
 element list More...
 
typedef std::unordered_map< OUString, ::std::pair< XmlIdVector_t, XmlIdVector_t > > XmlIdMap_t
 Idref -> (content.xml element list, styles.xml element list) More...
 
typedef std::unordered_map< const Metadatable *, ::std::pair< OUString, OUString >, PtrHash< Metadatable > > XmlIdReverseMap_t
 element -> (stream name, idref) More...
 
typedef std::unordered_map< const Metadatable *, struct RMapEntry, PtrHash< Metadatable > > ClipboardXmlIdReverseMap_t
 element -> (stream name, idref, source) More...
 
typedef std::unordered_map< OUString, ::std::pair< Metadatable *, Metadatable * > > ClipboardXmlIdMap_t
 Idref -> (content.xml element, styles.xml element) More...
 
using ClassificationPropertyListenerBase = comphelper::ConfigurationListenerProperty< OUString >
 
using ClassificationCategoriesControllerBase = cppu::ImplInheritanceHelper< svt::ToolboxController, lang::XServiceInfo >
 
typedef std::vector< tools::SvRef< SvBaseLink > > SvBaseLinks
 
typedef o3tl::sorted_vector< SvLinkSource * > SvLinkSources
 
typedef tools::SvRef< SvLinkSourceSvLinkSourceRef
 

Enumerations

enum class  ApplicationType {
  TYPE_NONE = 0 ,
  TYPE_WRITER = 1 << 0 ,
  TYPE_CALC = 1 << 1 ,
  TYPE_IMPRESS = 1 << 2 ,
  TYPE_DRAW = 1 << 3 ,
  TYPE_DATABASE = 1 << 4 ,
  TYPE_MATH = 1 << 5 ,
  TYPE_OTHER = 1 << 6
}
 
enum class  SvBaseLinkObjectType {
  Internal = 0x00 ,
  DdeExternal = 0x02 ,
  ClientSo = 0x80 ,
  ClientDde = 0x81 ,
  ClientFile = 0x90 ,
  ClientGraphic = 0x91 ,
  ClientOle = 0x92
}
 

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)
 Prepare a search string for searching or selecting. More...
 
 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)
 adds the given extension to the display text. More...
 
void appendFiltersForSave (TSortedFilterList &_rFilterMatcher, const css::uno::Reference< css::ui::dialogs::XFilterManager > &_rFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl, std::u16string_view _rFactory)
 adds the given filters to the filter manager. More...
 
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)
 adds the given filters to the filter manager. More...
 
 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)
 is i_rIdref a valid NCName ? More...
 
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)
 
template<sal_Int16 Constant>
static uno::Reference< rdf::XURI > const & getURI (uno::Reference< uno::XComponentContext > const &i_xContext)
 
static bool isFileNameValid (std::u16string_view i_rFileName)
 would storing the file to a XStorage succeed? More...
 
static bool splitPath (OUString const &i_rPath, OUString &o_rDir, OUString &o_rRest)
 split a uri hierarchy into first segment and rest More...
 
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)
 add statements declaring i_xResource to be a file of type i_xType with path i_rPath to manifest, with optional additional types i_pTypes More...
 
static bool addContentOrStylesFileImpl (struct DocumentMetadataAccess_Impl const &i_rImpl, const OUString &i_rPath)
 add content.xml or styles.xml to manifest More...
 
static void addMetadataFileImpl (struct DocumentMetadataAccess_Impl const &i_rImpl, const OUString &i_rPath, const uno::Sequence< uno::Reference< rdf::XURI > > &i_rTypes)
 add metadata file to manifest More...
 
static void removeFile (struct DocumentMetadataAccess_Impl const &i_rImpl, uno::Reference< rdf::XURI > const &i_xPart)
 remove a file from the manifest More...
 
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)
 error handling policy. More...
 
static void collectFilesFromStorage (uno::Reference< embed::XStorage > const &i_xStorage, std::set< OUString > &o_rFiles)
 check if storage has content.xml/styles.xml; e.g. More...
 
static void readStream (struct DocumentMetadataAccess_Impl &i_rImpl, uno::Reference< embed::XStorage > const &i_xStorage, OUString const &i_rPath, OUString const &i_rBaseURI)
 import a metadata file into repository More...
 
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)
 import a metadata file into repository More...
 
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)
 actually write a metadata file to the storage More...
 
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)
 write a metadata file to the storage More...
 
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)
 init Impl struct More...
 
static bool isContentFile (std::u16string_view i_rPath)
 
static bool isStylesFile (std::u16string_view i_rPath)
 
::sfx2::IXmlIdRegistrycreateXmlIdRegistry (const bool i_DocIsClipboard)
 create a sfx2::XmlIdRegistryDocument or a sfx2::XmlIdRegistryClipboard More...
 
template<typename T >
static OUString create_id (const std::unordered_map< OUString, T > &i_rXmlIdMap)
 generate unique xml:id More...
 
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)
 Intended to be called from UNO constructor functions This evaluates certain creation arguments (passed to createInstanceWithArguments) and passes them to the factory function of the derived class. More...
 
void openUriExternally (const OUString &sURI, bool bHandleSystemShellExecuteException, weld::Widget *pDialogParent)
 Open a URI via com.sun.star.system.SystemShellExecute. More...
 
 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
 Extension of css::security::XDocumentDigitalSignatures for internal purposes. More...
 
ErrCode SFX2_DLLPUBLIC LoadOlePropertySet (const css::uno::Reference< css::document::XDocumentProperties > &i_xDocProps, SotStorage *i_pStorage)
 load document meta-data from OLE stream More...
 
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)
 save document meta-data to OLE stream More...
 
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())
 create a base URI for loading metadata from an ODF (sub)document. More...
 
constexpr bool isClientType (SvBaseLinkObjectType t)
 
constexpr bool isClientFileType (SvBaseLinkObjectType t)
 

Variables

constexpr tools::Long gnTextHeight = 30
 
constexpr tools::Long gnItemPadding = 5
 
constexpr OUStringLiteral GRF_CONFIG_STR = u" "
 
constexpr OUStringLiteral STD_CONFIG_STR = u"1 "
 
constexpr OUStringLiteral s_content = u"content.xml"
 
constexpr OUStringLiteral s_styles = u"styles.xml"
 
constexpr OUStringLiteral s_manifest = u"manifest.rdf"
 
const char s_odfmime [] = "application/vnd.oasis.opendocument."
 
const sal_Unicode cTokenSeparator = 0xFFFF
 

Typedef Documentation

◆ ClassificationCategoriesControllerBase

using sfx2::ClassificationCategoriesControllerBase = typedef cppu::ImplInheritanceHelper<svt::ToolboxController, lang::XServiceInfo>

Definition at line 62 of file classificationcontroller.cxx.

◆ ClassificationPropertyListenerBase

Definition at line 46 of file classificationcontroller.cxx.

◆ ClipboardXmlIdMap_t

typedef std::unordered_map< OUString, ::std::pair< Metadatable*, Metadatable* > > sfx2::ClipboardXmlIdMap_t

Idref -> (content.xml element, styles.xml element)

Definition at line 919 of file Metadatable.cxx.

◆ ClipboardXmlIdReverseMap_t

typedef std::unordered_map< const Metadatable*, struct RMapEntry, PtrHash<Metadatable> > sfx2::ClipboardXmlIdReverseMap_t

element -> (stream name, idref, source)

Definition at line 914 of file Metadatable.cxx.

◆ FilterClassList

typedef ::std::list< FilterClass > sfx2::FilterClassList

Definition at line 147 of file filtergrouping.cxx.

◆ FilterClassReferrer

typedef ::std::map< OUString, FilterClassList::iterator > sfx2::FilterClassReferrer

Definition at line 148 of file filtergrouping.cxx.

◆ FilterDescriptor

Some general words about what's going on here...

In our file open dialog, usually we display every filter we know. That's how it was before: every filter lead to an own line in the filter list box, e.g. "StarWriter 5.0 Document" or "Microsoft Word 97".

But then the PM came. And everything changed...

A basic idea are groups: Why simply listing all the single filters? Couldn't we draw nice separators between the filters which logically belong together? I.e. all the filters which open a document in StarWriter: couldn't we separate them from all the filters which open the document in StarCalc?
So spoke the PM, and engineering obeyed.

So we have groups. They're just a visual aspect: All the filters of a group are presented together, separated by a line from other groups.

Let's be honest: How the concrete implementation of the file picker service separates the different groups is a matter of this implementation. We only do this grouping and suggest it to the FilePicker service ...

Now for the second concept:
Thinking about it (and that's what the PM did), both "StarWriter 5.0 Document" and "Microsoft Word 97" describe a text document. It's a text. It's of no interest for the user that one of the texts was saved in MS' format, and one in our own format.
So in a first step, we want to have a filter entry "Text documents". This would cover both above-mentioned filters, as well as any other filters for documents which are texts.

Such an entry as "Text documents" is - within the scope of this file - called "class" or "filter class".

In the file-open-dialog, such a class looks like an ordinary filter: it's simply a name in the filter listbox. Selecting means that all the files matching one of the "sub-filters" are displayed (in the example above, this would be "*.sdw", "*.doc" and so on).

Now there are two types of filter classes: global ones and local ones. "Text documents" is a global class. As well as "Spreadsheets". Or "Web pages".
Let's have a look at a local class: The filters "MS Word 95" and "MS WinWord 6.0" together form the class "Microsoft Word 6.0 / 95" (don't ask for the reasons. At least not me. Ask the PM). There are a lot of such local classes ...

The difference between global and local classes is as follows: Global classes are presented in an own group. There is one dedicated group at the top of the list, containing all the global groups - no local groups and no single filters.

Ehm - it was a lie. Not really at the top. Before this group, there is this single "All files" entry. It forms its own group. But this is uninteresting here.

Local classes must consist of filters which - without the classification - would all belong to the same group. Then, they're combined to one entry (in the example above: "Microsoft Word 6.0 / 95"), and this entry is inserted into the file picker filter list, instead of the single filters which form the class.

This is an interesting difference between local and global classes: Filters which are part of a global class are listed in their own group, too. Filters in local classes aren't listed a second time - neither directly (as the filter itself) nor indirectly (as part of another local group).

The only exception are filters which are part of a global class and a local class. This is allowed. Being contained in two local classes isn't.

So that's all what you need to know: Understand the concept of "filter classes" (a filter class combines different filters and acts as if it's a filter itself) and the concept of groups (a group just describes a logical correlation of filters and usually is represented to the user by drawing group separators in the filter list).

If you got it, go try understanding this file :).

Definition at line 124 of file filtergrouping.cxx.

◆ FilterGroup

typedef ::std::list< FilterDescriptor > sfx2::FilterGroup

Definition at line 125 of file filtergrouping.cxx.

◆ FilterGroupEntryReferrer

typedef ::std::map< OUString, FilterGroup::iterator > sfx2::FilterGroupEntryReferrer

Definition at line 134 of file filtergrouping.cxx.

◆ FilterName

typedef OUString sfx2::FilterName

the logical name of a filter

Definition at line 129 of file filtergrouping.cxx.

◆ GroupedFilterList

typedef ::std::list< FilterGroup > sfx2::GroupedFilterList

Definition at line 126 of file filtergrouping.cxx.

◆ KeywordInfo

typedef std::unordered_map< OUString, int > sfx2::KeywordInfo

Definition at line 561 of file newhelp.cxx.

◆ MapGroupEntry2GroupEntry

typedef ::std::vector< ::std::pair< FilterGroupEntryReferrer::mapped_type, FilterGroup::iterator > > sfx2::MapGroupEntry2GroupEntry

Definition at line 530 of file filtergrouping.cxx.

◆ SvBaseLinks

typedef std::vector<tools::SvRef<SvBaseLink> > sfx2::SvBaseLinks

Definition at line 50 of file linkmgr.hxx.

◆ SvLinkSourceRef

Definition at line 114 of file linksrc.hxx.

◆ SvLinkSources

Definition at line 52 of file linkmgr.hxx.

◆ XmlIdMap_t

typedef std::unordered_map< OUString, ::std::pair< XmlIdVector_t, XmlIdVector_t > > sfx2::XmlIdMap_t

Idref -> (content.xml element list, styles.xml element list)

Definition at line 432 of file Metadatable.cxx.

◆ XmlIdReverseMap_t

typedef std::unordered_map< const Metadatable*, ::std::pair< OUString, OUString>, PtrHash<Metadatable> > sfx2::XmlIdReverseMap_t

element -> (stream name, idref)

Definition at line 450 of file Metadatable.cxx.

◆ XmlIdVector_t

typedef ::std::vector< Metadatable* > sfx2::XmlIdVector_t

element list

Definition at line 428 of file Metadatable.cxx.

Enumeration Type Documentation

◆ ApplicationType

enum class sfx2::ApplicationType
strong
Enumerator
TYPE_NONE 
TYPE_WRITER 
TYPE_CALC 
TYPE_IMPRESS 
TYPE_DRAW 
TYPE_DATABASE 
TYPE_MATH 
TYPE_OTHER 

Definition at line 37 of file recentdocsview.hxx.

◆ SvBaseLinkObjectType

enum class sfx2::SvBaseLinkObjectType
strong
Enumerator
Internal 
DdeExternal 
ClientSo 
ClientDde 
ClientFile 
ClientGraphic 
ClientOle 

Definition at line 52 of file lnkbase.hxx.

Function Documentation

◆ addContentOrStylesFileImpl()

static bool sfx2::addContentOrStylesFileImpl ( struct DocumentMetadataAccess_Impl const &  i_rImpl,
const OUString &  i_rPath 
)
static

◆ addExtension()

OUString sfx2::addExtension ( const OUString &  _rDisplayText,
const OUString &  _rExtension,
bool  _bForOpen,
FileDialogHelper_Impl _rFileDlgImpl 
)

adds the given extension to the display text.

To be used when opening or save generic files.

Definition at line 1146 of file filtergrouping.cxx.

References sfx2::FileDialogHelper_Impl::addFilterPair().

Referenced by sfx2::FileDialogHelper_Impl::addGraphicFilter(), appendExportFilters(), appendFiltersForSave(), and sfx2::FileDialogHelper::FileDialogHelper().

◆ addFile()

static void sfx2::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

add statements declaring i_xResource to be a file of type i_xType with path i_rPath to manifest, with optional additional types i_pTypes

Definition at line 309 of file DocumentMetadataAccess.cxx.

References cppu::getCaughtException(), getURIForStream(), sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, sfx2::DocumentMetadataAccess_Impl::m_xContext, and sfx2::DocumentMetadataAccess_Impl::m_xManifest.

Referenced by addContentOrStylesFileImpl(), and addMetadataFileImpl().

◆ addMetadataFileImpl()

static void sfx2::addMetadataFileImpl ( struct DocumentMetadataAccess_Impl const &  i_rImpl,
const OUString &  i_rPath,
const uno::Sequence< uno::Reference< rdf::XURI > > &  i_rTypes 
)
static

◆ appendExportFilters() [1/2]

void sfx2::appendExportFilters ( TSortedFilterList _rFilterMatcher,
const css::uno::Reference< css::ui::dialogs::XFilterManager > &  _rFilterManager,
OUString &  _rFirstNonEmpty,
FileDialogHelper_Impl _rFileDlgImpl 
)

◆ appendExportFilters() [2/2]

void sfx2::appendExportFilters ( TSortedFilterList _rFilterMatcher,
const Reference< XFilterManager > &  _rxFilterManager,
OUString &  _rFirstNonEmpty,
FileDialogHelper_Impl _rFileDlgImpl 
)

◆ appendFiltersForOpen() [1/2]

void sfx2::appendFiltersForOpen ( TSortedFilterList _rFilterMatcher,
const css::uno::Reference< css::ui::dialogs::XFilterManager > &  _rFilterManager,
OUString &  _rFirstNonEmpty,
FileDialogHelper_Impl _rFileDlgImpl 
)

adds the given filters to the filter manager.

To be used when opening generic files.

◆ appendFiltersForOpen() [2/2]

void sfx2::appendFiltersForOpen ( TSortedFilterList _rFilterMatcher,
const Reference< XFilterManager > &  _rxFilterManager,
OUString &  _rFirstNonEmpty,
FileDialogHelper_Impl _rFileDlgImpl 
)

◆ appendFiltersForSave() [1/2]

void sfx2::appendFiltersForSave ( TSortedFilterList _rFilterMatcher,
const css::uno::Reference< css::ui::dialogs::XFilterManager > &  _rFilterManager,
OUString &  _rFirstNonEmpty,
FileDialogHelper_Impl _rFileDlgImpl,
std::u16string_view  _rFactory 
)

adds the given filters to the filter manager.

To be used when saving generic files.

◆ appendFiltersForSave() [2/2]

void sfx2::appendFiltersForSave ( TSortedFilterList _rFilterMatcher,
const Reference< XFilterManager > &  _rxFilterManager,
OUString &  _rFirstNonEmpty,
FileDialogHelper_Impl _rFileDlgImpl,
std::u16string_view  _rFactory 
)

◆ closedialogs()

void sfx2::closedialogs ( SystemWindow rTopLevel,
bool  bCloseRoot 
)
inline

◆ collectFilesFromStorage()

static void sfx2::collectFilesFromStorage ( uno::Reference< embed::XStorage > const &  i_xStorage,
std::set< OUString > &  o_rFiles 
)
static

check if storage has content.xml/styles.xml; e.g.

ODB files seem to only have content.xml

Definition at line 551 of file DocumentMetadataAccess.cxx.

References s_content, s_styles, and TOOLS_WARN_EXCEPTION.

Referenced by sfx2::DocumentMetadataAccess::loadMetadataFromStorage().

◆ convertMetaFile()

css::uno::Sequence< sal_Int8 > SFX2_DLLPUBLIC sfx2::convertMetaFile ( GDIMetaFile const *  i_pThumb)

◆ create_id()

template<typename T >
static OUString sfx2::create_id ( const std::unordered_map< OUString, T > &  i_rXmlIdMap)
static

generate unique xml:id

Definition at line 391 of file Metadatable.cxx.

References n, prefix, and comphelper::rng::uniform_uint_distribution().

◆ createBaseURI() [1/2]

css::uno::Reference< css::rdf::XURI > SFX2_DLLPUBLIC sfx2::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() 
)

create a base URI for loading metadata from an ODF (sub)document.

Parameters
i_xContextcomponent context
i_xModelmodel of the document (required if no URI is provided)
i_rPkgURIthe URI for the package
i_rSubDocument(optional) path of the subdocument in package
Returns
a base URI suitable for XDocumentMetadataAccess::loadFromStorage

◆ createBaseURI() [2/2]

uno::Reference< rdf::XURI > sfx2::createBaseURI ( uno::Reference< uno::XComponentContext > const &  i_xContext,
uno::Reference< frame::XModel > const &  i_xModel,
OUString const &  i_rPkgURI,
std::u16string_view  i_rSubDocument 
)

Definition at line 119 of file DocumentMetadataAccess.cxx.

References count, and SAL_WARN_IF.

Referenced by sfx2::DocumentMetadataAccess::loadMetadataFromMedium().

◆ createFolderPicker()

css::uno::Reference< css::ui::dialogs::XFolderPicker2 > SFX2_DLLPUBLIC sfx2::createFolderPicker ( const css::uno::Reference< css::uno::XComponentContext > &  rContext,
weld::Window pPreferredParent 
)

◆ createSfxModelInstance()

css::uno::Reference< css::uno::XInterface > SFX2_DLLPUBLIC sfx2::createSfxModelInstance ( const css::uno::Sequence< css::uno::Any > &  _rArguments,
std::function< css::uno::Reference< css::uno::XInterface >(SfxModelFlags)>  creationFunc 
)

Intended to be called from UNO constructor functions This evaluates certain creation arguments (passed to createInstanceWithArguments) and passes them to the factory function of the derived class.

Definition at line 68 of file sfxmodelfactory.cxx.

References Any, DISABLE_DOCUMENT_RECOVERY, DISABLE_EMBEDDED_SCRIPTS, EMBEDDED_OBJECT, comphelper::NamedValueCollection::getOrDefault(), and NONE.

◆ createXmlIdRegistry()

SFX2_DLLPUBLIC::sfx2::IXmlIdRegistry * sfx2::createXmlIdRegistry ( const bool  i_DocIsClipboard)

create a sfx2::XmlIdRegistryDocument or a sfx2::XmlIdRegistryClipboard

Definition at line 353 of file Metadatable.cxx.

◆ DecodeSpaces_Impl()

OUString sfx2::DecodeSpaces_Impl ( const OUString &  rSource)
static

Definition at line 3021 of file filedlghelper.cxx.

Referenced by sfx2::FileDialogHelper_Impl::loadConfig().

◆ EncodeSpaces_Impl()

OUString sfx2::EncodeSpaces_Impl ( const OUString &  rSource)
static

Definition at line 3015 of file filedlghelper.cxx.

Referenced by sfx2::FileDialogHelper_Impl::saveConfig().

◆ exportStream()

static void sfx2::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

actually write a metadata file to the storage

Definition at line 659 of file DocumentMetadataAccess.cxx.

References sfx2::DocumentMetadataAccess_Impl::m_xContext, sfx2::DocumentMetadataAccess_Impl::m_xRepository, and xStream.

Referenced by writeStream().

◆ FileOpenDialog_Impl()

ErrCode sfx2::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 
)

Definition at line 2833 of file filedlghelper.cxx.

References DBG_ASSERT, SfxResId(), SignPDF, and u.

Referenced by SfxApplication::OpenDocExec_Impl().

◆ getAllParts() [1/2]

static ::std::vector< uno::Reference< rdf::XURI > > sfx2::getAllParts ( struct DocumentMetadataAccess_Impl const &  i_rImpl)

◆ getAllParts() [2/2]

static ::std::vector< uno::Reference< rdf::XURI > > sfx2::getAllParts ( struct DocumentMetadataAccess_Impl const &  i_rImpl,
const uno::Reference< rdf::XURI > &  i_xType 
)

◆ GetLastFilterConfigId()

static std::optional< OUString > sfx2::GetLastFilterConfigId ( FileDialogHelper::Context  _eContext)
static

◆ GetRegistryConst()

static const ::sfx2::IXmlIdRegistry & sfx2::GetRegistryConst ( Metadatable const &  i_rObject)
static

Definition at line 1320 of file Metadatable.cxx.

◆ getSeparatorString()

static OUString sfx2::getSeparatorString ( )
static

Definition at line 405 of file filtergrouping.cxx.

◆ getURI()

template<sal_Int16 Constant>
static uno::Reference< rdf::XURI > const & sfx2::getURI ( uno::Reference< uno::XComponentContext > const &  i_xContext)
static

Definition at line 235 of file DocumentMetadataAccess.cxx.

◆ getURIForStream()

static uno::Reference< rdf::XURI > sfx2::getURIForStream ( struct DocumentMetadataAccess_Impl const &  i_rImpl,
OUString const &  i_rPath 
)
static

◆ handleError()

static bool sfx2::handleError ( ucb::InteractiveAugmentedIOException const &  i_rException,
const uno::Reference< task::XInteractionHandler > &  i_xHandler 
)
static

error handling policy.

If a handler is given, ask it how to proceed:

  • (default:) cancel import, raise exception
  • ignore the error and continue
  • retry the action that led to the error

N.B.: must not be called before DMA is fully initialized!

Returns
true iff caller should retry

Definition at line 514 of file DocumentMetadataAccess.cxx.

Referenced by importFile(), and initLoading().

◆ impl_FillURLList()

static void sfx2::impl_FillURLList ( sfx2::FileDialogHelper const *  _pFileDlg,
std::vector< OUString > &  _rpURLList 
)
static

Definition at line 169 of file docinsert.cxx.

References DBG_ASSERT, and sfx2::FileDialogHelper::GetSelectedFiles().

Referenced by IMPL_LINK_NOARG().

◆ impl_isFolder()

static int sfx2::impl_isFolder ( const OUString &  rPath)
static

◆ IMPL_LINK() [1/6]

sfx2::IMPL_LINK ( ClassificationCategoriesController  ,
SelectHdl  ,
weld::ComboBox ,
rCategory  ,
void   
)

◆ IMPL_LINK() [2/6]

sfx2::IMPL_LINK ( ClassificationControl  ,
KeyInputHdl  ,
const KeyEvent ,
rKEvt  ,
bool   
)

Definition at line 291 of file classificationcontroller.cxx.

◆ IMPL_LINK() [3/6]

sfx2::IMPL_LINK ( RecentDocsView  ,
ExecuteHdl_Impl  ,
void *  ,
p  ,
void   
)

◆ IMPL_LINK() [4/6]

sfx2::IMPL_LINK ( SvBaseLink  ,
EndEditHdl  ,
const OUString &  ,
_rNewName  ,
void   
)

Definition at line 226 of file lnkbase2.cxx.

◆ IMPL_LINK() [5/6]

sfx2::IMPL_LINK ( SvDDEObject  ,
ImplDoneDDEData  ,
bool  ,
bValid  ,
void   
)

Definition at line 319 of file impldde.cxx.

References DdeTransaction::Execute(), and pLink.

◆ IMPL_LINK() [6/6]

sfx2::IMPL_LINK ( SvDDEObject  ,
ImplGetDDEData  ,
const DdeData ,
pData  ,
void   
)

Definition at line 285 of file impldde.cxx.

References Any, aSeq, DataChanged, SotExchange::GetFormatMimeType(), p, and pData.

◆ IMPL_LINK_NOARG() [1/6]

sfx2::IMPL_LINK_NOARG ( DocumentInserter  ,
DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)

◆ IMPL_LINK_NOARG() [2/6]

sfx2::IMPL_LINK_NOARG ( FileDialogHelper  ,
ExecuteSystemFilePicker  ,
void *  ,
void   
)

Definition at line 2567 of file filedlghelper.cxx.

◆ IMPL_LINK_NOARG() [3/6]

sfx2::IMPL_LINK_NOARG ( FileDialogHelper_Impl  ,
InitControls  ,
void *  ,
void   
)

Definition at line 1231 of file filedlghelper.cxx.

◆ IMPL_LINK_NOARG() [4/6]

sfx2::IMPL_LINK_NOARG ( FileDialogHelper_Impl  ,
TimeOutHdl_Impl  ,
Timer ,
void   
)

◆ IMPL_LINK_NOARG() [5/6]

sfx2::IMPL_LINK_NOARG ( SearchDialog  ,
FindHdl  ,
weld::Button ,
void   
)

Definition at line 109 of file srchdlg.cxx.

References nPos.

◆ IMPL_LINK_NOARG() [6/6]

sfx2::IMPL_LINK_NOARG ( SvDDELinkEditDialog  ,
EditHdl_Impl  ,
weld::Entry ,
void   
)

Definition at line 91 of file impldde.cxx.

References m_xEdDdeApp, m_xEdDdeItem, m_xEdDdeTopic, and m_xOKButton.

◆ IMPL_STATIC_LINK_NOARG()

sfx2::IMPL_STATIC_LINK_NOARG ( WarningDialogsParent  ,
TerminateDesktop  ,
void *  ,
void   
)

◆ importFile()

static void sfx2::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

import a metadata file into repository

Definition at line 636 of file DocumentMetadataAccess.cxx.

References cppu::getCaughtException(), handleError(), and readStream().

Referenced by sfx2::DocumentMetadataAccess::loadMetadataFromStorage().

◆ init()

static void sfx2::init ( struct DocumentMetadataAccess_Impl i_rImpl)
static

◆ initLoading()

static void sfx2::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

◆ isClientFileType()

constexpr bool sfx2::isClientFileType ( SvBaseLinkObjectType  t)
constexpr

Definition at line 66 of file lnkbase.hxx.

References check(), ClientFile, and t.

Referenced by sfx2::LinkManager::CancelTransfers().

◆ isClientType()

constexpr bool sfx2::isClientType ( SvBaseLinkObjectType  t)
constexpr

◆ isContentFile() [1/2]

static bool sfx2::isContentFile ( std::u16string_view  i_rPath)
static

◆ isContentFile() [2/2]

static bool sfx2::isContentFile ( std::u16string_view  i_rPath)
static

Definition at line 119 of file Metadatable.cxx.

References s_content.

◆ isFileNameValid()

static bool sfx2::isFileNameValid ( std::u16string_view  i_rFileName)
static

◆ IsMSType()

bool sfx2::IsMSType ( const std::shared_ptr< const SfxFilter > &  pCurrentFilter)

Definition at line 2866 of file filedlghelper.cxx.

Referenced by IMPL_LINK_NOARG(), IsOOXML(), RequestPassword(), and SetPassword().

◆ IsOOXML()

bool sfx2::IsOOXML ( const std::shared_ptr< const SfxFilter > &  pCurrentFilter)

Definition at line 2873 of file filedlghelper.cxx.

References IsMSType().

Referenced by IMPL_LINK_NOARG(), RequestPassword(), and SetPassword().

◆ isPartOfType()

static bool sfx2::isPartOfType ( struct DocumentMetadataAccess_Impl const &  i_rImpl,
uno::Reference< rdf::XURI > const &  i_xPart,
uno::Reference< rdf::XURI > const &  i_xType 
)
static

◆ isReservedFile()

static bool sfx2::isReservedFile ( std::u16string_view  i_rPath)
static

◆ isStylesFile() [1/2]

static bool sfx2::isStylesFile ( std::u16string_view  i_rPath)
static

◆ isStylesFile() [2/2]

static bool sfx2::isStylesFile ( std::u16string_view  i_rPath)
static

Definition at line 124 of file Metadatable.cxx.

References s_styles.

◆ isValidNCName()

bool SFX2_DLLPUBLIC sfx2::isValidNCName ( std::u16string_view  i_rIdref)

is i_rIdref a valid NCName ?

Definition at line 81 of file DocumentMetadataAccess.cxx.

References OUStringToOString().

Referenced by isValidXmlId().

◆ isValidXmlId()

bool SFX2_DLLPUBLIC sfx2::isValidXmlId ( std::u16string_view  i_rStreamName,
std::u16string_view  i_rIdref 
)

◆ lcl_DDE_RelToAbs()

static OUString sfx2::lcl_DDE_RelToAbs ( const OUString &  rTopic,
std::u16string_view  rBaseURL 
)
static

Definition at line 574 of file linkmgr2.cxx.

References aURL, URIHelper::GetMaybeFileHdl(), and URIHelper::SmartRel2Abs().

◆ lcl_EnsureAllFilesEntry()

static void sfx2::lcl_EnsureAllFilesEntry ( TSortedFilterList _rFilterMatcher,
GroupedFilterList _rFilters 
)
static

Definition at line 773 of file filtergrouping.cxx.

References DBG_ASSERT, FILEDIALOG_FILTER_ALL, and lcl_hasAllFilesFilter().

Referenced by appendFiltersForOpen().

◆ lcl_GroupAndClassify()

static void sfx2::lcl_GroupAndClassify ( TSortedFilterList _rFilterMatcher,
GroupedFilterList _rAllFilters 
)
static

◆ lcl_hasAllFilesFilter()

static bool sfx2::lcl_hasAllFilesFilter ( TSortedFilterList _rFilterMatcher,
OUString &  _rAllFilterName 
)
static

◆ lcl_InitGlobalClasses()

static void sfx2::lcl_InitGlobalClasses ( GroupedFilterList _rAllFilters,
const FilterClassList _rGlobalClasses,
FilterGroupEntryReferrer _rGlobalClassesRef 
)
static

Definition at line 506 of file filtergrouping.cxx.

Referenced by lcl_GroupAndClassify().

◆ lcl_isSystemFilePicker()

static bool sfx2::lcl_isSystemFilePicker ( const uno::Reference< XExecutableDialog > &  _rxFP)
static

◆ lcl_OpenOrSave()

static open_or_save_t sfx2::lcl_OpenOrSave ( sal_Int16 const  nDialogType)
static

◆ lcl_ReadClassification()

static void sfx2::lcl_ReadClassification ( FilterClassList _rGlobalClasses,
std::vector< OUString > &  _rGlobalClassNames,
FilterClassList _rLocalClasses 
)
static

Definition at line 312 of file filtergrouping.cxx.

References lcl_ReadGlobalFilters(), and lcl_ReadLocalFilters().

Referenced by lcl_GroupAndClassify().

◆ lcl_ReadFilterClass()

static void sfx2::lcl_ReadFilterClass ( const OConfigurationNode &  _rClassesNode,
const OUString &  _rLogicalClassName,
FilterClass &  _rClass 
)
static

Definition at line 154 of file filtergrouping.cxx.

◆ lcl_ReadGlobalFilters()

static void sfx2::lcl_ReadGlobalFilters ( const OConfigurationNode &  _rFilterClassification,
FilterClassList _rGlobalClasses,
std::vector< OUString > &  _rGlobalClassNames 
)
static

Definition at line 228 of file filtergrouping.cxx.

References comphelper::sequenceToContainer().

Referenced by lcl_ReadClassification().

◆ lcl_ReadLocalFilters()

static void sfx2::lcl_ReadLocalFilters ( const OConfigurationNode &  _rFilterClassification,
FilterClassList _rLocalClasses 
)
static

Definition at line 295 of file filtergrouping.cxx.

Referenced by lcl_ReadClassification().

◆ LoadOlePropertySet() [1/2]

ErrCode SFX2_DLLPUBLIC sfx2::LoadOlePropertySet ( const css::uno::Reference< css::document::XDocumentProperties > &  i_xDocProps,
SotStorage i_pStorage 
)

load document meta-data from OLE stream

Parameters
i_xDocPropsDocument meta-data
i_pStorageOLE Storage

◆ LoadOlePropertySet() [2/2]

ErrCode sfx2::LoadOlePropertySet ( const uno::Reference< document::XDocumentProperties > &  i_xDocProps,
SotStorage i_pStorage 
)

◆ MakeLnkName()

SFX2_DLLPUBLIC void sfx2::MakeLnkName ( OUString &  rName,
const OUString *  pType,
std::u16string_view  rFile,
std::u16string_view  rLink,
const OUString *  pFilter 
)

Definition at line 379 of file linkmgr2.cxx.

References cTokenSeparator, and comphelper::string::strip().

Referenced by sfx2::LinkManager::InsertDDELink().

◆ mkException()

static ucb::InteractiveAugmentedIOException sfx2::mkException ( OUString const &  i_rMessage,
ucb::IOErrorCode const  i_ErrorCode,
OUString const &  i_rUri,
OUString const &  i_rResource 
)
static

Definition at line 487 of file DocumentMetadataAccess.cxx.

Referenced by readStream().

◆ openUriExternally()

void sfx2::openUriExternally ( const OUString &  sURI,
bool  bHandleSystemShellExecuteException,
weld::Widget pDialogParent 
)

Open a URI via com.sun.star.system.SystemShellExecute.

Handles XSystemShellExecute.execute's IllegalArgumentException (throwing a RuntimeException if it is unexpected, i.e., not caused by the given sURI not being an absolute URI reference).

Handles XSystemShellExecute.execute's SystemShellExecuteException unless the given bHandleSystemShellExecuteException is false (in which case the exception is re-thrown).

Definition at line 134 of file openuriexternally.cxx.

Referenced by SfxViewShell::ExecMisc_Impl(), impl_showOfflineHelp(), impl_showOnlineHelp(), SfxApplication::MiscExec_Impl(), and SfxApplication::OpenDocExec_Impl().

◆ PrepareSearchString()

static OUString sfx2::PrepareSearchString ( const OUString &  rSearchString,
const Reference< XBreakIterator > &  xBreak,
bool  bForSearch 
)
static

Prepare a search string for searching or selecting.

For searching every search word needs the postfix '*' and the delimiter ' ' if necessary. For selecting the delimiter '|' is required to search with regular expressions. Samples:

search string | output for searching | output for selecting

"text" | "text*" | "text" "text*" | "text*" | "text" "text menu" | "text* menu*" | "text|menu"

Definition at line 146 of file newhelp.cxx.

References LanguageTag::getLocale(), Application::GetSettings(), and AllSettings::GetUILanguageTag().

Referenced by IMPL_LINK_NOARG(), and SearchTabPage_Impl::Search().

◆ readStream()

static void sfx2::readStream ( struct DocumentMetadataAccess_Impl i_rImpl,
uno::Reference< embed::XStorage > const &  i_xStorage,
OUString const &  i_rPath,
OUString const &  i_rBaseURI 
)
static

◆ removeFile()

static void sfx2::removeFile ( struct DocumentMetadataAccess_Impl const &  i_rImpl,
uno::Reference< rdf::XURI > const &  i_xPart 
)
static

◆ removeLink()

static void sfx2::removeLink ( Metadatable *  i_pObject)
static

Definition at line 624 of file Metadatable.cxx.

References pLink.

◆ RequestPassword()

ErrCode sfx2::RequestPassword ( const std::shared_ptr< const SfxFilter > &  pCurrentFilter,
OUString const &  aURL,
SfxItemSet pSet,
const css::uno::Reference< css::awt::XWindow > &  rParent 
)

◆ rmIter() [1/2]

static void sfx2::rmIter ( ClipboardXmlIdMap_t i_rXmlIdMap,
ClipboardXmlIdMap_t::iterator const &  i_rIter,
std::u16string_view  i_rStream,
Metadatable const &  i_rObject 
)
static

Definition at line 944 of file Metadatable.cxx.

References isContentFile().

◆ rmIter() [2/2]

static void sfx2::rmIter ( XmlIdMap_t i_rXmlIdMap,
XmlIdMap_t::iterator const &  i_rIter,
std::u16string_view  i_rStream,
Metadatable const &  i_rObject 
)
static

Definition at line 484 of file Metadatable.cxx.

References isContentFile().

◆ s_cWildcardSeparator()

const sal_Unicode sfx2::s_cWildcardSeparator ( ';'  )

◆ SAL_LOPLUGIN_ANNOTATE()

class SFX2_DLLPUBLIC sfx2::SAL_LOPLUGIN_ANNOTATE ( "crosscast"  )

Extension of css::security::XDocumentDigitalSignatures for internal purposes.

base class for core objects that may have xml:id.

The interface of this class consists of 3 parts:

  • implementations that are used by the MetadatableMixin below
  • hooks to be called by the sw core whenever actions that are relevant to the uniqueness of xml:ids are taken (copying, splitting, merging, deletion, undo, etc.)
  • abstract methods that are called by the implementation of the previous hooks

Same as signDocumentWithCertificate(), but passes the xModel as well.

register this as a copy of i_rSource

create an Undo Metadatable, which remembers this' reference

restore this from Undo Metadatable

merge this and i_rOther into this

get the registry from the SwDoc

is this in a clipboard document?

is this in undo array?

which stream is this in? true: content.xml; false: styles.xml

create XMetadatable from this. note: if IsInUndo or IsInClipboard return true, MakeUnoObject must not be called!

register this as a copy of i_rSource

create an Undo Metadatable, which remembers this' reference

restore this from Undo Metadatable

merge this and i_rOther into this

get the registry from the SwDoc

is this in a clipboard document?

is this in undo array?

which stream is this in? true: content.xml; false: styles.xml

create XMetadatable from this. note: if IsInUndo or IsInClipboard return true, MakeUnoObject must not be called!

Definition at line 22 of file digitalsignatures.hxx.

References SAL_NO_VTABLE, xModel, and xStream.

◆ SaveOlePropertySet() [1/2]

bool SFX2_DLLPUBLIC sfx2::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 
)

save document meta-data to OLE stream

Parameters
i_xDocPropsDocument meta-data
i_pStorageOLE Storage
i_pThumbThumbnail: preview bitmap
i_pGuidBlob: Guid blob ("_PID_GUID")
i_pHyperlinksBlob: Hyperlink blob ("_PID_HLINKS")

◆ SaveOlePropertySet() [2/2]

bool sfx2::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 
)

◆ SetPassword()

ErrCode sfx2::SetPassword ( const std::shared_ptr< const SfxFilter > &  pCurrentFilter,
SfxItemSet pSet,
const OUString &  rPasswordToOpen,
std::u16string_view  rPasswordToModify,
bool  bAllowPasswordReset 
)

◆ SetToken()

static void sfx2::SetToken ( OUString &  rOrigStr,
sal_Int32  nToken,
sal_Unicode  cTok,
std::u16string_view  rStr 
)
static

Definition at line 1952 of file filedlghelper.cxx.

References i, and nToken.

Referenced by sfx2::FileDialogHelper_Impl::saveConfig().

◆ splitPath()

static bool sfx2::splitPath ( OUString const &  i_rPath,
OUString &  o_rDir,
OUString &  o_rRest 
)
static

split a uri hierarchy into first segment and rest

Definition at line 264 of file DocumentMetadataAccess.cxx.

References idx, and u.

Referenced by readStream(), and writeStream().

◆ splitXmlId()

static bool sfx2::splitXmlId ( std::u16string_view  i_XmlId,
OUString &  o_StreamName,
OUString &  o_Idref 
)
static

Definition at line 283 of file DocumentMetadataAccess.cxx.

References idx, isValidXmlId(), and u.

Referenced by sfx2::DocumentMetadataAccess::getElementByURI().

◆ StartTimer()

static void sfx2::StartTimer ( std::unique_ptr< SvLinkSourceTimer > &  pTimer,
SvLinkSource pOwner,
sal_uInt64  nTimeout 
)
static

Definition at line 61 of file linksrc.cxx.

References pOwner.

Referenced by sfx2::SvLinkSource::DataChanged(), and sfx2::SvLinkSource::NotifyDataChanged().

◆ writeStream()

static void sfx2::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

Variable Documentation

◆ cTokenSeparator

const sal_Unicode sfx2::cTokenSeparator = 0xFFFF

◆ gnItemPadding

constexpr tools::Long sfx2::gnItemPadding = 5
constexpr

Definition at line 60 of file recentdocsview.cxx.

Referenced by sfx2::RecentDocsView::RecentDocsView().

◆ gnTextHeight

constexpr tools::Long sfx2::gnTextHeight = 30
constexpr

Definition at line 59 of file recentdocsview.cxx.

Referenced by sfx2::RecentDocsView::RecentDocsView().

◆ GRF_CONFIG_STR

constexpr OUStringLiteral sfx2::GRF_CONFIG_STR = u" "
constexpr

Definition at line 1949 of file filedlghelper.cxx.

Referenced by sfx2::FileDialogHelper_Impl::saveConfig().

◆ s_content

constexpr OUStringLiteral sfx2::s_content = u"content.xml"
constexpr

Definition at line 90 of file DocumentMetadataAccess.cxx.

Referenced by collectFilesFromStorage(), init(), and isContentFile().

◆ s_manifest

constexpr OUStringLiteral sfx2::s_manifest = u"manifest.rdf"
constexpr

◆ s_odfmime

const char sfx2::s_odfmime[] = "application/vnd.oasis.opendocument."

Definition at line 93 of file DocumentMetadataAccess.cxx.

Referenced by readStream(), and writeStream().

◆ s_styles

constexpr OUStringLiteral sfx2::s_styles = u"styles.xml"
constexpr

Definition at line 91 of file DocumentMetadataAccess.cxx.

Referenced by collectFilesFromStorage(), init(), and isStylesFile().

◆ STD_CONFIG_STR

constexpr OUStringLiteral sfx2::STD_CONFIG_STR = u"1 "
constexpr