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
21f901f9
Kaydet (Commit)
21f901f9
authored
Ara 12, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fold SettingsHelperNoState, ChainableHelperNoState
Change-Id: I94bd49e6460855c58cc9fe2d1c7b1f5f7e6e589a
üst
3d994313
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
26 deletions
+18
-26
SettingsHelper.hxx
include/comphelper/SettingsHelper.hxx
+18
-26
No files found.
include/comphelper/SettingsHelper.hxx
Dosyayı görüntüle @
21f901f9
...
@@ -22,14 +22,12 @@
...
@@ -22,14 +22,12 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <comphelper/ChainablePropertySet.hxx>
#include <comphelper/solarmutex.hxx>
#include <comphelper/solarmutex.hxx>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase3.hxx>
namespace
comphelper
namespace
comphelper
{
{
class
ChainablePropertySet
;
class
ChainablePropertySetInfo
;
typedef
cppu
::
WeakImplHelper3
typedef
cppu
::
WeakImplHelper3
<
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
,
::
com
::
sun
::
star
::
beans
::
XPropertySet
,
...
@@ -37,15 +35,15 @@ namespace comphelper
...
@@ -37,15 +35,15 @@ namespace comphelper
::
com
::
sun
::
star
::
lang
::
XServiceInfo
::
com
::
sun
::
star
::
lang
::
XServiceInfo
>
>
HelperBaseNoState
;
HelperBaseNoState
;
template
<
class
ComphelperBase
,
class
ComphelperBaseInfo
>
class
Settings
HelperNoState
:
class
Chainable
HelperNoState
:
public
HelperBaseNoState
,
public
HelperBaseNoState
,
public
C
omphelperBase
public
C
hainablePropertySet
{
{
public
:
public
:
SettingsHelperNoState
(
ComphelperBase
Info
*
pInfo
,
SolarMutex
*
pMutex
=
NULL
)
ChainableHelperNoState
(
ChainablePropertySet
Info
*
pInfo
,
SolarMutex
*
pMutex
=
NULL
)
:
C
omphelperBase
(
pInfo
,
pMutex
)
:
C
hainablePropertySet
(
pInfo
,
pMutex
)
{}
{}
virtual
~
Settings
HelperNoState
()
throw
(
)
{}
virtual
~
Chainable
HelperNoState
()
throw
(
)
{}
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
queryInterface
(
const
com
::
sun
::
star
::
uno
::
Type
&
aType
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
)
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
queryInterface
(
const
com
::
sun
::
star
::
uno
::
Type
&
aType
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
return
HelperBaseNoState
::
queryInterface
(
aType
);
}
{
return
HelperBaseNoState
::
queryInterface
(
aType
);
}
void
SAL_CALL
acquire
(
)
throw
()
void
SAL_CALL
acquire
(
)
throw
()
...
@@ -56,49 +54,43 @@ namespace comphelper
...
@@ -56,49 +54,43 @@ namespace comphelper
// XPropertySet
// XPropertySet
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySetInfo
>
SAL_CALL
getPropertySetInfo
(
)
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySetInfo
>
SAL_CALL
getPropertySetInfo
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
return
C
omphelperBase
::
getPropertySetInfo
();
}
{
return
C
hainablePropertySet
::
getPropertySetInfo
();
}
virtual
void
SAL_CALL
setPropertyValue
(
const
OUString
&
aPropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
aValue
)
virtual
void
SAL_CALL
setPropertyValue
(
const
OUString
&
aPropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
aValue
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
setPropertyValue
(
aPropertyName
,
aValue
);
}
{
C
hainablePropertySet
::
setPropertyValue
(
aPropertyName
,
aValue
);
}
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getPropertyValue
(
const
OUString
&
PropertyName
)
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getPropertyValue
(
const
OUString
&
PropertyName
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
return
C
omphelperBase
::
getPropertyValue
(
PropertyName
);
}
{
return
C
hainablePropertySet
::
getPropertyValue
(
PropertyName
);
}
virtual
void
SAL_CALL
addPropertyChangeListener
(
const
OUString
&
aPropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListener
>&
xListener
)
virtual
void
SAL_CALL
addPropertyChangeListener
(
const
OUString
&
aPropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
addPropertyChangeListener
(
aPropertyName
,
xListener
);
}
{
C
hainablePropertySet
::
addPropertyChangeListener
(
aPropertyName
,
xListener
);
}
virtual
void
SAL_CALL
removePropertyChangeListener
(
const
OUString
&
aPropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListener
>&
aListener
)
virtual
void
SAL_CALL
removePropertyChangeListener
(
const
OUString
&
aPropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
removePropertyChangeListener
(
aPropertyName
,
aListener
);
}
{
C
hainablePropertySet
::
removePropertyChangeListener
(
aPropertyName
,
aListener
);
}
virtual
void
SAL_CALL
addVetoableChangeListener
(
const
OUString
&
PropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XVetoableChangeListener
>&
aListener
)
virtual
void
SAL_CALL
addVetoableChangeListener
(
const
OUString
&
PropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XVetoableChangeListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
addVetoableChangeListener
(
PropertyName
,
aListener
);
}
{
C
hainablePropertySet
::
addVetoableChangeListener
(
PropertyName
,
aListener
);
}
virtual
void
SAL_CALL
removeVetoableChangeListener
(
const
OUString
&
PropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XVetoableChangeListener
>&
aListener
)
virtual
void
SAL_CALL
removeVetoableChangeListener
(
const
OUString
&
PropertyName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XVetoableChangeListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
removeVetoableChangeListener
(
PropertyName
,
aListener
);
}
{
C
hainablePropertySet
::
removeVetoableChangeListener
(
PropertyName
,
aListener
);
}
// XMultiPropertySet
// XMultiPropertySet
virtual
void
SAL_CALL
setPropertyValues
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
,
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>&
aValues
)
virtual
void
SAL_CALL
setPropertyValues
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
,
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>&
aValues
)
throw
(
::
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
beans
::
PropertyVetoException
,
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
setPropertyValues
(
aPropertyNames
,
aValues
);
}
{
C
hainablePropertySet
::
setPropertyValues
(
aPropertyNames
,
aValues
);
}
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>
SAL_CALL
getPropertyValues
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
)
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>
SAL_CALL
getPropertyValues
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
return
C
omphelperBase
::
getPropertyValues
(
aPropertyNames
);
}
{
return
C
hainablePropertySet
::
getPropertyValues
(
aPropertyNames
);
}
virtual
void
SAL_CALL
addPropertiesChangeListener
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertiesChangeListener
>&
xListener
)
virtual
void
SAL_CALL
addPropertiesChangeListener
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertiesChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
addPropertiesChangeListener
(
aPropertyNames
,
xListener
);
}
{
C
hainablePropertySet
::
addPropertiesChangeListener
(
aPropertyNames
,
xListener
);
}
virtual
void
SAL_CALL
removePropertiesChangeListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertiesChangeListener
>&
xListener
)
virtual
void
SAL_CALL
removePropertiesChangeListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertiesChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
removePropertiesChangeListener
(
xListener
);
}
{
C
hainablePropertySet
::
removePropertiesChangeListener
(
xListener
);
}
virtual
void
SAL_CALL
firePropertiesChangeEvent
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertiesChangeListener
>&
xListener
)
virtual
void
SAL_CALL
firePropertiesChangeEvent
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
aPropertyNames
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertiesChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
C
omphelperBase
::
firePropertiesChangeEvent
(
aPropertyNames
,
xListener
);
}
{
C
hainablePropertySet
::
firePropertiesChangeEvent
(
aPropertyNames
,
xListener
);
}
};
};
typedef
comphelper
::
SettingsHelperNoState
<
::
comphelper
::
ChainablePropertySet
,
::
comphelper
::
ChainablePropertySetInfo
>
ChainableHelperNoState
;
}
}
#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