INTEGRATION: CWS pathoptions01 (1.2.16); FILE MERGED
2006/07/11 12:05:09 obr 1.2.16.1: #i66461# has moved to Paths.xcs
This commit is contained in:
parent
1030c32520
commit
c4e017ade9
2 changed files with 6 additions and 36 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: kdecommonlayer.cxx,v $
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Revision: 1.3 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2006-06-02 12:25:20 $
|
||||
* last change: $Author: obo $ $Date: 2006-07-13 13:21:03 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -41,10 +41,6 @@
|
|||
#include "kemailsettings.h"
|
||||
#endif
|
||||
|
||||
#ifndef _KGLOBALSETTINGS_H
|
||||
#include "kglobalsettings.h"
|
||||
#endif
|
||||
|
||||
#ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_PROPERTYINFO_HPP_
|
||||
#include <com/sun/star/configuration/backend/PropertyInfo.hpp>
|
||||
#endif
|
||||
|
@ -52,13 +48,6 @@
|
|||
#include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
|
||||
#endif
|
||||
|
||||
#ifndef _OSL_SECURITY_HXX_
|
||||
#include <osl/security.hxx>
|
||||
#endif
|
||||
#ifndef _OSL_FILE_HXX_
|
||||
#include <osl/file.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
#endif
|
||||
|
@ -99,7 +88,7 @@ void SAL_CALL KDECommonLayer::readData( const uno::Reference<backend::XLayerHand
|
|||
) ), static_cast < backend::XLayer * > (this) );
|
||||
}
|
||||
|
||||
uno::Sequence<backend::PropertyInfo> aPropInfoList(2);
|
||||
uno::Sequence<backend::PropertyInfo> aPropInfoList(1);
|
||||
sal_Int32 nProperties = 0;
|
||||
|
||||
KEMailSettings aEmailSettings;
|
||||
|
@ -120,21 +109,6 @@ void SAL_CALL KDECommonLayer::readData( const uno::Reference<backend::XLayerHand
|
|||
aPropInfoList[nProperties].Protected = sal_False;
|
||||
aPropInfoList[nProperties++].Value = uno::makeAny( sClientProgram );
|
||||
|
||||
QString aDocumentsDir( "file:" );
|
||||
::rtl::OUString sDocumentsDir;
|
||||
|
||||
aDocumentsDir += KGlobalSettings::documentPath();
|
||||
if ( aDocumentsDir.endsWith(QChar('/')) )
|
||||
aDocumentsDir.truncate ( aDocumentsDir.length() - 1 );
|
||||
sDocumentsDir = (const sal_Unicode *) aDocumentsDir.ucs2();
|
||||
|
||||
aPropInfoList[nProperties].Name = rtl::OUString(
|
||||
RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.Office.Common/Path/Current/Work") );
|
||||
aPropInfoList[nProperties].Type = rtl::OUString(
|
||||
RTL_CONSTASCII_USTRINGPARAM( "string" ) );
|
||||
aPropInfoList[nProperties].Protected = sal_False;
|
||||
aPropInfoList[nProperties++].Value = uno::makeAny( sDocumentsDir );
|
||||
|
||||
if( nProperties > 0 )
|
||||
{
|
||||
aPropInfoList.realloc(nProperties);
|
||||
|
@ -157,12 +131,7 @@ rtl::OUString SAL_CALL KDECommonLayer::getTimestamp(void)
|
|||
QString aClientProgram = aEmailSettings.getSetting( KEMailSettings::ClientProgram );
|
||||
aClientProgram = aClientProgram.section(SPACE, 0, 0);
|
||||
|
||||
QString aDocumentsDir;
|
||||
aDocumentsDir = KGlobalSettings::documentPath();
|
||||
|
||||
sTimeStamp = (const sal_Unicode *) aClientProgram.ucs2();
|
||||
sTimeStamp += sep;
|
||||
sTimeStamp += (const sal_Unicode *) aDocumentsDir.ucs2();
|
||||
|
||||
return sTimeStamp;
|
||||
}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
#
|
||||
# $RCSfile: makefile.mk,v $
|
||||
#
|
||||
# $Revision: 1.2 $
|
||||
# $Revision: 1.3 $
|
||||
#
|
||||
# last change: $Author: vg $ $Date: 2006-06-02 12:26:54 $
|
||||
# last change: $Author: obo $ $Date: 2006-07-13 13:21:39 $
|
||||
#
|
||||
# The Contents of this file are made available subject to
|
||||
# the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -65,6 +65,7 @@ SLOFILES=\
|
|||
$(SLO)$/kdecommonlayer.obj \
|
||||
$(SLO)$/kdeinetlayer.obj \
|
||||
$(SLO)$/kdevcllayer.obj \
|
||||
$(SLO)$/kdepathslayer.obj \
|
||||
$(SLO)$/kdebecdef.obj
|
||||
|
||||
SHL1NOCHECK=TRUE
|
||||
|
|
Loading…
Reference in a new issue