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
5e999832
Kaydet (Commit)
5e999832
authored
Mar 14, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use comphelper::containerToSequence()
Change-Id: I0dcc582e9cb2b1021895e7962e1ec96195f1f844
üst
d8bb2a97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
SettingsTable.cxx
writerfilter/source/dmapper/SettingsTable.cxx
+12
-14
No files found.
writerfilter/source/dmapper/SettingsTable.cxx
Dosyayı görüntüle @
5e999832
...
...
@@ -17,17 +17,19 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <stdio.h>
#include <SettingsTable.hxx>
#include <vector>
#include <rtl/ustring.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <
SettingsTabl
e.hxx>
#include <
comphelper/sequenc
e.hxx>
#include <ooxml/resourceids.hxx>
#include <ConversionHelper.hxx>
#include "dmapperLoggers.hxx"
#include "util.hxx"
...
...
@@ -82,7 +84,7 @@ struct SettingsTable_Impl
bool
m_bMirrorMargin
;
uno
::
Sequence
<
beans
::
PropertyValue
>
m_pThemeFontLangProps
;
uno
::
Sequence
<
beans
::
PropertyValue
>
m_p
CompatSettings
;
std
::
vector
<
beans
::
PropertyValue
>
m_a
CompatSettings
;
uno
::
Sequence
<
beans
::
PropertyValue
>
m_pCurrentCompatSetting
;
SettingsTable_Impl
(
DomainMapper
&
rDMapper
,
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
&
xTextFactory
)
:
...
...
@@ -113,7 +115,6 @@ struct SettingsTable_Impl
,
m_bSplitPgBreakAndParaMark
(
false
)
,
m_bMirrorMargin
(
false
)
,
m_pThemeFontLangProps
(
3
)
,
m_pCompatSettings
(
0
)
,
m_pCurrentCompatSetting
(
3
)
{}
...
...
@@ -275,10 +276,10 @@ void SettingsTable::lcl_sprm(Sprm& rSprm)
{
pProperties
->
resolve
(
*
this
);
sal_Int32
nLength
=
m_pImpl
->
m_pCompatSettings
.
getLength
()
;
m_pImpl
->
m_pCompatSettings
.
realloc
(
nLength
+
1
)
;
m_pImpl
->
m_pCompatSettings
[
nLength
].
Name
=
"compatSetting"
;
m_pImpl
->
m_
pCompatSettings
[
nLength
].
Value
=
uno
::
makeAny
(
m_pImpl
->
m_pCurrentCompatSetting
);
beans
::
PropertyValue
aValue
;
aValue
.
Name
=
"compatSetting"
;
aValue
.
Value
=
uno
::
makeAny
(
m_pImpl
->
m_pCurrentCompatSetting
)
;
m_pImpl
->
m_
aCompatSettings
.
push_back
(
aValue
);
}
}
break
;
...
...
@@ -301,10 +302,8 @@ void SettingsTable::lcl_entry(int /*pos*/, writerfilter::Reference<Properties>::
{
ref
->
resolve
(
*
this
);
}
//returns default TabStop in 1/100th mm
//returns default TabStop in 1/100th mm
int
SettingsTable
::
GetDefaultTabStop
()
const
{
return
ConversionHelper
::
convertTwipToMM100
(
m_pImpl
->
m_nDefaultTabStop
);
...
...
@@ -372,7 +371,7 @@ uno::Sequence<beans::PropertyValue> SettingsTable::GetThemeFontLangProperties()
uno
::
Sequence
<
beans
::
PropertyValue
>
SettingsTable
::
GetCompatSettings
()
const
{
return
m_pImpl
->
m_pCompatSettings
;
return
comphelper
::
containerToSequence
(
m_pImpl
->
m_aCompatSettings
)
;
}
void
SettingsTable
::
ApplyProperties
(
uno
::
Reference
<
text
::
XTextDocument
>
const
&
xDoc
)
...
...
@@ -399,7 +398,6 @@ void SettingsTable::ApplyProperties(uno::Reference<text::XTextDocument> const& x
}
}
}
//namespace dmapper
}
//namespace writerfilter
...
...
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