LibreOffice Module sfx2 (master) 1
|
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, int > | KeywordInfo |
typedef StringPair | FilterDescriptor |
Some general words about what's going on here... More... | |
typedef ::std::list< FilterDescriptor > | FilterGroup |
typedef ::std::list< FilterGroup > | GroupedFilterList |
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< SvLinkSource > | SvLinkSourceRef |
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_Int8 > | convertMetaFile (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::IXmlIdRegistry * | createXmlIdRegistry (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::IXmlIdRegistry & | GetRegistryConst (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 |
using sfx2::ClassificationCategoriesControllerBase = typedef cppu::ImplInheritanceHelper<svt::ToolboxController, lang::XServiceInfo> |
Definition at line 62 of file classificationcontroller.cxx.
using sfx2::ClassificationPropertyListenerBase = typedef comphelper::ConfigurationListenerProperty<OUString> |
Definition at line 46 of file classificationcontroller.cxx.
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.
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.
typedef ::std::list< FilterClass > sfx2::FilterClassList |
Definition at line 147 of file filtergrouping.cxx.
typedef ::std::map< OUString, FilterClassList::iterator > sfx2::FilterClassReferrer |
Definition at line 148 of file filtergrouping.cxx.
typedef StringPair sfx2::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.
typedef ::std::list< FilterDescriptor > sfx2::FilterGroup |
Definition at line 125 of file filtergrouping.cxx.
typedef ::std::map< OUString, FilterGroup::iterator > sfx2::FilterGroupEntryReferrer |
Definition at line 134 of file filtergrouping.cxx.
typedef OUString sfx2::FilterName |
the logical name of a filter
Definition at line 129 of file filtergrouping.cxx.
typedef ::std::list< FilterGroup > sfx2::GroupedFilterList |
Definition at line 126 of file filtergrouping.cxx.
typedef std::unordered_map< OUString, int > sfx2::KeywordInfo |
Definition at line 561 of file newhelp.cxx.
typedef ::std::vector< ::std::pair< FilterGroupEntryReferrer::mapped_type, FilterGroup::iterator > > sfx2::MapGroupEntry2GroupEntry |
Definition at line 530 of file filtergrouping.cxx.
typedef std::vector<tools::SvRef<SvBaseLink> > sfx2::SvBaseLinks |
Definition at line 50 of file linkmgr.hxx.
Definition at line 114 of file linksrc.hxx.
Definition at line 52 of file linkmgr.hxx.
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.
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.
typedef ::std::vector< Metadatable* > sfx2::XmlIdVector_t |
element list
Definition at line 428 of file Metadatable.cxx.
|
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.
|
strong |
Enumerator | |
---|---|
Internal | |
DdeExternal | |
ClientSo | |
ClientDde | |
ClientFile | |
ClientGraphic | |
ClientOle |
Definition at line 52 of file lnkbase.hxx.
|
static |
add content.xml or styles.xml to manifest
Definition at line 342 of file DocumentMetadataAccess.cxx.
References addFile(), isContentFile(), isStylesFile(), and sfx2::DocumentMetadataAccess_Impl::m_xContext.
Referenced by sfx2::DocumentMetadataAccess::addContentOrStylesFile(), init(), and sfx2::DocumentMetadataAccess::loadMetadataFromStorage().
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().
|
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().
|
static |
add metadata file to manifest
Definition at line 359 of file DocumentMetadataAccess.cxx.
References addFile(), and sfx2::DocumentMetadataAccess_Impl::m_xContext.
Referenced by sfx2::DocumentMetadataAccess::addMetadataFile(), and sfx2::DocumentMetadataAccess::importMetadataFile().
void sfx2::appendExportFilters | ( | TSortedFilterList & | _rFilterMatcher, |
const css::uno::Reference< css::ui::dialogs::XFilterManager > & | _rFilterManager, | ||
OUString & | _rFirstNonEmpty, | ||
FileDialogHelper_Impl & | _rFileDlgImpl | ||
) |
void sfx2::appendExportFilters | ( | TSortedFilterList & | _rFilterMatcher, |
const Reference< XFilterManager > & | _rxFilterManager, | ||
OUString & | _rFirstNonEmpty, | ||
FileDialogHelper_Impl & | _rFileDlgImpl | ||
) |
Definition at line 961 of file filtergrouping.cxx.
References addExtension(), aUIName, aWildcard, DBG_ASSERT, sfx2::TSortedFilterList::First(), i, n, sfx2::TSortedFilterList::Next(), and SAL_WARN.
Referenced by sfx2::FileDialogHelper_Impl::addFilters().
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.
void sfx2::appendFiltersForOpen | ( | TSortedFilterList & | _rFilterMatcher, |
const Reference< XFilterManager > & | _rxFilterManager, | ||
OUString & | _rFirstNonEmpty, | ||
FileDialogHelper_Impl & | _rFileDlgImpl | ||
) |
Definition at line 1104 of file filtergrouping.cxx.
References DBG_ASSERT, lcl_EnsureAllFilesEntry(), and lcl_GroupAndClassify().
Referenced by sfx2::FileDialogHelper_Impl::addFilters().
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.
void sfx2::appendFiltersForSave | ( | TSortedFilterList & | _rFilterMatcher, |
const Reference< XFilterManager > & | _rxFilterManager, | ||
OUString & | _rFirstNonEmpty, | ||
FileDialogHelper_Impl & | _rFileDlgImpl, | ||
std::u16string_view | _rFactory | ||
) |
Definition at line 896 of file filtergrouping.cxx.
References addExtension(), DBG_ASSERT, sfx2::TSortedFilterList::First(), SfxFilterContainer::GetDefaultFilter_Impl(), sfx2::TSortedFilterList::Next(), and SAL_WARN.
Referenced by sfx2::FileDialogHelper_Impl::addFilters().
|
inline |
Definition at line 45 of file preventduplicateinteraction.hxx.
References SystemWindow::Close(), closedialogs(), and vcl::Window::GetWindow().
Referenced by closedialogs(), and sfx2::WarningDialogsParent::closewarningdialogs().
|
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().
css::uno::Sequence< sal_Int8 > SFX2_DLLPUBLIC sfx2::convertMetaFile | ( | GDIMetaFile const * | i_pThumb | ) |
Definition at line 308 of file docinf.cxx.
References GDIMetaFile::CreateThumbnail(), BitmapEx::GetBitmap(), SvMemoryStream::GetData(), SvMemoryStream::TellEnd(), and WriteDIB().
|
static |
generate unique xml:id
Definition at line 391 of file Metadatable.cxx.
References n, prefix, and comphelper::rng::uniform_uint_distribution().
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.
i_xContext | component context |
i_xModel | model of the document (required if no URI is provided) |
i_rPkgURI | the URI for the package |
i_rSubDocument | (optional) path of the subdocument in package |
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().
css::uno::Reference< css::ui::dialogs::XFolderPicker2 > SFX2_DLLPUBLIC sfx2::createFolderPicker | ( | const css::uno::Reference< css::uno::XComponentContext > & | rContext, |
weld::Window * | pPreferredParent | ||
) |
Definition at line 1156 of file filedlghelper.cxx.
References Any, Exception, weld::Window::GetXWindow(), and lcl_isSystemFilePicker().
Referenced by SfxTemplateManagerDlg::OnTemplateExport().
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.
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.
|
static |
Definition at line 3021 of file filedlghelper.cxx.
Referenced by sfx2::FileDialogHelper_Impl::loadConfig().
|
static |
Definition at line 3015 of file filedlghelper.cxx.
Referenced by sfx2::FileDialogHelper_Impl::saveConfig().
|
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().
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().
static ::std::vector< uno::Reference< rdf::XURI > > sfx2::getAllParts | ( | struct DocumentMetadataAccess_Impl const & | i_rImpl | ) |
Definition at line 391 of file DocumentMetadataAccess.cxx.
References cppu::getCaughtException(), sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, sfx2::DocumentMetadataAccess_Impl::m_xContext, and sfx2::DocumentMetadataAccess_Impl::m_xManifest.
static ::std::vector< uno::Reference< rdf::XURI > > sfx2::getAllParts | ( | struct DocumentMetadataAccess_Impl const & | i_rImpl, |
const uno::Reference< rdf::XURI > & | i_xType | ||
) |
Definition at line 444 of file DocumentMetadataAccess.cxx.
References sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, sfx2::DocumentMetadataAccess_Impl::m_xContext, and sfx2::DocumentMetadataAccess_Impl::m_xManifest.
Referenced by sfx2::DocumentMetadataAccess::getMetadataGraphsWithType(), and sfx2::DocumentMetadataAccess::loadMetadataFromStorage().
|
static |
Definition at line 133 of file filedlghelper.cxx.
References sfx2::FileDialogHelper::DrawExport, sfx2::FileDialogHelper::ImpressExport, u, and sfx2::FileDialogHelper::WriterExport.
Referenced by sfx2::FileDialogHelper_Impl::SaveLastUsedFilter(), and sfx2::FileDialogHelper_Impl::SetContext().
|
static |
Definition at line 1320 of file Metadatable.cxx.
|
static |
Definition at line 405 of file filtergrouping.cxx.
|
static |
Definition at line 235 of file DocumentMetadataAccess.cxx.
|
static |
Definition at line 296 of file DocumentMetadataAccess.cxx.
References sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, and sfx2::DocumentMetadataAccess_Impl::m_xContext.
Referenced by addFile(), sfx2::DocumentMetadataAccess::addMetadataFile(), sfx2::DocumentMetadataAccess::importMetadataFile(), init(), initLoading(), sfx2::DocumentMetadataAccess::loadMetadataFromStorage(), sfx2::DocumentMetadataAccess::removeContentOrStylesFile(), and sfx2::DocumentMetadataAccess::storeMetadataToStorage().
|
static |
error handling policy.
If a handler is given, ask it how to proceed:
N.B.: must not be called before DMA is fully initialized!
Definition at line 514 of file DocumentMetadataAccess.cxx.
Referenced by importFile(), and initLoading().
|
static |
Definition at line 169 of file docinsert.cxx.
References DBG_ASSERT, and sfx2::FileDialogHelper::GetSelectedFiles().
Referenced by IMPL_LINK_NOARG().
|
static |
Definition at line 2717 of file filedlghelper.cxx.
References Exception, comphelper::getProcessComponentContext(), and ucbhelper::Content::isFolder().
Referenced by sfx2::FileDialogHelper::SetDisplayDirectory().
sfx2::IMPL_LINK | ( | ClassificationCategoriesController | , |
SelectHdl | , | ||
weld::ComboBox & | , | ||
rCategory | , | ||
void | |||
) |
Definition at line 193 of file classificationcontroller.cxx.
References aHelper, aPropertyValues, SfxObjectShell::Current(), comphelper::dispatchCommand(), SfxObjectShell::getDocProperties(), comphelper::InitPropertySequence(), m_pClassification, and sfx::MANUAL.
sfx2::IMPL_LINK | ( | ClassificationControl | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 291 of file classificationcontroller.cxx.
sfx2::IMPL_LINK | ( | RecentDocsView | , |
ExecuteHdl_Impl | , | ||
void * | , | ||
p | , | ||
void | |||
) |
Definition at line 311 of file recentdocsview.cxx.
References sfx2::LoadRecentFile::aArgSeq, sfx2::LoadRecentFile::aTargetURL, sfx2::RecentDocsView::DispatchedLoadRecentUsedFile(), weld::CustomWidgetController::Enable(), Exception, p, sfx2::LoadRecentFile::pView, weld::CustomWidgetController::SetPointer(), and sfx2::LoadRecentFile::xDispatch.
sfx2::IMPL_LINK | ( | SvBaseLink | , |
EndEditHdl | , | ||
const OUString & | , | ||
_rNewName | , | ||
void | |||
) |
Definition at line 226 of file lnkbase2.cxx.
sfx2::IMPL_LINK | ( | SvDDEObject | , |
ImplDoneDDEData | , | ||
bool | , | ||
bValid | , | ||
void | |||
) |
Definition at line 319 of file impldde.cxx.
References DdeTransaction::Execute(), and pLink.
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.
sfx2::IMPL_LINK_NOARG | ( | DocumentInserter | , |
DialogClosedHdl | , | ||
sfx2::FileDialogHelper * | , | ||
void | |||
) |
Definition at line 187 of file docinsert.cxx.
References Any, bReadOnly, CONFIRM, DBG_ASSERT, ERRCODE_NONE, Export, SfxPasswordDialog::GetPassword(), impl_FillURLList(), Insert, m_sFilter, nVersion, RET_OK, SfxPasswordDialog::run(), SfxGetpApp(), SfxPasswordDialog::ShowExtras(), and TOOLS_WARN_EXCEPTION.
sfx2::IMPL_LINK_NOARG | ( | FileDialogHelper | , |
ExecuteSystemFilePicker | , | ||
void * | , | ||
void | |||
) |
Definition at line 2567 of file filedlghelper.cxx.
sfx2::IMPL_LINK_NOARG | ( | FileDialogHelper_Impl | , |
InitControls | , | ||
void * | , | ||
void | |||
) |
Definition at line 1231 of file filedlghelper.cxx.
sfx2::IMPL_LINK_NOARG | ( | FileDialogHelper_Impl | , |
TimeOutHdl_Impl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 652 of file filedlghelper.cxx.
References aBuffer, aData, Any, aURL, Graphic::Clear(), BitmapEx::Convert(), ERRCODE_NONE, Graphic::GetBitmapEx(), BitmapEx::GetSizePixel(), Size::Height(), BitmapEx::IsEmpty(), maGraphic, BitmapEx::Scale(), Size::Width(), and WriteDIB().
sfx2::IMPL_LINK_NOARG | ( | SearchDialog | , |
FindHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 109 of file srchdlg.cxx.
References nPos.
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.
sfx2::IMPL_STATIC_LINK_NOARG | ( | WarningDialogsParent | , |
TerminateDesktop | , | ||
void * | , | ||
void | |||
) |
Definition at line 213 of file preventduplicateinteraction.cxx.
References comphelper::getProcessComponentContext().
|
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().
|
static |
init Impl struct
Definition at line 791 of file DocumentMetadataAccess.cxx.
References addContentOrStylesFileImpl(), cppu::getCaughtException(), getURIForStream(), sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, sfx2::DocumentMetadataAccess_Impl::m_xContext, sfx2::DocumentMetadataAccess_Impl::m_xManifest, sfx2::DocumentMetadataAccess_Impl::m_xRepository, s_content, s_manifest, and s_styles.
|
static |
Definition at line 730 of file DocumentMetadataAccess.cxx.
References err, getURIForStream(), handleError(), uno::Any::hasValue(), sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, sfx2::DocumentMetadataAccess_Impl::m_xContext, sfx2::DocumentMetadataAccess_Impl::m_xManifest, sfx2::DocumentMetadataAccess_Impl::m_xRepository, readStream(), and s_manifest.
Referenced by sfx2::DocumentMetadataAccess::loadMetadataFromStorage().
|
constexpr |
Definition at line 66 of file lnkbase.hxx.
References check(), ClientFile, and t.
Referenced by sfx2::LinkManager::CancelTransfers().
|
constexpr |
Definition at line 62 of file lnkbase.hxx.
Referenced by sfx2::SvBaseLink::Edit(), sfx2::SvBaseLink::GetContentType(), sfx2::SvBaseLink::GetRealObject_(), sfx2::SvBaseLink::GetUpdateMode(), sfx2::LinkManager::InsertDDELink(), sfx2::LinkManager::InsertFileLink(), sfx2::SvBaseLink::SetContentType(), sfx2::SvBaseLink::SetObj(), sfx2::SvBaseLink::SetUpdateMode(), and sfx2::SvBaseLink::Update().
|
static |
Definition at line 96 of file DocumentMetadataAccess.cxx.
References s_content.
Referenced by addContentOrStylesFileImpl(), isReservedFile(), isValidXmlId(), sfx2::DocumentMetadataAccess::loadMetadataFromStorage(), sfx2::XmlIdRegistryDocument::XmlIdRegistry_Impl::LookupElementVector(), sfx2::XmlIdRegistryClipboard::XmlIdRegistry_Impl::LookupEntry(), rmIter(), sfx2::XmlIdRegistryDocument::XmlIdRegistry_Impl::TryInsertMetadatable(), and sfx2::XmlIdRegistryClipboard::XmlIdRegistry_Impl::TryInsertMetadatable().
|
static |
Definition at line 119 of file Metadatable.cxx.
References s_content.
|
static |
would storing the file to a XStorage succeed?
Definition at line 244 of file DocumentMetadataAccess.cxx.
References o3tl::getToken(), idx, comphelper::OStorageHelper::IsValidZipEntryFileName(), and u.
Referenced by sfx2::DocumentMetadataAccess::addContentOrStylesFile(), sfx2::DocumentMetadataAccess::addMetadataFile(), sfx2::DocumentMetadataAccess::importMetadataFile(), sfx2::DocumentMetadataAccess::removeContentOrStylesFile(), and sfx2::DocumentMetadataAccess::storeMetadataToStorage().
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().
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().
|
static |
Definition at line 421 of file DocumentMetadataAccess.cxx.
References cppu::getCaughtException(), sfx2::DocumentMetadataAccess_Impl::m_xContext, and sfx2::DocumentMetadataAccess_Impl::m_xManifest.
Referenced by sfx2::DocumentMetadataAccess::loadMetadataFromStorage().
|
static |
Definition at line 113 of file DocumentMetadataAccess.cxx.
References isContentFile(), isStylesFile(), and u.
Referenced by sfx2::DocumentMetadataAccess::addMetadataFile(), sfx2::DocumentMetadataAccess::importMetadataFile(), sfx2::DocumentMetadataAccess::loadMetadataFromStorage(), and sfx2::DocumentMetadataAccess::storeMetadataToStorage().
|
static |
Definition at line 101 of file DocumentMetadataAccess.cxx.
References s_styles.
Referenced by addContentOrStylesFileImpl(), isReservedFile(), isValidXmlId(), sfx2::DocumentMetadataAccess::loadMetadataFromStorage(), sfx2::XmlIdRegistryDocument::XmlIdRegistry_Impl::TryInsertMetadatable(), and sfx2::XmlIdRegistryClipboard::XmlIdRegistry_Impl::TryInsertMetadatable().
|
static |
Definition at line 124 of file Metadatable.cxx.
References s_styles.
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().
bool SFX2_DLLPUBLIC sfx2::isValidXmlId | ( | std::u16string_view | i_rStreamName, |
std::u16string_view | i_rIdref | ||
) |
Definition at line 106 of file DocumentMetadataAccess.cxx.
References isContentFile(), isStylesFile(), and isValidNCName().
Referenced by sfx2::XmlIdRegistryDocument::XmlIdRegistry_Impl::LookupElement(), sfx2::XmlIdRegistryClipboard::XmlIdRegistry_Impl::LookupEntry(), and splitXmlId().
|
static |
Definition at line 574 of file linkmgr2.cxx.
References aURL, URIHelper::GetMaybeFileHdl(), and URIHelper::SmartRel2Abs().
|
static |
Definition at line 773 of file filtergrouping.cxx.
References DBG_ASSERT, FILEDIALOG_FILTER_ALL, and lcl_hasAllFilesFilter().
Referenced by appendFiltersForOpen().
|
static |
Definition at line 569 of file filtergrouping.cxx.
References DBG_ASSERT, sfx2::TSortedFilterList::First(), lcl_InitGlobalClasses(), lcl_ReadClassification(), and sfx2::TSortedFilterList::Next().
Referenced by appendFiltersForOpen().
|
static |
Definition at line 757 of file filtergrouping.cxx.
References sfx2::TSortedFilterList::First(), sfx2::TSortedFilterList::Next(), and SfxResId().
Referenced by lcl_EnsureAllFilesEntry().
|
static |
Definition at line 506 of file filtergrouping.cxx.
Referenced by lcl_GroupAndClassify().
|
static |
Definition at line 793 of file filedlghelper.cxx.
References Exception.
Referenced by createFolderPicker(), and sfx2::FileDialogHelper_Impl::FileDialogHelper_Impl().
|
static |
Definition at line 827 of file filedlghelper.cxx.
References OPEN, SAVE, and UNDEFINED.
Referenced by sfx2::FileDialogHelper_Impl::addFilters(), sfx2::FileDialogHelper::FileDialogHelper(), and sfx2::FileDialogHelper_Impl::FileDialogHelper_Impl().
|
static |
Definition at line 312 of file filtergrouping.cxx.
References lcl_ReadGlobalFilters(), and lcl_ReadLocalFilters().
Referenced by lcl_GroupAndClassify().
|
static |
Definition at line 154 of file filtergrouping.cxx.
|
static |
Definition at line 228 of file filtergrouping.cxx.
References comphelper::sequenceToContainer().
Referenced by lcl_ReadClassification().
|
static |
Definition at line 295 of file filtergrouping.cxx.
Referenced by lcl_ReadClassification().
ErrCode SFX2_DLLPUBLIC sfx2::LoadOlePropertySet | ( | const css::uno::Reference< css::document::XDocumentProperties > & | i_xDocProps, |
SotStorage * | i_pStorage | ||
) |
load document meta-data from OLE stream
i_xDocProps | Document meta-data |
i_pStorage | OLE Storage |
ErrCode sfx2::LoadOlePropertySet | ( | const uno::Reference< document::XDocumentProperties > & | i_xDocProps, |
SotStorage * | i_pStorage | ||
) |
Definition at line 49 of file docinf.cxx.
References aPropName, ERRCODE_NONE, SfxOlePropertySet::GetSection(), uno::Any::hasValue(), SfxOlePropertySet::LoadPropertySet(), PROPID_AUTHOR, PROPID_CATEGORY, PROPID_COMMENTS, PROPID_COMPANY, PROPID_CREATED, PROPID_EDITTIME, PROPID_KEYWORDS, PROPID_LASTAUTHOR, PROPID_LASTPRINTED, PROPID_LASTSAVED, PROPID_MANAGER, PROPID_REVNUMBER, PROPID_SUBJECT, PROPID_TEMPLATE, PROPID_TITLE, SECTION_BUILTIN, SECTION_CUSTOM, SECTION_GLOBAL, STREAM_DOCSUMMARYINFO, and STREAM_SUMMARYINFO.
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().
|
static |
Definition at line 487 of file DocumentMetadataAccess.cxx.
Referenced by readStream().
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().
|
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:
"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().
|
static |
import a metadata file into repository
Definition at line 572 of file DocumentMetadataAccess.cxx.
References sfx2::DocumentMetadataAccess_Impl::m_xContext, sfx2::DocumentMetadataAccess_Impl::m_xRepository, mkException(), utl::MediaDescriptor::PROP_MEDIATYPE, readStream(), s_odfmime, SAL_WARN, splitPath(), and xStream.
Referenced by importFile(), initLoading(), and readStream().
|
static |
remove a file from the manifest
Definition at line 370 of file DocumentMetadataAccess.cxx.
References cppu::getCaughtException(), sfx2::DocumentMetadataAccess_Impl::m_xBaseURI, sfx2::DocumentMetadataAccess_Impl::m_xContext, and sfx2::DocumentMetadataAccess_Impl::m_xManifest.
Referenced by sfx2::DocumentMetadataAccess::removeContentOrStylesFile(), and sfx2::DocumentMetadataAccess::removeMetadataFile().
|
static |
Definition at line 624 of file Metadatable.cxx.
References pLink.
ErrCode sfx2::RequestPassword | ( | const std::shared_ptr< const SfxFilter > & | pCurrentFilter, |
OUString const & | aURL, | ||
SfxItemSet * | pSet, | ||
const css::uno::Reference< css::awt::XWindow > & | rParent | ||
) |
Definition at line 2971 of file filedlghelper.cxx.
References aURL, Application::CreateMessageDialog(), ERRCODE_ABORT, ERRCODE_IO_NOTSUPPORTED, eType, Application::GetFrameWeld(), GetODFSaneDefaultVersion(), IsMSType(), IsOOXML(), SvtSaveOptions::ODFSVER_012, OUStringToOString(), SfxItemSet::Put(), result, SetPassword(), SfxResId(), and comphelper::Standard.
Referenced by sfx2::FileDialogHelper_Impl::execute(), and IMPL_LINK_NOARG().
|
static |
Definition at line 944 of file Metadatable.cxx.
References isContentFile().
|
static |
Definition at line 484 of file Metadatable.cxx.
References isContentFile().
const sal_Unicode sfx2::s_cWildcardSeparator | ( | ';' | ) |
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:
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.
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
i_xDocProps | Document meta-data |
i_pStorage | OLE Storage |
i_pThumb | Thumbnail: preview bitmap |
i_pGuid | Blob: Guid blob ("_PID_GUID") |
i_pHyperlinks | Blob: Hyperlink blob ("_PID_HLINKS") |
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 | ||
) |
Definition at line 198 of file docinf.cxx.
References SfxOlePropertySet::AddSection(), aStr, DBG_ASSERT, ERRCODE_NONE, SfxOleSection::GetFreePropertyId(), name, PROPID_AUTHOR, PROPID_COMMENTS, PROPID_CREATED, PROPID_EDITTIME, PROPID_KEYWORDS, PROPID_LASTAUTHOR, PROPID_LASTPRINTED, PROPID_LASTSAVED, PROPID_REVNUMBER, PROPID_SUBJECT, PROPID_TEMPLATE, PROPID_THUMBNAIL, PROPID_TITLE, props, SAL_INFO, SfxOlePropertySet::SavePropertySet(), SECTION_BUILTIN, SECTION_CUSTOM, SECTION_GLOBAL, SfxOleSection::SetAnyValue(), SfxOleSection::SetBlobValue(), SfxOleSection::SetFileTimeValue(), SfxOleSection::SetPropertyName(), SfxOleSection::SetStringValue(), SfxOleSection::SetThumbnailValue(), STREAM_DOCSUMMARYINFO, and STREAM_SUMMARYINFO.
ErrCode sfx2::SetPassword | ( | const std::shared_ptr< const SfxFilter > & | pCurrentFilter, |
SfxItemSet * | pSet, | ||
const OUString & | rPasswordToOpen, | ||
std::u16string_view | rPasswordToModify, | ||
bool | bAllowPasswordReset | ||
) |
Definition at line 2879 of file filedlghelper.cxx.
References SfxItemSet::ClearItem(), comphelper::concatSequences(), comphelper::OStorageHelper::CreatePackageEncryptionData(), SfxMedium::CreatePasswordToModifyHash(), ERRCODE_IO_NOTSUPPORTED, ERRCODE_NONE, comphelper::DocPasswordHelper::GenerateNewModifyPasswordInfo(), comphelper::DocPasswordHelper::GenerateNewModifyPasswordInfoOOXML(), comphelper::DocPasswordHelper::GenerateRandomByteSequence(), comphelper::DocPasswordHelper::GenerateStd97Key(), comphelper::SequenceAsHashMap::getAsConstNamedValueList(), SfxItemSet::HasItem(), IsMSType(), IsOOXML(), and SfxItemSet::Put().
Referenced by IMPL_LINK_NOARG(), SfxBaseModel::impl_store(), and RequestPassword().
|
static |
Definition at line 1952 of file filedlghelper.cxx.
Referenced by sfx2::FileDialogHelper_Impl::saveConfig().
|
static |
split a uri hierarchy into first segment and rest
Definition at line 264 of file DocumentMetadataAccess.cxx.
Referenced by readStream(), and writeStream().
|
static |
Definition at line 283 of file DocumentMetadataAccess.cxx.
References idx, isValidXmlId(), and u.
Referenced by sfx2::DocumentMetadataAccess::getElementByURI().
|
static |
Definition at line 61 of file linksrc.cxx.
References pOwner.
Referenced by sfx2::SvLinkSource::DataChanged(), and sfx2::SvLinkSource::NotifyDataChanged().
|
static |
write a metadata file to the storage
Definition at line 686 of file DocumentMetadataAccess.cxx.
References exportStream(), utl::MediaDescriptor::PROP_MEDIATYPE, s_odfmime, SAL_WARN, splitPath(), and writeStream().
Referenced by sfx2::DocumentMetadataAccess::storeMetadataToStorage(), and writeStream().
const sal_Unicode sfx2::cTokenSeparator = 0xFFFF |
Definition at line 172 of file linkmgr.hxx.
Referenced by SvFileObject::Edit(), sfx2::LinkManager::GetDisplayNames(), IMPL_LINK(), sfx2::LinkManager::InsertFileLink(), and MakeLnkName().
|
constexpr |
Definition at line 60 of file recentdocsview.cxx.
Referenced by sfx2::RecentDocsView::RecentDocsView().
|
constexpr |
Definition at line 59 of file recentdocsview.cxx.
Referenced by sfx2::RecentDocsView::RecentDocsView().
|
constexpr |
Definition at line 1949 of file filedlghelper.cxx.
Referenced by sfx2::FileDialogHelper_Impl::saveConfig().
|
constexpr |
Definition at line 90 of file DocumentMetadataAccess.cxx.
Referenced by collectFilesFromStorage(), init(), and isContentFile().
|
constexpr |
Definition at line 92 of file DocumentMetadataAccess.cxx.
Referenced by init(), initLoading(), sfx2::DocumentMetadataAccess::loadMetadataFromStorage(), and sfx2::DocumentMetadataAccess::storeMetadataToStorage().
const char sfx2::s_odfmime[] = "application/vnd.oasis.opendocument." |
Definition at line 93 of file DocumentMetadataAccess.cxx.
Referenced by readStream(), and writeStream().
|
constexpr |
Definition at line 91 of file DocumentMetadataAccess.cxx.
Referenced by collectFilesFromStorage(), init(), and isStylesFile().
|
constexpr |
Definition at line 1950 of file filedlghelper.cxx.
Referenced by sfx2::FileDialogHelper_Impl::loadConfig(), and sfx2::FileDialogHelper_Impl::saveConfig().