ContentProperties.cxx (2f86921c) | ContentProperties.cxx (59ddfc10) |
---|---|
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 "NeonUri.hxx" | 34#include "SerfUri.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; | 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 webdav_ucp; | 42using namespace http_dav_ucp; |
43 44/* 45============================================================================= 46 47 Property Mapping 48 49============================================================================= 50HTTP (entity header) WebDAV (property) UCB (property) --- 41 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 { | 43 44/* 45============================================================================= 46 47 Property Mapping 48 49============================================================================= 50HTTP (entity header) WebDAV (property) UCB (property) --- 41 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 NeonUri aURI( rResource.uri ); | 100 SerfUri 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 { --- 450 unchanged lines hidden (view full) --- 559 = PropertyValue( uno::makeAny( bFolder ), true ); 560 (*m_xProps)[ rtl::OUString::createFromAscii( "IsDocument" ) ] 561 = PropertyValue( uno::makeAny( sal_Bool( !bFolder ) ), true ); 562 (*m_xProps)[ rtl::OUString::createFromAscii( "ContentType" ) ] 563 = PropertyValue( uno::makeAny( bFolder 564 ? rtl::OUString::createFromAscii( WEBDAV_COLLECTION_TYPE ) 565 : rtl::OUString::createFromAscii( WEBDAV_CONTENT_TYPE ) ), true ); 566 } | 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 { --- 450 unchanged lines hidden (view full) --- 559 = PropertyValue( uno::makeAny( bFolder ), true ); 560 (*m_xProps)[ rtl::OUString::createFromAscii( "IsDocument" ) ] 561 = PropertyValue( uno::makeAny( sal_Bool( !bFolder ) ), true ); 562 (*m_xProps)[ rtl::OUString::createFromAscii( "ContentType" ) ] 563 = PropertyValue( uno::makeAny( bFolder 564 ? rtl::OUString::createFromAscii( WEBDAV_COLLECTION_TYPE ) 565 : rtl::OUString::createFromAscii( WEBDAV_CONTENT_TYPE ) ), true ); 566 } |
567 // else if ( rName.equals( DAVProperties::SOURCE ) ) 568 // { 569 // } | |
570 // else if ( rName.equals( DAVProperties::SUPPORTEDLOCK ) ) 571 // { 572 // } 573 574 // Save property. 575 (*m_xProps)[ rName ] = PropertyValue( rValue, bIsCaseSensitive ); 576} 577 --- 92 unchanged lines hidden --- | 567 // else if ( rName.equals( DAVProperties::SUPPORTEDLOCK ) ) 568 // { 569 // } 570 571 // Save property. 572 (*m_xProps)[ rName ] = PropertyValue( rValue, bIsCaseSensitive ); 573} 574 --- 92 unchanged lines hidden --- |