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
3e8dee1a
Kaydet (Commit)
3e8dee1a
authored
Kas 03, 2011
tarafından
Laurent Alonso
Kaydeden (comit)
Fridrich Štrba
Kas 03, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add possibilty to embed ole object and to pass paragraph borders
üst
5d9a23cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
22 deletions
+34
-22
OdtGenerator.cxx
writerperfect/source/filter/OdtGenerator.cxx
+6
-3
TextRunStyle.cxx
writerperfect/source/filter/TextRunStyle.cxx
+28
-19
No files found.
writerperfect/source/filter/OdtGenerator.cxx
Dosyayı görüntüle @
3e8dee1a
...
@@ -1268,9 +1268,12 @@ void OdtGenerator::insertBinaryObject(const WPXPropertyList &propList, const WPX
...
@@ -1268,9 +1268,12 @@ void OdtGenerator::insertBinaryObject(const WPXPropertyList &propList, const WPX
}
}
}
}
else
else
// assuming we have a binary image that we can just insert as it is
// assuming we have a binary image
or a object_ole
that we can just insert as it is
{
{
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagOpenElement
(
"draw:image"
));
std
::
string
dataType
=
"draw:image"
;
if
(
propList
[
"libwpd:mimetype"
]
->
getStr
()
==
"object/ole"
)
dataType
=
"draw:object-ole"
;
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagOpenElement
(
dataType
.
c_str
()));
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagOpenElement
(
"office:binary-data"
));
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagOpenElement
(
"office:binary-data"
));
...
@@ -1280,7 +1283,7 @@ void OdtGenerator::insertBinaryObject(const WPXPropertyList &propList, const WPX
...
@@ -1280,7 +1283,7 @@ void OdtGenerator::insertBinaryObject(const WPXPropertyList &propList, const WPX
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagCloseElement
(
"office:binary-data"
));
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagCloseElement
(
"office:binary-data"
));
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagCloseElement
(
"draw:image"
));
mpImpl
->
mpCurrentContentElements
->
push_back
(
new
TagCloseElement
(
dataType
.
c_str
()
));
}
}
}
}
...
...
writerperfect/source/filter/TextRunStyle.cxx
Dosyayı görüntüle @
3e8dee1a
...
@@ -69,32 +69,41 @@ void ParagraphStyle::write(OdfDocumentHandler *pHandler) const
...
@@ -69,32 +69,41 @@ void ParagraphStyle::write(OdfDocumentHandler *pHandler) const
if (strcmp(i.key(), "style:list-style-name") == 0)
if (strcmp(i.key(), "style:list-style-name") == 0)
propList.insert("style:list-style-name", i()->getStr());
propList.insert("style:list-style-name", i()->getStr());
#endif
#endif
if
(
strcmp
(
i
.
key
(),
"fo:margin-left"
)
==
0
)
if
(
strncmp
(
i
.
key
(),
"fo:margin-"
,
10
)
==
0
)
propList
.
insert
(
"fo:margin-left"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:margin-right"
)
==
0
)
propList
.
insert
(
"fo:margin-right"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:text-indent"
)
==
0
)
propList
.
insert
(
"fo:text-indent"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:margin-top"
)
==
0
)
propList
.
insert
(
"fo:margin-top"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:margin-bottom"
)
==
0
)
{
{
if
(
i
()
->
getDouble
()
>
0.0
)
if
(
strcmp
(
i
.
key
(),
"fo:margin-left"
)
==
0
||
propList
.
insert
(
"fo:margin-bottom"
,
i
()
->
getStr
());
strcmp
(
i
.
key
(),
"fo:margin-right"
)
==
0
||
else
strcmp
(
i
.
key
(),
"fo:margin-top"
)
==
0
)
propList
.
insert
(
"fo:margin-bottom"
,
0.0
);
propList
.
insert
(
i
.
key
(),
i
()
->
getStr
());
else
if
(
strcmp
(
i
.
key
(),
"fo:margin-bottom"
)
==
0
)
{
if
(
i
()
->
getDouble
()
>
0.0
)
propList
.
insert
(
"fo:margin-bottom"
,
i
()
->
getStr
());
else
propList
.
insert
(
"fo:margin-bottom"
,
0.0
);
}
}
}
if
(
strcmp
(
i
.
key
(),
"fo:line-height"
)
==
0
)
else
if
(
strcmp
(
i
.
key
(),
"fo:text-indent"
)
==
0
)
propList
.
insert
(
"fo:text-indent"
,
i
()
->
getStr
());
else
if
(
strcmp
(
i
.
key
(),
"fo:line-height"
)
==
0
)
propList
.
insert
(
"fo:line-height"
,
i
()
->
getStr
());
propList
.
insert
(
"fo:line-height"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:break-before"
)
==
0
)
else
if
(
strcmp
(
i
.
key
(),
"fo:break-before"
)
==
0
)
propList
.
insert
(
"fo:break-before"
,
i
()
->
getStr
());
propList
.
insert
(
"fo:break-before"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:text-align"
)
==
0
)
else
if
(
strcmp
(
i
.
key
(),
"fo:text-align"
)
==
0
)
propList
.
insert
(
"fo:text-align"
,
i
()
->
getStr
());
propList
.
insert
(
"fo:text-align"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"fo:text-align-last"
)
==
0
)
else
if
(
strcmp
(
i
.
key
(),
"fo:text-align-last"
)
==
0
)
propList
.
insert
(
"fo:text-align-last"
,
i
()
->
getStr
());
propList
.
insert
(
"fo:text-align-last"
,
i
()
->
getStr
());
if
(
strcmp
(
i
.
key
(),
"style:page-number"
)
==
0
)
else
if
(
strcmp
(
i
.
key
(),
"style:page-number"
)
==
0
)
propList
.
insert
(
"style:page-number"
,
i
()
->
getStr
());
propList
.
insert
(
"style:page-number"
,
i
()
->
getStr
());
else
if
(
strncmp
(
i
.
key
(),
"fo:border"
,
9
)
==
0
)
{
if
(
strcmp
(
i
.
key
(),
"fo:border"
)
==
0
||
strcmp
(
i
.
key
(),
"fo:border-left"
)
==
0
||
strcmp
(
i
.
key
(),
"fo:border-right"
)
==
0
||
strcmp
(
i
.
key
(),
"fo:border-top"
)
==
0
||
strcmp
(
i
.
key
(),
"fo:border-bottom"
)
==
0
)
propList
.
insert
(
i
.
key
(),
i
()
->
getStr
());
}
}
}
propList
.
insert
(
"style:justify-single-word"
,
"false"
);
propList
.
insert
(
"style:justify-single-word"
,
"false"
);
...
...
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