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
374fb913
Kaydet (Commit)
374fb913
authored
Agu 03, 2012
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tubes: make ScDocShell* member of ScCollaboration
Change-Id: I8e9bab6d97e7fb4a3de3b3d3896a57c6496958bd
üst
56977dfa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
sccollaboration.cxx
sc/source/ui/collab/sccollaboration.cxx
+7
-9
docsh.cxx
sc/source/ui/docshell/docsh.cxx
+2
-2
sccollaboration.hxx
sc/source/ui/inc/sccollaboration.hxx
+3
-1
No files found.
sc/source/ui/collab/sccollaboration.cxx
Dosyayı görüntüle @
374fb913
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
#include "docsh.hxx"
#include "docsh.hxx"
#include "sendfunc.hxx"
#include "sendfunc.hxx"
ScCollaboration
::
ScCollaboration
()
ScCollaboration
::
ScCollaboration
(
ScDocShell
*
pScDocShell
)
:
mpScDocShell
(
pScDocShell
)
{
{
}
}
...
@@ -31,21 +32,20 @@ TeleConference* ScCollaboration::GetConference()
...
@@ -31,21 +32,20 @@ TeleConference* ScCollaboration::GetConference()
sal_uInt64
ScCollaboration
::
GetId
()
sal_uInt64
ScCollaboration
::
GetId
()
{
{
return
reinterpret_cast
<
sal_uInt64
>
(
SfxObjectShell
::
Current
()
);
return
reinterpret_cast
<
sal_uInt64
>
(
mpScDocShell
);
}
}
void
ScCollaboration
::
SetCollaboration
(
TeleConference
*
pConference
)
void
ScCollaboration
::
SetCollaboration
(
TeleConference
*
pConference
)
{
{
ScDocShell
*
pScDocShell
=
dynamic_cast
<
ScDocShell
*>
(
SfxObjectShell
::
Current
());
ScDocFunc
*
pDocFunc
=
&
mpScDocShell
->
GetDocFunc
();
ScDocFunc
*
pDocFunc
=
pScDocShell
?
&
pScDocShell
->
GetDocFunc
()
:
NULL
;
ScDocFuncSend
*
pSender
=
dynamic_cast
<
ScDocFuncSend
*>
(
pDocFunc
);
ScDocFuncSend
*
pSender
=
dynamic_cast
<
ScDocFuncSend
*>
(
pDocFunc
);
if
(
!
pSender
)
if
(
!
pSender
)
{
{
// This means pDocFunc has to be ScDocFuncDirect* and we are not collaborating yet.
// This means pDocFunc has to be ScDocFuncDirect* and we are not collaborating yet.
ScDocFuncDirect
*
pDirect
=
dynamic_cast
<
ScDocFuncDirect
*>
(
pDocFunc
);
ScDocFuncDirect
*
pDirect
=
dynamic_cast
<
ScDocFuncDirect
*>
(
pDocFunc
);
ScDocFuncRecv
*
pReceiver
=
new
ScDocFuncRecv
(
pDirect
);
ScDocFuncRecv
*
pReceiver
=
new
ScDocFuncRecv
(
pDirect
);
pSender
=
new
ScDocFuncSend
(
*
pScDocShell
,
pReceiver
);
pSender
=
new
ScDocFuncSend
(
*
m
pScDocShell
,
pReceiver
);
pScDocShell
->
SetDocFunc
(
pSender
);
m
pScDocShell
->
SetDocFunc
(
pSender
);
}
}
pSender
->
SetCollaboration
(
pConference
);
pSender
->
SetCollaboration
(
pConference
);
}
}
...
@@ -59,9 +59,7 @@ void ScCollaboration::SendFile( TpContact* pContact, const OUString& rURL )
...
@@ -59,9 +59,7 @@ void ScCollaboration::SendFile( TpContact* pContact, const OUString& rURL )
ScDocFuncSend
*
ScCollaboration
::
GetScDocFuncSend
()
ScDocFuncSend
*
ScCollaboration
::
GetScDocFuncSend
()
{
{
ScDocShell
*
pScDocShell
=
dynamic_cast
<
ScDocShell
*>
(
SfxObjectShell
::
Current
());
return
dynamic_cast
<
ScDocFuncSend
*>
(
&
mpScDocShell
->
GetDocFunc
());
ScDocFunc
*
pDocFunc
=
pScDocShell
?
&
pScDocShell
->
GetDocFunc
()
:
NULL
;
return
dynamic_cast
<
ScDocFuncSend
*>
(
pDocFunc
);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/docshell/docsh.cxx
Dosyayı görüntüle @
374fb913
...
@@ -2540,7 +2540,7 @@ ScDocShell::ScDocShell( const ScDocShell& rShell ) :
...
@@ -2540,7 +2540,7 @@ ScDocShell::ScDocShell( const ScDocShell& rShell ) :
pSheetSaveData
(
NULL
),
pSheetSaveData
(
NULL
),
pModificator
(
NULL
)
pModificator
(
NULL
)
#ifdef ENABLE_TELEPATHY
#ifdef ENABLE_TELEPATHY
,
mpCollaboration
(
new
ScCollaboration
()
)
,
mpCollaboration
(
new
ScCollaboration
(
this
)
)
#endif
#endif
{
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
...
@@ -2589,7 +2589,7 @@ ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
...
@@ -2589,7 +2589,7 @@ ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
pSheetSaveData
(
NULL
),
pSheetSaveData
(
NULL
),
pModificator
(
NULL
)
pModificator
(
NULL
)
#ifdef ENABLE_TELEPATHY
#ifdef ENABLE_TELEPATHY
,
mpCollaboration
(
new
ScCollaboration
()
)
,
mpCollaboration
(
new
ScCollaboration
(
this
)
)
#endif
#endif
{
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
...
...
sc/source/ui/inc/sccollaboration.hxx
Dosyayı görüntüle @
374fb913
...
@@ -12,11 +12,13 @@
...
@@ -12,11 +12,13 @@
#include <tubes/collaboration.hxx>
#include <tubes/collaboration.hxx>
class
ScDocFuncSend
;
class
ScDocFuncSend
;
class
ScDocShell
;
class
ScCollaboration
:
public
Collaboration
class
ScCollaboration
:
public
Collaboration
{
{
ScDocShell
*
mpScDocShell
;
public
:
public
:
ScCollaboration
();
ScCollaboration
(
ScDocShell
*
pScDocShell
);
virtual
~
ScCollaboration
();
virtual
~
ScCollaboration
();
virtual
TeleConference
*
GetConference
();
virtual
TeleConference
*
GetConference
();
...
...
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