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
288abe5a
Kaydet (Commit)
288abe5a
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/ftools/*.cxx from String to OUString
Change-Id: I9bd526369a7840a430f014f23dc60d8dad671e2b
üst
594515e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
ftools.cxx
sc/source/filter/ftools/ftools.cxx
+8
-8
ftools.hxx
sc/source/filter/inc/ftools.hxx
+4
-4
No files found.
sc/source/filter/ftools/ftools.cxx
Dosyayı görüntüle @
288abe5a
...
...
@@ -152,20 +152,20 @@ Color ScfTools::GetMixedColor( const Color& rFore, const Color& rBack, sal_uInt8
OUString
ScfTools
::
ConvertToScDefinedName
(
const
OUString
&
rName
)
{
//fdo#37872: we don't allow points in range names any more
String
sName
=
rName
.
replace
(
static_cast
<
sal_Unicode
>
(
'.'
),
OU
String
sName
=
rName
.
replace
(
static_cast
<
sal_Unicode
>
(
'.'
),
static_cast
<
sal_Unicode
>
(
'_'
));
xub_StrLen
nLen
=
sName
.
Len
();
xub_StrLen
nLen
=
sName
.
getLength
();
if
(
nLen
&&
!
ScCompiler
::
IsCharFlagAllConventions
(
sName
,
0
,
SC_COMPILER_C_CHAR_NAME
)
)
sName
.
SetChar
(
0
,
'_'
);
sName
=
sName
.
replaceAt
(
0
,
1
,
"_"
);
for
(
xub_StrLen
nPos
=
1
;
nPos
<
nLen
;
++
nPos
)
if
(
!
ScCompiler
::
IsCharFlagAllConventions
(
sName
,
nPos
,
SC_COMPILER_C_NAME
)
)
sName
.
SetChar
(
nPos
,
'_'
);
sName
=
sName
.
replaceAt
(
nPos
,
1
,
"_"
);
return
sName
;
}
// *** streams and storages *** -----------------------------------------------
SotStorageRef
ScfTools
::
OpenStorageRead
(
SotStorageRef
xStrg
,
const
String
&
rStrgName
)
SotStorageRef
ScfTools
::
OpenStorageRead
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrgName
)
{
SotStorageRef
xSubStrg
;
if
(
xStrg
.
Is
()
&&
xStrg
->
IsContained
(
rStrgName
)
)
...
...
@@ -173,7 +173,7 @@ SotStorageRef ScfTools::OpenStorageRead( SotStorageRef xStrg, const String& rStr
return
xSubStrg
;
}
SotStorageRef
ScfTools
::
OpenStorageWrite
(
SotStorageRef
xStrg
,
const
String
&
rStrgName
)
SotStorageRef
ScfTools
::
OpenStorageWrite
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrgName
)
{
SotStorageRef
xSubStrg
;
if
(
xStrg
.
Is
()
)
...
...
@@ -181,7 +181,7 @@ SotStorageRef ScfTools::OpenStorageWrite( SotStorageRef xStrg, const String& rSt
return
xSubStrg
;
}
SotStorageStreamRef
ScfTools
::
OpenStorageStreamRead
(
SotStorageRef
xStrg
,
const
String
&
rStrmName
)
SotStorageStreamRef
ScfTools
::
OpenStorageStreamRead
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrmName
)
{
SotStorageStreamRef
xStrm
;
if
(
xStrg
.
Is
()
&&
xStrg
->
IsContained
(
rStrmName
)
&&
xStrg
->
IsStream
(
rStrmName
)
)
...
...
@@ -189,7 +189,7 @@ SotStorageStreamRef ScfTools::OpenStorageStreamRead( SotStorageRef xStrg, const
return
xStrm
;
}
SotStorageStreamRef
ScfTools
::
OpenStorageStreamWrite
(
SotStorageRef
xStrg
,
const
String
&
rStrmName
)
SotStorageStreamRef
ScfTools
::
OpenStorageStreamWrite
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrmName
)
{
OSL_ENSURE
(
!
xStrg
||
!
xStrg
->
IsContained
(
rStrmName
),
"ScfTools::OpenStorageStreamWrite - stream exists already"
);
SotStorageStreamRef
xStrm
;
...
...
sc/source/filter/inc/ftools.hxx
Dosyayı görüntüle @
288abe5a
...
...
@@ -163,14 +163,14 @@ public:
// *** streams and storages *** -----------------------------------------------
/** Tries to open an existing storage with the specified name in the passed storage (read-only). */
static
SotStorageRef
OpenStorageRead
(
SotStorageRef
xStrg
,
const
String
&
rStrgName
);
static
SotStorageRef
OpenStorageRead
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrgName
);
/** Creates and opens a storage with the specified name in the passed storage (read/write). */
static
SotStorageRef
OpenStorageWrite
(
SotStorageRef
xStrg
,
const
String
&
rStrgName
);
static
SotStorageRef
OpenStorageWrite
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrgName
);
/** Tries to open an existing stream with the specified name in the passed storage (read-only). */
static
SotStorageStreamRef
OpenStorageStreamRead
(
SotStorageRef
xStrg
,
const
String
&
rStrmName
);
static
SotStorageStreamRef
OpenStorageStreamRead
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrmName
);
/** Creates and opens a stream with the specified name in the passed storage (read/write). */
static
SotStorageStreamRef
OpenStorageStreamWrite
(
SotStorageRef
xStrg
,
const
String
&
rStrmName
);
static
SotStorageStreamRef
OpenStorageStreamWrite
(
SotStorageRef
xStrg
,
const
OU
String
&
rStrmName
);
// *** item handling *** ------------------------------------------------------
...
...
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