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
874f0a1b
Kaydet (Commit)
874f0a1b
authored
Şub 18, 2013
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#779642: ignore framePr inside table or the table import won't work
üst
a5cf6acf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
+27
-3
n779642.docx
sw/qa/extras/ooxmlimport/data/n779642.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+9
-0
TableManager.hxx
writerfilter/inc/resourcemodel/TableManager.hxx
+14
-0
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+1
-2
DomainMapper_Impl.cxx
writerfilter/source/dmapper/DomainMapper_Impl.cxx
+3
-1
No files found.
sw/qa/extras/ooxmlimport/data/n779642.docx
0 → 100644
Dosyayı görüntüle @
874f0a1b
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
874f0a1b
...
...
@@ -114,6 +114,7 @@ public:
void
testN793262
();
void
testN793998
();
void
testGroupshapeLine
();
void
testN779642
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -180,6 +181,7 @@ void Test::run()
{
"n793262.docx"
,
&
Test
::
testN793262
},
{
"n793998.docx"
,
&
Test
::
testN793998
},
{
"groupshape-line.docx"
,
&
Test
::
testGroupshapeLine
},
{
"n779642.docx"
,
&
Test
::
testN779642
},
};
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
...
@@ -1159,6 +1161,13 @@ void Test::testN793998()
CPPUNIT_ASSERT
(
nTextPortion
+
nTabPortion
>
nParagraph
-
nRightMargin
);
}
void
Test
::
testN779642
()
{
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTextTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xTables
(
xTextTablesSupplier
->
getTextTables
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
2
),
xTables
->
getCount
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
writerfilter/inc/resourcemodel/TableManager.hxx
Dosyayı görüntüle @
874f0a1b
...
...
@@ -520,6 +520,11 @@ public:
*/
virtual
void
endLevel
();
/**
Tells whether a table has been started or not
*/
bool
isInTable
();
/**
Handle the start of a paragraph group.
*/
...
...
@@ -692,6 +697,15 @@ void TableManager<T, PropertiesPointer>::handle(const T & rHandle)
setHandle
(
rHandle
);
}
template
<
typename
T
,
typename
PropertiesPointer
>
bool
TableManager
<
T
,
PropertiesPointer
>::
isInTable
()
{
bool
bInTable
=
false
;
if
(
!
mTableDataStack
.
empty
()
)
bInTable
=
mTableDataStack
.
top
()
->
getDepth
()
>
0
;
return
bInTable
;
}
template
<
typename
T
,
typename
PropertiesPointer
>
void
TableManager
<
T
,
PropertiesPointer
>::
startLevel
()
{
...
...
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
874f0a1b
...
...
@@ -2902,7 +2902,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
}
break
;
case
NS_ooxml
:
:
LN_CT_PPrBase_framePr
:
// Avoid frames if we're inside a structured document tag, would just cause out
h
er tables fail to create.
// Avoid frames if we're inside a structured document tag, would just cause outer tables fail to create.
if
(
!
m_pImpl
->
GetSdt
())
{
PropertyMapPtr
pContext
=
m_pImpl
->
GetTopContextOfType
(
CONTEXT_PARAGRAPH
);
...
...
@@ -2910,7 +2910,6 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
{
ParagraphPropertyMap
*
pParaContext
=
dynamic_cast
<
ParagraphPropertyMap
*
>
(
pContext
.
get
()
);
pParaContext
->
SetFrameMode
();
}
else
{
...
...
writerfilter/source/dmapper/DomainMapper_Impl.cxx
Dosyayı görüntüle @
874f0a1b
...
...
@@ -727,7 +727,9 @@ void DomainMapper_Impl::CheckUnregisteredFrameConversion( )
{
PropertyNameSupplier
&
rPropNameSupplier
=
PropertyNameSupplier
::
GetPropertyNameSupplier
();
TextAppendContext
&
rAppendContext
=
m_aTextAppendStack
.
top
();
if
(
rAppendContext
.
pLastParagraphProperties
.
get
()
&&
rAppendContext
.
pLastParagraphProperties
->
IsFrameMode
()
)
// n#779642: ignore fly frame inside table as it could lead to messy situations
if
(
rAppendContext
.
pLastParagraphProperties
.
get
()
&&
rAppendContext
.
pLastParagraphProperties
->
IsFrameMode
()
&&
!
getTableManager
().
isInTable
()
)
{
try
{
...
...
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