diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-13 15:17:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-13 20:11:36 +0200 |
commit | a9cf09844ee35610cbf102895014a7f03f8de100 (patch) | |
tree | 24094bcbacbc16b3988bb7c296d6fcfb4c78be12 | |
parent | 16a9092595761acca0392b4e177b309371d04f15 (diff) |
loplugin:ostr in sot
Change-Id: I782a071672b8c1fa2a843637fc5d7e993dbe0ef2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167599
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sot/qa/cppunit/test_sot.cxx | 2 | ||||
-rw-r--r-- | sot/source/base/exchange.cxx | 250 | ||||
-rw-r--r-- | sot/source/sdstor/stgelem.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/stgole.cxx | 4 | ||||
-rw-r--r-- | sot/source/sdstor/storage.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 34 | ||||
-rw-r--r-- | sot/source/unoolestorage/xolesimplestorage.cxx | 8 |
7 files changed, 153 insertions, 153 deletions
diff --git a/sot/qa/cppunit/test_sot.cxx b/sot/qa/cppunit/test_sot.cxx index 76a4492001c1..f696ea576c88 100644 --- a/sot/qa/cppunit/test_sot.cxx +++ b/sot/qa/cppunit/test_sot.cxx @@ -137,7 +137,7 @@ namespace xObjStor.is()); CPPUNIT_ASSERT_MESSAGE("sot storage failed to open", !xObjStor->GetError()); - rtl::Reference<SotStorageStream> xStream = xObjStor->OpenSotStream("Book"); + rtl::Reference<SotStorageStream> xStream = xObjStor->OpenSotStream(u"Book"_ustr); CPPUNIT_ASSERT_MESSAGE("stream failed to open", xStream.is()); CPPUNIT_ASSERT_MESSAGE("stream failed to open", diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index edff7f7c63d6..061a794af57c 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -52,113 +52,113 @@ const DataFlavorRepresentation* FormatArray_Impl() { static const DataFlavorRepresentation aInstance[] = { - /* 0 SOT_FORMAT_SYSTEM_START*/ { "", "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 1 SotClipboardFormatId::STRING*/ { "text/plain;charset=utf-16", "Text", &cppu::UnoType<OUString>::get()}, - /* 2 SotClipboardFormatId::BITMAP*/ { "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"", "Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 3 SotClipboardFormatId::GDIMETAFILE*/ { "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"", "GDIMetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 4 SotClipboardFormatId::PRIVATE*/ { "application/x-openoffice-private;windows_formatname=\"Private\"", "Private", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 5 SotClipboardFormatId::SIMPLE_FILE*/ { "application/x-openoffice-file;windows_formatname=\"FileNameW\"", "FileName", &cppu::UnoType<OUString>::get() }, - /* 6 SotClipboardFormatId::FILE_LIST*/ { "application/x-openoffice-filelist;windows_formatname=\"FileList\"", "FileList", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 7 EMPTY*/ { "", "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 8 EMPTY*/ { "", "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 9 EMPTY*/ { "", "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 10 SotClipboardFormatId::RTF*/ { "text/rtf", "Rich Text Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 11 SotClipboardFormatId::DRAWING*/ { "application/x-openoffice-drawing;windows_formatname=\"Drawing Format\"", "Drawing Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 12 SotClipboardFormatId::SVXB*/ { "application/x-openoffice-svxb;windows_formatname=\"SVXB (StarView Bitmap/Animation)\"", "SVXB (StarView Bitmap/Animation)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 13 SotClipboardFormatId::SVIM*/ { "application/x-openoffice-svim;windows_formatname=\"SVIM (StarView ImageMap)\"", "SVIM (StarView ImageMap)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 14 SotClipboardFormatId::XFA*/ { "application/x-libreoffice-xfa;windows_formatname=\"XFA (XOutDev FillAttr Any)\"", "XFA (XOutDev FillAttr Any)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 15 SotClipboardFormatId::EDITENGINE_ODF_TEXT_FLAT*/ { "application/vnd.oasis.opendocument.text-flat-xml", "Flat XML format (EditEngine ODF)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 16 SotClipboardFormatId::INTERNALLINK_STATE*/ { "application/x-openoffice-internallink-state;windows_formatname=\"StatusInfo vom SvxInternalLink\"", "StatusInfo vom SvxInternalLink", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 17 SotClipboardFormatId::SOLK*/ { "application/x-openoffice-solk;windows_formatname=\"SOLK (StarOffice Link)\"", "SOLK (StarOffice Link)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 18 SotClipboardFormatId::NETSCAPE_BOOKMARK*/ { "application/x-openoffice-netscape-bookmark;windows_formatname=\"Netscape Bookmark\"", "Netscape Bookmark", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 19 SotClipboardFormatId::TREELISTBOX*/ { "application/x-openoffice-treelistbox;windows_formatname=\"SV_LBOX_DD_FORMAT\"", "SV_LBOX_DD_FORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 20 SotClipboardFormatId::NATIVE*/ { "application/x-openoffice-native;windows_formatname=\"Native\"", "Native", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 21 SotClipboardFormatId::OWNERLINK*/ { "application/x-openoffice-ownerlink;windows_formatname=\"OwnerLink\"", "OwnerLink", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 22 SotClipboardFormatId::STARSERVER*/ { "application/x-openoffice-starserver;windows_formatname=\"StarServerFormat\"", "StarServerFormat", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 23 SotClipboardFormatId::STAROBJECT*/ { "application/x-openoffice-starobject;windows_formatname=\"StarObjectFormat\"", "StarObjectFormat", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 24 SotClipboardFormatId::APPLETOBJECT*/ { "application/x-openoffice-appletobject;windows_formatname=\"Applet Object\"", "Applet Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 25 SotClipboardFormatId::PLUGIN_OBJECT*/ { "application/x-openoffice-plugin-object;windows_formatname=\"PlugIn Object\"", "PlugIn Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 26 SotClipboardFormatId::STARWRITER_30*/ { "application/x-openoffice-starwriter-30;windows_formatname=\"StarWriter 3.0\"", "StarWriter 3.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 27 SotClipboardFormatId::STARWRITER_40*/ { "application/x-openoffice-starwriter-40;windows_formatname=\"StarWriter 4.0\"", "StarWriter 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 28 SotClipboardFormatId::STARWRITER_50*/ { "application/x-openoffice-starwriter-50;windows_formatname=\"StarWriter 5.0\"", "StarWriter 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 29 SotClipboardFormatId::STARWRITERWEB_40*/ { "application/x-openoffice-starwriterweb-40;windows_formatname=\"StarWriter/Web 4.0\"", "StarWriter/Web 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 30 SotClipboardFormatId::STARWRITERWEB_50*/ { "application/x-openoffice-starwriterweb-50;windows_formatname=\"StarWriter/Web 5.0\"", "StarWriter/Web 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 31 SotClipboardFormatId::STARWRITERGLOB_40*/ { "application/x-openoffice-starwriterglob-40;windows_formatname=\"StarWriter/Global 4.0\"", "StarWriter/Global 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 32 SotClipboardFormatId::STARWRITERGLOB_50*/ { "application/x-openoffice-starwriterglob-50;windows_formatname=\"StarWriter/Global 5.0\"", "StarWriter/Global 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 33 SotClipboardFormatId::STARDRAW*/ { "application/x-openoffice-stardraw;windows_formatname=\"StarDrawDocument\"", "StarDrawDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 34 SotClipboardFormatId::STARDRAW_40*/ { "application/x-openoffice-stardraw-40;windows_formatname=\"StarDrawDocument 4.0\"", "StarDrawDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 35 SotClipboardFormatId::STARIMPRESS_50*/ { "application/x-openoffice-starimpress-50;windows_formatname=\"StarImpress 5.0\"", "StarImpress 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 36 SotClipboardFormatId::STARDRAW_50*/ { "application/x-openoffice-stardraw-50;windows_formatname=\"StarDraw 5.0\"", "StarDraw 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 37 SotClipboardFormatId::STARCALC*/ { "application/x-openoffice-starcalc;windows_formatname=\"StarCalcDocument\"", "StarCalcDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 38 SotClipboardFormatId::STARCALC_40*/ { "application/x-openoffice-starcalc-40;windows_formatname=\"StarCalc 4.0\"", "StarCalc 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 39 SotClipboardFormatId::STARCALC_50*/ { "application/x-openoffice-starcalc-50;windows_formatname=\"StarCalc 5.0\"", "StarCalc 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 40 SotClipboardFormatId::STARCHART*/ { "application/x-openoffice-starchart;windows_formatname=\"StarChartDocument\"", "StarChartDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 41 SotClipboardFormatId::STARCHART_40*/ { "application/x-openoffice-starchart-40;windows_formatname=\"StarChartDocument 4.0\"", "StarChartDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 42 SotClipboardFormatId::STARCHART_50*/ { "application/x-openoffice-starchart-50;windows_formatname=\"StarChart 5.0\"", "StarChart 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 43 SotClipboardFormatId::STARIMAGE*/ { "application/x-openoffice-starimage;windows_formatname=\"StarImageDocument\"", "StarImageDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 44 SotClipboardFormatId::STARIMAGE_40*/ { "application/x-openoffice-starimage-40;windows_formatname=\"StarImageDocument 4.0\"", "StarImageDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 45 SotClipboardFormatId::STARIMAGE_50*/ { "application/x-openoffice-starimage-50;windows_formatname=\"StarImage 5.0\"", "StarImage 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 46 SotClipboardFormatId::STARMATH*/ { "application/x-openoffice-starmath;windows_formatname=\"StarMath\"", "StarMath", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 47 SotClipboardFormatId::STARMATH_40*/ { "application/x-openoffice-starmath-40;windows_formatname=\"StarMathDocument 4.0\"", "StarMathDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 48 SotClipboardFormatId::STARMATH_50*/ { "application/x-openoffice-starmath-50;windows_formatname=\"StarMath 5.0\"", "StarMath 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 49 SotClipboardFormatId::STAROBJECT_PAINTDOC*/ { "application/x-openoffice-starobject-paintdoc;windows_formatname=\"StarObjectPaintDocument\"", "StarObjectPaintDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 50 SotClipboardFormatId::FILLED_AREA*/ { "application/x-openoffice-filled-area;windows_formatname=\"FilledArea\"", "FilledArea", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 51 SotClipboardFormatId::HTML*/ { "text/html", "HTML (HyperText Markup Language)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 52 SotClipboardFormatId::HTML_SIMPLE*/ { "application/x-openoffice-html-simple;windows_formatname=\"HTML Format\"", "HTML Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 53 SotClipboardFormatId::CHAOS*/ { "application/x-openoffice-chaos;windows_formatname=\"FORMAT_CHAOS\"", "FORMAT_CHAOS", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 54 SotClipboardFormatId::CNT_MSGATTACHFILE*/ { "application/x-openoffice-cnt-msgattachfile;windows_formatname=\"CNT_MSGATTACHFILE_FORMAT\"", "CNT_MSGATTACHFILE_FORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 55 SotClipboardFormatId::BIFF_5*/ { "application/x-openoffice-biff5;windows_formatname=\"Biff5\"", "Biff5", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 56 SotClipboardFormatId::BIFF__5*/ { "application/x-openoffice-biff-5;windows_formatname=\"Biff 5\"", "Biff 5", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 57 SotClipboardFormatId::SYLK*/ { "application/x-openoffice-sylk;windows_formatname=\"Sylk\"", "Sylk", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 58 SotClipboardFormatId::SYLK_BIGCAPS*/ { "application/x-openoffice-sylk-bigcaps;windows_formatname=\"SYLK\"", "SYLK", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 59 SotClipboardFormatId::LINK*/ { "application/x-openoffice-link;windows_formatname=\"Link\"", "Link", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 60 SotClipboardFormatId::DIF*/ { "application/x-openoffice-dif;windows_formatname=\"DIF\"", "DIF", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 61 SotClipboardFormatId::STARDRAW_TABBAR*/ { "application/x-openoffice-stardraw-tabbar;windows_formatname=\"StarDraw TabBar\"", "StarDraw TabBar", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 62 SotClipboardFormatId::SONLK*/ { "application/x-openoffice-sonlk;windows_formatname=\"SONLK (StarOffice Navi Link)\"", "SONLK (StarOffice Navi Link)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 63 SotClipboardFormatId::MSWORD_DOC*/ { "application/msword", "MSWordDoc", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 64 SotClipboardFormatId::STAR_FRAMESET_DOC*/ { "application/x-openoffice-star-frameset-doc;windows_formatname=\"StarFrameSetDocument\"", "StarFrameSetDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 65 SotClipboardFormatId::OFFICE_DOC*/ { "application/x-openoffice-office-doc;windows_formatname=\"OfficeDocument\"", "OfficeDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 66 SotClipboardFormatId::NOTES_DOCINFO*/ { "application/x-openoffice-notes-docinfo;windows_formatname=\"NotesDocInfo\"", "NotesDocInfo", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 67 SotClipboardFormatId::NOTES_HNOTE*/ { "application/x-openoffice-notes-hnote;windows_formatname=\"NoteshNote\"", "NoteshNote", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 68 SotClipboardFormatId::NOTES_NATIVE*/ { "application/x-openoffice-notes-native;windows_formatname=\"Native\"", "Native", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 69 SotClipboardFormatId::SFX_DOC*/ { "application/x-openoffice-sfx-doc;windows_formatname=\"SfxDocument\"", "SfxDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 70 SotClipboardFormatId::EVDF*/ { "application/x-openoffice-evdf;windows_formatname=\"EVDF (Explorer View Dummy Format)\"", "EVDF (Explorer View Dummy Format)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 71 SotClipboardFormatId::ESDF*/ { "application/x-openoffice-esdf;windows_formatname=\"ESDF (Explorer Search Dummy Format)\"", "ESDF (Explorer Search Dummy Format)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 72 SotClipboardFormatId::IDF*/ { "application/x-openoffice-idf;windows_formatname=\"IDF (Iconview Dummy Format)\"", "IDF (Iconview Dummy Format)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 73 SotClipboardFormatId::EFTP*/ { "application/x-openoffice-eftp;windows_formatname=\"EFTP (Explorer Ftp File)\"", "EFTP (Explorer Ftp File)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 74 SotClipboardFormatId::EFD*/ { "application/x-openoffice-efd;windows_formatname=\"EFD (Explorer Ftp Dir)\"", "EFD (Explorer Ftp Dir)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 75 SotClipboardFormatId::SVX_FORMFIELDEXCH*/ { "application/x-openoffice-svx-formfieldexch;windows_formatname=\"SvxFormFieldExch\"", "SvxFormFieldExch", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 76 SotClipboardFormatId::EXTENDED_TABBAR*/ { "application/x-openoffice-extended-tabbar;windows_formatname=\"ExtendedTabBar\"", "ExtendedTabBar", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 77 SotClipboardFormatId::SBA_DATAEXCHANGE*/ { "application/x-openoffice-sba-dataexchange;windows_formatname=\"SBA-DATAFORMAT\"", "SBA-DATAFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 78 SotClipboardFormatId::SBA_FIELDDATAEXCHANGE*/ { "application/x-openoffice-sba-fielddataexchange;windows_formatname=\"SBA-FIELDFORMAT\"", "SBA-FIELDFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 79 SotClipboardFormatId::SBA_PRIVATE_URL*/ { "application/x-openoffice-sba-private-url;windows_formatname=\"SBA-PRIVATEURLFORMAT\"", "SBA-PRIVATEURLFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 80 SotClipboardFormatId::SBA_TABED*/ { "application/x-openofficesba-tabed;windows_formatname=\"Tabed\"", "Tabed", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 81 SotClipboardFormatId::SBA_TABID*/ { "application/x-openoffice-sba-tabid;windows_formatname=\"Tabid\"", "Tabid", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 82 SotClipboardFormatId::SBA_JOIN*/ { "application/x-openoffice-sba-join;windows_formatname=\"SBA-JOINFORMAT\"", "SBA-JOINFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 83 SotClipboardFormatId::OBJECTDESCRIPTOR*/ { "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\"", "Star Object Descriptor (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 84 SotClipboardFormatId::LINKSRCDESCRIPTOR*/ { "application/x-openoffice-linksrcdescriptor-xml;windows_formatname=\"Star Link Source Descriptor (XML)\"", "Star Link Source Descriptor (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 85 SotClipboardFormatId::EMBED_SOURCE*/ { "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\"", "Star Embed Source (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 86 SotClipboardFormatId::LINK_SOURCE*/ { "application/x-openoffice-link-source-xml;windows_formatname=\"Star Link Source (XML)\"", "Star Link Source (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 87 SotClipboardFormatId::EMBEDDED_OBJ*/ { "application/x-openoffice-embedded-obj-xml;windows_formatname=\"Star Embedded Object (XML)\"", "Star Embedded Object (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 88 SotClipboardFormatId::FILECONTENT*/ { "application/x-openoffice-filecontent;windows_formatname=\"FileContents\"", "FileContents", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 89 SotClipboardFormatId::FILEGRPDESCRIPTOR*/ { "application/x-openoffice-filegrpdescriptor;windows_formatname=\"FileGroupDescriptorW\"", "FileGroupDescriptor", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 90 SotClipboardFormatId::FILENAME*/ { "application/x-openoffice-filename;windows_formatname=\"FileNameW\"", "FileName", &cppu::UnoType<OUString>::get() }, - /* 91 SotClipboardFormatId::SD_OLE*/ { "application/x-openoffice-sd-ole;windows_formatname=\"SD-OLE\"", "SD-OLE", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 92 SotClipboardFormatId::EMBEDDED_OBJ_OLE*/ { "application/x-openoffice-embedded-obj-ole;windows_formatname=\"Embedded Object\"", "Embedded Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 93 SotClipboardFormatId::EMBED_SOURCE_OLE*/ { "application/x-openoffice-embed-source-ole;windows_formatname=\"Embed Source\"", "Embed Source", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 94 SotClipboardFormatId::OBJECTDESCRIPTOR_OLE*/ { "application/x-openoffice-objectdescriptor-ole;windows_formatname=\"Object Descriptor\"", "Object Descriptor", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 95 SotClipboardFormatId::LINKSRCDESCRIPTOR_OLE*/ { "application/x-openoffice-linkdescriptor-ole;windows_formatname=\"Link Source Descriptor\"", "Link Source Descriptor", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 96 SotClipboardFormatId::LINK_SOURCE_OLE*/ { "application/x-openoffice-link-source-ole;windows_formatname=\"Link Source\"", "Link Source", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 97 SotClipboardFormatId::SBA_CTRLDATAEXCHANGE*/ { "application/x-openoffice-sba-ctrldataexchange;windows_formatname=\"SBA-CTRLFORMAT\"", "SBA-CTRLFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 98 SotClipboardFormatId::OUTPLACE_OBJ*/ { "application/x-openoffice-outplace-obj;windows_formatname=\"OutPlace Object\"", "OutPlace Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /* 99 SotClipboardFormatId::CNT_OWN_CLIP*/ { "application/x-openoffice-cnt-own-clip;windows_formatname=\"CntOwnClipboard\"", "CntOwnClipboard", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*100 SotClipboardFormatId::INET_IMAGE*/ { "application/x-openoffice-inet-image;windows_formatname=\"SO-INet-Image\"", "SO-INet-Image", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*101 SotClipboardFormatId::NETSCAPE_IMAGE*/ { "application/x-openoffice-netscape-image;windows_formatname=\"Netscape Image Format\"", "Netscape Image Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*102 SotClipboardFormatId::SBA_FORMEXCHANGE*/ { "application/x-openoffice-sba-formexchange;windows_formatname=\"SBA_FORMEXCHANGE\"", "SBA_FORMEXCHANGE", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*103 SotClipboardFormatId::SBA_REPORTEXCHANGE*/ { "application/x-openoffice-sba-reportexchange;windows_formatname=\"SBA_REPORTEXCHANGE\"", "SBA_REPORTEXCHANGE", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*104 SotClipboardFormatId::UNIFORMRESOURCELOCATOR*/ { "application/x-openoffice-uniformresourcelocator;windows_formatname=\"UniformResourceLocatorW\"", "UniformResourceLocator", &cppu::UnoType<OUString>::get() }, - /*105 SotClipboardFormatId::STARCHARTDOCUMENT_50*/ { "application/x-openoffice-starchartdocument-50;windows_formatname=\"StarChartDocument 5.0\"", "StarChartDocument 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*106 SotClipboardFormatId::GRAPHOBJ*/ { "application/x-openoffice-graphobj;windows_formatname=\"Graphic Object\"", "Graphic Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 0 SOT_FORMAT_SYSTEM_START*/ { u""_ustr, "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 1 SotClipboardFormatId::STRING*/ { u"text/plain;charset=utf-16"_ustr, "Text", &cppu::UnoType<OUString>::get()}, + /* 2 SotClipboardFormatId::BITMAP*/ { u"application/x-openoffice-bitmap;windows_formatname=\"Bitmap\""_ustr, "Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 3 SotClipboardFormatId::GDIMETAFILE*/ { u"application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\""_ustr, "GDIMetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 4 SotClipboardFormatId::PRIVATE*/ { u"application/x-openoffice-private;windows_formatname=\"Private\""_ustr, "Private", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 5 SotClipboardFormatId::SIMPLE_FILE*/ { u"application/x-openoffice-file;windows_formatname=\"FileNameW\""_ustr, "FileName", &cppu::UnoType<OUString>::get() }, + /* 6 SotClipboardFormatId::FILE_LIST*/ { u"application/x-openoffice-filelist;windows_formatname=\"FileList\""_ustr, "FileList", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 7 EMPTY*/ { u""_ustr, "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 8 EMPTY*/ { u""_ustr, "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 9 EMPTY*/ { u""_ustr, "", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 10 SotClipboardFormatId::RTF*/ { u"text/rtf"_ustr, "Rich Text Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 11 SotClipboardFormatId::DRAWING*/ { u"application/x-openoffice-drawing;windows_formatname=\"Drawing Format\""_ustr, "Drawing Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 12 SotClipboardFormatId::SVXB*/ { u"application/x-openoffice-svxb;windows_formatname=\"SVXB (StarView Bitmap/Animation)\""_ustr, "SVXB (StarView Bitmap/Animation)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 13 SotClipboardFormatId::SVIM*/ { u"application/x-openoffice-svim;windows_formatname=\"SVIM (StarView ImageMap)\""_ustr, "SVIM (StarView ImageMap)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 14 SotClipboardFormatId::XFA*/ { u"application/x-libreoffice-xfa;windows_formatname=\"XFA (XOutDev FillAttr Any)\""_ustr, "XFA (XOutDev FillAttr Any)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 15 SotClipboardFormatId::EDITENGINE_ODF_TEXT_FLAT*/ { u"application/vnd.oasis.opendocument.text-flat-xml"_ustr, "Flat XML format (EditEngine ODF)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 16 SotClipboardFormatId::INTERNALLINK_STATE*/ { u"application/x-openoffice-internallink-state;windows_formatname=\"StatusInfo vom SvxInternalLink\""_ustr, "StatusInfo vom SvxInternalLink", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 17 SotClipboardFormatId::SOLK*/ { u"application/x-openoffice-solk;windows_formatname=\"SOLK (StarOffice Link)\""_ustr, "SOLK (StarOffice Link)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 18 SotClipboardFormatId::NETSCAPE_BOOKMARK*/ { u"application/x-openoffice-netscape-bookmark;windows_formatname=\"Netscape Bookmark\""_ustr, "Netscape Bookmark", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 19 SotClipboardFormatId::TREELISTBOX*/ { u"application/x-openoffice-treelistbox;windows_formatname=\"SV_LBOX_DD_FORMAT\""_ustr, "SV_LBOX_DD_FORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 20 SotClipboardFormatId::NATIVE*/ { u"application/x-openoffice-native;windows_formatname=\"Native\""_ustr, "Native", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 21 SotClipboardFormatId::OWNERLINK*/ { u"application/x-openoffice-ownerlink;windows_formatname=\"OwnerLink\""_ustr, "OwnerLink", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 22 SotClipboardFormatId::STARSERVER*/ { u"application/x-openoffice-starserver;windows_formatname=\"StarServerFormat\""_ustr, "StarServerFormat", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 23 SotClipboardFormatId::STAROBJECT*/ { u"application/x-openoffice-starobject;windows_formatname=\"StarObjectFormat\""_ustr, "StarObjectFormat", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 24 SotClipboardFormatId::APPLETOBJECT*/ { u"application/x-openoffice-appletobject;windows_formatname=\"Applet Object\""_ustr, "Applet Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 25 SotClipboardFormatId::PLUGIN_OBJECT*/ { u"application/x-openoffice-plugin-object;windows_formatname=\"PlugIn Object\""_ustr, "PlugIn Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 26 SotClipboardFormatId::STARWRITER_30*/ { u"application/x-openoffice-starwriter-30;windows_formatname=\"StarWriter 3.0\""_ustr, "StarWriter 3.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 27 SotClipboardFormatId::STARWRITER_40*/ { u"application/x-openoffice-starwriter-40;windows_formatname=\"StarWriter 4.0\""_ustr, "StarWriter 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 28 SotClipboardFormatId::STARWRITER_50*/ { u"application/x-openoffice-starwriter-50;windows_formatname=\"StarWriter 5.0\""_ustr, "StarWriter 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 29 SotClipboardFormatId::STARWRITERWEB_40*/ { u"application/x-openoffice-starwriterweb-40;windows_formatname=\"StarWriter/Web 4.0\""_ustr, "StarWriter/Web 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 30 SotClipboardFormatId::STARWRITERWEB_50*/ { u"application/x-openoffice-starwriterweb-50;windows_formatname=\"StarWriter/Web 5.0\""_ustr, "StarWriter/Web 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 31 SotClipboardFormatId::STARWRITERGLOB_40*/ { u"application/x-openoffice-starwriterglob-40;windows_formatname=\"StarWriter/Global 4.0\""_ustr, "StarWriter/Global 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 32 SotClipboardFormatId::STARWRITERGLOB_50*/ { u"application/x-openoffice-starwriterglob-50;windows_formatname=\"StarWriter/Global 5.0\""_ustr, "StarWriter/Global 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 33 SotClipboardFormatId::STARDRAW*/ { u"application/x-openoffice-stardraw;windows_formatname=\"StarDrawDocument\""_ustr, "StarDrawDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 34 SotClipboardFormatId::STARDRAW_40*/ { u"application/x-openoffice-stardraw-40;windows_formatname=\"StarDrawDocument 4.0\""_ustr, "StarDrawDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 35 SotClipboardFormatId::STARIMPRESS_50*/ { u"application/x-openoffice-starimpress-50;windows_formatname=\"StarImpress 5.0\""_ustr, "StarImpress 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 36 SotClipboardFormatId::STARDRAW_50*/ { u"application/x-openoffice-stardraw-50;windows_formatname=\"StarDraw 5.0\""_ustr, "StarDraw 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 37 SotClipboardFormatId::STARCALC*/ { u"application/x-openoffice-starcalc;windows_formatname=\"StarCalcDocument\""_ustr, "StarCalcDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 38 SotClipboardFormatId::STARCALC_40*/ { u"application/x-openoffice-starcalc-40;windows_formatname=\"StarCalc 4.0\""_ustr, "StarCalc 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 39 SotClipboardFormatId::STARCALC_50*/ { u"application/x-openoffice-starcalc-50;windows_formatname=\"StarCalc 5.0\""_ustr, "StarCalc 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 40 SotClipboardFormatId::STARCHART*/ { u"application/x-openoffice-starchart;windows_formatname=\"StarChartDocument\""_ustr, "StarChartDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 41 SotClipboardFormatId::STARCHART_40*/ { u"application/x-openoffice-starchart-40;windows_formatname=\"StarChartDocument 4.0\""_ustr, "StarChartDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 42 SotClipboardFormatId::STARCHART_50*/ { u"application/x-openoffice-starchart-50;windows_formatname=\"StarChart 5.0\""_ustr, "StarChart 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 43 SotClipboardFormatId::STARIMAGE*/ { u"application/x-openoffice-starimage;windows_formatname=\"StarImageDocument\""_ustr, "StarImageDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 44 SotClipboardFormatId::STARIMAGE_40*/ { u"application/x-openoffice-starimage-40;windows_formatname=\"StarImageDocument 4.0\""_ustr, "StarImageDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 45 SotClipboardFormatId::STARIMAGE_50*/ { u"application/x-openoffice-starimage-50;windows_formatname=\"StarImage 5.0\""_ustr, "StarImage 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 46 SotClipboardFormatId::STARMATH*/ { u"application/x-openoffice-starmath;windows_formatname=\"StarMath\""_ustr, "StarMath", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 47 SotClipboardFormatId::STARMATH_40*/ { u"application/x-openoffice-starmath-40;windows_formatname=\"StarMathDocument 4.0\""_ustr, "StarMathDocument 4.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 48 SotClipboardFormatId::STARMATH_50*/ { u"application/x-openoffice-starmath-50;windows_formatname=\"StarMath 5.0\""_ustr, "StarMath 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 49 SotClipboardFormatId::STAROBJECT_PAINTDOC*/ { u"application/x-openoffice-starobject-paintdoc;windows_formatname=\"StarObjectPaintDocument\""_ustr, "StarObjectPaintDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 50 SotClipboardFormatId::FILLED_AREA*/ { u"application/x-openoffice-filled-area;windows_formatname=\"FilledArea\""_ustr, "FilledArea", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 51 SotClipboardFormatId::HTML*/ { u"text/html"_ustr, "HTML (HyperText Markup Language)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 52 SotClipboardFormatId::HTML_SIMPLE*/ { u"application/x-openoffice-html-simple;windows_formatname=\"HTML Format\""_ustr, "HTML Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 53 SotClipboardFormatId::CHAOS*/ { u"application/x-openoffice-chaos;windows_formatname=\"FORMAT_CHAOS\""_ustr, "FORMAT_CHAOS", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 54 SotClipboardFormatId::CNT_MSGATTACHFILE*/ { u"application/x-openoffice-cnt-msgattachfile;windows_formatname=\"CNT_MSGATTACHFILE_FORMAT\""_ustr, "CNT_MSGATTACHFILE_FORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 55 SotClipboardFormatId::BIFF_5*/ { u"application/x-openoffice-biff5;windows_formatname=\"Biff5\""_ustr, "Biff5", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 56 SotClipboardFormatId::BIFF__5*/ { u"application/x-openoffice-biff-5;windows_formatname=\"Biff 5\""_ustr, "Biff 5", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 57 SotClipboardFormatId::SYLK*/ { u"application/x-openoffice-sylk;windows_formatname=\"Sylk\""_ustr, "Sylk", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 58 SotClipboardFormatId::SYLK_BIGCAPS*/ { u"application/x-openoffice-sylk-bigcaps;windows_formatname=\"SYLK\""_ustr, "SYLK", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 59 SotClipboardFormatId::LINK*/ { u"application/x-openoffice-link;windows_formatname=\"Link\""_ustr, "Link", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 60 SotClipboardFormatId::DIF*/ { u"application/x-openoffice-dif;windows_formatname=\"DIF\""_ustr, "DIF", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 61 SotClipboardFormatId::STARDRAW_TABBAR*/ { u"application/x-openoffice-stardraw-tabbar;windows_formatname=\"StarDraw TabBar\""_ustr, "StarDraw TabBar", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 62 SotClipboardFormatId::SONLK*/ { u"application/x-openoffice-sonlk;windows_formatname=\"SONLK (StarOffice Navi Link)\""_ustr, "SONLK (StarOffice Navi Link)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 63 SotClipboardFormatId::MSWORD_DOC*/ { u"application/msword"_ustr, "MSWordDoc", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 64 SotClipboardFormatId::STAR_FRAMESET_DOC*/ { u"application/x-openoffice-star-frameset-doc;windows_formatname=\"StarFrameSetDocument\""_ustr, "StarFrameSetDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 65 SotClipboardFormatId::OFFICE_DOC*/ { u"application/x-openoffice-office-doc;windows_formatname=\"OfficeDocument\""_ustr, "OfficeDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 66 SotClipboardFormatId::NOTES_DOCINFO*/ { u"application/x-openoffice-notes-docinfo;windows_formatname=\"NotesDocInfo\""_ustr, "NotesDocInfo", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 67 SotClipboardFormatId::NOTES_HNOTE*/ { u"application/x-openoffice-notes-hnote;windows_formatname=\"NoteshNote\""_ustr, "NoteshNote", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 68 SotClipboardFormatId::NOTES_NATIVE*/ { u"application/x-openoffice-notes-native;windows_formatname=\"Native\""_ustr, "Native", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 69 SotClipboardFormatId::SFX_DOC*/ { u"application/x-openoffice-sfx-doc;windows_formatname=\"SfxDocument\""_ustr, "SfxDocument", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 70 SotClipboardFormatId::EVDF*/ { u"application/x-openoffice-evdf;windows_formatname=\"EVDF (Explorer View Dummy Format)\""_ustr, "EVDF (Explorer View Dummy Format)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 71 SotClipboardFormatId::ESDF*/ { u"application/x-openoffice-esdf;windows_formatname=\"ESDF (Explorer Search Dummy Format)\""_ustr, "ESDF (Explorer Search Dummy Format)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 72 SotClipboardFormatId::IDF*/ { u"application/x-openoffice-idf;windows_formatname=\"IDF (Iconview Dummy Format)\""_ustr, "IDF (Iconview Dummy Format)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 73 SotClipboardFormatId::EFTP*/ { u"application/x-openoffice-eftp;windows_formatname=\"EFTP (Explorer Ftp File)\""_ustr, "EFTP (Explorer Ftp File)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 74 SotClipboardFormatId::EFD*/ { u"application/x-openoffice-efd;windows_formatname=\"EFD (Explorer Ftp Dir)\""_ustr, "EFD (Explorer Ftp Dir)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 75 SotClipboardFormatId::SVX_FORMFIELDEXCH*/ { u"application/x-openoffice-svx-formfieldexch;windows_formatname=\"SvxFormFieldExch\""_ustr, "SvxFormFieldExch", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 76 SotClipboardFormatId::EXTENDED_TABBAR*/ { u"application/x-openoffice-extended-tabbar;windows_formatname=\"ExtendedTabBar\""_ustr, "ExtendedTabBar", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 77 SotClipboardFormatId::SBA_DATAEXCHANGE*/ { u"application/x-openoffice-sba-dataexchange;windows_formatname=\"SBA-DATAFORMAT\""_ustr, "SBA-DATAFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 78 SotClipboardFormatId::SBA_FIELDDATAEXCHANGE*/ { u"application/x-openoffice-sba-fielddataexchange;windows_formatname=\"SBA-FIELDFORMAT\""_ustr, "SBA-FIELDFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 79 SotClipboardFormatId::SBA_PRIVATE_URL*/ { u"application/x-openoffice-sba-private-url;windows_formatname=\"SBA-PRIVATEURLFORMAT\""_ustr, "SBA-PRIVATEURLFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 80 SotClipboardFormatId::SBA_TABED*/ { u"application/x-openofficesba-tabed;windows_formatname=\"Tabed\""_ustr, "Tabed", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 81 SotClipboardFormatId::SBA_TABID*/ { u"application/x-openoffice-sba-tabid;windows_formatname=\"Tabid\""_ustr, "Tabid", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 82 SotClipboardFormatId::SBA_JOIN*/ { u"application/x-openoffice-sba-join;windows_formatname=\"SBA-JOINFORMAT\""_ustr, "SBA-JOINFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 83 SotClipboardFormatId::OBJECTDESCRIPTOR*/ { u"application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\""_ustr, "Star Object Descriptor (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 84 SotClipboardFormatId::LINKSRCDESCRIPTOR*/ { u"application/x-openoffice-linksrcdescriptor-xml;windows_formatname=\"Star Link Source Descriptor (XML)\""_ustr, "Star Link Source Descriptor (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 85 SotClipboardFormatId::EMBED_SOURCE*/ { u"application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\""_ustr, "Star Embed Source (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 86 SotClipboardFormatId::LINK_SOURCE*/ { u"application/x-openoffice-link-source-xml;windows_formatname=\"Star Link Source (XML)\""_ustr, "Star Link Source (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 87 SotClipboardFormatId::EMBEDDED_OBJ*/ { u"application/x-openoffice-embedded-obj-xml;windows_formatname=\"Star Embedded Object (XML)\""_ustr, "Star Embedded Object (XML)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 88 SotClipboardFormatId::FILECONTENT*/ { u"application/x-openoffice-filecontent;windows_formatname=\"FileContents\""_ustr, "FileContents", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 89 SotClipboardFormatId::FILEGRPDESCRIPTOR*/ { u"application/x-openoffice-filegrpdescriptor;windows_formatname=\"FileGroupDescriptorW\""_ustr, "FileGroupDescriptor", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 90 SotClipboardFormatId::FILENAME*/ { u"application/x-openoffice-filename;windows_formatname=\"FileNameW\""_ustr, "FileName", &cppu::UnoType<OUString>::get() }, + /* 91 SotClipboardFormatId::SD_OLE*/ { u"application/x-openoffice-sd-ole;windows_formatname=\"SD-OLE\""_ustr, "SD-OLE", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 92 SotClipboardFormatId::EMBEDDED_OBJ_OLE*/ { u"application/x-openoffice-embedded-obj-ole;windows_formatname=\"Embedded Object\""_ustr, "Embedded Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 93 SotClipboardFormatId::EMBED_SOURCE_OLE*/ { u"application/x-openoffice-embed-source-ole;windows_formatname=\"Embed Source\""_ustr, "Embed Source", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 94 SotClipboardFormatId::OBJECTDESCRIPTOR_OLE*/ { u"application/x-openoffice-objectdescriptor-ole;windows_formatname=\"Object Descriptor\""_ustr, "Object Descriptor", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 95 SotClipboardFormatId::LINKSRCDESCRIPTOR_OLE*/ { u"application/x-openoffice-linkdescriptor-ole;windows_formatname=\"Link Source Descriptor\""_ustr, "Link Source Descriptor", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 96 SotClipboardFormatId::LINK_SOURCE_OLE*/ { u"application/x-openoffice-link-source-ole;windows_formatname=\"Link Source\""_ustr, "Link Source", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 97 SotClipboardFormatId::SBA_CTRLDATAEXCHANGE*/ { u"application/x-openoffice-sba-ctrldataexchange;windows_formatname=\"SBA-CTRLFORMAT\""_ustr, "SBA-CTRLFORMAT", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 98 SotClipboardFormatId::OUTPLACE_OBJ*/ { u"application/x-openoffice-outplace-obj;windows_formatname=\"OutPlace Object\""_ustr, "OutPlace Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /* 99 SotClipboardFormatId::CNT_OWN_CLIP*/ { u"application/x-openoffice-cnt-own-clip;windows_formatname=\"CntOwnClipboard\""_ustr, "CntOwnClipboard", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*100 SotClipboardFormatId::INET_IMAGE*/ { u"application/x-openoffice-inet-image;windows_formatname=\"SO-INet-Image\""_ustr, "SO-INet-Image", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*101 SotClipboardFormatId::NETSCAPE_IMAGE*/ { u"application/x-openoffice-netscape-image;windows_formatname=\"Netscape Image Format\""_ustr, "Netscape Image Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*102 SotClipboardFormatId::SBA_FORMEXCHANGE*/ { u"application/x-openoffice-sba-formexchange;windows_formatname=\"SBA_FORMEXCHANGE\""_ustr, "SBA_FORMEXCHANGE", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*103 SotClipboardFormatId::SBA_REPORTEXCHANGE*/ { u"application/x-openoffice-sba-reportexchange;windows_formatname=\"SBA_REPORTEXCHANGE\""_ustr, "SBA_REPORTEXCHANGE", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*104 SotClipboardFormatId::UNIFORMRESOURCELOCATOR*/ { u"application/x-openoffice-uniformresourcelocator;windows_formatname=\"UniformResourceLocatorW\""_ustr, "UniformResourceLocator", &cppu::UnoType<OUString>::get() }, + /*105 SotClipboardFormatId::STARCHARTDOCUMENT_50*/ { u"application/x-openoffice-starchartdocument-50;windows_formatname=\"StarChartDocument 5.0\""_ustr, "StarChartDocument 5.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*106 SotClipboardFormatId::GRAPHOBJ*/ { u"application/x-openoffice-graphobj;windows_formatname=\"Graphic Object\""_ustr, "Graphic Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*107 SotClipboardFormatId::STARWRITER_60*/ { MIMETYPE_VND_SUN_XML_WRITER_ASCII, "Writer 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*108 SotClipboardFormatId::STARWRITERWEB_60*/ { MIMETYPE_VND_SUN_XML_WRITER_WEB_ASCII, "Writer/Web 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*109 SotClipboardFormatId::STARWRITERGLOB_60*/ { MIMETYPE_VND_SUN_XML_WRITER_GLOBAL_ASCII, "Writer/Global 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, @@ -167,15 +167,15 @@ const DataFlavorRepresentation* FormatArray_Impl() /*112 SotClipboardFormatId::STARCALC_60*/ { MIMETYPE_VND_SUN_XML_CALC_ASCII, "Calc 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*113 SotClipboardFormatId::STARCHART_60*/ { MIMETYPE_VND_SUN_XML_CHART_ASCII, "Chart 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*114 SotClipboardFormatId::STARMATH_60*/ { MIMETYPE_VND_SUN_XML_MATH_ASCII, "Math 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*115 SotClipboardFormatId::WMF*/ { "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"", "Windows MetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*116 SotClipboardFormatId::DBACCESS_QUERY*/ { "application/x-openoffice-dbaccess-query;windows_formatname=\"Data source Query Object\"", "Data source Query Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*117 SotClipboardFormatId::DBACCESS_TABLE*/ { "application/x-openoffice-dbaccess-table;windows_formatname=\"Data source Table\"", "Data source Table", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*118 SotClipboardFormatId::DBACCESS_COMMAND*/ { "application/x-openoffice-dbaccess-command;windows_formatname=\"SQL query\"", "SQL query", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*119 SotClipboardFormatId::DIALOG_60*/ { "application/vnd.sun.xml.dialog", "Dialog 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*120 SotClipboardFormatId::EMF*/ { "application/x-openoffice-emf;windows_formatname=\"Image EMF\"", "Windows Enhanced MetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*121 SotClipboardFormatId::BIFF_8*/ { "application/x-openoffice-biff-8;windows_formatname=\"Biff8\"", "Biff8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*122 SotClipboardFormatId::BMP*/ { "image/bmp", "Windows Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*123 SotClipboardFormatId::HTML_NO_COMMENT */ { "application/x-openoffice-html-no-comment;windows_formatname=\"HTML Format\"", "HTML (no comment)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*115 SotClipboardFormatId::WMF*/ { u"application/x-openoffice-wmf;windows_formatname=\"Image WMF\""_ustr, "Windows MetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*116 SotClipboardFormatId::DBACCESS_QUERY*/ { u"application/x-openoffice-dbaccess-query;windows_formatname=\"Data source Query Object\""_ustr, "Data source Query Object", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*117 SotClipboardFormatId::DBACCESS_TABLE*/ { u"application/x-openoffice-dbaccess-table;windows_formatname=\"Data source Table\""_ustr, "Data source Table", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*118 SotClipboardFormatId::DBACCESS_COMMAND*/ { u"application/x-openoffice-dbaccess-command;windows_formatname=\"SQL query\""_ustr, "SQL query", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*119 SotClipboardFormatId::DIALOG_60*/ { u"application/vnd.sun.xml.dialog"_ustr, "Dialog 6.0", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*120 SotClipboardFormatId::EMF*/ { u"application/x-openoffice-emf;windows_formatname=\"Image EMF\""_ustr, "Windows Enhanced MetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*121 SotClipboardFormatId::BIFF_8*/ { u"application/x-openoffice-biff-8;windows_formatname=\"Biff8\""_ustr, "Biff8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*122 SotClipboardFormatId::BMP*/ { u"image/bmp"_ustr, "Windows Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*123 SotClipboardFormatId::HTML_NO_COMMENT */ { u"application/x-openoffice-html-no-comment;windows_formatname=\"HTML Format\""_ustr, "HTML (no comment)", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*124 SotClipboardFormatId::STARWRITER_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII, "Writer 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*125 SotClipboardFormatId::STARWRITERWEB_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII, "Writer/Web 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*126 SotClipboardFormatId::STARWRITERGLOB_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII, "Writer/Global 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, @@ -184,7 +184,7 @@ const DataFlavorRepresentation* FormatArray_Impl() /*129 SotClipboardFormatId::STARCALC_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_ASCII, "Calc 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*130 SotClipboardFormatId::STARCHART_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII, "Chart 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*131 SotClipboardFormatId::STARMATH_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII, "Math 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*132 SotClipboardFormatId::XFORMS */ { "application/x-openoffice-xforms;windows_formatname=\"??? Format\"", "???", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*132 SotClipboardFormatId::XFORMS */ { u"application/x-openoffice-xforms;windows_formatname=\"??? Format\""_ustr, "???", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*133 SotClipboardFormatId::STARWRITER_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII, "Writer 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*134 SotClipboardFormatId::STARWDRAW_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII, "Draw 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*135 SotClipboardFormatId::STARIMPRESS_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII, "Impress 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() }, @@ -192,15 +192,15 @@ const DataFlavorRepresentation* FormatArray_Impl() /*137 SotClipboardFormatId::STARCHART_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII, "Chart 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*138 SotClipboardFormatId::STARMATH_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII, "Math 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*139 SotClipboardFormatId::STARBASE_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII, "StarBase 8", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*140 SotClipboardFormatId::HC_GDIMETAFILE*/ { "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"", "High Contrast GDIMetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*141 SotClipboardFormatId::PNG*/ { "image/png", "PNG Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*140 SotClipboardFormatId::HC_GDIMETAFILE*/ { u"application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\""_ustr, "High Contrast GDIMetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*141 SotClipboardFormatId::PNG*/ { u"image/png"_ustr, "PNG Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*142 SotClipboardFormatId::STARWRITERGLOB_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_TEMPLATE_ASCII, "Writer/Global 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*143 SotClipboardFormatId::MATHML*/ { "application/mathml+xml", "MathML", &::cppu::UnoType<const Sequence< sal_Int8 >>::get() }, - /*144 SotClipboardFormatId::JPEG*/ { "image/jpeg", "JPEG Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*145 SotClipboardFormatId::RICHTEXT*/ { "text/richtext", "Richtext Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*146 SotClipboardFormatId::STRING_TSVC*/ { "application/x-libreoffice-tsvc", "Text TSV-Calc", &cppu::UnoType<OUString>::get() }, - /*147 SotClipboardFormatId::PDF*/ { "application/pdf", "PDF Document", &cppu::UnoType<Sequence<sal_Int8>>::get() }, - /*148 SotClipboardFormatId::SVG*/ { "image/svg+xml;windows_formatname=\"image/svg+xml\"", "SVG", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*143 SotClipboardFormatId::MATHML*/ { u"application/mathml+xml"_ustr, "MathML", &::cppu::UnoType<const Sequence< sal_Int8 >>::get() }, + /*144 SotClipboardFormatId::JPEG*/ { u"image/jpeg"_ustr, "JPEG Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*145 SotClipboardFormatId::RICHTEXT*/ { u"text/richtext"_ustr, "Richtext Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*146 SotClipboardFormatId::STRING_TSVC*/ { u"application/x-libreoffice-tsvc"_ustr, "Text TSV-Calc", &cppu::UnoType<OUString>::get() }, + /*147 SotClipboardFormatId::PDF*/ { u"application/pdf"_ustr, "PDF Document", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*148 SotClipboardFormatId::SVG*/ { u"image/svg+xml;windows_formatname=\"image/svg+xml\""_ustr, "SVG", &cppu::UnoType<Sequence<sal_Int8>>::get() }, }; return &aInstance[0]; }; diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx index ff41d8d70f9c..a4d06eb55d5a 100644 --- a/sot/source/sdstor/stgelem.cxx +++ b/sot/source/sdstor/stgelem.cxx @@ -308,7 +308,7 @@ void StgEntry::Init() static OUString ToUpperUnicode( const OUString & rStr ) { // I don't know the locale, so en_US is hopefully fine - static CharClass aCC( LanguageTag( css::lang::Locale( "en", "US", "" )) ); + static CharClass aCC( LanguageTag( css::lang::Locale( u"en"_ustr, u"US"_ustr, u""_ustr )) ); return aCC.uppercase( rStr ); } diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index ac23f7a14555..98743626f491 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -91,7 +91,7 @@ void StgInternalStream::Commit() ///////////////////////// class StgCompObjStream StgCompObjStream::StgCompObjStream( BaseStorage& rStg, bool bWr ) - : StgInternalStream( rStg, "\1CompObj", bWr ) + : StgInternalStream( rStg, u"\1CompObj"_ustr, bWr ) { } @@ -158,7 +158,7 @@ bool StgCompObjStream::Store() /////////////////////////// class StgOleStream StgOleStream::StgOleStream( BaseStorage& rStg ) - : StgInternalStream( rStg, "\1Ole", true ) + : StgInternalStream( rStg, u"\1Ole"_ustr, true ) { } diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index a91c6f516a0b..cb9569db498e 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -633,8 +633,8 @@ rtl::Reference<SotStorage> SotStorage::OpenOLEStorage( const css::uno::Reference if ( nMode & StreamMode::WRITE ) { uno::Reference < beans::XPropertySet > xStreamProps( xStream, uno::UNO_QUERY_THROW ); - xStreamProps->setPropertyValue( "MediaType", - uno::Any( OUString( "application/vnd.sun.star.oleobject" ) ) ); + xStreamProps->setPropertyValue( u"MediaType"_ustr, + uno::Any( u"application/vnd.sun.star.oleobject"_ustr ) ); } pStream = utl::UcbStreamHelper::CreateStream( xStream ); @@ -658,7 +658,7 @@ SotClipboardFormatId SotStorage::GetFormatID( const css::uno::Reference < css::e OUString aMediaType; try { - xProps->getPropertyValue("MediaType") >>= aMediaType; + xProps->getPropertyValue(u"MediaType"_ustr) >>= aMediaType; } catch (uno::Exception const&) { diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 41e134a345a6..a6aa800e2436 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1051,7 +1051,7 @@ sal_Int16 UCBStorageStream_Impl::Commit() // create wrapper to stream that is only used while reading inside package component aArg.Data.set(new FileStreamWrapper_Impl(m_aTempURL)); aArg.ReplaceExisting = true; - m_pContent->executeCommand( "insert", Any(aArg) ); + m_pContent->executeCommand( u"insert"_ustr, Any(aArg) ); // wrapper now controls lifetime of temporary file m_aTempURL.clear(); @@ -1600,7 +1600,7 @@ void UCBStorage_Impl::Init() { // get the manifest information from the package try { - Any aAny = m_oContent->getPropertyValue("MediaType"); + Any aAny = m_oContent->getPropertyValue(u"MediaType"_ustr); OUString aTmp; if ( ( aAny >>= aTmp ) && !aTmp.isEmpty() ) m_aContentType = m_aOriginalContentType = aTmp; @@ -1676,7 +1676,7 @@ void UCBStorage_Impl::ReadContent() return; // create cursor for access to children - Reference< XResultSet > xResultSet = m_oContent->createCursor( { "Title", "IsFolder", "MediaType", "Size" }, ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS ); + Reference< XResultSet > xResultSet = m_oContent->createCursor( { u"Title"_ustr, u"IsFolder"_ustr, u"MediaType"_ustr, u"Size"_ustr }, ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS ); Reference< XRow > xRow( xResultSet, UNO_QUERY ); if ( xResultSet.is() ) { @@ -1720,7 +1720,7 @@ void UCBStorage_Impl::ReadContent() ::ucbhelper::Content aContent( aName, xComEnv, comphelper::getProcessComponentContext() ); OUString aMediaType; - Any aAny = aContent.getPropertyValue("MediaType"); + Any aAny = aContent.getPropertyValue(u"MediaType"_ustr); if ( ( aAny >>= aMediaType ) && ( aMediaType == "application/vnd.sun.star.oleobject" ) ) pElement->m_bIsStorage = true; else if ( aMediaType.isEmpty() ) @@ -1875,8 +1875,8 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert if ( !m_bIsRoot ) aPath += m_aName; aPath += "/"; - Sequence < PropertyValue > aProps{ comphelper::makePropertyValue("MediaType", m_aContentType), - comphelper::makePropertyValue("FullPath", aPath) }; + Sequence < PropertyValue > aProps{ comphelper::makePropertyValue(u"MediaType"_ustr, m_aContentType), + comphelper::makePropertyValue(u"FullPath"_ustr, aPath) }; pSequence[nProps++] = aProps; if ( m_bIsRoot ) @@ -1894,8 +1894,8 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert { // properties of streams OUString aElementPath = aPath + pElement->m_aName; - aProps = { comphelper::makePropertyValue("MediaType", pElement->GetContentType()), - comphelper::makePropertyValue("FullPath", aElementPath) }; + aProps = { comphelper::makePropertyValue(u"MediaType"_ustr, pElement->GetContentType()), + comphelper::makePropertyValue(u"FullPath"_ustr, aElementPath) }; pSequence[ nProps++ ] = aProps; } } @@ -1935,7 +1935,7 @@ bool UCBStorage_Impl::Insert( ::ucbhelper::Content *pContent ) continue; Content aNewFolder; - if ( !pContent->insertNewContent( rCurr.Type, { "Title" }, { Any(m_aName) }, aNewFolder ) ) + if ( !pContent->insertNewContent( rCurr.Type, { u"Title"_ustr }, { Any(m_aName) }, aNewFolder ) ) continue; // remove old content, create an "empty" new one and initialize it with the new inserted @@ -1996,7 +1996,7 @@ sal_Int16 UCBStorage_Impl::Commit() // first remove all open stream handles if (pContent && (!pElement->m_xStream.is() || pElement->m_xStream->Clear())) { - pContent->executeCommand( "delete", Any( true ) ); + pContent->executeCommand( u"delete"_ustr, Any( true ) ); nRet = COMMIT_RESULT_SUCCESS; } else @@ -2031,7 +2031,7 @@ sal_Int16 UCBStorage_Impl::Commit() pElement->m_xStream->m_aContentType = "application/vnd.sun.star.oleobject"; Any aValue; aValue <<= true; - pElement->m_xStream->m_pContent->setPropertyValue("Encrypted", aValue ); + pElement->m_xStream->m_pContent->setPropertyValue(u"Encrypted"_ustr, aValue ); } pContent = pElement->GetContent(); @@ -2041,14 +2041,14 @@ sal_Int16 UCBStorage_Impl::Commit() { // name ( title ) of the element was changed nLocalRet = COMMIT_RESULT_SUCCESS; - pContent->setPropertyValue("Title", Any(pElement->m_aName) ); + pContent->setPropertyValue(u"Title"_ustr, Any(pElement->m_aName) ); } if (pContent && pElement->IsLoaded() && pElement->GetContentType() != pElement->GetOriginalContentType()) { // mediatype of the element was changed nLocalRet = COMMIT_RESULT_SUCCESS; - pContent->setPropertyValue("MediaType", Any(pElement->GetContentType()) ); + pContent->setPropertyValue(u"MediaType"_ustr, Any(pElement->GetContentType()) ); } if ( nLocalRet != COMMIT_RESULT_NOTHING_TO_DO ) @@ -2095,14 +2095,14 @@ sal_Int16 UCBStorage_Impl::Commit() // clipboard format and ClassId will be retrieved from the media type when the file is loaded again Any aType; aType <<= m_aContentType; - m_oContent->setPropertyValue("MediaType", aType ); + m_oContent->setPropertyValue(u"MediaType"_ustr, aType ); if ( m_bIsLinked ) { // write a manifest file // first create a subfolder "META-inf" Content aNewSubFolder; - bool bRet = ::utl::UCBContentHelper::MakeFolder( *m_oContent, "META-INF", aNewSubFolder ); + bool bRet = ::utl::UCBContentHelper::MakeFolder( *m_oContent, u"META-INF"_ustr, aNewSubFolder ); if ( bRet ) { // create a stream to write the manifest file - use a temp file @@ -2128,7 +2128,7 @@ sal_Int16 UCBStorage_Impl::Commit() xWriter = nullptr; xOutputStream = nullptr; pTempFile.reset(); - aNewSubFolder.transferContent( aSource, InsertOperation::Move, "manifest.xml", NameClash::OVERWRITE ); + aNewSubFolder.transferContent( aSource, InsertOperation::Move, u"manifest.xml"_ustr, NameClash::OVERWRITE ); } } else @@ -2139,7 +2139,7 @@ sal_Int16 UCBStorage_Impl::Commit() #endif // force writing Any aAny; - m_oContent->executeCommand( "flush", aAny ); + m_oContent->executeCommand( u"flush"_ustr, aAny ); if ( m_pSource != nullptr ) { std::unique_ptr<SvStream> pStream(::utl::UcbStreamHelper::CreateStream( m_pTempFile->GetURL(), StreamMode::STD_READ )); diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index 407c8d508233..9336b67bb32f 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -296,7 +296,7 @@ void SAL_CALL OLESimpleStorage::insertByName( const OUString& aName, const uno:: catch( const uno::Exception& ) { css::uno::Any anyEx = cppu::getCaughtException(); - throw lang::WrappedTargetException("Insert has failed!", + throw lang::WrappedTargetException(u"Insert has failed!"_ustr, uno::Reference< uno::XInterface >(), anyEx ); } @@ -346,7 +346,7 @@ void SAL_CALL OLESimpleStorage::replaceByName( const OUString& aName, const uno: { uno::Any aCaught( ::cppu::getCaughtException() ); - throw lang::WrappedTargetException("Can't copy raw stream", + throw lang::WrappedTargetException(u"Can't copy raw stream"_ustr, uno::Reference< uno::XInterface >(), aCaught ); } @@ -667,7 +667,7 @@ void SAL_CALL OLESimpleStorage::setClassInfo( const uno::Sequence< sal_Int8 >& / // XServiceInfo OUString SAL_CALL OLESimpleStorage::getImplementationName() { - return "com.sun.star.comp.embed.OLESimpleStorage"; + return u"com.sun.star.comp.embed.OLESimpleStorage"_ustr; } sal_Bool SAL_CALL OLESimpleStorage::supportsService( const OUString& ServiceName ) @@ -677,7 +677,7 @@ sal_Bool SAL_CALL OLESimpleStorage::supportsService( const OUString& ServiceName uno::Sequence< OUString > SAL_CALL OLESimpleStorage::getSupportedServiceNames() { - return { "com.sun.star.embed.OLESimpleStorage" }; + return { u"com.sun.star.embed.OLESimpleStorage"_ustr }; } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * |