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
56977dfa
Kaydet (Commit)
56977dfa
authored
Agu 03, 2012
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tubes: fix leaking ScCollaboration; add it to ScDocShell
Change-Id: I43c951b5694ad38aa1a2e5da7cc99dfb52685349
üst
0c9aae91
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
3 deletions
+28
-3
sendfunc.cxx
sc/source/ui/collab/sendfunc.cxx
+1
-1
docsh.cxx
sc/source/ui/docshell/docsh.cxx
+17
-0
docsh.hxx
sc/source/ui/inc/docsh.hxx
+9
-0
cellsh3.cxx
sc/source/ui/view/cellsh3.cxx
+1
-1
contacts.cxx
tubes/source/contacts.cxx
+0
-1
No files found.
sc/source/ui/collab/sendfunc.cxx
Dosyayı görüntüle @
56977dfa
...
@@ -253,7 +253,7 @@ sal_Bool ScDocFuncSend::SetNormalString( bool& o_rbNumFmtSet, const ScAddress& r
...
@@ -253,7 +253,7 @@ sal_Bool ScDocFuncSend::SetNormalString( bool& o_rbNumFmtSet, const ScAddress& r
SendFile
(
NULL
,
rText
);
SendFile
(
NULL
,
rText
);
if
(
rtl
::
OUString
(
rText
)
==
"contacts"
)
if
(
rtl
::
OUString
(
rText
)
==
"contacts"
)
tubes
::
createContacts
(
new
Sc
Collaboration
()
);
tubes
::
createContacts
(
rDocShell
.
Get
Collaboration
()
);
return
true
;
// needs some code auditing action
return
true
;
// needs some code auditing action
}
}
...
...
sc/source/ui/docshell/docsh.cxx
Dosyayı görüntüle @
56977dfa
...
@@ -112,6 +112,9 @@
...
@@ -112,6 +112,9 @@
#include "cellsuno.hxx"
#include "cellsuno.hxx"
#include "dpobject.hxx"
#include "dpobject.hxx"
#include "markdata.hxx"
#include "markdata.hxx"
#ifdef ENABLE_TELEPATHY
#include "sccollaboration.hxx"
#endif
#include <vector>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/shared_ptr.hpp>
...
@@ -2505,6 +2508,11 @@ ScDocFunc *ScDocShell::CreateDocFunc()
...
@@ -2505,6 +2508,11 @@ ScDocFunc *ScDocShell::CreateDocFunc()
{
{
return
new
ScDocFuncDirect
(
*
this
);
return
new
ScDocFuncDirect
(
*
this
);
}
}
#else
Collaboration
*
ScDocShell
::
GetCollaboration
()
{
return
mpCollaboration
;
}
#endif
#endif
ScDocShell
::
ScDocShell
(
const
ScDocShell
&
rShell
)
:
ScDocShell
::
ScDocShell
(
const
ScDocShell
&
rShell
)
:
...
@@ -2531,6 +2539,9 @@ ScDocShell::ScDocShell( const ScDocShell& rShell ) :
...
@@ -2531,6 +2539,9 @@ ScDocShell::ScDocShell( const ScDocShell& rShell ) :
pSolverSaveData
(
NULL
),
pSolverSaveData
(
NULL
),
pSheetSaveData
(
NULL
),
pSheetSaveData
(
NULL
),
pModificator
(
NULL
)
pModificator
(
NULL
)
#ifdef ENABLE_TELEPATHY
,
mpCollaboration
(
new
ScCollaboration
()
)
#endif
{
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
...
@@ -2577,6 +2588,9 @@ ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
...
@@ -2577,6 +2588,9 @@ ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
pSolverSaveData
(
NULL
),
pSolverSaveData
(
NULL
),
pSheetSaveData
(
NULL
),
pSheetSaveData
(
NULL
),
pModificator
(
NULL
)
pModificator
(
NULL
)
#ifdef ENABLE_TELEPATHY
,
mpCollaboration
(
new
ScCollaboration
()
)
#endif
{
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"sc"
,
"nn93723"
,
"ScDocShell::ScDocShell"
);
...
@@ -2635,6 +2649,9 @@ ScDocShell::~ScDocShell()
...
@@ -2635,6 +2649,9 @@ ScDocShell::~ScDocShell()
OSL_FAIL
(
"The Modificator should not exist"
);
OSL_FAIL
(
"The Modificator should not exist"
);
delete
pModificator
;
delete
pModificator
;
}
}
#ifdef ENABLE_TELEPATHY
delete
mpCollaboration
;
#endif
}
}
//------------------------------------------------------------------
//------------------------------------------------------------------
...
...
sc/source/ui/inc/docsh.hxx
Dosyayı görüntüle @
56977dfa
...
@@ -73,6 +73,9 @@ class ScOptSolverSave;
...
@@ -73,6 +73,9 @@ class ScOptSolverSave;
class
ScSheetSaveData
;
class
ScSheetSaveData
;
class
ScFlatBoolRowSegments
;
class
ScFlatBoolRowSegments
;
struct
ScColWidthParam
;
struct
ScColWidthParam
;
#ifdef ENABLE_TELEPATHY
class
Collaboration
;
#endif
namespace
sfx2
{
class
FileDialogHelper
;
}
namespace
sfx2
{
class
FileDialogHelper
;
}
struct
DocShell_Impl
;
struct
DocShell_Impl
;
...
@@ -121,6 +124,9 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener
...
@@ -121,6 +124,9 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener
ScSheetSaveData
*
pSheetSaveData
;
ScSheetSaveData
*
pSheetSaveData
;
ScDocShellModificator
*
pModificator
;
// #109979#; is used to load XML (created in BeforeXMLLoading and destroyed in AfterXMLLoading)
ScDocShellModificator
*
pModificator
;
// #109979#; is used to load XML (created in BeforeXMLLoading and destroyed in AfterXMLLoading)
#ifdef ENABLE_TELEPATHY
Collaboration
*
mpCollaboration
;
#endif
SC_DLLPRIVATE
void
InitItems
();
SC_DLLPRIVATE
void
InitItems
();
SC_DLLPRIVATE
void
DoEnterHandler
();
SC_DLLPRIVATE
void
DoEnterHandler
();
...
@@ -186,6 +192,9 @@ public:
...
@@ -186,6 +192,9 @@ public:
using
SfxShell
::
Deactivate
;
// with sal_Bool bMDI
using
SfxShell
::
Deactivate
;
// with sal_Bool bMDI
using
SfxObjectShell
::
Print
;
// print styles
using
SfxObjectShell
::
Print
;
// print styles
#ifdef ENABLE_TELEPATHY
SC_DLLPRIVATE
Collaboration
*
GetCollaboration
();
#endif
virtual
void
Activate
();
virtual
void
Activate
();
virtual
void
Deactivate
();
virtual
void
Deactivate
();
...
...
sc/source/ui/view/cellsh3.cxx
Dosyayı görüntüle @
56977dfa
...
@@ -118,7 +118,7 @@ void ScCellShell::Execute( SfxRequest& rReq )
...
@@ -118,7 +118,7 @@ void ScCellShell::Execute( SfxRequest& rReq )
case
SID_COLLABORATION
:
case
SID_COLLABORATION
:
#ifdef ENABLE_TELEPATHY
#ifdef ENABLE_TELEPATHY
tubes
::
createContacts
(
new
Sc
Collaboration
()
);
tubes
::
createContacts
(
GetViewData
()
->
GetDocShell
()
->
Get
Collaboration
()
);
#endif
#endif
break
;
break
;
...
...
tubes/source/contacts.cxx
Dosyayı görüntüle @
56977dfa
...
@@ -185,7 +185,6 @@ public:
...
@@ -185,7 +185,6 @@ public:
}
}
virtual
~
TubeContacts
()
virtual
~
TubeContacts
()
{
{
delete
mpCollaboration
;
delete
mpManager
;
delete
mpManager
;
}
}
...
...
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