summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2000-10-24 15:19:10 +0000
committerOcke Janssen <oj@openoffice.org>2000-10-24 15:19:10 +0000
commit63c9f791d5cc37be7f41df79404f3b33799dec73 (patch)
tree652edebd809cb0d2556f2542973d55ea7cffb89f /connectivity
parentdf4d22d96a07fabb3e0c58cb48e60534cb16a193 (diff)
make strings unique for lib's
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FConnection.cxx22
-rw-r--r--connectivity/source/drivers/file/FPreparedStatement.cxx5
-rw-r--r--connectivity/source/drivers/file/FResultSetMetaData.cxx5
-rw-r--r--connectivity/source/drivers/file/FStatement.cxx19
-rw-r--r--connectivity/source/drivers/file/fcode.cxx14
5 files changed, 35 insertions, 30 deletions
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx
index d9b3d07328db..b434700981b6 100644
--- a/connectivity/source/drivers/file/FConnection.cxx
+++ b/connectivity/source/drivers/file/FConnection.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FConnection.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2000-10-09 12:34:18 $
+ * last change: $Author: oj $ $Date: 2000-10-24 16:19:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -101,26 +101,18 @@
#ifndef _URLOBJ_HXX //autogen wg. INetURLObject
#include <tools/urlobj.hxx>
#endif
-#ifndef _FSYS_HXX //autogen
-#include <tools/fsys.hxx>
-#endif
#ifndef _CONNECTIVITY_FILE_CATALOG_HXX_
#include "file/FCatalog.hxx"
#endif
-#if SUPD > 605
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#include <svtools/pathoptions.hxx>
#endif
-#else
-#ifndef _COM_SUN_STAR_FRAME_XCONFIGMANAGER_HPP_
-#include <com/sun/star/frame/XConfigManager.hpp>
-#endif
-#endif // SUPD
#ifndef _UCBHELPER_CONTENT_HXX
#include <ucbhelper/content.hxx>
#endif
using namespace connectivity::file;
+using namespace connectivity::dbtools;
//------------------------------------------------------------------------------
using namespace com::sun::star::uno;
@@ -178,16 +170,8 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV
if (aURL.GetProtocol() == INET_PROT_FILE)
{
-#if SUPD > 605
SvtPathOptions aPathOptions;
aFileName = aPathOptions.SubstituteVariable(aFileName);
-#else
- // $Inst muß gesetzt sein
- Reference< ::com::sun::star::frame::XConfigManager > xSofficeIni(
- m_pDriver->getFactory()->createInstance(rtl::OUString::createFromAscii("com.sun.star.config.SpecialConfigManager")), UNO_QUERY);
-
- aFileName = xSofficeIni->substituteVariables(aFileName);
-#endif
}
::rtl::OUString aExt;
diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx
index ce79275b080a..a7c729ff7c01 100644
--- a/connectivity/source/drivers/file/FPreparedStatement.cxx
+++ b/connectivity/source/drivers/file/FPreparedStatement.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FPreparedStatement.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: oj $ $Date: 2000-10-19 11:56:36 $
+ * last change: $Author: oj $ $Date: 2000-10-24 16:19:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,6 +71,7 @@
#ifndef _CONNECTIVITY_FILE_ORESULTSETMETADATA_HXX_
#include "file/FResultSetMetaData.hxx"
#endif
+#define CONNECTIVITY_PROPERTY_NAME_SPACE file
#ifndef _CONNECTIVITY_PROPERTYIDS_HXX_
#include "propertyids.hxx"
#endif
diff --git a/connectivity/source/drivers/file/FResultSetMetaData.cxx b/connectivity/source/drivers/file/FResultSetMetaData.cxx
index 3b9e428e8f7f..ab43a22009c7 100644
--- a/connectivity/source/drivers/file/FResultSetMetaData.cxx
+++ b/connectivity/source/drivers/file/FResultSetMetaData.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FResultSetMetaData.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2000-09-29 15:30:09 $
+ * last change: $Author: oj $ $Date: 2000-10-24 16:19:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,7 @@
#ifndef _CONNECTIVITY_FILE_ORESULTSETMETADATA_HXX_
#include "file/FResultSetMetaData.hxx"
#endif
+#define CONNECTIVITY_PROPERTY_NAME_SPACE file
#ifndef _CONNECTIVITY_PROPERTYIDS_HXX_
#include "propertyids.hxx"
#endif
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx
index f21a410e077e..d36c0cc5b06c 100644
--- a/connectivity/source/drivers/file/FStatement.cxx
+++ b/connectivity/source/drivers/file/FStatement.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FStatement.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: oj $ $Date: 2000-10-19 11:56:36 $
+ * last change: $Author: oj $ $Date: 2000-10-24 16:19:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,7 @@
#ifndef _CONNECTIVITY_FILE_ORESULTSET_HXX_
#include "file/FResultSet.hxx"
#endif
+#define CONNECTIVITY_PROPERTY_NAME_SPACE file
#ifndef _CONNECTIVITY_PROPERTYIDS_HXX_
#include "propertyids.hxx"
#endif
@@ -106,8 +107,16 @@
#define THROW_SQL(x) \
OTools::ThrowException(x,m_aStatementHandle,SQL_HANDLE_STMT,*this)
-using namespace connectivity::file;
-using namespace connectivity;
+namespace connectivity
+{
+ namespace file
+ {
+// define the properties of this lib
+// this file includes the properties for this dll
+#ifndef CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
+#include "UStringDescription_Impl.hxx"
+#endif
+
//------------------------------------------------------------------------------
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
@@ -363,3 +372,5 @@ OResultSet* OStatement::createResultSet()
// -------------------------------------------------------------------------
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbc.driver.file.Statement","com.sun.star.sdbc.Statement");
+ }
+} \ No newline at end of file
diff --git a/connectivity/source/drivers/file/fcode.cxx b/connectivity/source/drivers/file/fcode.cxx
index 6bc7b8caaccb..c97a564faebc 100644
--- a/connectivity/source/drivers/file/fcode.cxx
+++ b/connectivity/source/drivers/file/fcode.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fcode.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2000-10-19 11:56:36 $
+ * last change: $Author: oj $ $Date: 2000-10-24 16:19:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -86,6 +86,10 @@
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
#endif
+#define CONNECTIVITY_PROPERTY_NAME_SPACE file
+#ifndef _CONNECTIVITY_PROPERTYIDS_HXX_
+#include "propertyids.hxx"
+#endif
using namespace connectivity;
@@ -156,7 +160,11 @@ OFILEOperandAttr::OFILEOperandAttr(sal_uInt16 _nPos,const Reference< XFastProper
:OOperandAttr(_nPos,_xColumn)
{
}
-
+// -------------------------------------------------------------------------
+sal_Bool OFILEOperandAttr::isIndexed() const
+{
+ return ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>(m_xColumn,::com::sun::star::uno::UNO_QUERY)->getPropertySetInfo()->hasPropertyByName(connectivity::file::PROPERTY_ISASCENDING);
+}
//------------------------------------------------------------------
OEvaluateSet* OFILEOperandAttr::preProcess(OBoolOperator* pOp, OOperand* pRight)
{