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
3d46b394
Kaydet (Commit)
3d46b394
authored
Şub 21, 2013
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#779642: Import vertical layout mode from VML elements.
üst
38302b30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
vmltextbox.hxx
oox/inc/oox/vml/vmltextbox.hxx
+1
-0
vmltextbox.cxx
oox/source/vml/vmltextbox.cxx
+8
-0
vmltextboxcontext.cxx
oox/source/vml/vmltextboxcontext.cxx
+11
-0
No files found.
oox/inc/oox/vml/vmltextbox.hxx
Dosyayı görüntüle @
3d46b394
...
@@ -86,6 +86,7 @@ public:
...
@@ -86,6 +86,7 @@ public:
/// Text distance from the border (inset attribute of v:textbox), valid only if set.
/// Text distance from the border (inset attribute of v:textbox), valid only if set.
bool
borderDistanceSet
;
bool
borderDistanceSet
;
int
borderDistanceLeft
,
borderDistanceTop
,
borderDistanceRight
,
borderDistanceBottom
;
int
borderDistanceLeft
,
borderDistanceTop
,
borderDistanceRight
,
borderDistanceBottom
;
OUString
maLayoutFlow
;
private
:
private
:
typedef
::
std
::
vector
<
TextPortionModel
>
PortionVector
;
typedef
::
std
::
vector
<
TextPortionModel
>
PortionVector
;
...
...
oox/source/vml/vmltextbox.cxx
Dosyayı görüntüle @
3d46b394
...
@@ -21,7 +21,9 @@
...
@@ -21,7 +21,9 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/awt/FontWeight.hpp>
#include <com/sun/star/awt/FontWeight.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/text/XTextAppend.hpp>
#include <com/sun/star/text/XTextAppend.hpp>
#include <com/sun/star/text/WritingMode.hpp>
namespace
oox
{
namespace
oox
{
namespace
vml
{
namespace
vml
{
...
@@ -88,6 +90,12 @@ void TextBox::convert(uno::Reference<drawing::XShape> xShape) const
...
@@ -88,6 +90,12 @@ void TextBox::convert(uno::Reference<drawing::XShape> xShape) const
*
pValues
++
=
*
i
;
*
pValues
++
=
*
i
;
xTextAppend
->
appendTextPortion
(
aIt
->
maText
,
aPropSeq
);
xTextAppend
->
appendTextPortion
(
aIt
->
maText
,
aPropSeq
);
}
}
if
(
maLayoutFlow
==
"vertical"
)
{
uno
::
Reference
<
beans
::
XPropertySet
>
xProperties
(
xShape
,
uno
::
UNO_QUERY
);
xProperties
->
setPropertyValue
(
"TextWritingMode"
,
uno
::
makeAny
(
text
::
WritingMode_TB_RL
)
);
}
}
}
}
// namespace vml
}
// namespace vml
...
...
oox/source/vml/vmltextboxcontext.cxx
Dosyayı görüntüle @
3d46b394
...
@@ -178,6 +178,17 @@ TextBoxContext::TextBoxContext( ContextHandler2Helper& rParent, TextBox& rTextBo
...
@@ -178,6 +178,17 @@ TextBoxContext::TextBoxContext( ContextHandler2Helper& rParent, TextBox& rTextBo
value
.
isEmpty
()
?
"0.05in"
:
value
,
0
,
false
,
false
);
value
.
isEmpty
()
?
"0.05in"
:
value
,
0
,
false
,
false
);
rTextBox
.
borderDistanceSet
=
true
;
rTextBox
.
borderDistanceSet
=
true
;
}
}
OUString
sStyle
=
rAttribs
.
getString
(
XML_style
,
OUString
()
);
sal_Int32
nIndex
=
0
;
while
(
nIndex
>=
0
)
{
OUString
aName
,
aValue
;
if
(
ConversionHelper
::
separatePair
(
aName
,
aValue
,
sStyle
.
getToken
(
0
,
';'
,
nIndex
),
':'
)
)
{
if
(
aName
==
"layout-flow"
)
rTextBox
.
maLayoutFlow
=
aValue
;
}
}
}
}
ContextHandlerRef
TextBoxContext
::
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
)
ContextHandlerRef
TextBoxContext
::
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
)
...
...
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