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
50de43d6
Kaydet (Commit)
50de43d6
authored
Mar 07, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
de-macroize ucb sortresult
Change-Id: Ib522fde5e453560b23c0189a29b50f5dfddb4482
üst
edb2dcff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
119 deletions
+51
-119
sortdynres.cxx
ucb/source/sorter/sortdynres.cxx
+2
-0
sortdynres.hxx
ucb/source/sorter/sortdynres.hxx
+1
-0
sortresult.cxx
ucb/source/sorter/sortresult.cxx
+24
-90
sortresult.hxx
ucb/source/sorter/sortresult.hxx
+24
-29
No files found.
ucb/source/sorter/sortdynres.cxx
Dosyayı görüntüle @
50de43d6
...
...
@@ -20,11 +20,13 @@
#include <vector>
#include <sortdynres.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/ucb/ContentResultSetCapability.hpp>
#include <com/sun/star/ucb/ListActionType.hpp>
#include <com/sun/star/ucb/WelcomeDynamicResultSetStruct.hpp>
#include <com/sun/star/ucb/CachedDynamicResultSetStubFactory.hpp>
#include <com/sun/star/ucb/XSourceInitialization.hpp>
#include <ucbhelper/getcomponentcontext.hxx>
using
namespace
com
::
sun
::
star
::
beans
;
using
namespace
com
::
sun
::
star
::
lang
;
...
...
ucb/source/sorter/sortdynres.hxx
Dosyayı görüntüle @
50de43d6
...
...
@@ -26,6 +26,7 @@
#include <com/sun/star/ucb/XDynamicResultSetListener.hpp>
#include <com/sun/star/ucb/ListenerAlreadySetException.hpp>
#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
#include "sortresult.hxx"
...
...
ucb/source/sorter/sortresult.cxx
Dosyayı görüntüle @
50de43d6
...
...
@@ -20,16 +20,17 @@
#include <vector>
#include <sortresult.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
#include <com/sun/star/ucb/ListActionType.hpp>
#include <com/sun/star/ucb/XAnyCompare.hpp>
#include <com/sun/star/ucb/XAnyCompareFactory.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/diagnose.h>
using
namespace
com
::
sun
::
star
::
beans
;
using
namespace
com
::
sun
::
star
::
container
;
using
namespace
com
::
sun
::
star
::
io
;
...
...
@@ -90,10 +91,8 @@ struct SortListData
class
SRSPropertySetInfo
:
public
OWeakObject
,
public
XTypeProvider
,
public
XPropertySetInfo
class
SRSPropertySetInfo
:
public
cppu
::
WeakImplHelper1
<
XPropertySetInfo
>
{
Property
maProps
[
2
];
...
...
@@ -103,17 +102,6 @@ public:
SRSPropertySetInfo
();
virtual
~
SRSPropertySetInfo
();
// 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
()
// XPropertySetInfo
virtual
Sequence
<
Property
>
SAL_CALL
getProperties
()
throw
(
RuntimeException
,
std
::
exception
);
...
...
@@ -208,58 +196,37 @@ SortedResultSet::~SortedResultSet()
}
// X
Interface
methods.
// X
ServiceInfo
methods.
void
SAL_CALL
SortedResultSet
::
acquir
e
()
throw
()
OUString
SAL_CALL
SortedResultSet
::
getImplementationNam
e
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
OWeakObject
::
acquire
();
return
getImplementationName_Static
();
}
void
SAL_CALL
SortedResultSet
::
release
()
throw
()
OUString
SortedResultSet
::
getImplementationName_Static
()
{
OWeakObject
::
release
(
);
return
OUString
(
"com.sun.star.comp.ucb.SortedResultSet"
);
}
css
::
uno
::
Any
SAL_CALL
SortedResultSet
::
queryInterface
(
const
css
::
uno
::
Type
&
rTyp
e
)
sal_Bool
SAL_CALL
SortedResultSet
::
supportsService
(
const
OUString
&
ServiceNam
e
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
css
::
uno
::
Any
aRet
=
cppu
::
queryInterface
(
rType
,
(
static_cast
<
XTypeProvider
*
>
(
this
)),
(
static_cast
<
XServiceInfo
*
>
(
this
)),
(
static_cast
<
XComponent
*
>
(
this
)),
(
static_cast
<
XContentAccess
*
>
(
this
)),
(
static_cast
<
XResultSet
*
>
(
this
)),
(
static_cast
<
XRow
*
>
(
this
)),
(
static_cast
<
XCloseable
*
>
(
this
)),
(
static_cast
<
XResultSetMetaDataSupplier
*
>
(
this
)),
(
static_cast
<
XPropertySet
*
>
(
this
))
);
return
aRet
.
hasValue
()
?
aRet
:
OWeakObject
::
queryInterface
(
rType
);
return
cppu
::
supportsService
(
this
,
ServiceName
);
}
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_9
(
SortedResultSet
,
XTypeProvider
,
XServiceInfo
,
XComponent
,
XContentAccess
,
XResultSet
,
XRow
,
XCloseable
,
XResultSetMetaDataSupplier
,
XPropertySet
);
// XServiceInfo methods.
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
SortedResultSet
::
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
getSupportedServiceNames_Static
();
}
XSERVICEINFO_NOFACTORY_IMPL_1
(
SortedResultSet
,
OUString
(
"com.sun.star.comp.ucb.SortedResultSet"
),
OUString
(
RESULTSET_SERVICE_NAME
)
);
css
::
uno
::
Sequence
<
OUString
>
SortedResultSet
::
getSupportedServiceNames_Static
()
{
css
::
uno
::
Sequence
<
OUString
>
aSNS
(
1
);
aSNS
.
getArray
()[
0
]
=
OUString
(
RESULTSET_SERVICE_NAME
);
return
aSNS
;
}
// XComponent methods.
...
...
@@ -2034,39 +2001,6 @@ SRSPropertySetInfo::SRSPropertySetInfo()
SRSPropertySetInfo
::~
SRSPropertySetInfo
()
{}
// XInterface methods.
void
SAL_CALL
SRSPropertySetInfo
::
acquire
()
throw
()
{
OWeakObject
::
acquire
();
}
void
SAL_CALL
SRSPropertySetInfo
::
release
()
throw
()
{
OWeakObject
::
release
();
}
css
::
uno
::
Any
SAL_CALL
SRSPropertySetInfo
::
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
css
::
uno
::
Any
aRet
=
cppu
::
queryInterface
(
rType
,
(
static_cast
<
XTypeProvider
*
>
(
this
)),
(
static_cast
<
XPropertySetInfo
*
>
(
this
))
);
return
aRet
.
hasValue
()
?
aRet
:
OWeakObject
::
queryInterface
(
rType
);
}
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_2
(
SRSPropertySetInfo
,
XTypeProvider
,
XPropertySetInfo
);
// XPropertySetInfo methods.
Sequence
<
Property
>
SAL_CALL
...
...
ucb/source/sorter/sortresult.hxx
Dosyayı görüntüle @
50de43d6
...
...
@@ -21,10 +21,10 @@
#define _SORTRESULT_HXX
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/X
Component
.hpp>
#include <com/sun/star/lang/X
TypeProvider
.hpp>
#include <com/sun/star/sdbc/XCloseable.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
...
...
@@ -34,11 +34,8 @@
#include <com/sun/star/ucb/NumberedSortingInfo.hpp>
#include <com/sun/star/ucb/XAnyCompareFactory.hpp>
#include <com/sun/star/ucb/ListAction.hpp>
#include <cppuhelper/weak.hxx>
#include <osl/mutex.hxx>
#include <cppuhelper/implbase8.hxx>
#include <deque>
#include <ucbhelper/macros.hxx>
namespace
cppu
{
class
OInterfaceContainerHelper
;
...
...
@@ -116,17 +113,15 @@ public:
class
SortedResultSet
:
public
cppu
::
OWeakObject
,
public
css
::
lang
::
XTypeProvider
,
public
css
::
lang
::
XServiceInfo
,
public
css
::
lang
::
XComponent
,
public
css
::
ucb
::
XContentAccess
,
public
css
::
sdbc
::
XResultSet
,
public
css
::
sdbc
::
XRow
,
public
css
::
sdbc
::
XCloseable
,
public
css
::
sdbc
::
XResultSetMetaDataSupplier
,
public
css
::
beans
::
XPropertySet
class
SortedResultSet
:
public
cppu
::
WeakImplHelper8
<
css
::
lang
::
XServiceInfo
,
css
::
lang
::
XComponent
,
css
::
ucb
::
XContentAccess
,
css
::
sdbc
::
XResultSet
,
css
::
sdbc
::
XRow
,
css
::
sdbc
::
XCloseable
,
css
::
sdbc
::
XResultSetMetaDataSupplier
,
css
::
beans
::
XPropertySet
>
{
cppu
::
OInterfaceContainerHelper
*
mpDisposeEventListeners
;
PropertyChangeListeners_Impl
*
mpPropChangeListeners
;
...
...
@@ -191,19 +186,19 @@ public:
void
ResortModified
(
EventList
*
pList
);
void
ResortNew
(
EventList
*
pList
);
// 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_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
virtual
void
SAL_CALL
...
...
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