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
34138417
Kaydet (Commit)
34138417
authored
Eyl 20, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
probably a rather ugly hack for inline text frame in a table (bnc#780851)
Change-Id: I2bd76799cf0a5da09664d0e1b1a9adb466633be1
üst
ecb252af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+16
-2
PropertyMap.hxx
writerfilter/source/dmapper/PropertyMap.hxx
+1
-1
No files found.
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
34138417
...
...
@@ -1273,8 +1273,22 @@ void DomainMapper::lcl_attribute(Id nName, Value & val)
case
NS_ooxml
:
:
LN_Value_wordprocessingml_ST_YAlign_center
:
nIntValue
=
text
::
VertOrientation
::
CENTER
;
break
;
case
NS_ooxml
:
:
LN_Value_wordprocessingml_ST_YAlign_bottom
:
case
NS_ooxml
:
:
LN_Value_wordprocessingml_ST_YAlign_outside
:
nIntValue
=
text
::
VertOrientation
::
BOTTOM
;
break
;
case
NS_ooxml
:
:
LN_Value_wordprocessingml_ST_YAlign_inline
:
//todo: what to do with inline - no avail. in WW97 and WW2007
//no break;
case
NS_ooxml
:
:
LN_Value_wordprocessingml_ST_YAlign_inline
:
{
// HACK: This is for bnc#780851, where a table has one cell that has w:framePr,
// which causes that paragraph to be converted to a text frame, and the original
// paragraph object no longer exists, which makes table creation fail and futhermore
// it would be missing in the table layout anyway. So actually no letting that paragraph
// be a text frame "fixes" it. I'm not sure what "inline" is supposed to mean in practice
// anyway, so as long as this doesn't cause trouble elsewhere ...
PropertyMapPtr
pContext
=
m_pImpl
->
GetTopContextOfType
(
CONTEXT_PARAGRAPH
);
if
(
pContext
.
get
()
)
{
ParagraphPropertyMap
*
pParaContext
=
dynamic_cast
<
ParagraphPropertyMap
*
>
(
pContext
.
get
()
);
pParaContext
->
SetFrameMode
(
false
);
}
nIntValue
=
text
::
VertOrientation
::
NONE
;
}
default
:
nIntValue
=
text
::
VertOrientation
::
NONE
;
}
pParaProperties
->
SetyAlign
(
nIntValue
);
...
...
writerfilter/source/dmapper/PropertyMap.hxx
Dosyayı görüntüle @
34138417
...
...
@@ -305,7 +305,7 @@ public:
int
operator
==
(
const
ParagraphProperties
&
);
//does not compare the starting/ending range, m_sParaStyleName and m_nDropCapLength
void
SetFrameMode
(
)
{
m_bFrameMode
=
true
;
}
void
SetFrameMode
(
bool
set
=
true
)
{
m_bFrameMode
=
set
;
}
bool
IsFrameMode
()
const
{
return
m_bFrameMode
;
}
void
SetDropCap
(
sal_Int32
nSet
)
{
m_nDropCap
=
nSet
;
}
...
...
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