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
5669ea31
Kaydet (Commit)
5669ea31
authored
Ock 14, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:unusedmethods unused return value in starmath
Change-Id: Ic70c3d727ecadd082f7e5d293fc2b279b1287b8f
üst
50f02484
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
25 deletions
+11
-25
caret.hxx
starmath/inc/caret.hxx
+0
-3
dialog.hxx
starmath/inc/dialog.hxx
+4
-4
document.hxx
starmath/inc/document.hxx
+1
-1
parse.hxx
starmath/inc/parse.hxx
+1
-1
utility.hxx
starmath/inc/utility.hxx
+0
-1
document.cxx
starmath/source/document.cxx
+1
-3
parse.cxx
starmath/source/parse.cxx
+1
-3
rtfexport.cxx
starmath/source/rtfexport.cxx
+2
-3
rtfexport.hxx
starmath/source/rtfexport.hxx
+1
-1
utility.cxx
starmath/source/utility.cxx
+0
-5
No files found.
starmath/inc/caret.hxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -36,9 +36,6 @@ struct SmCaretPos{
int
Index
;
/** True, if this is a valid caret position */
bool
IsValid
()
const
{
return
pSelectedNode
!=
nullptr
;
}
bool
operator
!=
(
const
SmCaretPos
&
pos
)
const
{
return
pos
.
pSelectedNode
!=
pSelectedNode
||
Index
!=
pos
.
Index
;
}
bool
operator
==
(
const
SmCaretPos
&
pos
)
const
{
return
pos
.
pSelectedNode
==
pSelectedNode
&&
Index
==
pos
.
Index
;
}
...
...
starmath/inc/dialog.hxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -481,14 +481,14 @@ public:
// Dialog
virtual
short
Execute
()
override
;
bool
SelectOldSymbolSet
(
const
OUString
&
rSymbolSetName
)
void
SelectOldSymbolSet
(
const
OUString
&
rSymbolSetName
)
{
return
SelectSymbolSet
(
*
pOldSymbolSets
,
rSymbolSetName
,
false
);
SelectSymbolSet
(
*
pOldSymbolSets
,
rSymbolSetName
,
false
);
}
bool
SelectOldSymbol
(
const
OUString
&
rSymbolName
)
void
SelectOldSymbol
(
const
OUString
&
rSymbolName
)
{
return
SelectSymbol
(
*
pOldSymbols
,
rSymbolName
,
false
);
SelectSymbol
(
*
pOldSymbols
,
rSymbolName
,
false
);
}
bool
SelectSymbolSet
(
const
OUString
&
rSymbolSetName
)
...
...
starmath/inc/document.hxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -178,7 +178,7 @@ public:
const
OUString
GetComment
()
const
;
// to replace chars that can not be saved with the document...
bool
ReplaceBadChars
();
void
ReplaceBadChars
();
void
UpdateText
();
void
SetText
(
const
OUString
&
rBuffer
);
...
...
starmath/inc/parse.hxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -116,7 +116,7 @@ public:
bool
IsExportSymbolNames
()
const
{
return
m_bExportSymNames
;
}
void
SetExportSymbolNames
(
bool
bVal
)
{
m_bExportSymNames
=
bVal
;
}
size_t
AddError
(
SmParseError
Type
,
SmNode
*
pNode
);
void
AddError
(
SmParseError
Type
,
SmNode
*
pNode
);
const
SmErrorDesc
*
NextError
();
const
SmErrorDesc
*
PrevError
();
const
SmErrorDesc
*
GetError
(
size_t
i
);
...
...
starmath/inc/utility.hxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -135,7 +135,6 @@ public:
vcl
::
Font
Get
(
sal_uInt16
nPos
=
0
)
const
;
SmFontPickList
&
operator
=
(
const
SmFontPickList
&
rList
);
vcl
::
Font
operator
[]
(
sal_uInt16
nPos
)
const
;
void
ReadFrom
(
const
SmFontDialog
&
rDialog
);
void
WriteTo
(
SmFontDialog
&
rDialog
)
const
;
...
...
starmath/source/document.cxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -807,7 +807,7 @@ bool SmDocShell::Save()
/*
* replace bad characters that can not be saved. (#i74144)
* */
bool
SmDocShell
::
ReplaceBadChars
()
void
SmDocShell
::
ReplaceBadChars
()
{
bool
bReplace
=
false
;
...
...
@@ -827,8 +827,6 @@ bool SmDocShell::ReplaceBadChars()
if
(
bReplace
)
aText
=
aBuf
.
makeStringAndClear
();
}
return
bReplace
;
}
...
...
starmath/source/parse.cxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -2414,7 +2414,7 @@ SmNode *SmParser::ParseExpression(const OUString &rBuffer)
}
size_t
SmParser
::
AddError
(
SmParseError
Type
,
SmNode
*
pNode
)
void
SmParser
::
AddError
(
SmParseError
Type
,
SmNode
*
pNode
)
{
std
::
unique_ptr
<
SmErrorDesc
>
pErrDesc
(
new
SmErrorDesc
);
...
...
@@ -2445,8 +2445,6 @@ size_t SmParser::AddError(SmParseError Type, SmNode *pNode)
pErrDesc
->
m_aText
+=
SM_RESSTR
(
nRID
);
m_aErrDescList
.
push_back
(
std
::
move
(
pErrDesc
));
return
m_aErrDescList
.
size
()
-
1
;
}
...
...
starmath/source/rtfexport.cxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -20,16 +20,15 @@ SmRtfExport::SmRtfExport(const SmNode* pIn)
{
}
bool
SmRtfExport
::
ConvertFromStarMath
(
OStringBuffer
&
rBuffer
,
rtl_TextEncoding
nEncoding
)
void
SmRtfExport
::
ConvertFromStarMath
(
OStringBuffer
&
rBuffer
,
rtl_TextEncoding
nEncoding
)
{
if
(
!
m_pTree
)
return
false
;
return
;
m_pBuffer
=
&
rBuffer
;
m_nEncoding
=
nEncoding
;
m_pBuffer
->
append
(
"{"
OOO_STRING_SVTOOLS_RTF_IGNORE
LO_STRING_SVTOOLS_RTF_MOMATH
" "
);
HandleNode
(
m_pTree
,
0
);
m_pBuffer
->
append
(
"}"
);
// moMath
return
true
;
}
// NOTE: This is still work in progress and unfinished, but it already covers a good
...
...
starmath/source/rtfexport.hxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -21,7 +21,7 @@ class SmRtfExport : public SmWordExportBase
{
public
:
explicit
SmRtfExport
(
const
SmNode
*
pIn
);
bool
ConvertFromStarMath
(
OStringBuffer
&
rBuffer
,
rtl_TextEncoding
nEncoding
);
void
ConvertFromStarMath
(
OStringBuffer
&
rBuffer
,
rtl_TextEncoding
nEncoding
);
private
:
virtual
void
HandleVerticalStack
(
const
SmNode
*
pNode
,
int
nLevel
)
override
;
virtual
void
HandleText
(
const
SmNode
*
pNode
,
int
nLevel
)
override
;
...
...
starmath/source/utility.cxx
Dosyayı görüntüle @
5669ea31
...
...
@@ -66,11 +66,6 @@ SmFontPickList& SmFontPickList::operator = (const SmFontPickList& rList)
return
*
this
;
}
vcl
::
Font
SmFontPickList
::
operator
[]
(
sal_uInt16
nPos
)
const
{
return
aFontVec
[
nPos
];
}
vcl
::
Font
SmFontPickList
::
Get
(
sal_uInt16
nPos
)
const
{
return
nPos
<
aFontVec
.
size
()
?
aFontVec
[
nPos
]
:
vcl
::
Font
();
...
...
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