summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-07-13 12:21:39 +0000
committerOliver Bolte <obo@openoffice.org>2006-07-13 12:21:39 +0000
commitc4e017ade9d67eea799cc85f388b4262fe8c9cf7 (patch)
tree641520ccd791dd0ea6baf009e04893a34dca4987 /shell
parent1030c32520378eafcc8f36dd82ab4069d6477202 (diff)
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
Diffstat (limited to 'shell')
-rw-r--r--shell/source/backends/kdebe/kdecommonlayer.cxx37
-rw-r--r--shell/source/backends/kdebe/makefile.mk5
2 files changed, 6 insertions, 36 deletions
diff --git a/shell/source/backends/kdebe/kdecommonlayer.cxx b/shell/source/backends/kdebe/kdecommonlayer.cxx
index 44e67ed30e04..853cd8ff749e 100644
--- a/shell/source/backends/kdebe/kdecommonlayer.cxx
+++ b/shell/source/backends/kdebe/kdecommonlayer.cxx
@@ -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;
}
diff --git a/shell/source/backends/kdebe/makefile.mk b/shell/source/backends/kdebe/makefile.mk
index 4cd5e9051b07..d6f6e5ce36e5 100644
--- a/shell/source/backends/kdebe/makefile.mk
+++ b/shell/source/backends/kdebe/makefile.mk
@@ -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