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
4f6becd9
Kaydet (Commit)
4f6becd9
authored
Şub 28, 2001
tarafından
Hennes Rohling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#84313# Using Reference can be helpfull! #?@
üst
0dc97fce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
38 deletions
+28
-38
filnot.cxx
ucb/source/ucp/file/filnot.cxx
+19
-29
filnot.hxx
ucb/source/ucp/file/filnot.hxx
+9
-9
No files found.
ucb/source/ucp/file/filnot.cxx
Dosyayı görüntüle @
4f6becd9
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: filnot.cxx,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change: $Author:
kso $ $Date: 2000-10-16 14:53:36
$
* last change: $Author:
hro $ $Date: 2001-02-28 19:00:17
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -88,11 +88,11 @@ using namespace com::sun::star::ucb;
ContentEventNotifier
::
ContentEventNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
uno
::
Reference
<
XContent
>&
x
CreatorContent
,
const
uno
::
Reference
<
XContentIdentifier
>&
xCreatorId
,
const
uno
::
Sequence
<
uno
::
Reference
<
uno
::
XInterface
>
>&
sListeners
)
:
m_pMyShell
(
pMyShell
),
m_
pCreatorContent
(
p
CreatorContent
),
m_
xCreatorContent
(
x
CreatorContent
),
m_xCreatorId
(
xCreatorId
),
m_sListeners
(
sListeners
)
{
...
...
@@ -100,12 +100,12 @@ ContentEventNotifier::ContentEventNotifier( shell* pMyShell,
ContentEventNotifier
::
ContentEventNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
uno
::
Reference
<
XContent
>&
x
CreatorContent
,
const
uno
::
Reference
<
XContentIdentifier
>&
xCreatorId
,
const
uno
::
Reference
<
XContentIdentifier
>&
xOldId
,
const
uno
::
Sequence
<
uno
::
Reference
<
uno
::
XInterface
>
>&
sListeners
)
:
m_pMyShell
(
pMyShell
),
m_
pCreatorContent
(
p
CreatorContent
),
m_
xCreatorContent
(
x
CreatorContent
),
m_xCreatorId
(
xCreatorId
),
m_xOldId
(
xOldId
),
m_sListeners
(
sListeners
)
...
...
@@ -116,14 +116,12 @@ ContentEventNotifier::ContentEventNotifier( shell* pMyShell,
void
ContentEventNotifier
::
notifyChildInserted
(
const
rtl
::
OUString
&
aChildName
)
{
uno
::
Reference
<
uno
::
XInterface
>
shooter
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
FileContentIdentifier
*
p
=
new
FileContentIdentifier
(
m_pMyShell
,
aChildName
);
uno
::
Reference
<
XContentIdentifier
>
xChildId
(
p
);
uno
::
Reference
<
XContent
>
xChildContent
=
m_pMyShell
->
m_pProvider
->
queryContent
(
xChildId
);
ContentEvent
aEvt
(
shooter
,
ContentEvent
aEvt
(
m_xCreatorContent
,
ContentAction
::
INSERTED
,
xChildContent
,
m_xCreatorId
);
...
...
@@ -138,12 +136,10 @@ void ContentEventNotifier::notifyChildInserted( const rtl::OUString& aChildName
void
ContentEventNotifier
::
notifyDeleted
(
void
)
{
uno
::
Reference
<
uno
::
XInterface
>
shooter
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
XContent
>
xDeletedContent
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
ContentEvent
aEvt
(
shooter
,
ContentEvent
aEvt
(
m_xCreatorContent
,
ContentAction
::
DELETED
,
xDeleted
Content
,
m_xCreator
Content
,
m_xCreatorId
);
...
...
@@ -159,8 +155,6 @@ void ContentEventNotifier::notifyDeleted( void )
void
ContentEventNotifier
::
notifyRemoved
(
const
rtl
::
OUString
&
aChildName
)
{
uno
::
Reference
<
uno
::
XInterface
>
shooter
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
FileContentIdentifier
*
p
=
new
FileContentIdentifier
(
m_pMyShell
,
aChildName
);
uno
::
Reference
<
XContentIdentifier
>
xChildId
(
p
);
...
...
@@ -173,7 +167,7 @@ void ContentEventNotifier::notifyRemoved( const rtl::OUString& aChildName )
uno
::
Reference
<
XContent
>
xDeletedContent
(
pp
);
ContentEvent
aEvt
(
shooter
,
ContentEvent
aEvt
(
m_xCreatorContent
,
ContentAction
::
REMOVED
,
xDeletedContent
,
m_xCreatorId
);
...
...
@@ -188,11 +182,9 @@ void ContentEventNotifier::notifyRemoved( const rtl::OUString& aChildName )
void
ContentEventNotifier
::
notifyExchanged
()
{
uno
::
Reference
<
uno
::
XInterface
>
shooter
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
ContentEvent
aEvt
(
shooter
,
ContentEvent
aEvt
(
m_xCreatorContent
,
ContentAction
::
EXCHANGED
,
m_
p
CreatorContent
,
m_
x
CreatorContent
,
m_xOldId
);
for
(
sal_Int32
i
=
0
;
i
<
m_sListeners
.
getLength
();
++
i
)
...
...
@@ -212,11 +204,11 @@ void ContentEventNotifier::notifyExchanged()
PropertySetInfoChangeNotifier
::
PropertySetInfoChangeNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
uno
::
Reference
<
XContent
>&
x
CreatorContent
,
const
uno
::
Reference
<
XContentIdentifier
>&
xCreatorId
,
const
uno
::
Sequence
<
uno
::
Reference
<
uno
::
XInterface
>
>&
sListeners
)
:
m_pMyShell
(
pMyShell
),
m_
pCreatorContent
(
p
CreatorContent
),
m_
xCreatorContent
(
x
CreatorContent
),
m_xCreatorId
(
xCreatorId
),
m_sListeners
(
sListeners
)
{
...
...
@@ -227,8 +219,7 @@ PropertySetInfoChangeNotifier::PropertySetInfoChangeNotifier(
void
SAL_CALL
PropertySetInfoChangeNotifier
::
notifyPropertyAdded
(
const
rtl
::
OUString
&
aPropertyName
)
{
uno
::
Reference
<
uno
::
XInterface
>
shooter
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
beans
::
PropertySetInfoChangeEvent
aEvt
(
shooter
,
beans
::
PropertySetInfoChangeEvent
aEvt
(
m_xCreatorContent
,
aPropertyName
,
-
1
,
beans
::
PropertySetInfoChange
::
PROPERTY_INSERTED
);
...
...
@@ -245,8 +236,7 @@ PropertySetInfoChangeNotifier::notifyPropertyAdded( const rtl::OUString & aPrope
void
SAL_CALL
PropertySetInfoChangeNotifier
::
notifyPropertyRemoved
(
const
rtl
::
OUString
&
aPropertyName
)
{
uno
::
Reference
<
uno
::
XInterface
>
shooter
(
static_cast
<
XContent
*
>
(
m_pCreatorContent
),
uno
::
UNO_QUERY
);
beans
::
PropertySetInfoChangeEvent
aEvt
(
shooter
,
beans
::
PropertySetInfoChangeEvent
aEvt
(
m_xCreatorContent
,
aPropertyName
,
-
1
,
beans
::
PropertySetInfoChange
::
PROPERTY_REMOVED
);
...
...
@@ -269,11 +259,11 @@ PropertySetInfoChangeNotifier::notifyPropertyRemoved( const rtl::OUString & aPro
PropertyChangeNotifier
::
PropertyChangeNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
XContent
>&
x
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xCreatorId
,
ListenerMap
*
pListeners
)
:
m_pMyShell
(
pMyShell
),
m_
pCreatorContent
(
p
CreatorContent
),
m_
xCreatorContent
(
x
CreatorContent
),
m_xCreatorId
(
xCreatorId
),
m_pListeners
(
pListeners
)
{
...
...
@@ -292,7 +282,7 @@ void PropertyChangeNotifier::notifyPropertyChanged(
sal_Int32
j
;
for
(
j
=
0
;
j
<
Changes
.
getLength
();
++
j
)
Changes
[
j
].
Source
=
static_cast
<
XContent
*>
(
m_pCreatorContent
)
;
Changes
[
j
].
Source
=
m_xCreatorContent
;
// notify listeners for all Events
...
...
ucb/source/ucp/file/filnot.hxx
Dosyayı görüntüle @
4f6becd9
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: filnot.hxx,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change: $Author:
kso $ $Date: 2000-10-16 14:53:36
$
* last change: $Author:
hro $ $Date: 2001-02-28 19:00:17
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -90,7 +90,7 @@ namespace fileaccess {
{
private
:
shell
*
m_pMyShell
;
BaseContent
*
m_p
CreatorContent
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
m_x
CreatorContent
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>
m_xCreatorId
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>
m_xOldId
;
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
>
m_sListeners
;
...
...
@@ -98,14 +98,14 @@ namespace fileaccess {
ContentEventNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>&
x
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xCreatorId
,
const
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
>&
sListeners
);
ContentEventNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>&
x
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xCreatorId
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xOldId
,
const
com
::
sun
::
star
::
uno
::
Sequence
<
...
...
@@ -122,13 +122,13 @@ namespace fileaccess {
{
private
:
shell
*
m_pMyShell
;
BaseContent
*
m_p
CreatorContent
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
m_x
CreatorContent
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>
m_xCreatorId
;
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
>
m_sListeners
;
public
:
PropertySetInfoChangeNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>&
x
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xCreatorId
,
const
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
>&
sListeners
);
...
...
@@ -147,13 +147,13 @@ namespace fileaccess {
{
private
:
shell
*
m_pMyShell
;
BaseContent
*
m_p
CreatorContent
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
m_x
CreatorContent
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>
m_xCreatorId
;
ListenerMap
*
m_pListeners
;
public
:
PropertyChangeNotifier
(
shell
*
pMyShell
,
BaseContent
*
p
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>&
x
CreatorContent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContentIdentifier
>&
xCreatorId
,
ListenerMap
*
pListeners
);
...
...
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