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
c953690b
Kaydet (Commit)
c953690b
authored
Ara 12, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: let ImportFilter only assume that DomainMapper is a Stream
Change-Id: I2e0db194357657df81d8cd94f42cdfbd2c3a2664
üst
eb14f3d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+14
-0
ImportFilter.cxx
writerfilter/source/filter/ImportFilter.cxx
+0
-6
No files found.
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
c953690b
...
@@ -169,6 +169,20 @@ DomainMapper::~DomainMapper()
...
@@ -169,6 +169,20 @@ DomainMapper::~DomainMapper()
// Apply the document settings after everything else
// Apply the document settings after everything else
m_pImpl
->
GetSettingsTable
()
->
ApplyProperties
(
m_pImpl
->
GetTextDocument
(
)
);
m_pImpl
->
GetSettingsTable
()
->
ApplyProperties
(
m_pImpl
->
GetTextDocument
(
)
);
// Grab-bag handling
comphelper
::
SequenceAsHashMap
aProperties
;
// Add the saved w:themeFontLang setting
aProperties
[
"ThemeFontLangProps"
]
=
uno
::
makeAny
(
GetThemeFontLangProperties
());
// Add the saved compat settings
aProperties
[
"CompatSettings"
]
=
uno
::
makeAny
(
GetCompatSettings
());
uno
::
Reference
<
beans
::
XPropertySet
>
xDocProps
(
m_pImpl
->
GetTextDocument
(),
uno
::
UNO_QUERY
);
if
(
xDocProps
.
is
())
{
comphelper
::
SequenceAsHashMap
aGrabBag
(
xDocProps
->
getPropertyValue
(
"InteropGrabBag"
));
aGrabBag
.
update
(
aProperties
);
xDocProps
->
setPropertyValue
(
"InteropGrabBag"
,
uno
::
Any
(
aGrabBag
.
getAsConstPropertyValueList
()));
}
}
}
catch
(
const
uno
::
Exception
&
rEx
)
catch
(
const
uno
::
Exception
&
rEx
)
{
{
...
...
writerfilter/source/filter/ImportFilter.cxx
Dosyayı görüntüle @
c953690b
...
@@ -121,9 +121,6 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
...
@@ -121,9 +121,6 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
aGrabBagProperties
[
"OOXActiveX"
]
=
uno
::
makeAny
(
pDocument
->
getActiveXDomList
()
);
aGrabBagProperties
[
"OOXActiveX"
]
=
uno
::
makeAny
(
pDocument
->
getActiveXDomList
()
);
aGrabBagProperties
[
"OOXActiveXBin"
]
=
uno
::
makeAny
(
pDocument
->
getActiveXBinList
()
);
aGrabBagProperties
[
"OOXActiveXBin"
]
=
uno
::
makeAny
(
pDocument
->
getActiveXBinList
()
);
// Adding the saved w:themeFontLang setting
aGrabBagProperties
[
"ThemeFontLangProps"
]
=
uno
::
makeAny
(
aDomainMapper
->
GetThemeFontLangProperties
()
);
// Adding the saved Glossary Documnet DOM to the document's grab bag
// Adding the saved Glossary Documnet DOM to the document's grab bag
aGrabBagProperties
[
"OOXGlossary"
]
=
uno
::
makeAny
(
pDocument
->
getGlossaryDocDom
()
);
aGrabBagProperties
[
"OOXGlossary"
]
=
uno
::
makeAny
(
pDocument
->
getGlossaryDocDom
()
);
aGrabBagProperties
[
"OOXGlossaryDom"
]
=
uno
::
makeAny
(
pDocument
->
getGlossaryDomList
()
);
aGrabBagProperties
[
"OOXGlossaryDom"
]
=
uno
::
makeAny
(
pDocument
->
getGlossaryDomList
()
);
...
@@ -131,9 +128,6 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
...
@@ -131,9 +128,6 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
// Adding the saved embedding document to document's grab bag
// Adding the saved embedding document to document's grab bag
aGrabBagProperties
[
"OOXEmbeddings"
]
=
uno
::
makeAny
(
pDocument
->
getEmbeddingsList
()
);
aGrabBagProperties
[
"OOXEmbeddings"
]
=
uno
::
makeAny
(
pDocument
->
getEmbeddingsList
()
);
// Adding the saved compat settings
aGrabBagProperties
[
"CompatSettings"
]
=
uno
::
makeAny
(
aDomainMapper
->
GetCompatSettings
()
);
putPropertiesToDocumentGrabBag
(
aGrabBagProperties
);
putPropertiesToDocumentGrabBag
(
aGrabBagProperties
);
writerfilter
::
ooxml
::
OOXMLStream
::
Pointer_t
pVBAProjectStream
(
writerfilter
::
ooxml
::
OOXMLDocumentFactory
::
createStream
(
pDocStream
,
writerfilter
::
ooxml
::
OOXMLStream
::
VBAPROJECT
));
writerfilter
::
ooxml
::
OOXMLStream
::
Pointer_t
pVBAProjectStream
(
writerfilter
::
ooxml
::
OOXMLDocumentFactory
::
createStream
(
pDocStream
,
writerfilter
::
ooxml
::
OOXMLStream
::
VBAPROJECT
));
...
...
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