summaryrefslogtreecommitdiffstats
path: root/extensions/source/bibliography/bibload.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/bibliography/bibload.cxx')
-rw-r--r--extensions/source/bibliography/bibload.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 546b16e054ee..c8d88d8d0160 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -18,11 +18,12 @@
*/
#include <tools/debug.hxx>
-#include <tools/diagnose_ex.h>
+#include <comphelper/diagnose_ex.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <svl/itemprop.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <comphelper/processfactory.hxx>
+#include <com/sun/star/awt/XVclWindowPeer.hpp>
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
@@ -52,6 +53,7 @@
#include "bibconfig.hxx"
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
+#include <o3tl/string_view.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -174,7 +176,7 @@ void BibliographyLoader::load(const Reference< XFrame > & rFrame, const OUString
m_pBibMod = OpenBibModul();
- OUString aPartName = rURL.getToken( 1, '/' );
+ std::u16string_view aPartName = o3tl::getToken(rURL, 1, '/' );
Reference<XPropertySet> xPrSet(rFrame, UNO_QUERY);
if(xPrSet.is())
{
@@ -182,7 +184,7 @@ void BibliographyLoader::load(const Reference< XFrame > & rFrame, const OUString
aTitle <<= BibResId(RID_BIB_STR_FRAME_TITLE);
xPrSet->setPropertyValue("Title", aTitle);
}
- if(aPartName == "View" || aPartName == "View1")
+ if(aPartName == u"View" || aPartName == u"View1")
{
loadView(rFrame, rListener);
}
@@ -513,8 +515,7 @@ Reference< XPropertySetInfo > BibliographyLoader::getPropertySetInfo()
{
static const SfxItemPropertyMapEntry aBibProps_Impl[] =
{
- { u"BibliographyDataFieldNames", 0, cppu::UnoType<Sequence<PropertyValue>>::get(), PropertyAttribute::READONLY, 0},
- { u"", 0, css::uno::Type(), 0, 0 }
+ { u"BibliographyDataFieldNames"_ustr, 0, cppu::UnoType<Sequence<PropertyValue>>::get(), PropertyAttribute::READONLY, 0},
};
static Reference< XPropertySetInfo > xRet =
SfxItemPropertySet(aBibProps_Impl).getPropertySetInfo();