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
66ee9a60
Kaydet (Commit)
66ee9a60
authored
Mar 28, 2012
tarafından
Eike Rathke
Kaydeden (comit)
Matúš Kukan
Tem 17, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tubes: TeleManager::get() takes an argument
initialize with same mode as collaboration
üst
44b6da67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
sendfunc.cxx
sc/source/ui/collab/sendfunc.cxx
+22
-4
No files found.
sc/source/ui/collab/sendfunc.cxx
Dosyayı görüntüle @
66ee9a60
...
@@ -68,6 +68,18 @@ ScBaseCell *stringToCell( const rtl::OUString &rString )
...
@@ -68,6 +68,18 @@ ScBaseCell *stringToCell( const rtl::OUString &rString )
return
NULL
;
return
NULL
;
}
}
bool
isCollabMode
(
bool
&
rbMaster
)
{
const
char
*
pEnv
=
getenv
(
"LIBO_TUBES"
);
if
(
pEnv
)
{
rbMaster
=
!
strcmp
(
pEnv
,
"master"
);
return
true
;
}
rbMaster
=
false
;
return
false
;
}
// Ye noddy mangling - needs improvement ...
// Ye noddy mangling - needs improvement ...
// method name ';' then arguments ; separated
// method name ';' then arguments ; separated
...
@@ -452,7 +464,14 @@ public:
...
@@ -452,7 +464,14 @@ public:
SendFile
(
rText
);
SendFile
(
rText
);
if
(
rtl
::
OUString
(
rText
)
==
"contacts"
)
if
(
rtl
::
OUString
(
rText
)
==
"contacts"
)
tubes
::
createContacts
(
TeleManager
::
get
()
);
{
// For TeleManager::get() use the same master/slave mode we have
// for collaboration, if any. This is a hack anyway so don't care
// whether we really are in collab mode or not.
bool
bIsMaster
=
false
;
isCollabMode
(
bIsMaster
);
tubes
::
createContacts
(
TeleManager
::
get
(
bIsMaster
)
);
}
return
true
;
// needs some code auditing action
return
true
;
// needs some code auditing action
}
}
...
@@ -544,10 +563,10 @@ public:
...
@@ -544,10 +563,10 @@ public:
SC_DLLPRIVATE
ScDocFunc
*
ScDocShell
::
CreateDocFunc
()
SC_DLLPRIVATE
ScDocFunc
*
ScDocShell
::
CreateDocFunc
()
{
{
// FIXME: the chains should be auto-ptrs, so should be collab
// FIXME: the chains should be auto-ptrs, so should be collab
const
char
*
pEnv
;
bool
bIsMaster
=
false
;
if
(
getenv
(
"INTERCEPT"
))
if
(
getenv
(
"INTERCEPT"
))
return
new
ScDocFuncSend
(
*
this
,
new
ScDocFuncRecv
(
*
this
,
new
ScDocFuncDirect
(
*
this
)
)
);
return
new
ScDocFuncSend
(
*
this
,
new
ScDocFuncRecv
(
*
this
,
new
ScDocFuncDirect
(
*
this
)
)
);
else
if
(
(
pEnv
=
getenv
(
"LIBO_TUBES"
))
!=
NULL
)
else
if
(
isCollabMode
(
bIsMaster
)
)
{
{
ScDocFuncRecv
*
pReceiver
=
new
ScDocFuncRecv
(
*
this
,
new
ScDocFuncDirect
(
*
this
)
);
ScDocFuncRecv
*
pReceiver
=
new
ScDocFuncRecv
(
*
this
,
new
ScDocFuncDirect
(
*
this
)
);
ScDocFuncSend
*
pSender
=
new
ScDocFuncSend
(
*
this
,
pReceiver
);
ScDocFuncSend
*
pSender
=
new
ScDocFuncSend
(
*
this
,
pReceiver
);
...
@@ -557,7 +576,6 @@ SC_DLLPRIVATE ScDocFunc *ScDocShell::CreateDocFunc()
...
@@ -557,7 +576,6 @@ SC_DLLPRIVATE ScDocFunc *ScDocShell::CreateDocFunc()
boost
::
bind
(
&
ScDocFuncRecv
::
packetReceived
,
pReceiver
,
_1
,
_2
));
boost
::
bind
(
&
ScDocFuncRecv
::
packetReceived
,
pReceiver
,
_1
,
_2
));
pCollab
->
sigFileReceived
.
connect
(
pCollab
->
sigFileReceived
.
connect
(
boost
::
bind
(
&
ScDocFuncRecv
::
fileReceived
,
pReceiver
,
_1
));
boost
::
bind
(
&
ScDocFuncRecv
::
fileReceived
,
pReceiver
,
_1
));
bool
bIsMaster
=
!
strcmp
(
pEnv
,
"master"
);
bOk
=
bOk
&&
pCollab
->
initManager
(
!
bIsMaster
);
bOk
=
bOk
&&
pCollab
->
initManager
(
!
bIsMaster
);
if
(
bIsMaster
)
if
(
bIsMaster
)
{
{
...
...
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