Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4bc0bd73
Kaydet (Commit)
4bc0bd73
authored
Nis 15, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
non-desktop: Avoid dbaccess.
Change-Id: I4cabda76917cded05a2978b1a280775b7f77a0de
üst
048d27ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
dbtfactory.cxx
connectivity/source/simpledbt/dbtfactory.cxx
+2
-1
virtualdbtools.hxx
include/connectivity/virtualdbtools.hxx
+4
-1
dbtoolsclient.cxx
svx/source/form/dbtoolsclient.cxx
+4
-6
swdbtoolsclient.cxx
sw/source/core/uibase/dbui/swdbtoolsclient.cxx
+4
-4
No files found.
connectivity/source/simpledbt/dbtfactory.cxx
Dosyayı görüntüle @
4bc0bd73
...
...
@@ -30,13 +30,14 @@ using namespace ::com::sun::star::lang;
// the entry point for load-on-call usage of the DBTOOLS lib
#if HAVE_FEATURE_DESKTOP
extern
"C"
void
*
SAL_CALL
createDataAccessToolsFactory
()
{
::
connectivity
::
ODataAccessToolsFactory
*
pFactory
=
new
::
connectivity
::
ODataAccessToolsFactory
;
pFactory
->
acquire
();
return
pFactory
;
}
#endif
namespace
connectivity
{
...
...
include/connectivity/virtualdbtools.hxx
Dosyayı görüntüle @
4bc0bd73
...
...
@@ -20,6 +20,8 @@
#ifndef INCLUDED_CONNECTIVITY_VIRTUALDBTOOLS_HXX
#define INCLUDED_CONNECTIVITY_VIRTUALDBTOOLS_HXX
#include <config_features.h>
#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Reference.hxx>
...
...
@@ -88,8 +90,9 @@ namespace dbtools {
a pointer to an object implementing the IDataAccessToolsFactory interface,
aquired exactly <em>once</em>.
*/
#if HAVE_FEATURE_DESKTOP
extern
"C"
OOO_DLLPUBLIC_DBTOOLS
void
*
SAL_CALL
createDataAccessToolsFactory
();
#endif
//=
...
...
svx/source/form/dbtoolsclient.cxx
Dosyayı görüntüle @
4bc0bd73
...
...
@@ -95,16 +95,12 @@ namespace svxform
revokeClient
();
}
#if HAVE_FEATURE_DESKTOP
#ifndef DISABLE_DYNLOADING
extern
"C"
{
static
void
SAL_CALL
thisModule
()
{}
}
#else
extern
"C"
void
*
createDataAccessToolsFactory
();
#endif
#endif
void
ODbtoolsClient
::
registerClient
()
...
...
@@ -115,6 +111,7 @@ namespace svxform
OSL_ENSURE
(
NULL
==
s_hDbtoolsModule
,
"ODbtoolsClient::registerClient: inconsistence: already have a module!"
);
OSL_ENSURE
(
NULL
==
s_pFactoryCreationFunc
,
"ODbtoolsClient::registerClient: inconsistence: already have a factory function!"
);
#if HAVE_FEATURE_DESKTOP
#ifndef DISABLE_DYNLOADING
const
OUString
sModuleName
(
SVLIBRARY
(
"dbtools"
)
);
...
...
@@ -140,6 +137,7 @@ namespace svxform
}
#else
s_pFactoryCreationFunc
=
createDataAccessToolsFactory
;
#endif
#endif
}
}
...
...
sw/source/core/uibase/dbui/swdbtoolsclient.cxx
Dosyayı görüntüle @
4bc0bd73
...
...
@@ -84,14 +84,12 @@ SwDbtoolsClient::~SwDbtoolsClient()
}
}
#if HAVE_FEATURE_DESKTOP
#ifndef DISABLE_DYNLOADING
extern
"C"
{
static
void
SAL_CALL
thisModule
()
{}
}
#else
extern
"C"
void
*
createDataAccessToolsFactory
();
#endif
#endif
void
SwDbtoolsClient
::
registerClient
()
...
...
@@ -102,6 +100,7 @@ void SwDbtoolsClient::registerClient()
OSL_ENSURE
(
NULL
==
getDbToolsClientModule
(),
"SwDbtoolsClient::registerClient: inconsistence: already have a module!"
);
OSL_ENSURE
(
NULL
==
getDbToolsClientFactoryFunction
(),
"SwDbtoolsClient::registerClient: inconsistence: already have a factory function!"
);
#if HAVE_FEATURE_DESKTOP
#ifndef DISABLE_DYNLOADING
const
OUString
sModuleName
(
SVLIBRARY
(
"dbtools"
));
...
...
@@ -126,6 +125,7 @@ void SwDbtoolsClient::registerClient()
}
#else
getDbToolsClientFactoryFunction
()
=
createDataAccessToolsFactory
;
#endif
#endif
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment