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
2ce72093
Kaydet (Commit)
2ce72093
authored
Mar 21, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ScDocFunc::PutCell() is no longer used. Remove it.
Change-Id: Id76a8cfe2d67c3461aab6ea0bb71a99abba65e84
üst
e509ba00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
84 deletions
+0
-84
sendfunc.cxx
sc/source/ui/collab/sendfunc.cxx
+0
-17
sendfunc.hxx
sc/source/ui/collab/sendfunc.hxx
+0
-1
docfunc.cxx
sc/source/ui/docshell/docfunc.cxx
+0
-65
docfunc.hxx
sc/source/ui/inc/docfunc.hxx
+0
-1
No files found.
sc/source/ui/collab/sendfunc.cxx
Dosyayı görüntüle @
2ce72093
...
@@ -47,12 +47,6 @@ void ScDocFuncSend::RecvMessage( const rtl::OString &rString )
...
@@ -47,12 +47,6 @@ void ScDocFuncSend::RecvMessage( const rtl::OString &rString )
mpDirect
->
SetNormalString
(
bNumFmtSet
,
aReader
.
getAddress
(
1
),
aReader
.
getString
(
2
),
mpDirect
->
SetNormalString
(
bNumFmtSet
,
aReader
.
getAddress
(
1
),
aReader
.
getString
(
2
),
aReader
.
getBool
(
3
)
);
aReader
.
getBool
(
3
)
);
}
}
else
if
(
aReader
.
getMethod
()
==
"putCell"
)
{
ScBaseCell
*
pNewCell
=
aReader
.
getCell
(
2
);
if
(
pNewCell
)
mpDirect
->
PutCell
(
aReader
.
getAddress
(
1
),
pNewCell
,
aReader
.
getBool
(
3
)
);
}
else
if
(
aReader
.
getMethod
()
==
"setValueCell"
)
else
if
(
aReader
.
getMethod
()
==
"setValueCell"
)
{
{
mpDirect
->
SetValueCell
(
mpDirect
->
SetValueCell
(
...
@@ -187,17 +181,6 @@ bool ScDocFuncSend::SetFormulaCell( const ScAddress& rPos, ScFormulaCell* pCell,
...
@@ -187,17 +181,6 @@ bool ScDocFuncSend::SetFormulaCell( const ScAddress& rPos, ScFormulaCell* pCell,
return
true
;
// needs some code auditing action
return
true
;
// needs some code auditing action
}
}
sal_Bool
ScDocFuncSend
::
PutCell
(
const
ScAddress
&
rPos
,
ScBaseCell
*
pNewCell
,
sal_Bool
bApi
)
{
ScChangeOpWriter
aOp
(
"putCell"
);
aOp
.
appendAddress
(
rPos
);
aOp
.
appendCell
(
pNewCell
);
aOp
.
appendBool
(
bApi
);
SendMessage
(
aOp
);
pCell
->
Delete
();
return
true
;
// needs some code auditing action
}
sal_Bool
ScDocFuncSend
::
PutData
(
const
ScAddress
&
rPos
,
ScEditEngineDefaulter
&
rEngine
,
sal_Bool
ScDocFuncSend
::
PutData
(
const
ScAddress
&
rPos
,
ScEditEngineDefaulter
&
rEngine
,
sal_Bool
bInterpret
,
sal_Bool
bApi
)
sal_Bool
bInterpret
,
sal_Bool
bApi
)
{
{
...
...
sc/source/ui/collab/sendfunc.hxx
Dosyayı görüntüle @
2ce72093
...
@@ -277,7 +277,6 @@ public:
...
@@ -277,7 +277,6 @@ public:
virtual
bool
SetStringCell
(
const
ScAddress
&
rPos
,
const
OUString
&
rStr
,
bool
bInteraction
);
virtual
bool
SetStringCell
(
const
ScAddress
&
rPos
,
const
OUString
&
rStr
,
bool
bInteraction
);
virtual
bool
SetEditCell
(
const
ScAddress
&
rPos
,
const
EditTextObject
&
rStr
,
bool
bInteraction
);
virtual
bool
SetEditCell
(
const
ScAddress
&
rPos
,
const
EditTextObject
&
rStr
,
bool
bInteraction
);
virtual
bool
SetFormulaCell
(
const
ScAddress
&
rPos
,
ScFormulaCell
*
pCell
,
bool
bInteraction
);
virtual
bool
SetFormulaCell
(
const
ScAddress
&
rPos
,
ScFormulaCell
*
pCell
,
bool
bInteraction
);
virtual
sal_Bool
PutCell
(
const
ScAddress
&
rPos
,
ScBaseCell
*
pNewCell
,
sal_Bool
bApi
);
virtual
sal_Bool
PutData
(
const
ScAddress
&
rPos
,
ScEditEngineDefaulter
&
rEngine
,
virtual
sal_Bool
PutData
(
const
ScAddress
&
rPos
,
ScEditEngineDefaulter
&
rEngine
,
sal_Bool
bInterpret
,
sal_Bool
bApi
);
sal_Bool
bInterpret
,
sal_Bool
bApi
);
virtual
sal_Bool
SetCellText
(
const
ScAddress
&
rPos
,
const
String
&
rText
,
virtual
sal_Bool
SetCellText
(
const
ScAddress
&
rPos
,
const
String
&
rText
,
...
...
sc/source/ui/docshell/docfunc.cxx
Dosyayı görüntüle @
2ce72093
...
@@ -975,71 +975,6 @@ bool ScDocFunc::SetFormulaCell( const ScAddress& rPos, ScFormulaCell* pCell, boo
...
@@ -975,71 +975,6 @@ bool ScDocFunc::SetFormulaCell( const ScAddress& rPos, ScFormulaCell* pCell, boo
return
true
;
return
true
;
}
}
sal_Bool
ScDocFunc
::
PutCell
(
const
ScAddress
&
rPos
,
ScBaseCell
*
pNewCell
,
sal_Bool
bApi
)
{
ScDocShellModificator
aModificator
(
rDocShell
);
ScDocument
*
pDoc
=
rDocShell
.
GetDocument
();
bool
bUndo
(
pDoc
->
IsUndoEnabled
());
sal_Bool
bXMLLoading
(
pDoc
->
IsImportingXML
());
// #i925#; it is not necessary to test whether the cell is editable on loading a XML document
if
(
!
bXMLLoading
)
{
ScEditableTester
aTester
(
pDoc
,
rPos
.
Tab
(),
rPos
.
Col
(),
rPos
.
Row
(),
rPos
.
Col
(),
rPos
.
Row
()
);
if
(
!
aTester
.
IsEditable
())
{
if
(
!
bApi
)
rDocShell
.
ErrorMessage
(
aTester
.
GetMessageId
());
pNewCell
->
Delete
();
return
false
;
}
}
sal_Bool
bEditCell
=
(
pNewCell
->
GetCellType
()
==
CELLTYPE_EDIT
);
ScBaseCell
*
pDocCell
=
pDoc
->
GetCell
(
rPos
);
sal_Bool
bEditDeleted
=
(
pDocCell
&&
pDocCell
->
GetCellType
()
==
CELLTYPE_EDIT
);
sal_Bool
bHeight
=
(
bEditDeleted
||
bEditCell
||
pDoc
->
HasAttrib
(
ScRange
(
rPos
),
HASATTR_NEEDHEIGHT
)
);
ScBaseCell
*
pUndoCell
=
(
bUndo
&&
pDocCell
)
?
pDocCell
->
Clone
(
*
pDoc
,
rPos
)
:
0
;
ScBaseCell
*
pRedoCell
=
(
bUndo
&&
pNewCell
)
?
pNewCell
->
Clone
(
*
pDoc
,
rPos
)
:
0
;
pDoc
->
PutCell
(
rPos
,
pNewCell
);
// This "interpret once" block was moved from ScViewFunc::EnterData() where
// it was never executed from API, so don't do it here. For performance
// reasons API calls may disable calculation while operating and
// recalculate once when done.
if
(
!
bXMLLoading
&&
!
bApi
&&
pNewCell
->
GetCellType
()
==
CELLTYPE_FORMULA
&&
!
pDoc
->
GetAutoCalc
()
)
{
ScFormulaCell
*
pFormCell
=
static_cast
<
ScFormulaCell
*>
(
pNewCell
);
// calculate just the cell once and set Dirty again
pFormCell
->
Interpret
();
pFormCell
->
SetDirtyVar
();
pDoc
->
PutInFormulaTree
(
pFormCell
);
}
// wegen ChangeTracking darf UndoAction erst nach PutCell angelegt werden
if
(
bUndo
)
rDocShell
.
GetUndoManager
()
->
AddUndoAction
(
new
ScUndoPutCell
(
&
rDocShell
,
rPos
,
pUndoCell
,
pRedoCell
)
);
if
(
bHeight
)
AdjustRowHeight
(
ScRange
(
rPos
)
);
if
(
!
bXMLLoading
)
rDocShell
.
PostPaintCell
(
rPos
);
aModificator
.
SetDocumentModified
();
// #i925#; it is not necessary to notify on loading a XML document
// #103934#; notify editline and cell in edit mode
if
(
bApi
&&
!
bXMLLoading
)
NotifyInputHandler
(
rPos
);
return
sal_True
;
}
void
ScDocFunc
::
NotifyInputHandler
(
const
ScAddress
&
rPos
)
void
ScDocFunc
::
NotifyInputHandler
(
const
ScAddress
&
rPos
)
{
{
ScTabViewShell
*
pViewSh
=
ScTabViewShell
::
GetActiveViewShell
();
ScTabViewShell
*
pViewSh
=
ScTabViewShell
::
GetActiveViewShell
();
...
...
sc/source/ui/inc/docfunc.hxx
Dosyayı görüntüle @
2ce72093
...
@@ -100,7 +100,6 @@ public:
...
@@ -100,7 +100,6 @@ public:
* must not delete it after passing it to this call.
* must not delete it after passing it to this call.
*/
*/
virtual
bool
SetFormulaCell
(
const
ScAddress
&
rPos
,
ScFormulaCell
*
pCell
,
bool
bInteraction
);
virtual
bool
SetFormulaCell
(
const
ScAddress
&
rPos
,
ScFormulaCell
*
pCell
,
bool
bInteraction
);
virtual
sal_Bool
PutCell
(
const
ScAddress
&
rPos
,
ScBaseCell
*
pNewCell
,
sal_Bool
bApi
);
virtual
sal_Bool
PutData
(
const
ScAddress
&
rPos
,
ScEditEngineDefaulter
&
rEngine
,
virtual
sal_Bool
PutData
(
const
ScAddress
&
rPos
,
ScEditEngineDefaulter
&
rEngine
,
sal_Bool
bInterpret
,
sal_Bool
bApi
);
sal_Bool
bInterpret
,
sal_Bool
bApi
);
virtual
sal_Bool
SetCellText
(
const
ScAddress
&
rPos
,
const
String
&
rText
,
virtual
sal_Bool
SetCellText
(
const
ScAddress
&
rPos
,
const
String
&
rText
,
...
...
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