ContentProperties.cxx (421ed02e) | ContentProperties.cxx (51ba086b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 17 unchanged lines hidden (view full) --- 26 27/************************************************************************** 28 TODO 29 ************************************************************************** 30 31 *************************************************************************/ 32#include <osl/diagnose.h> 33#include <com/sun/star/util/DateTime.hpp> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 17 unchanged lines hidden (view full) --- 26 27/************************************************************************** 28 TODO 29 ************************************************************************** 30 31 *************************************************************************/ 32#include <osl/diagnose.h> 33#include <com/sun/star/util/DateTime.hpp> |
34#include "SerfUri.hxx" | 34#include "CurlUri.hxx" |
35#include "DAVResource.hxx" 36#include "DAVProperties.hxx" 37#include "DateTimeHelper.hxx" 38#include "webdavprovider.hxx" 39#include "ContentProperties.hxx" 40 41using namespace com::sun::star; 42using namespace http_dav_ucp; --- 49 unchanged lines hidden (view full) --- 92 m_bTrailingSlash( false ) 93{ 94 OSL_ENSURE( rResource.uri.getLength(), 95 "ContentProperties ctor - Empty resource URI!" ); 96 97 // Title 98 try 99 { | 35#include "DAVResource.hxx" 36#include "DAVProperties.hxx" 37#include "DateTimeHelper.hxx" 38#include "webdavprovider.hxx" 39#include "ContentProperties.hxx" 40 41using namespace com::sun::star; 42using namespace http_dav_ucp; --- 49 unchanged lines hidden (view full) --- 92 m_bTrailingSlash( false ) 93{ 94 OSL_ENSURE( rResource.uri.getLength(), 95 "ContentProperties ctor - Empty resource URI!" ); 96 97 // Title 98 try 99 { |
100 SerfUri aURI( rResource.uri ); | 100 CurlUri aURI( rResource.uri ); |
101 m_aEscapedTitle = aURI.GetPathBaseName(); 102 103 (*m_xProps)[ rtl::OUString::createFromAscii( "Title" ) ] 104 = PropertyValue( 105 uno::makeAny( aURI.GetPathBaseNameUnescaped() ), true ); 106 } 107 catch ( DAVException const & ) 108 { --- 558 unchanged lines hidden --- | 101 m_aEscapedTitle = aURI.GetPathBaseName(); 102 103 (*m_xProps)[ rtl::OUString::createFromAscii( "Title" ) ] 104 = PropertyValue( 105 uno::makeAny( aURI.GetPathBaseNameUnescaped() ), true ); 106 } 107 catch ( DAVException const & ) 108 { --- 558 unchanged lines hidden --- |