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
edb2dcff
Kaydet (Commit)
edb2dcff
authored
Mar 07, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
de-macroize ucb sortdynres
Change-Id: I292875fde0be3f838ad838233df11d765e4affd1
üst
864afb34
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
81 deletions
+38
-81
sortdynres.cxx
ucb/source/sorter/sortdynres.cxx
+0
-0
sortdynres.hxx
ucb/source/sorter/sortdynres.hxx
+38
-81
No files found.
ucb/source/sorter/sortdynres.cxx
Dosyayı görüntüle @
edb2dcff
This diff is collapsed.
Click to expand it.
ucb/source/sorter/sortdynres.hxx
Dosyayı görüntüle @
edb2dcff
...
@@ -20,38 +20,29 @@
...
@@ -20,38 +20,29 @@
#ifndef _SORTDYNRES_HXX
#ifndef _SORTDYNRES_HXX
#define _SORTDYNRES_HXX
#define _SORTDYNRES_HXX
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/ucb/NumberedSortingInfo.hpp>
#include <com/sun/star/ucb/NumberedSortingInfo.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/ucb/XDynamicResultSet.hpp>
#include <com/sun/star/ucb/XDynamicResultSet.hpp>
#include <com/sun/star/ucb/XDynamicResultSetListener.hpp>
#include <com/sun/star/ucb/XDynamicResultSetListener.hpp>
#include <com/sun/star/ucb/ListenerAlreadySetException.hpp>
#include <com/sun/star/ucb/ListenerAlreadySetException.hpp>
#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase1.hxx>
#include <osl/mutex.hxx>
#include <cppuhelper/implbase2.hxx>
#include <ucbhelper/macros.hxx>
#include "sortresult.hxx"
#include "sortresult.hxx"
namespace
cppu
{
namespace
cppu
{
class
OInterfaceContainerHelper
;
class
OInterfaceContainerHelper
;
}
}
#define DYNAMIC_RESULTSET_SERVICE_NAME "com.sun.star.ucb.SortedDynamicResultSet"
#define DYNAMIC_RESULTSET_SERVICE_NAME "com.sun.star.ucb.SortedDynamicResultSet"
#define DYNAMIC_RESULTSET_FACTORY_NAME "com.sun.star.ucb.SortedDynamicResultSetFactory"
#define DYNAMIC_RESULTSET_FACTORY_NAME "com.sun.star.ucb.SortedDynamicResultSetFactory"
class
SortedDynamicResultSetListener
;
class
SortedDynamicResultSetListener
;
class
SortedDynamicResultSet
:
class
SortedDynamicResultSet
:
public
cppu
::
WeakImplHelper2
<
public
cppu
::
OWeakObject
,
css
::
lang
::
XServiceInfo
,
public
css
::
lang
::
XTypeProvider
,
css
::
ucb
::
XDynamicResultSet
>
public
css
::
lang
::
XServiceInfo
,
public
css
::
ucb
::
XDynamicResultSet
{
{
cppu
::
OInterfaceContainerHelper
*
mpDisposeEventListeners
;
cppu
::
OInterfaceContainerHelper
*
mpDisposeEventListeners
;
...
@@ -71,12 +62,11 @@ class SortedDynamicResultSet:
...
@@ -71,12 +62,11 @@ class SortedDynamicResultSet:
EventList
maActions
;
EventList
maActions
;
osl
::
Mutex
maMutex
;
osl
::
Mutex
maMutex
;
sal_Bool
mbGotWelcome
:
1
;
sal_Bool
mbGotWelcome
:
1
;
sal_Bool
mbUseOne
:
1
;
sal_Bool
mbUseOne
:
1
;
sal_Bool
mbStatic
:
1
;
sal_Bool
mbStatic
:
1
;
private
:
private
:
void
SendNotify
();
void
SendNotify
();
public
:
public
:
...
@@ -88,28 +78,20 @@ public:
...
@@ -88,28 +78,20 @@ public:
~
SortedDynamicResultSet
();
~
SortedDynamicResultSet
();
// XInterface
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
acquire
()
throw
();
virtual
void
SAL_CALL
release
()
throw
();
// XTypeProvider
XTYPEPROVIDER_DECL
()
// XServiceInfo
// XServiceInfo
XSERVICEINFO_NOFACTORY_DECL
()
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
static
OUString
getImplementationName_Static
();
static
css
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
();
// XComponent
// XComponent
virtual
void
SAL_CALL
virtual
void
SAL_CALL
dispose
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
dispose
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
virtual
void
SAL_CALL
addEventListener
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XEventListener
>&
Listener
)
addEventListener
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XEventListener
>&
Listener
)
...
@@ -122,8 +104,7 @@ public:
...
@@ -122,8 +104,7 @@ public:
// XDynamicResultSet
// XDynamicResultSet
virtual
css
::
uno
::
Reference
<
css
::
sdbc
::
XResultSet
>
SAL_CALL
virtual
css
::
uno
::
Reference
<
css
::
sdbc
::
XResultSet
>
SAL_CALL
getStaticResultSet
()
getStaticResultSet
(
)
throw
(
css
::
ucb
::
ListenerAlreadySetException
,
css
::
uno
::
RuntimeException
,
std
::
exception
);
throw
(
css
::
ucb
::
ListenerAlreadySetException
,
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
virtual
void
SAL_CALL
...
@@ -144,20 +125,15 @@ public:
...
@@ -144,20 +125,15 @@ public:
// own methods:
// own methods:
virtual
void
SAL_CALL
virtual
void
SAL_CALL
impl_disposing
(
const
css
::
lang
::
EventObject
&
Source
)
impl_disposing
(
const
css
::
lang
::
EventObject
&
Source
)
throw
(
css
::
uno
::
RuntimeException
);
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
virtual
void
SAL_CALL
impl_notify
(
const
css
::
ucb
::
ListEvent
&
Changes
)
impl_notify
(
const
css
::
ucb
::
ListEvent
&
Changes
)
throw
(
css
::
uno
::
RuntimeException
);
throw
(
css
::
uno
::
RuntimeException
);
};
};
class
SortedDynamicResultSetListener
:
public
cppu
::
WeakImplHelper1
<
css
::
ucb
::
XDynamicResultSetListener
>
class
SortedDynamicResultSetListener
:
public
cppu
::
OWeakObject
,
public
css
::
ucb
::
XDynamicResultSetListener
{
{
SortedDynamicResultSet
*
mpOwner
;
SortedDynamicResultSet
*
mpOwner
;
osl
::
Mutex
maMutex
;
osl
::
Mutex
maMutex
;
...
@@ -166,29 +142,17 @@ public:
...
@@ -166,29 +142,17 @@ public:
SortedDynamicResultSetListener
(
SortedDynamicResultSet
*
mOwner
);
SortedDynamicResultSetListener
(
SortedDynamicResultSet
*
mOwner
);
~
SortedDynamicResultSetListener
();
~
SortedDynamicResultSetListener
();
// XInterface
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
acquire
()
throw
();
virtual
void
SAL_CALL
release
()
throw
();
// XEventListener ( base of XDynamicResultSetListener )
// XEventListener ( base of XDynamicResultSetListener )
virtual
void
SAL_CALL
virtual
void
SAL_CALL
disposing
(
const
css
::
lang
::
EventObject
&
Source
)
disposing
(
const
css
::
lang
::
EventObject
&
Source
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
// XDynamicResultSetListener
// XDynamicResultSetListener
virtual
void
SAL_CALL
virtual
void
SAL_CALL
notify
(
const
css
::
ucb
::
ListEvent
&
Changes
)
notify
(
const
css
::
ucb
::
ListEvent
&
Changes
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
// own methods:
// own methods:
void
SAL_CALL
impl_OwnerDies
();
void
SAL_CALL
impl_OwnerDies
();
...
@@ -196,43 +160,36 @@ public:
...
@@ -196,43 +160,36 @@ public:
class
SortedDynamicResultSetFactory
:
class
SortedDynamicResultSetFactory
:
public
cppu
::
WeakImplHelper2
<
public
cppu
::
OWeakObject
,
css
::
lang
::
XServiceInfo
,
public
css
::
lang
::
XTypeProvider
,
css
::
ucb
::
XSortedDynamicResultSetFactory
>
public
css
::
lang
::
XServiceInfo
,
public
css
::
ucb
::
XSortedDynamicResultSetFactory
{
{
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
public
:
public
:
SortedDynamicResultSetFactory
(
SortedDynamicResultSetFactory
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
&
rxContext
);
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
&
rxContext
);
~
SortedDynamicResultSetFactory
();
~
SortedDynamicResultSetFactory
();
// XInterface
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
acquire
()
throw
();
virtual
void
SAL_CALL
release
()
throw
();
// XTypeProvider
XTYPEPROVIDER_DECL
()
// XServiceInfo
// XServiceInfo
XSERVICEINFO_DECL
()
static
css
::
uno
::
Reference
<
css
::
lang
::
XSingleServiceFactory
>
createServiceFactory
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
rxServiceMgr
);
// XSortedDynamicResultSetFactory
// XSortedDynamicResultSetFactory
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
static
OUString
getImplementationName_Static
();
static
css
::
uno
::
Sequence
<
OUString
>
getSupportedServiceNames_Static
();
virtual
css
::
uno
::
Reference
<
css
::
ucb
::
XDynamicResultSet
>
SAL_CALL
virtual
css
::
uno
::
Reference
<
css
::
ucb
::
XDynamicResultSet
>
SAL_CALL
createSortedDynamicResultSet
(
createSortedDynamicResultSet
(
const
css
::
uno
::
Reference
<
css
::
ucb
::
XDynamicResultSet
>
&
Source
,
const
css
::
uno
::
Reference
<
css
::
ucb
::
XDynamicResultSet
>
&
Source
,
...
...
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