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
7e1bb64f
Kaydet (Commit)
7e1bb64f
authored
Ara 04, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:mergeclasses OOXMLPropertyImpl into OOXMLProperty
Change-Id: I1447cfc76c529332450c90a21b6525d3103fe852
üst
9f0f30fa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
89 deletions
+53
-89
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
writerfilter.py
solenv/gdb/libreoffice/writerfilter.py
+2
-2
OOXMLDocumentImpl.cxx
writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
+4
-4
OOXMLFastContextHandler.cxx
writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+25
-38
OOXMLPropertySet.cxx
writerfilter/source/ooxml/OOXMLPropertySet.cxx
+11
-15
OOXMLPropertySet.hxx
writerfilter/source/ooxml/OOXMLPropertySet.hxx
+11
-29
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
7e1bb64f
...
...
@@ -394,7 +394,6 @@ merge writerfilter::Table with writerfilter::LoggedTable
merge writerfilter::dmapper::TableManager with writerfilter::dmapper::DomainMapperTableManager
merge writerfilter::ooxml::OOXMLDocument with writerfilter::ooxml::OOXMLDocumentImpl
merge writerfilter::ooxml::OOXMLFastContextHandlerLinear with writerfilter::ooxml::OOXMLFastContextHandlerMath
merge writerfilter::ooxml::OOXMLProperty with writerfilter::ooxml::OOXMLPropertyImpl
merge writerfilter::ooxml::OOXMLStream with writerfilter::ooxml::OOXMLStreamImpl
merge writerfilter::rtftok::RTFDocument with writerfilter::rtftok::RTFDocumentImpl
merge ww8::WW8Struct with ww8::WW8Sttb
...
...
solenv/gdb/libreoffice/writerfilter.py
Dosyayı görüntüle @
7e1bb64f
...
...
@@ -24,7 +24,7 @@ class OOXMLPropertySetPrinter(object):
return
children
.
__iter__
()
class
OOXMLPropertyPrinter
(
object
):
'''Prints writerfilter::ooxml::OOXMLProperty
Impl
'''
'''Prints writerfilter::ooxml::OOXMLProperty'''
def
__init__
(
self
,
typename
,
value
):
self
.
typename
=
typename
...
...
@@ -73,7 +73,7 @@ def build_pretty_printers():
global
printer
printer
=
printing
.
Printer
(
"libreoffice/writerfilter"
)
printer
.
add
(
'writerfilter::ooxml::OOXMLProperty
Impl
'
,
OOXMLPropertyPrinter
)
printer
.
add
(
'writerfilter::ooxml::OOXMLProperty'
,
OOXMLPropertyPrinter
)
printer
.
add
(
'writerfilter::ooxml::OOXMLPropertySet'
,
OOXMLPropertySetPrinter
)
printer
.
add
(
'writerfilter::ooxml::OOXMLPropertySetValue'
,
OOXMLPropertySetValuePrinter
)
printer
.
add
(
'writerfilter::ooxml::OOXMLStringValue'
,
OOXMLStringValuePrinter
)
...
...
writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
Dosyayı görüntüle @
7e1bb64f
...
...
@@ -353,8 +353,8 @@ OOXMLPropertySet * OOXMLDocumentImpl::getPicturePropSet
OOXMLValue
::
Pointer_t
pPayloadValue
(
new
OOXMLBinaryValue
(
pPicture
));
OOXMLProperty
::
Pointer_t
pPayloadProperty
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_payload
,
pPayloadValue
,
OOXMLProperty
Impl
::
ATTRIBUTE
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_payload
,
pPayloadValue
,
OOXMLProperty
::
ATTRIBUTE
));
OOXMLPropertySet
::
Pointer_t
pBlipSet
(
new
OOXMLPropertySet
);
...
...
@@ -363,8 +363,8 @@ OOXMLPropertySet * OOXMLDocumentImpl::getPicturePropSet
OOXMLValue
::
Pointer_t
pBlipValue
(
new
OOXMLPropertySetValue
(
pBlipSet
));
OOXMLProperty
::
Pointer_t
pBlipProperty
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_blip
,
pBlipValue
,
OOXMLProperty
Impl
::
ATTRIBUTE
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_blip
,
pBlipValue
,
OOXMLProperty
::
ATTRIBUTE
));
OOXMLPropertySet
*
pProps
=
new
OOXMLPropertySet
;
...
...
writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
Dosyayı görüntüle @
7e1bb64f
...
...
@@ -335,13 +335,13 @@ void OOXMLFastContextHandler::sendTableDepth() const
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
mnTableDepth
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
...
...
@@ -420,7 +420,7 @@ void OOXMLFastContextHandler::startSdt()
{
OOXMLPropertySet
*
pProps
=
new
OOXMLPropertySet
;
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_CT_SdtBlock_sdtContent
,
pVal
,
OOXMLPropertyImpl
::
ATTRIBUTE
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_CT_SdtBlock_sdtContent
,
pVal
,
OOXMLProperty
::
ATTRIBUTE
));
pProps
->
add
(
pProp
);
mpStream
->
props
(
writerfilter
::
Reference
<
Properties
>::
Pointer_t
(
pProps
));
}
...
...
@@ -429,7 +429,7 @@ void OOXMLFastContextHandler::endSdt()
{
OOXMLPropertySet
*
pProps
=
new
OOXMLPropertySet
;
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_CT_SdtBlock_sdtEndContent
,
pVal
,
OOXMLPropertyImpl
::
ATTRIBUTE
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_CT_SdtBlock_sdtEndContent
,
pVal
,
OOXMLProperty
::
ATTRIBUTE
));
pProps
->
add
(
pProp
);
mpStream
->
props
(
writerfilter
::
Reference
<
Properties
>::
Pointer_t
(
pProps
));
}
...
...
@@ -656,8 +656,7 @@ void OOXMLFastContextHandler::propagateCharacterPropertiesAsSet(const Id & rId)
OOXMLValue
::
Pointer_t
pValue
(
new
OOXMLPropertySetValue
(
getPropertySet
()));
OOXMLPropertySet
::
Pointer_t
pPropertySet
(
new
OOXMLPropertySet
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
rId
,
pValue
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
rId
,
pValue
,
OOXMLProperty
::
SPRM
));
pPropertySet
->
add
(
pProp
);
mpParserState
->
setCharacterProperties
(
pPropertySet
);
...
...
@@ -706,8 +705,7 @@ void OOXMLFastContextHandler::sendPropertiesWithId(const Id & rId)
OOXMLValue
::
Pointer_t
pValue
(
new
OOXMLPropertySetValue
(
getPropertySet
()));
OOXMLPropertySet
::
Pointer_t
pPropertySet
(
new
OOXMLPropertySet
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
rId
,
pValue
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
rId
,
pValue
,
OOXMLProperty
::
SPRM
));
pPropertySet
->
add
(
pProp
);
mpStream
->
props
(
pPropertySet
);
...
...
@@ -834,9 +832,7 @@ void OOXMLFastContextHandler::sendPropertyToParent()
if
(
pProps
.
get
()
!=
nullptr
)
{
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
mId
,
getValue
(),
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
mId
,
getValue
(),
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
}
...
...
@@ -857,8 +853,7 @@ void OOXMLFastContextHandler::sendPropertiesToParent()
OOXMLValue
::
Pointer_t
pValue
(
new
OOXMLPropertySetValue
(
getPropertySet
()));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
getId
(),
pValue
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
getId
(),
pValue
,
OOXMLProperty
::
SPRM
));
pParentProps
->
add
(
pProp
);
...
...
@@ -889,8 +884,7 @@ void OOXMLFastContextHandlerStream::newProperty(const Id & rId,
{
if
(
rId
!=
0x0
)
{
OOXMLPropertyImpl
::
Pointer_t
pProperty
(
new
OOXMLPropertyImpl
(
rId
,
pVal
,
OOXMLPropertyImpl
::
ATTRIBUTE
));
OOXMLProperty
::
Pointer_t
pProperty
(
new
OOXMLProperty
(
rId
,
pVal
,
OOXMLProperty
::
ATTRIBUTE
));
mpPropertySetAttrs
->
add
(
pProperty
);
}
...
...
@@ -964,8 +958,7 @@ void OOXMLFastContextHandlerProperties::newProperty
{
if
(
rId
!=
0x0
)
{
OOXMLPropertyImpl
::
Pointer_t
pProperty
(
new
OOXMLPropertyImpl
(
rId
,
pVal
,
OOXMLPropertyImpl
::
ATTRIBUTE
));
OOXMLProperty
::
Pointer_t
pProperty
(
new
OOXMLProperty
(
rId
,
pVal
,
OOXMLProperty
::
ATTRIBUTE
));
mpPropertySet
->
add
(
pProperty
);
}
...
...
@@ -1303,20 +1296,17 @@ void OOXMLFastContextHandlerTextTableCell::endCell()
OOXMLPropertySet
*
pProps
=
new
OOXMLPropertySet
;
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
mnTableDepth
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLBooleanValue
::
Create
(
mnTableDepth
>
0
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
NS_ooxml
::
LN_tblCell
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblCell
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
...
...
@@ -1351,20 +1341,17 @@ void OOXMLFastContextHandlerTextTableRow::endRow()
OOXMLPropertySet
*
pProps
=
new
OOXMLPropertySet
;
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
mnTableDepth
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLPropertyImpl
(
NS_ooxml
::
LN_tblRow
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblRow
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
...
...
@@ -1398,19 +1385,19 @@ void OOXMLFastContextHandlerTextTableRow::handleGridBefore( OOXMLValue::Pointer_
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
mnTableDepth
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblDepth
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
1
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_inTbl
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLBooleanValue
::
Create
(
mnTableDepth
>
0
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_tblCell
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblCell
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
...
...
@@ -1426,7 +1413,7 @@ void OOXMLFastContextHandlerTextTableRow::handleGridBefore( OOXMLValue::Pointer_
pBorderProps
->
add
(
fakeNoBorder
(
borders
[
j
]
));
OOXMLValue
::
Pointer_t
pValue
(
new
OOXMLPropertySetValue
(
pBorderProps
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_CT_TcPrBase_tcBorders
,
pValue
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_CT_TcPrBase_tcBorders
,
pValue
,
OOXMLProperty
::
SPRM
));
pCellProps
->
add
(
pProp
);
mpParserState
->
setCellProperties
(
pCellProps
);
}
...
...
@@ -1442,11 +1429,11 @@ OOXMLProperty::Pointer_t OOXMLFastContextHandlerTextTableRow::fakeNoBorder( Id i
OOXMLPropertySet
::
Pointer_t
pProps
(
new
OOXMLPropertySet
);
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
0
);
OOXMLProperty
::
Pointer_t
pPropVal
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_CT_Border_val
,
pVal
,
OOXMLPropertyImpl
::
ATTRIBUTE
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_CT_Border_val
,
pVal
,
OOXMLProperty
::
ATTRIBUTE
));
pProps
->
add
(
pPropVal
);
OOXMLValue
::
Pointer_t
pValue
(
new
OOXMLPropertySetValue
(
pProps
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
id
,
pValue
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
id
,
pValue
,
OOXMLProperty
::
SPRM
));
return
pProp
;
}
...
...
@@ -1477,7 +1464,7 @@ void OOXMLFastContextHandlerTextTable::lcl_startFastElement
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
mnTableDepth
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_tblStart
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblStart
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
mpParserState
->
setCharacterProperties
(
pProps
);
...
...
@@ -1495,7 +1482,7 @@ void OOXMLFastContextHandlerTextTable::lcl_endFastElement
{
OOXMLValue
::
Pointer_t
pVal
=
OOXMLIntegerValue
::
Create
(
mnTableDepth
);
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_tblEnd
,
pVal
,
OOXMLPropertyImpl
::
SPRM
));
(
new
OOXMLProperty
(
NS_ooxml
::
LN_tblEnd
,
pVal
,
OOXMLProperty
::
SPRM
));
pProps
->
add
(
pProp
);
}
mpParserState
->
setCharacterProperties
(
pProps
);
...
...
@@ -2036,7 +2023,7 @@ void OOXMLFastContextHandlerMath::process()
{
OOXMLPropertySet
*
pProps
=
new
OOXMLPropertySet
;
OOXMLValue
::
Pointer_t
pVal
(
new
OOXMLStarMathValue
(
ref
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
Impl
(
NS_ooxml
::
LN_starmath
,
pVal
,
OOXMLPropertyImpl
::
ATTRIBUTE
));
OOXMLProperty
::
Pointer_t
pProp
(
new
OOXMLProperty
(
NS_ooxml
::
LN_starmath
,
pVal
,
OOXMLProperty
::
ATTRIBUTE
));
pProps
->
add
(
pProp
);
mpStream
->
props
(
writerfilter
::
Reference
<
Properties
>::
Pointer_t
(
pProps
));
}
...
...
writerfilter/source/ooxml/OOXMLPropertySet.cxx
Dosyayı görüntüle @
7e1bb64f
...
...
@@ -30,31 +30,27 @@ namespace ooxml
using
namespace
::
std
;
using
namespace
com
::
sun
::
star
;
OOXMLProperty
::~
OOXMLProperty
()
{
}
OOXMLPropertyImpl
::
OOXMLPropertyImpl
(
Id
id
,
OOXMLValue
::
Pointer_t
pValue
,
OOXMLPropertyImpl
::
Type_t
eType
)
OOXMLProperty
::
OOXMLProperty
(
Id
id
,
OOXMLValue
::
Pointer_t
pValue
,
OOXMLProperty
::
Type_t
eType
)
:
mId
(
id
),
mpValue
(
pValue
),
meType
(
eType
)
{
}
OOXMLProperty
Impl
::
OOXMLPropertyImpl
(
const
OOXMLPropertyImpl
&
rSprm
)
:
OOXMLProperty
(),
mId
(
rSprm
.
mId
),
mpValue
(
rSprm
.
mpValue
),
meType
(
rSprm
.
meType
)
OOXMLProperty
::
OOXMLProperty
(
const
OOXMLProperty
&
rSprm
)
:
mId
(
rSprm
.
mId
),
mpValue
(
rSprm
.
mpValue
),
meType
(
rSprm
.
meType
)
{
}
OOXMLProperty
Impl
::~
OOXMLPropertyImpl
()
OOXMLProperty
::~
OOXMLProperty
()
{
}
sal_uInt32
OOXMLProperty
Impl
::
getId
()
const
sal_uInt32
OOXMLProperty
::
getId
()
const
{
return
mId
;
}
Value
::
Pointer_t
OOXMLProperty
Impl
::
getValue
()
Value
::
Pointer_t
OOXMLProperty
::
getValue
()
{
Value
::
Pointer_t
pResult
;
...
...
@@ -66,7 +62,7 @@ Value::Pointer_t OOXMLPropertyImpl::getValue()
return
pResult
;
}
writerfilter
::
Reference
<
Properties
>::
Pointer_t
OOXMLProperty
Impl
::
getProps
()
writerfilter
::
Reference
<
Properties
>::
Pointer_t
OOXMLProperty
::
getProps
()
{
writerfilter
::
Reference
<
Properties
>::
Pointer_t
pResult
;
...
...
@@ -77,7 +73,7 @@ writerfilter::Reference<Properties>::Pointer_t OOXMLPropertyImpl::getProps()
}
#ifdef DEBUG_WRITERFILTER
string
OOXMLProperty
Impl
::
getName
()
const
string
OOXMLProperty
::
getName
()
const
{
string
sResult
;
...
...
@@ -99,7 +95,7 @@ string OOXMLPropertyImpl::getName() const
#endif
#ifdef DEBUG_WRITERFILTER
string
OOXMLProperty
Impl
::
toString
()
const
string
OOXMLProperty
::
toString
()
const
{
string
sResult
=
"("
;
...
...
@@ -115,7 +111,7 @@ string OOXMLPropertyImpl::toString() const
}
#endif
void
OOXMLProperty
Impl
::
resolve
(
writerfilter
::
Properties
&
rProperties
)
void
OOXMLProperty
::
resolve
(
writerfilter
::
Properties
&
rProperties
)
{
writerfilter
::
Properties
*
pProperties
=
nullptr
;
pProperties
=
&
rProperties
;
...
...
writerfilter/source/ooxml/OOXMLPropertySet.hxx
Dosyayı görüntüle @
7e1bb64f
...
...
@@ -28,23 +28,6 @@ namespace writerfilter {
namespace
ooxml
{
class
OOXMLProperty
:
public
Sprm
{
public
:
typedef
std
::
shared_ptr
<
OOXMLProperty
>
Pointer_t
;
virtual
~
OOXMLProperty
();
virtual
sal_uInt32
getId
()
const
override
=
0
;
virtual
Value
::
Pointer_t
getValue
()
override
=
0
;
virtual
writerfilter
::
Reference
<
Properties
>::
Pointer_t
getProps
()
override
=
0
;
#ifdef DEBUG_WRITERFILTER
virtual
std
::
string
getName
()
const
override
=
0
;
virtual
std
::
string
toString
()
const
override
=
0
;
#endif
virtual
void
resolve
(
Properties
&
rProperties
)
=
0
;
};
class
OOXMLValue
:
public
Value
{
public
:
...
...
@@ -64,9 +47,10 @@ public:
virtual
OOXMLValue
*
clone
()
const
;
};
class
OOXMLProperty
Impl
:
public
OOXMLProperty
class
OOXMLProperty
:
public
Sprm
{
public
:
typedef
std
::
shared_ptr
<
OOXMLProperty
>
Pointer_t
;
enum
Type_t
{
SPRM
,
ATTRIBUTE
};
private
:
Id
mId
;
...
...
@@ -74,20 +58,18 @@ private:
Type_t
meType
;
public
:
typedef
std
::
shared_ptr
<
OOXMLProperty
>
Pointer_t
;
OOXMLPropertyImpl
(
Id
id
,
OOXMLValue
::
Pointer_t
pValue
,
Type_t
eType
);
OOXMLPropertyImpl
(
const
OOXMLPropertyImpl
&
rSprm
);
virtual
~
OOXMLPropertyImpl
();
OOXMLProperty
(
Id
id
,
OOXMLValue
::
Pointer_t
pValue
,
Type_t
eType
);
OOXMLProperty
(
const
OOXMLProperty
&
rSprm
);
virtual
~
OOXMLProperty
();
virtual
sal_uInt32
getId
()
const
override
;
virtual
Value
::
Pointer_t
getValue
()
override
;
virtual
writerfilter
::
Reference
<
Properties
>::
Pointer_t
getProps
()
override
;
sal_uInt32
getId
()
const
;
Value
::
Pointer_t
getValue
()
;
writerfilter
::
Reference
<
Properties
>::
Pointer_t
getProps
()
;
#ifdef DEBUG_WRITERFILTER
virtual
std
::
string
getName
()
const
override
;
virtual
std
::
string
toString
()
const
override
;
std
::
string
getName
()
const
;
std
::
string
toString
()
const
;
#endif
v
irtual
void
resolve
(
Properties
&
rProperties
)
override
;
v
oid
resolve
(
Properties
&
rProperties
)
;
};
class
OOXMLBinaryValue
:
public
OOXMLValue
...
...
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