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
77d8f734
Kaydet (Commit)
77d8f734
authored
Eki 07, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sc/source/filter/starcalc/*.cxx from String to OUString
Change-Id: Id941becbf97235f5142375a63477f71a7e1f01e1
üst
61d3417d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
scflt.cxx
sc/source/filter/starcalc/scflt.cxx
+8
-8
No files found.
sc/source/filter/starcalc/scflt.cxx
Dosyayı görüntüle @
77d8f734
...
@@ -72,7 +72,7 @@ using namespace com::sun::star;
...
@@ -72,7 +72,7 @@ using namespace com::sun::star;
#define DEFCHARSET RTL_TEXTENCODING_MS_1252
#define DEFCHARSET RTL_TEXTENCODING_MS_1252
#define SC10TOSTRING(p)
String((p),
DEFCHARSET)
#define SC10TOSTRING(p)
OUString((p), strlen(p),
DEFCHARSET)
const
SCCOL
SC10MAXCOL
=
255
;
// #i85906# don't try to load more columns than there are in the file
const
SCCOL
SC10MAXCOL
=
255
;
// #i85906# don't try to load more columns than there are in the file
...
@@ -377,7 +377,7 @@ static void lcl_ChangeColor( sal_uInt16 nIndex, Color& rColor )
...
@@ -377,7 +377,7 @@ static void lcl_ChangeColor( sal_uInt16 nIndex, Color& rColor )
rColor
.
SetColor
(
aCol
);
rColor
.
SetColor
(
aCol
);
}
}
static
String
lcl_MakeOldPageStyleFormatName
(
sal_uInt16
i
)
static
OU
String
lcl_MakeOldPageStyleFormatName
(
sal_uInt16
i
)
{
{
OUString
aName
=
ScGlobal
::
GetRscString
(
STR_PAGESTYLE
)
+
" "
+
OUString
::
number
(
i
+
1
);
OUString
aName
=
ScGlobal
::
GetRscString
(
STR_PAGESTYLE
)
+
" "
+
OUString
::
number
(
i
+
1
);
return
aName
;
return
aName
;
...
@@ -712,7 +712,7 @@ void Sc10PageCollection::PutToDoc( ScDocument* pDoc )
...
@@ -712,7 +712,7 @@ void Sc10PageCollection::PutToDoc( ScDocument* pDoc )
pPage
->
Head
=
(
short
)
(
pPage
->
Head
*
(
PS_POINTS_PER_INCH
/
POINTS_PER_INCH
)
+
0.5
);
pPage
->
Head
=
(
short
)
(
pPage
->
Head
*
(
PS_POINTS_PER_INCH
/
POINTS_PER_INCH
)
+
0.5
);
pPage
->
Foot
=
(
short
)
(
pPage
->
Foot
*
(
PS_POINTS_PER_INCH
/
POINTS_PER_INCH
)
+
0.5
);
pPage
->
Foot
=
(
short
)
(
pPage
->
Foot
*
(
PS_POINTS_PER_INCH
/
POINTS_PER_INCH
)
+
0.5
);
String
aName
=
lcl_MakeOldPageStyleFormatName
(
i
);
OU
String
aName
=
lcl_MakeOldPageStyleFormatName
(
i
);
ScStyleSheet
*
pSheet
=
(
ScStyleSheet
*
)
&
pStylePool
->
Make
(
aName
,
ScStyleSheet
*
pSheet
=
(
ScStyleSheet
*
)
&
pStylePool
->
Make
(
aName
,
SFX_STYLE_FAMILY_PAGE
,
SFX_STYLE_FAMILY_PAGE
,
...
@@ -758,9 +758,9 @@ void Sc10PageCollection::PutToDoc( ScDocument* pDoc )
...
@@ -758,9 +758,9 @@ void Sc10PageCollection::PutToDoc( ScDocument* pDoc )
aEditAttribs
.
Put
(
SvxUnderlineItem
(
UNDERLINE_SINGLE
,
EE_CHAR_UNDERLINE
),
EE_CHAR_UNDERLINE
);
aEditAttribs
.
Put
(
SvxUnderlineItem
(
UNDERLINE_SINGLE
,
EE_CHAR_UNDERLINE
),
EE_CHAR_UNDERLINE
);
if
(
pHeadFootLine
->
LogFont
.
lfStrikeOut
!=
0
)
if
(
pHeadFootLine
->
LogFont
.
lfStrikeOut
!=
0
)
aEditAttribs
.
Put
(
SvxCrossedOutItem
(
STRIKEOUT_SINGLE
,
EE_CHAR_STRIKEOUT
),
EE_CHAR_STRIKEOUT
);
aEditAttribs
.
Put
(
SvxCrossedOutItem
(
STRIKEOUT_SINGLE
,
EE_CHAR_STRIKEOUT
),
EE_CHAR_STRIKEOUT
);
String
aText
(
pHeadFootLine
->
Title
,
DEFCHARSET
);
OUString
aText
(
pHeadFootLine
->
Title
,
strlen
(
pHeadFootLine
->
Title
)
,
DEFCHARSET
);
aEditEngine
.
SetText
(
aText
);
aEditEngine
.
SetText
(
aText
);
aEditEngine
.
QuickSetAttribs
(
aEditAttribs
,
ESelection
(
0
,
0
,
0
,
aText
.
Len
()
)
);
aEditEngine
.
QuickSetAttribs
(
aEditAttribs
,
ESelection
(
0
,
0
,
0
,
aText
.
getLength
()
)
);
EditTextObject
*
pObject
=
aEditEngine
.
CreateTextObject
();
EditTextObject
*
pObject
=
aEditEngine
.
CreateTextObject
();
ScPageHFItem
aHeaderItem
(
nHeadFoot
?
ATTR_PAGE_FOOTERRIGHT
:
ATTR_PAGE_HEADERRIGHT
);
ScPageHFItem
aHeaderItem
(
nHeadFoot
?
ATTR_PAGE_FOOTERRIGHT
:
ATTR_PAGE_HEADERRIGHT
);
...
@@ -1153,7 +1153,7 @@ void Sc10Import::LoadPatternCollection()
...
@@ -1153,7 +1153,7 @@ void Sc10Import::LoadPatternCollection()
for
(
sal_uInt16
i
=
0
;
i
<
pPatternCollection
->
GetCount
()
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
pPatternCollection
->
GetCount
()
;
i
++
)
{
{
Sc10PatternData
*
pPattern
=
pPatternCollection
->
At
(
i
);
Sc10PatternData
*
pPattern
=
pPatternCollection
->
At
(
i
);
String
aName
(
pPattern
->
Name
,
DEFCHARSET
);
OUString
aName
(
pPattern
->
Name
,
strlen
(
pPattern
->
Name
)
,
DEFCHARSET
);
SfxStyleSheetBase
*
pStyle
=
pStylePool
->
Find
(
aName
,
SFX_STYLE_FAMILY_PARA
);
SfxStyleSheetBase
*
pStyle
=
pStylePool
->
Find
(
aName
,
SFX_STYLE_FAMILY_PARA
);
if
(
pStyle
==
NULL
)
if
(
pStyle
==
NULL
)
pStylePool
->
Make
(
aName
,
SFX_STYLE_FAMILY_PARA
);
pStylePool
->
Make
(
aName
,
SFX_STYLE_FAMILY_PARA
);
...
@@ -1425,7 +1425,7 @@ void Sc10Import::LoadTables()
...
@@ -1425,7 +1425,7 @@ void Sc10Import::LoadTables()
lcl_ReadPageFormat
(
rStream
,
PageFormat
);
lcl_ReadPageFormat
(
rStream
,
PageFormat
);
sal_uInt16
nAt
=
aPageCollection
.
InsertFormat
(
PageFormat
);
sal_uInt16
nAt
=
aPageCollection
.
InsertFormat
(
PageFormat
);
String
aPageName
=
lcl_MakeOldPageStyleFormatName
(
nAt
);
OU
String
aPageName
=
lcl_MakeOldPageStyleFormatName
(
nAt
);
pPrgrsBar
->
Progress
();
pPrgrsBar
->
Progress
();
...
@@ -1689,7 +1689,7 @@ void Sc10Import::LoadCol(SCCOL Col, SCTAB Tab)
...
@@ -1689,7 +1689,7 @@ void Sc10Import::LoadCol(SCCOL Col, SCTAB Tab)
sal_Char
*
pNote
=
new
sal_Char
[
NoteLen
+
1
];
sal_Char
*
pNote
=
new
sal_Char
[
NoteLen
+
1
];
rStream
.
Read
(
pNote
,
NoteLen
);
rStream
.
Read
(
pNote
,
NoteLen
);
pNote
[
NoteLen
]
=
0
;
pNote
[
NoteLen
]
=
0
;
String
aNoteText
(
SC10TOSTRING
(
pNote
));
OU
String
aNoteText
(
SC10TOSTRING
(
pNote
));
delete
[]
pNote
;
delete
[]
pNote
;
ScAddress
aPos
(
Col
,
static_cast
<
SCROW
>
(
Row
),
Tab
);
ScAddress
aPos
(
Col
,
static_cast
<
SCROW
>
(
Row
),
Tab
);
ScNoteUtil
::
CreateNoteFromString
(
*
pDoc
,
aPos
,
aNoteText
,
false
,
false
);
ScNoteUtil
::
CreateNoteFromString
(
*
pDoc
,
aPos
,
aNoteText
,
false
,
false
);
...
...
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