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
bf6b30ba
Kaydet (Commit)
bf6b30ba
authored
Kas 06, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Id5b78aa78fc585a67712fa44329479a86230d194
üst
201c98c6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
+15
-15
document.cxx
starmath/source/document.cxx
+2
-2
edit.cxx
starmath/source/edit.cxx
+1
-1
eqnolefilehdr.cxx
starmath/source/eqnolefilehdr.cxx
+1
-1
mathtype.cxx
starmath/source/mathtype.cxx
+5
-5
smdll.cxx
starmath/source/smdll.cxx
+1
-1
smmod.cxx
starmath/source/smmod.cxx
+1
-1
symbol.cxx
starmath/source/symbol.cxx
+2
-2
unofilter.cxx
starmath/source/unofilter.cxx
+1
-1
view.cxx
starmath/source/view.cxx
+1
-1
No files found.
starmath/source/document.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -371,7 +371,7 @@ EditEngine& SmDocShell::GetEditEngine()
...
@@ -371,7 +371,7 @@ EditEngine& SmDocShell::GetEditEngine()
pEditEngine
->
EnableUndo
(
true
);
pEditEngine
->
EnableUndo
(
true
);
pEditEngine
->
SetDefTab
(
sal_uInt16
(
pEditEngine
->
SetDefTab
(
sal_uInt16
(
Application
::
GetDefaultDevice
()
->
GetTextWidth
(
OUString
(
"XXXX"
)
))
);
Application
::
GetDefaultDevice
()
->
GetTextWidth
(
"XXXX"
))
);
pEditEngine
->
SetControlWord
(
pEditEngine
->
SetControlWord
(
(
pEditEngine
->
GetControlWord
()
|
EEControlBits
::
AUTOINDENTING
)
&
(
pEditEngine
->
GetControlWord
()
|
EEControlBits
::
AUTOINDENTING
)
&
...
@@ -713,7 +713,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
...
@@ -713,7 +713,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
if
(
SotStorage
::
IsStorageFile
(
pStream
)
)
if
(
SotStorage
::
IsStorageFile
(
pStream
)
)
{
{
tools
::
SvRef
<
SotStorage
>
aStorage
=
new
SotStorage
(
pStream
,
false
);
tools
::
SvRef
<
SotStorage
>
aStorage
=
new
SotStorage
(
pStream
,
false
);
if
(
aStorage
->
IsStream
(
OUString
(
"Equation Native"
)
)
)
if
(
aStorage
->
IsStream
(
"Equation Native"
)
)
{
{
// is this a MathType Storage?
// is this a MathType Storage?
MathType
aEquation
(
aText
);
MathType
aEquation
(
aText
);
...
...
starmath/source/edit.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -238,7 +238,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& )
...
@@ -238,7 +238,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& )
//! see also SmDocShell::GetEditEngine() !
//! see also SmDocShell::GetEditEngine() !
//!
//!
pEditEngine
->
SetDefTab
(
sal_uInt16
(
GetTextWidth
(
OUString
(
"XXXX"
)
)));
pEditEngine
->
SetDefTab
(
sal_uInt16
(
GetTextWidth
(
"XXXX"
)));
SetEditEngineDefaultFonts
(
*
pEditEngineItemPool
);
SetEditEngineDefaultFonts
(
*
pEditEngineItemPool
);
...
...
starmath/source/eqnolefilehdr.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -33,7 +33,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
...
@@ -33,7 +33,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
// code snippet copied from MathType::Parse
// code snippet copied from MathType::Parse
tools
::
SvRef
<
SotStorageStream
>
xSrc
=
pStor
->
OpenSotStream
(
tools
::
SvRef
<
SotStorageStream
>
xSrc
=
pStor
->
OpenSotStream
(
OUString
(
"Equation Native"
)
,
"Equation Native"
,
STREAM_STD_READ
|
StreamMode
::
NOCREATE
);
STREAM_STD_READ
|
StreamMode
::
NOCREATE
);
if
(
(
!
xSrc
.
Is
())
||
(
SVSTREAM_OK
!=
xSrc
->
GetError
()))
if
(
(
!
xSrc
.
Is
())
||
(
SVSTREAM_OK
!=
xSrc
->
GetError
()))
return
bSuccess
;
return
bSuccess
;
...
...
starmath/source/mathtype.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -555,7 +555,7 @@ void MathType::TypeFaceToString(OUString &rTxt,sal_uInt8 nFace)
...
@@ -555,7 +555,7 @@ void MathType::TypeFaceToString(OUString &rTxt,sal_uInt8 nFace)
int
MathType
::
Parse
(
SotStorage
*
pStor
)
int
MathType
::
Parse
(
SotStorage
*
pStor
)
{
{
tools
::
SvRef
<
SotStorageStream
>
xSrc
=
pStor
->
OpenSotStream
(
tools
::
SvRef
<
SotStorageStream
>
xSrc
=
pStor
->
OpenSotStream
(
OUString
(
"Equation Native"
)
,
"Equation Native"
,
STREAM_STD_READ
|
StreamMode
::
NOCREATE
);
STREAM_STD_READ
|
StreamMode
::
NOCREATE
);
if
(
(
!
xSrc
.
Is
())
||
(
SVSTREAM_OK
!=
xSrc
->
GetError
()))
if
(
(
!
xSrc
.
Is
())
||
(
SVSTREAM_OK
!=
xSrc
->
GetError
()))
return
0
;
return
0
;
...
@@ -1889,7 +1889,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
...
@@ -1889,7 +1889,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
SvGlobalName
aGName
(
0x0002ce02L
,
0x0000
,
0x0000
,
0xc0
,
0x00
,
SvGlobalName
aGName
(
0x0002ce02L
,
0x0000
,
0x0000
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
);
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
);
pStor
->
SetClass
(
aGName
,
SotClipboardFormatId
::
NONE
,
OUString
(
"Microsoft Equation 3.0"
)
);
pStor
->
SetClass
(
aGName
,
SotClipboardFormatId
::
NONE
,
"Microsoft Equation 3.0"
);
static
sal_uInt8
const
aCompObj
[]
=
{
static
sal_uInt8
const
aCompObj
[]
=
{
0x01
,
0x00
,
0xFE
,
0xFF
,
0x03
,
0x0A
,
0x00
,
0x00
,
0x01
,
0x00
,
0xFE
,
0xFF
,
0x03
,
0x0A
,
0x00
,
0x00
,
...
@@ -1906,7 +1906,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
...
@@ -1906,7 +1906,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
0xB2
,
0x71
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xB2
,
0x71
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
};
tools
::
SvRef
<
SotStorageStream
>
xStor
(
pStor
->
OpenSotStream
(
OUString
(
"
\1
CompObj"
)
));
tools
::
SvRef
<
SotStorageStream
>
xStor
(
pStor
->
OpenSotStream
(
"
\1
CompObj"
));
xStor
->
Write
(
aCompObj
,
sizeof
(
aCompObj
));
xStor
->
Write
(
aCompObj
,
sizeof
(
aCompObj
));
static
sal_uInt8
const
aOle
[]
=
{
static
sal_uInt8
const
aOle
[]
=
{
...
@@ -1914,12 +1914,12 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
...
@@ -1914,12 +1914,12 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
0x00
,
0x00
,
0x00
,
0x00
};
};
tools
::
SvRef
<
SotStorageStream
>
xStor2
(
pStor
->
OpenSotStream
(
OUString
(
"
\1
Ole"
)
));
tools
::
SvRef
<
SotStorageStream
>
xStor2
(
pStor
->
OpenSotStream
(
"
\1
Ole"
));
xStor2
->
Write
(
aOle
,
sizeof
(
aOle
));
xStor2
->
Write
(
aOle
,
sizeof
(
aOle
));
xStor
.
Clear
();
xStor
.
Clear
();
xStor2
.
Clear
();
xStor2
.
Clear
();
tools
::
SvRef
<
SotStorageStream
>
xSrc
=
pStor
->
OpenSotStream
(
OUString
(
"Equation Native"
)
);
tools
::
SvRef
<
SotStorageStream
>
xSrc
=
pStor
->
OpenSotStream
(
"Equation Native"
);
if
(
(
!
xSrc
.
Is
())
||
(
SVSTREAM_OK
!=
xSrc
->
GetError
()))
if
(
(
!
xSrc
.
Is
())
||
(
SVSTREAM_OK
!=
xSrc
->
GetError
()))
return
0
;
return
0
;
...
...
starmath/source/smdll.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -58,7 +58,7 @@ namespace
...
@@ -58,7 +58,7 @@ namespace
SmModule
*
pModule
=
new
SmModule
(
&
rFactory
);
SmModule
*
pModule
=
new
SmModule
(
&
rFactory
);
*
ppShlPtr
=
pModule
;
*
ppShlPtr
=
pModule
;
rFactory
.
SetDocumentServiceName
(
OUString
(
"com.sun.star.formula.FormulaProperties"
)
);
rFactory
.
SetDocumentServiceName
(
"com.sun.star.formula.FormulaProperties"
);
SmModule
::
RegisterInterface
(
pModule
);
SmModule
::
RegisterInterface
(
pModule
);
SmDocShell
::
RegisterInterface
(
pModule
);
SmDocShell
::
RegisterInterface
(
pModule
);
...
...
starmath/source/smmod.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -165,7 +165,7 @@ void SmModule::InitInterface_Impl()
...
@@ -165,7 +165,7 @@ void SmModule::InitInterface_Impl()
SmModule
::
SmModule
(
SfxObjectFactory
*
pObjFact
)
:
SmModule
::
SmModule
(
SfxObjectFactory
*
pObjFact
)
:
SfxModule
(
ResMgr
::
CreateResMgr
(
"sm"
),
false
,
pObjFact
,
nullptr
)
SfxModule
(
ResMgr
::
CreateResMgr
(
"sm"
),
false
,
pObjFact
,
nullptr
)
{
{
SetName
(
OUString
(
"StarMath"
)
);
SetName
(
"StarMath"
);
SvxModifyControl
::
RegisterControl
(
SID_DOC_MODIFIED
,
this
);
SvxModifyControl
::
RegisterControl
(
SID_DOC_MODIFIED
,
this
);
}
}
...
...
starmath/source/symbol.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -256,7 +256,7 @@ void SmSymbolManager::Load()
...
@@ -256,7 +256,7 @@ void SmSymbolManager::Load()
}
}
// now add a %i... symbol to the 'iGreek' set for every symbol found in the 'Greek' set.
// now add a %i... symbol to the 'iGreek' set for every symbol found in the 'Greek' set.
const
OUString
aGreekSymbolSetName
(
SmLocalizedSymbolData
::
GetUiSymbolSetName
(
OUString
(
"Greek"
)
));
const
OUString
aGreekSymbolSetName
(
SmLocalizedSymbolData
::
GetUiSymbolSetName
(
"Greek"
));
const
SymbolPtrVec_t
aGreekSymbols
(
GetSymbolSet
(
aGreekSymbolSetName
)
);
const
SymbolPtrVec_t
aGreekSymbols
(
GetSymbolSet
(
aGreekSymbolSetName
)
);
OUString
aSymbolSetName
(
'i'
);
OUString
aSymbolSetName
(
'i'
);
aSymbolSetName
+=
aGreekSymbolSetName
;
aSymbolSetName
+=
aGreekSymbolSetName
;
...
@@ -285,7 +285,7 @@ void SmSymbolManager::Save()
...
@@ -285,7 +285,7 @@ void SmSymbolManager::Save()
// prepare to skip symbols from iGreek on saving
// prepare to skip symbols from iGreek on saving
OUString
aSymbolSetName
(
'i'
);
OUString
aSymbolSetName
(
'i'
);
aSymbolSetName
+=
SmLocalizedSymbolData
::
GetUiSymbolSetName
(
OUString
(
"Greek"
)
);
aSymbolSetName
+=
SmLocalizedSymbolData
::
GetUiSymbolSetName
(
"Greek"
);
SymbolPtrVec_t
aTmp
(
GetSymbols
()
);
SymbolPtrVec_t
aTmp
(
GetSymbols
()
);
std
::
vector
<
SmSym
>
aSymbols
;
std
::
vector
<
SmSym
>
aSymbols
;
...
...
starmath/source/unofilter.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -71,7 +71,7 @@ sal_Bool MathTypeFilter::filter(const uno::Sequence<beans::PropertyValue>& rDesc
...
@@ -71,7 +71,7 @@ sal_Bool MathTypeFilter::filter(const uno::Sequence<beans::PropertyValue>& rDesc
{
{
tools
::
SvRef
<
SotStorage
>
aStorage
(
new
SotStorage
(
pStream
.
get
(),
false
));
tools
::
SvRef
<
SotStorage
>
aStorage
(
new
SotStorage
(
pStream
.
get
(),
false
));
// Is this a MathType Storage?
// Is this a MathType Storage?
if
(
aStorage
->
IsStream
(
OUString
(
"Equation Native"
)
))
if
(
aStorage
->
IsStream
(
"Equation Native"
))
{
{
if
(
SmModel
*
pModel
=
dynamic_cast
<
SmModel
*>
(
m_xDstDoc
.
get
()))
if
(
SmModel
*
pModel
=
dynamic_cast
<
SmModel
*>
(
m_xDstDoc
.
get
()))
{
{
...
...
starmath/source/view.cxx
Dosyayı görüntüle @
bf6b30ba
...
@@ -2008,7 +2008,7 @@ SmViewShell::SmViewShell(SfxViewFrame *pFrame_, SfxViewShell *)
...
@@ -2008,7 +2008,7 @@ SmViewShell::SmViewShell(SfxViewFrame *pFrame_, SfxViewShell *)
{
{
SetStatusText
(
OUString
());
SetStatusText
(
OUString
());
SetWindow
(
aGraphic
.
get
());
SetWindow
(
aGraphic
.
get
());
SfxShell
::
SetName
(
OUString
(
"SmView"
)
);
SfxShell
::
SetName
(
"SmView"
);
SfxShell
::
SetUndoManager
(
&
GetDoc
()
->
GetEditEngine
().
GetUndoManager
()
);
SfxShell
::
SetUndoManager
(
&
GetDoc
()
->
GetEditEngine
().
GetUndoManager
()
);
SetHelpId
(
HID_SMA_VIEWSHELL_DOCUMENT
);
SetHelpId
(
HID_SMA_VIEWSHELL_DOCUMENT
);
}
}
...
...
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