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
faeeb183
Kaydet (Commit)
faeeb183
authored
Şub 02, 2001
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
StarOffice XML (Math) .sxm package file format
üst
c412b1a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
+25
-10
document.cxx
starmath/source/document.cxx
+14
-3
mathml.cxx
starmath/source/mathml.cxx
+5
-4
mathml.hxx
starmath/source/mathml.hxx
+6
-3
No files found.
starmath/source/document.cxx
Dosyayı görüntüle @
faeeb183
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: document.cxx,v $
*
* $Revision: 1.
7
$
* $Revision: 1.
8
$
*
* last change: $Author: cmc $ $Date: 2001-02-02 1
0:20:4
7 $
* last change: $Author: cmc $ $Date: 2001-02-02 1
2:50:5
7 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -629,7 +629,10 @@ void SmDocShell::Convert40To50Txt()
BOOL
SmDocShell
::
ConvertFrom
(
SfxMedium
&
rMedium
)
{
BOOL
bSuccess
=
FALSE
;
if
(
rMedium
.
GetFilter
()
->
GetFilterName
().
EqualsAscii
(
"MathML XML (Math)"
))
if
((
rMedium
.
GetFilter
()
->
GetFilterName
().
EqualsAscii
(
"MathML XML (Math)"
))
||
(
rMedium
.
GetFilter
()
->
GetFilterName
().
EqualsAscii
(
"StarOffice XML (Math)"
)))
{
if
(
pTree
)
{
...
...
@@ -820,9 +823,17 @@ BOOL SmDocShell::ConvertTo( SfxMedium &rMedium )
if
(
pFlt
)
{
if
(
pFlt
->
GetFilterName
().
EqualsAscii
(
"StarOffice XML (Math)"
))
{
SmXMLWrapper
aEquation
(
GetModel
());
aEquation
.
SetFlat
(
sal_False
);
bRet
=
aEquation
.
Export
(
rMedium
);
}
else
if
(
pFlt
->
GetFilterName
().
EqualsAscii
(
"MathML XML (Math)"
))
{
SmXMLWrapper
aEquation
(
GetModel
());
aEquation
.
SetFlat
(
sal_True
);
bRet
=
aEquation
.
Export
(
rMedium
);
}
else
if
(
pFlt
->
GetFilterName
().
EqualsAscii
(
"MathType 3.x"
))
...
...
starmath/source/mathml.cxx
Dosyayı görüntüle @
faeeb183
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: mathml.cxx,v $
*
* $Revision: 1.
7
$
* $Revision: 1.
8
$
*
* last change: $Author: cmc $ $Date: 2001-02-02 1
0:20:4
7 $
* last change: $Author: cmc $ $Date: 2001-02-02 1
2:50:5
7 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -390,9 +390,10 @@ sal_Bool SmXMLWrapper::Export(SfxMedium &rMedium)
uno
::
Reference
<
io
::
XOutputStream
>
xOut
;
SvStorageStreamRef
xDocStream
;
if
(
rMedium
.
IsStorage
())
if
(
!
bFlat
)
//Storage (Package) of Stream
{
xDocStream
=
rMedium
.
GetStorage
()
->
OpenStream
SvStorage
*
pStg
=
rMedium
.
GetOutputStorage
(
sal_True
);
xDocStream
=
pStg
->
OpenStream
(
C2S
(
"Content.xml"
),
STREAM_WRITE
|
STREAM_SHARE_DENYWRITE
);
xOut
=
new
utl
::
OOutputStreamWrapper
(
*
xDocStream
);
}
...
...
starmath/source/mathml.hxx
Dosyayı görüntüle @
faeeb183
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: mathml.hxx,v $
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
* last change: $Author: cmc $ $Date: 2001-02-02 1
0:20:4
7 $
* last change: $Author: cmc $ $Date: 2001-02-02 1
2:50:5
7 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -77,11 +77,14 @@ class SfxMedium;
class
SmXMLWrapper
{
public
:
SmXMLWrapper
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>
&
rRef
)
:
rModel
(
rRef
)
{};
SmXMLWrapper
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>
&
rRef
)
:
rModel
(
rRef
)
,
bFlat
(
sal_True
)
{};
sal_Bool
Import
(
SfxMedium
&
rMedium
);
sal_Bool
Export
(
SfxMedium
&
rMedium
);
void
SetFlat
(
sal_Bool
bIn
)
{
bFlat
=
bIn
;}
private
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>
&
rModel
;
sal_Bool
bFlat
;
//set true for export to flat .mml, set false for
//export to a .sxm (or whatever) package
};
...
...
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