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
1d2f7047
Kaydet (Commit)
1d2f7047
authored
Eki 04, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sc/source/ui/vba/*.cxx from String to OUString
Change-Id: If696cdf2293464dc2a21cab4bdc4f77223cf26c9
üst
e12ae549
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
18 deletions
+17
-18
excelvbahelper.cxx
sc/source/ui/vba/excelvbahelper.cxx
+4
-4
vbacharacters.cxx
sc/source/ui/vba/vbacharacters.cxx
+2
-2
vbahelper.cxx
sc/source/ui/vba/vbahelper.cxx
+2
-2
vbanames.cxx
sc/source/ui/vba/vbanames.cxx
+1
-1
vbarange.cxx
sc/source/ui/vba/vbarange.cxx
+1
-1
vbaworkbooks.cxx
sc/source/ui/vba/vbaworkbooks.cxx
+6
-7
vbaworksheets.cxx
sc/source/ui/vba/vbaworksheets.cxx
+1
-1
No files found.
sc/source/ui/vba/excelvbahelper.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -303,7 +303,7 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
...
@@ -303,7 +303,7 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
ScDocShell
*
pShell
=
excel
::
getDocShell
(
xModel
);
ScDocShell
*
pShell
=
excel
::
getDocShell
(
xModel
);
if
(
pShell
)
if
(
pShell
)
{
{
String
aPrjName
(
RTL_CONSTASCII_USTRINGPARAM
(
"Standard"
)
);
OUString
aPrjName
(
"Standard"
);
pShell
->
GetBasicManager
()
->
SetName
(
aPrjName
);
pShell
->
GetBasicManager
()
->
SetName
(
aPrjName
);
/* Set library container to VBA compatibility mode. This will create
/* Set library container to VBA compatibility mode. This will create
...
@@ -328,10 +328,10 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
...
@@ -328,10 +328,10 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
// set up the module info for the workbook and sheets in the nealy created
// set up the module info for the workbook and sheets in the nealy created
// spreadsheet
// spreadsheet
ScDocument
*
pDoc
=
pShell
->
GetDocument
();
ScDocument
*
pDoc
=
pShell
->
GetDocument
();
String
sCodeName
=
pDoc
->
GetCodeName
();
OU
String
sCodeName
=
pDoc
->
GetCodeName
();
if
(
sCodeName
.
Len
()
==
0
)
if
(
sCodeName
.
isEmpty
()
)
{
{
sCodeName
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"ThisWorkbook"
)
)
;
sCodeName
=
"ThisWorkbook"
;
pDoc
->
SetCodeName
(
sCodeName
);
pDoc
->
SetCodeName
(
sCodeName
);
}
}
...
...
sc/source/ui/vba/vbacharacters.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -93,9 +93,9 @@ ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) thro
...
@@ -93,9 +93,9 @@ ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) thro
// Methods
// Methods
void
SAL_CALL
void
SAL_CALL
ScVbaCharacters
::
Insert
(
const
OUString
&
String
)
throw
(
css
::
uno
::
RuntimeException
)
ScVbaCharacters
::
Insert
(
const
OUString
&
r
String
)
throw
(
css
::
uno
::
RuntimeException
)
{
{
m_xSimpleText
->
insertString
(
m_xTextRange
,
String
,
bReplace
);
m_xSimpleText
->
insertString
(
m_xTextRange
,
r
String
,
bReplace
);
}
}
void
SAL_CALL
void
SAL_CALL
...
...
sc/source/ui/vba/vbahelper.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -574,8 +574,8 @@ ContainerUtilities::FieldInList( const uno::Sequence< OUString >& SearchList, co
...
@@ -574,8 +574,8 @@ ContainerUtilities::FieldInList( const uno::Sequence< OUString >& SearchList, co
}
}
bool
NeedEsc
(
sal_Unicode
cCode
)
bool
NeedEsc
(
sal_Unicode
cCode
)
{
{
String
sEsc
(
".^$+
\\
|{}()"
);
OU
String
sEsc
(
".^$+
\\
|{}()"
);
return
(
STRING_NOTFOUND
!=
sEsc
.
Search
(
cCode
));
return
(
-
1
!=
sEsc
.
indexOf
(
cCode
));
}
}
OUString
VBAToRegexp
(
const
OUString
&
rIn
,
bool
bForLike
)
OUString
VBAToRegexp
(
const
OUString
&
rIn
,
bool
bForLike
)
...
...
sc/source/ui/vba/vbanames.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -217,7 +217,7 @@ ScVbaNames::Add( const css::uno::Any& Name ,
...
@@ -217,7 +217,7 @@ ScVbaNames::Add( const css::uno::Any& Name ,
{
{
xArea
.
set
(
xRange
->
Areas
(
uno
::
makeAny
(
nArea
)
),
uno
::
UNO_QUERY_THROW
);
xArea
.
set
(
xRange
->
Areas
(
uno
::
makeAny
(
nArea
)
),
uno
::
UNO_QUERY_THROW
);
String
sRangeAdd
=
xArea
->
Address
(
xAny2
,
xAny2
,
xAny2
,
xAny2
,
xAny2
);
OU
String
sRangeAdd
=
xArea
->
Address
(
xAny2
,
xAny2
,
xAny2
,
xAny2
,
xAny2
);
if
(
nArea
>
1
)
if
(
nArea
>
1
)
sTmp
+=
","
;
sTmp
+=
","
;
sTmp
=
sTmp
+
"'"
+
xRange
->
getWorksheet
()
->
getName
()
+
"'."
+
sRangeAdd
;
sTmp
=
sTmp
+
"'"
+
xRange
->
getWorksheet
()
->
getName
()
+
"'."
+
sRangeAdd
;
...
...
sc/source/ui/vba/vbarange.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -3789,7 +3789,7 @@ double getDefaultCharWidth( ScDocShell* pDocShell )
...
@@ -3789,7 +3789,7 @@ double getDefaultCharWidth( ScDocShell* pDocShell )
::
Font
aDefFont
;
::
Font
aDefFont
;
pAttr
->
GetFont
(
aDefFont
,
SC_AUTOCOL_BLACK
,
pRefDevice
);
pAttr
->
GetFont
(
aDefFont
,
SC_AUTOCOL_BLACK
,
pRefDevice
);
pRefDevice
->
SetFont
(
aDefFont
);
pRefDevice
->
SetFont
(
aDefFont
);
long
nCharWidth
=
pRefDevice
->
GetTextWidth
(
String
(
'0'
)
);
// 1/100th mm
long
nCharWidth
=
pRefDevice
->
GetTextWidth
(
OU
String
(
'0'
)
);
// 1/100th mm
return
lcl_hmmToPoints
(
nCharWidth
);
return
lcl_hmmToPoints
(
nCharWidth
);
}
}
...
...
sc/source/ui/vba/vbaworkbooks.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -67,7 +67,7 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
...
@@ -67,7 +67,7 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
ScDocShell
*
pShell
=
excel
::
getDocShell
(
xModel
);
ScDocShell
*
pShell
=
excel
::
getDocShell
(
xModel
);
if
(
pShell
)
if
(
pShell
)
{
{
String
aPrjName
(
RTL_CONSTASCII_USTRINGPARAM
(
"Standard"
)
);
OUString
aPrjName
(
"Standard"
);
pShell
->
GetBasicManager
()
->
SetName
(
aPrjName
);
pShell
->
GetBasicManager
()
->
SetName
(
aPrjName
);
/* Set library container to VBA compatibility mode. This will create
/* Set library container to VBA compatibility mode. This will create
...
@@ -92,10 +92,10 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
...
@@ -92,10 +92,10 @@ void setUpDocumentModules( const uno::Reference< sheet::XSpreadsheetDocument >&
// set up the module info for the workbook and sheets in the nealy created
// set up the module info for the workbook and sheets in the nealy created
// spreadsheet
// spreadsheet
ScDocument
*
pDoc
=
pShell
->
GetDocument
();
ScDocument
*
pDoc
=
pShell
->
GetDocument
();
String
sCodeName
=
pDoc
->
GetCodeName
();
OU
String
sCodeName
=
pDoc
->
GetCodeName
();
if
(
sCodeName
.
Len
()
==
0
)
if
(
sCodeName
.
isEmpty
()
)
{
{
sCodeName
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"ThisWorkbook"
)
)
;
sCodeName
=
"ThisWorkbook"
;
pDoc
->
SetCodeName
(
sCodeName
);
pDoc
->
SetCodeName
(
sCodeName
);
}
}
...
@@ -333,9 +333,8 @@ ScVbaWorkbooks::Open( const OUString& rFileName, const uno::Any& /*UpdateLinks*/
...
@@ -333,9 +333,8 @@ ScVbaWorkbooks::Open( const OUString& rFileName, const uno::Any& /*UpdateLinks*/
throw
uno
::
RuntimeException
(
"Expected value for Delimiter"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
uno
::
RuntimeException
(
"Expected value for Delimiter"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
OUString
sStr
;
OUString
sStr
;
Delimiter
>>=
sStr
;
Delimiter
>>=
sStr
;
String
aUniStr
(
sStr
);
if
(
!
sStr
.
isEmpty
()
)
if
(
aUniStr
.
Len
()
)
nDelim
=
sStr
[
0
];
nDelim
=
aUniStr
.
GetChar
(
0
);
else
else
throw
uno
::
RuntimeException
(
"Incorrect value for Delimiter"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
uno
::
RuntimeException
(
"Incorrect value for Delimiter"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
}
}
...
...
sc/source/ui/vba/vbaworksheets.cxx
Dosyayı görüntüle @
1d2f7047
...
@@ -269,7 +269,7 @@ ScVbaWorksheets::Add( const uno::Any& Before, const uno::Any& After,
...
@@ -269,7 +269,7 @@ ScVbaWorksheets::Add( const uno::Any& Before, const uno::Any& After,
nSheetIndex
++
;
nSheetIndex
++
;
SCTAB
nSheetName
=
nCount
+
1L
;
SCTAB
nSheetName
=
nCount
+
1L
;
String
aStringBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"Sheet"
)
);
OUString
aStringBase
(
"Sheet"
);
uno
::
Any
result
;
uno
::
Any
result
;
for
(
SCTAB
i
=
0
;
i
<
nNewSheets
;
i
++
,
nSheetName
++
)
for
(
SCTAB
i
=
0
;
i
<
nNewSheets
;
i
++
,
nSheetName
++
)
{
{
...
...
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