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
e67a43b2
Kaydet (Commit)
e67a43b2
authored
Şub 03, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String is now eradicated from the change track code.
üst
69774316
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
26 deletions
+35
-26
chgtrack.hxx
sc/inc/chgtrack.hxx
+9
-6
chgtrack.cxx
sc/source/core/tool/chgtrack.cxx
+23
-17
acredlin.cxx
sc/source/ui/miscdlgs/acredlin.cxx
+3
-3
No files found.
sc/inc/chgtrack.hxx
Dosyayı görüntüle @
e67a43b2
...
@@ -396,7 +396,8 @@ public:
...
@@ -396,7 +396,8 @@ public:
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bSplitRange
=
false
,
bool
bWarning
=
true
)
const
;
bool
bSplitRange
=
false
,
bool
bWarning
=
true
)
const
;
virtual
void
GetRefString
(
String
&
,
ScDocument
*
,
bool
bFlag3D
=
false
)
const
;
virtual
void
GetRefString
(
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
=
false
)
const
;
// for DocumentMerge set old date of the other
// for DocumentMerge set old date of the other
// action, fetched by GetDateTimeUTC
// action, fetched by GetDateTimeUTC
...
@@ -644,7 +645,8 @@ public:
...
@@ -644,7 +645,8 @@ public:
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bSplitRange
=
false
,
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bSplitRange
=
false
,
bool
bWarning
=
true
)
const
;
bool
bWarning
=
true
)
const
;
virtual
void
GetRefString
(
String
&
,
ScDocument
*
,
bool
bFlag3D
=
false
)
const
;
virtual
void
GetRefString
(
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
=
false
)
const
;
};
};
...
@@ -814,7 +816,7 @@ public:
...
@@ -814,7 +816,7 @@ public:
{
pPrevContent
=
p
;
}
{
pPrevContent
=
p
;
}
// don't use:
// don't use:
// assigns
S
tring / creates forumula cell
// assigns
s
tring / creates forumula cell
void
SetOldValue
(
const
rtl
::
OUString
&
rOld
,
ScDocument
*
pDoc
);
void
SetOldValue
(
const
rtl
::
OUString
&
rOld
,
ScDocument
*
pDoc
);
void
SetNewValue
(
const
rtl
::
OUString
&
rNew
,
ScDocument
*
pDoc
);
void
SetNewValue
(
const
rtl
::
OUString
&
rNew
,
ScDocument
*
pDoc
);
...
@@ -825,7 +827,8 @@ public:
...
@@ -825,7 +827,8 @@ public:
virtual
void
GetDescription
(
virtual
void
GetDescription
(
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bSplitRange
=
false
,
bool
bWarning
=
true
)
const
;
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bSplitRange
=
false
,
bool
bWarning
=
true
)
const
;
virtual
void
GetRefString
(
String
&
,
ScDocument
*
,
bool
bFlag3D
=
false
)
const
;
virtual
void
GetRefString
(
rtl
::
OUString
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
=
false
)
const
;
static
ScChangeActionContentCellType
GetContentCellType
(
const
ScBaseCell
*
);
static
ScChangeActionContentCellType
GetContentCellType
(
const
ScBaseCell
*
);
...
@@ -1173,8 +1176,8 @@ public:
...
@@ -1173,8 +1176,8 @@ public:
sal_uLong
nOldFormat
=
0
,
sal_uLong
nOldFormat
=
0
,
sal_uLong
nNewFormat
=
0
);
sal_uLong
nNewFormat
=
0
);
// Only use the following two if there is no different solution!
// Only use the following two if there is no different solution! (Assign
// (Assign S
tring for NewValue or creation of a formula respectively)
// s
tring for NewValue or creation of a formula respectively)
SC_DLLPUBLIC
void
AppendInsert
(
const
ScRange
&
);
SC_DLLPUBLIC
void
AppendInsert
(
const
ScRange
&
);
...
...
sc/source/core/tool/chgtrack.cxx
Dosyayı görüntüle @
e67a43b2
...
@@ -617,7 +617,7 @@ void ScChangeAction::SetComment( const rtl::OUString& rStr )
...
@@ -617,7 +617,7 @@ void ScChangeAction::SetComment( const rtl::OUString& rStr )
}
}
void
ScChangeAction
::
GetRefString
(
void
ScChangeAction
::
GetRefString
(
String
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
)
const
rtl
::
OU
String
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
)
const
{
{
rStr
=
GetRefString
(
GetBigRange
(),
pDoc
,
bFlag3D
);
rStr
=
GetRefString
(
GetBigRange
(),
pDoc
,
bFlag3D
);
}
}
...
@@ -1289,14 +1289,17 @@ void ScChangeActionMove::GetDescription(
...
@@ -1289,14 +1289,17 @@ void ScChangeActionMove::GetDescription(
void
ScChangeActionMove
::
GetRefString
(
void
ScChangeActionMove
::
GetRefString
(
String
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
)
const
rtl
::
OU
String
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
)
const
{
{
if
(
!
bFlag3D
)
if
(
!
bFlag3D
)
bFlag3D
=
(
GetFromRange
().
aStart
.
Tab
()
!=
GetBigRange
().
aStart
.
Tab
()
);
bFlag3D
=
(
GetFromRange
().
aStart
.
Tab
()
!=
GetBigRange
().
aStart
.
Tab
()
);
rStr
=
ScChangeAction
::
GetRefString
(
GetFromRange
(),
pDoc
,
bFlag3D
);
rStr
+=
','
;
rtl
::
OUStringBuffer
aBuf
;
rStr
+=
' '
;
aBuf
.
append
(
ScChangeAction
::
GetRefString
(
GetFromRange
(),
pDoc
,
bFlag3D
));
rStr
+=
ScChangeAction
::
GetRefString
(
GetBigRange
(),
pDoc
,
bFlag3D
);
aBuf
.
append
(
sal_Unicode
(
','
));
aBuf
.
append
(
sal_Unicode
(
' '
));
aBuf
.
append
(
ScChangeAction
::
GetRefString
(
GetBigRange
(),
pDoc
,
bFlag3D
));
rStr
=
aBuf
.
makeStringAndClear
();
// overwrite existing string value.
}
}
...
@@ -1493,7 +1496,7 @@ void ScChangeActionContent::SetNewCell(
...
@@ -1493,7 +1496,7 @@ void ScChangeActionContent::SetNewCell(
pNewCell
=
pCell
;
pNewCell
=
pCell
;
ScChangeActionContent
::
SetCell
(
aNewValue
,
pNewCell
,
0
,
pDoc
);
ScChangeActionContent
::
SetCell
(
aNewValue
,
pNewCell
,
0
,
pDoc
);
// #i40704# allow to set formatted text here - don't call SetNewValue with
S
tring from XML filter
// #i40704# allow to set formatted text here - don't call SetNewValue with
s
tring from XML filter
if
(
!
rFormatted
.
isEmpty
())
if
(
!
rFormatted
.
isEmpty
())
aNewValue
=
rFormatted
;
aNewValue
=
rFormatted
;
}
}
...
@@ -1551,9 +1554,7 @@ void ScChangeActionContent::GetDescription(
...
@@ -1551,9 +1554,7 @@ void ScChangeActionContent::GetDescription(
rtl
::
OUString
aRsc
=
ScGlobal
::
GetRscString
(
STR_CHANGED_CELL
);
rtl
::
OUString
aRsc
=
ScGlobal
::
GetRscString
(
STR_CHANGED_CELL
);
rtl
::
OUString
aTmpStr
;
rtl
::
OUString
aTmpStr
;
String
aFoo
;
GetRefString
(
aTmpStr
,
pDoc
);
GetRefString
(
aFoo
,
pDoc
);
aTmpStr
=
aFoo
;
sal_Int32
nPos
=
0
;
sal_Int32
nPos
=
0
;
nPos
=
aRsc
.
indexOfAsciiL
(
"#1"
,
2
,
nPos
);
nPos
=
aRsc
.
indexOfAsciiL
(
"#1"
,
2
,
nPos
);
...
@@ -1592,7 +1593,7 @@ void ScChangeActionContent::GetDescription(
...
@@ -1592,7 +1593,7 @@ void ScChangeActionContent::GetDescription(
void
ScChangeActionContent
::
GetRefString
(
void
ScChangeActionContent
::
GetRefString
(
String
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
)
const
rtl
::
OU
String
&
rStr
,
ScDocument
*
pDoc
,
bool
bFlag3D
)
const
{
{
sal_uInt16
nFlags
=
(
GetBigRange
().
IsValid
(
pDoc
)
?
SCA_VALID
:
0
);
sal_uInt16
nFlags
=
(
GetBigRange
().
IsValid
(
pDoc
)
?
SCA_VALID
:
0
);
if
(
nFlags
)
if
(
nFlags
)
...
@@ -1617,8 +1618,12 @@ void ScChangeActionContent::GetRefString(
...
@@ -1617,8 +1618,12 @@ void ScChangeActionContent::GetRefString(
aTmpAddress
.
Format
(
rStr
,
nFlags
,
pDoc
,
pDoc
->
GetAddressConvention
()
);
aTmpAddress
.
Format
(
rStr
,
nFlags
,
pDoc
,
pDoc
->
GetAddressConvention
()
);
if
(
IsDeletedIn
()
)
if
(
IsDeletedIn
()
)
{
{
rStr
.
Insert
(
'('
,
0
);
// Insert the parentheses.
rStr
+=
')'
;
rtl
::
OUStringBuffer
aBuf
;
aBuf
.
append
(
sal_Unicode
(
'('
));
aBuf
.
append
(
rStr
);
aBuf
.
append
(
sal_Unicode
(
')'
));
rStr
=
aBuf
.
makeStringAndClear
();
}
}
}
}
else
else
...
@@ -2340,10 +2345,11 @@ void ScChangeTrack::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uI
...
@@ -2340,10 +2345,11 @@ void ScChangeTrack::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uI
const
SvtUserOptions
&
rUserOptions
=
SC_MOD
()
->
GetUserOptions
();
const
SvtUserOptions
&
rUserOptions
=
SC_MOD
()
->
GetUserOptions
();
size_t
nOldCount
=
maUserCollection
.
size
();
size_t
nOldCount
=
maUserCollection
.
size
();
String
aStr
(
rUserOptions
.
GetFirstName
()
);
rtl
::
OUStringBuffer
aBuf
;
aStr
+=
' '
;
aBuf
.
append
(
rUserOptions
.
GetFirstName
());
aStr
+=
(
String
)
rUserOptions
.
GetLastName
();
aBuf
.
append
(
sal_Unicode
(
' '
));
SetUser
(
aStr
);
aBuf
.
append
(
rUserOptions
.
GetLastName
());
SetUser
(
aBuf
.
makeStringAndClear
());
if
(
maUserCollection
.
size
()
!=
nOldCount
)
if
(
maUserCollection
.
size
()
!=
nOldCount
)
{
{
...
...
sc/source/ui/miscdlgs/acredlin.cxx
Dosyayı görüntüle @
e67a43b2
...
@@ -392,7 +392,7 @@ SvLBoxEntry* ScAcceptChgDlg::InsertChangeAction(
...
@@ -392,7 +392,7 @@ SvLBoxEntry* ScAcceptChgDlg::InsertChangeAction(
String
aUser
=
pScChangeAction
->
GetUser
();
String
aUser
=
pScChangeAction
->
GetUser
();
DateTime
aDateTime
=
pScChangeAction
->
GetDateTime
();
DateTime
aDateTime
=
pScChangeAction
->
GetDateTime
();
String
aRefStr
;
rtl
::
OU
String
aRefStr
;
ScChangeActionType
eType
=
pScChangeAction
->
GetType
();
ScChangeActionType
eType
=
pScChangeAction
->
GetType
();
rtl
::
OUStringBuffer
aBuf
;
rtl
::
OUStringBuffer
aBuf
;
rtl
::
OUString
aDesc
;
rtl
::
OUString
aDesc
;
...
@@ -569,7 +569,7 @@ SvLBoxEntry* ScAcceptChgDlg::InsertFilteredAction(
...
@@ -569,7 +569,7 @@ SvLBoxEntry* ScAcceptChgDlg::InsertFilteredAction(
if
(
bFlag
)
if
(
bFlag
)
{
{
String
aRefStr
;
rtl
::
OU
String
aRefStr
;
ScChangeActionType
eType
=
pScChangeAction
->
GetType
();
ScChangeActionType
eType
=
pScChangeAction
->
GetType
();
String
aString
;
String
aString
;
rtl
::
OUString
aDesc
;
rtl
::
OUString
aDesc
;
...
@@ -688,7 +688,7 @@ SvLBoxEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionConte
...
@@ -688,7 +688,7 @@ SvLBoxEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionConte
bFlag
=
true
;
bFlag
=
true
;
}
}
String
aRefStr
;
rtl
::
OU
String
aRefStr
;
String
aString
;
String
aString
;
String
a2String
;
String
a2String
;
String
aDesc
;
String
aDesc
;
...
...
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