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
211916f8
Kaydet (Commit)
211916f8
authored
Eyl 26, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#780843 fix docx import of cont section's header/footer on title page
Change-Id: I129e154a3fea8a96607dc6350a99f4d6ca68196e
üst
f4a4ba9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
PropertyMap.cxx
writerfilter/source/dmapper/PropertyMap.cxx
+29
-0
No files found.
writerfilter/source/dmapper/PropertyMap.cxx
Dosyayı görüntüle @
211916f8
...
@@ -1001,6 +1001,35 @@ void SectionPropertyMap::CloseSectionGroup( DomainMapper_Impl& rDM_Impl )
...
@@ -1001,6 +1001,35 @@ void SectionPropertyMap::CloseSectionGroup( DomainMapper_Impl& rDM_Impl )
if
((
m_bTitlePage
&&
m_bIsFirstSection
)
||
!
m_bTitlePage
)
if
((
m_bTitlePage
&&
m_bIsFirstSection
)
||
!
m_bTitlePage
)
xRangeProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_PAGE_DESC_NAME
),
xRangeProperties
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_PAGE_DESC_NAME
),
uno
::
makeAny
(
m_bTitlePage
?
m_sFirstPageStyleName
:
m_sFollowPageStyleName
));
uno
::
makeAny
(
m_bTitlePage
?
m_sFirstPageStyleName
:
m_sFollowPageStyleName
));
else
{
// In this miserable situation (second or later section on a title page), make sure that the header / footer is not lost.
uno
::
Reference
<
container
::
XNameAccess
>
xPageStyles
(
rDM_Impl
.
GetPageStyles
(),
uno
::
UNO_QUERY
);
if
(
xPageStyles
->
hasByName
(
m_sFollowPageStyleName
))
{
uno
::
Reference
<
beans
::
XPropertySet
>
xCurrent
(
xPageStyles
->
getByName
(
rPropNameSupplier
.
GetName
(
PROP_STANDARD
)),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xFollow
(
xPageStyles
->
getByName
(
m_sFollowPageStyleName
),
uno
::
UNO_QUERY
);
if
(
xFollow
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_HEADER_IS_ON
)).
get
<
sal_Bool
>
())
{
xCurrent
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_HEADER_IS_ON
),
uno
::
makeAny
(
sal_True
));
uno
::
Reference
<
text
::
XTextRange
>
xCurrentRange
(
xCurrent
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_HEADER_TEXT
)),
uno
::
UNO_QUERY_THROW
);
xCurrentRange
->
setString
(
""
);
uno
::
Reference
<
text
::
XTextCopy
>
xCurrentTxt
(
xCurrentRange
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XTextCopy
>
xFollowTxt
(
xFollow
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_HEADER_TEXT
)),
uno
::
UNO_QUERY_THROW
);
xCurrentTxt
->
copyText
(
xFollowTxt
);
}
if
(
xFollow
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_FOOTER_IS_ON
)).
get
<
sal_Bool
>
())
{
xCurrent
->
setPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_FOOTER_IS_ON
),
uno
::
makeAny
(
sal_True
));
uno
::
Reference
<
text
::
XTextRange
>
xCurrentRange
(
xCurrent
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_FOOTER_TEXT
)),
uno
::
UNO_QUERY_THROW
);
xCurrentRange
->
setString
(
""
);
uno
::
Reference
<
text
::
XTextCopy
>
xCurrentTxt
(
xCurrentRange
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XTextCopy
>
xFollowTxt
(
xFollow
->
getPropertyValue
(
rPropNameSupplier
.
GetName
(
PROP_FOOTER_TEXT
)),
uno
::
UNO_QUERY_THROW
);
xCurrentTxt
->
copyText
(
xFollowTxt
);
}
}
}
// handle page breaks with odd/even page numbering
// handle page breaks with odd/even page numbering
style
::
PageStyleLayout
nPageStyleLayout
(
style
::
PageStyleLayout_ALL
);
style
::
PageStyleLayout
nPageStyleLayout
(
style
::
PageStyleLayout_ALL
);
if
(
m_nBreakType
==
3
)
if
(
m_nBreakType
==
3
)
...
...
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