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
f733ca91
Kaydet (Commit)
f733ca91
authored
Eyl 11, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/formula/formula.hxx from String to OUString
Change-Id: Id3c1dfa97805dfa3a1978cd264380d5ef4a2287a
üst
f32da852
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
37 deletions
+36
-37
formula.cxx
formula/source/ui/dlg/formula.cxx
+16
-17
formula.hxx
include/formula/formula.hxx
+11
-11
Formula.cxx
reportdesign/source/ui/dlg/Formula.cxx
+5
-5
Formula.hxx
reportdesign/source/ui/inc/Formula.hxx
+1
-1
formula.cxx
sc/source/ui/formdlg/formula.cxx
+3
-3
No files found.
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
f733ca91
...
...
@@ -120,7 +120,7 @@ namespace formula
FormulaDlgMode
SetMeText
(
const
String
&
_sText
,
xub_StrLen
PrivStart
,
xub_StrLen
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_Bool
_bUpdate
);
void
SetMeText
(
const
String
&
_sText
);
sal_Bool
CheckMatrix
(
String
&
aFormula
/*IN/OUT*/
);
sal_Bool
CheckMatrix
(
OU
String
&
aFormula
/*IN/OUT*/
);
void
SetEdSelection
();
...
...
@@ -1511,18 +1511,17 @@ FormulaDlgMode FormulaDlg_Impl::SetMeText(const String& _sText,xub_StrLen PrivSt
}
// if ( _bUpdate )
return
eMode
;
}
sal_Bool
FormulaDlg_Impl
::
CheckMatrix
(
String
&
aFormula
)
sal_Bool
FormulaDlg_Impl
::
CheckMatrix
(
OU
String
&
aFormula
)
{
pMEdit
->
GrabFocus
();
xub_StrLen
nLen
=
aFormula
.
Len
();
sal_Int32
nLen
=
aFormula
.
getLength
();
sal_Bool
bMatrix
=
nLen
>
3
// Matrix-Formula
&&
aFormula
.
GetChar
(
0
)
==
'{'
&&
aFormula
.
GetChar
(
1
)
==
'='
&&
aFormula
.
GetChar
(
nLen
-
1
)
==
'}'
;
&&
aFormula
[
0
]
==
'{'
&&
aFormula
[
1
]
==
'='
&&
aFormula
[
nLen
-
1
]
==
'}'
;
if
(
bMatrix
)
{
aFormula
.
Erase
(
0
,
1
);
aFormula
.
Erase
(
aFormula
.
Len
()
-
1
,
1
);
aFormula
=
aFormula
.
copy
(
1
,
aFormula
.
getLength
()
-
2
);
aBtnMatrix
.
Check
(
bMatrix
);
aBtnMatrix
.
Disable
();
}
// if ( bMatrix )
...
...
@@ -1658,19 +1657,19 @@ FormulaModalDialog::~FormulaModalDialog()
{
}
// -----------------------------------------------------------------------------
void
FormulaModalDialog
::
Update
(
const
String
&
_sExp
)
void
FormulaModalDialog
::
Update
(
const
OU
String
&
_sExp
)
{
m_pImpl
->
Update
(
_sExp
);
}
// -----------------------------------------------------------------------------
void
FormulaModalDialog
::
SetMeText
(
const
String
&
_sText
)
void
FormulaModalDialog
::
SetMeText
(
const
OU
String
&
_sText
)
{
m_pImpl
->
SetMeText
(
_sText
);
}
// -----------------------------------------------------------------------------
sal_Bool
FormulaModalDialog
::
CheckMatrix
(
String
&
aFormula
)
sal_Bool
FormulaModalDialog
::
CheckMatrix
(
OU
String
&
aFormula
)
{
return
m_pImpl
->
CheckMatrix
(
aFormula
);
}
...
...
@@ -1747,19 +1746,19 @@ FormulaDlg::~FormulaDlg()
{
}
// -----------------------------------------------------------------------------
void
FormulaDlg
::
Update
(
const
String
&
_sExp
)
void
FormulaDlg
::
Update
(
const
OU
String
&
_sExp
)
{
m_pImpl
->
Update
(
_sExp
);
}
// -----------------------------------------------------------------------------
void
FormulaDlg
::
SetMeText
(
const
String
&
_sText
)
void
FormulaDlg
::
SetMeText
(
const
OU
String
&
_sText
)
{
m_pImpl
->
SetMeText
(
_sText
);
}
// -----------------------------------------------------------------------------
FormulaDlgMode
FormulaDlg
::
SetMeText
(
const
String
&
_sText
,
xub_StrLen
PrivStart
,
xub_StrLen
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_Bool
_bUpdate
)
FormulaDlgMode
FormulaDlg
::
SetMeText
(
const
OUString
&
_sText
,
xub_StrLen
PrivStart
,
xub_StrLen
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_Bool
_bUpdate
)
{
return
m_pImpl
->
SetMeText
(
_sText
,
PrivStart
,
PrivEnd
,
bMatrix
,
_bSelect
,
_bUpdate
);
}
...
...
@@ -1769,12 +1768,12 @@ void FormulaDlg::CheckMatrix()
m_pImpl
->
aBtnMatrix
.
Check
();
}
// -----------------------------------------------------------------------------
sal_Bool
FormulaDlg
::
CheckMatrix
(
String
&
aFormula
)
sal_Bool
FormulaDlg
::
CheckMatrix
(
OU
String
&
aFormula
)
{
return
m_pImpl
->
CheckMatrix
(
aFormula
);
}
// -----------------------------------------------------------------------------
String
FormulaDlg
::
GetMeText
()
const
OU
String
FormulaDlg
::
GetMeText
()
const
{
return
m_pImpl
->
pMEdit
->
GetText
();
}
...
...
@@ -1846,7 +1845,7 @@ const IFunctionDescription* FormulaDlg::getCurrentFunctionDescription() const
return
m_pImpl
->
pFuncDesc
;
}
// -----------------------------------------------------------------------------
void
FormulaDlg
::
UpdateParaWin
(
const
Selection
&
_rSelection
,
const
String
&
_sRefStr
)
void
FormulaDlg
::
UpdateParaWin
(
const
Selection
&
_rSelection
,
const
OU
String
&
_sRefStr
)
{
m_pImpl
->
UpdateParaWin
(
_rSelection
,
_sRefStr
);
}
...
...
include/formula/formula.hxx
Dosyayı görüntüle @
f733ca91
...
...
@@ -70,10 +70,10 @@ protected:
void
RefInputDoneAfter
(
sal_Bool
bForced
=
sal_False
);
void
SetFocusWin
(
Window
*
pWin
,
const
OString
&
nUniqueId
);
void
SetMeText
(
const
String
&
_sText
);
void
SetMeText
(
const
OU
String
&
_sText
);
void
Update
();
sal_Bool
CheckMatrix
(
String
&
aFormula
/*IN/OUT*/
);
void
Update
(
const
String
&
_sExp
);
sal_Bool
CheckMatrix
(
OU
String
&
aFormula
/*IN/OUT*/
);
void
Update
(
const
OU
String
&
_sExp
);
void
StoreFormEditData
(
FormEditData
*
pData
);
};
...
...
@@ -113,19 +113,19 @@ protected:
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputDoneAfter
(
sal_Bool
bForced
=
sal_False
);
void
SetFocusWin
(
Window
*
pWin
,
const
OString
&
nUniqueId
);
void
HighlightFunctionParas
(
const
String
&
aFormula
);
void
HighlightFunctionParas
(
const
OU
String
&
aFormula
);
void
SetMeText
(
const
String
&
_sText
);
FormulaDlgMode
SetMeText
(
const
String
&
_sText
,
xub_StrLen
PrivStart
,
xub_StrLen
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_Bool
_bUpdate
);
void
SetMeText
(
const
OU
String
&
_sText
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
xub_StrLen
PrivStart
,
xub_StrLen
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_Bool
_bUpdate
);
void
Update
();
sal_Bool
CheckMatrix
(
String
&
aFormula
/*IN/OUT*/
);
String
GetMeText
()
const
;
void
Update
(
const
String
&
_sExp
);
sal_Bool
CheckMatrix
(
OU
String
&
aFormula
/*IN/OUT*/
);
OUString
GetMeText
()
const
;
void
Update
(
const
OU
String
&
_sExp
);
void
CheckMatrix
();
void
DoEnter
(
sal_Bool
_bOk
);
const
IFunctionDescription
*
getCurrentFunctionDescription
()
const
;
sal_Bool
UpdateParaWin
(
Selection
&
_rSelection
);
void
UpdateParaWin
(
const
Selection
&
_rSelection
,
const
String
&
_sRefStr
);
sal_Bool
UpdateParaWin
(
Selection
&
_rSelection
);
void
UpdateParaWin
(
const
Selection
&
_rSelection
,
const
OU
String
&
_sRefStr
);
RefEdit
*
GetActiveEdit
();
void
SetEdSelection
();
...
...
reportdesign/source/ui/dlg/Formula.cxx
Dosyayı görüntüle @
f733ca91
...
...
@@ -53,14 +53,14 @@ FormulaDialog::FormulaDialog(Window* pParent
,
m_pAddField
(
NULL
)
,
m_xRowSet
(
_xRowSet
)
,
m_pEdit
(
NULL
)
,
m_sFormula
(
OUString
(
"="
)
)
,
m_sFormula
(
"="
)
,
m_nStart
(
0
)
,
m_nEnd
(
1
)
{
if
(
!
_sFormula
.
isEmpty
()
)
{
if
(
_sFormula
.
getStr
()
[
0
]
!=
'='
)
m_sFormula
+=
String
(
_sFormula
)
;
if
(
_sFormula
[
0
]
!=
'='
)
m_sFormula
+=
_sFormula
;
else
m_sFormula
=
_sFormula
;
}
...
...
@@ -141,9 +141,9 @@ void FormulaDialog::setCurrentFormula(const String& _sReplacement)
const
xub_StrLen
nOldLen
=
m_nEnd
-
m_nStart
;
const
xub_StrLen
nNewLen
=
_sReplacement
.
Len
();
if
(
nOldLen
)
m_sFormula
.
Erase
(
m_nStart
,
nOldLen
);
m_sFormula
=
m_sFormula
.
replaceAt
(
m_nStart
,
nOldLen
,
""
);
if
(
nNewLen
)
m_sFormula
.
Insert
(
_sReplacement
,
m_nStar
t
);
m_sFormula
=
m_sFormula
.
replaceAt
(
m_nStart
,
0
,
_sReplacemen
t
);
m_nEnd
=
m_nStart
+
nNewLen
;
}
void
FormulaDialog
::
setSelection
(
xub_StrLen
_nStart
,
xub_StrLen
_nEnd
)
...
...
reportdesign/source/ui/inc/Formula.hxx
Dosyayı görüntüle @
f733ca91
...
...
@@ -47,7 +47,7 @@ class FormulaDialog : public formula::FormulaModalDialog,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
report
::
meta
::
XFormulaParser
>
m_xParser
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sheet
::
XFormulaOpCodeMapper
>
m_xOpCodeMapper
;
formula
::
RefEdit
*
m_pEdit
;
String
m_sFormula
;
OUString
m_sFormula
;
xub_StrLen
m_nStart
;
xub_StrLen
m_nEnd
;
...
...
sc/source/ui/formdlg/formula.cxx
Dosyayı görüntüle @
f733ca91
...
...
@@ -142,9 +142,9 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
// Formel vorhanden? Dann editieren
String
aFormula
;
OU
String
aFormula
;
pDoc
->
GetFormula
(
nCol
,
nRow
,
nTab
,
aFormula
);
sal_Bool
bEdit
=
(
aFormula
.
Len
()
>
1
);
sal_Bool
bEdit
=
(
aFormula
.
getLength
()
>
1
);
sal_Bool
bMatrix
=
false
;
if
(
bEdit
)
{
...
...
@@ -169,7 +169,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
if
(
!
bEdit
)
{
OUString
aNewFormula
(
'='
);
if
(
aFormula
.
Len
()
>
0
&&
aFormula
.
GetChar
(
0
)
==
'='
)
if
(
!
aFormula
.
isEmpty
()
&&
aFormula
[
0
]
==
'='
)
aNewFormula
=
aFormula
;
pScMod
->
InputReplaceSelection
(
aNewFormula
);
...
...
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