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
8a6d84fc
Kaydet (Commit)
8a6d84fc
authored
Ara 24, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox: whitespace fixes in WpgContext
Change-Id: I4b4a3f9c4ec2c49c178d2e6a175b3dc307295e97
üst
75e7d6f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
27 deletions
+35
-27
WpgContext.cxx
oox/source/shape/WpgContext.cxx
+29
-25
WpgContext.hxx
oox/source/shape/WpgContext.hxx
+6
-2
No files found.
oox/source/shape/WpgContext.cxx
Dosyayı görüntüle @
8a6d84fc
...
@@ -13,10 +13,13 @@
...
@@ -13,10 +13,13 @@
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
namespace
oox
{
namespace
shape
{
namespace
oox
{
namespace
shape
{
WpgContext
::
WpgContext
(
ContextHandler2Helper
&
rParent
)
WpgContext
::
WpgContext
(
ContextHandler2Helper
&
rParent
)
:
ContextHandler2
(
rParent
)
:
ContextHandler2
(
rParent
)
{
{
mpShape
.
reset
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.GroupShape"
));
mpShape
.
reset
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.GroupShape"
));
}
}
...
@@ -34,32 +37,33 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken
...
@@ -34,32 +37,33 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken
{
{
switch
(
getBaseToken
(
nElementToken
))
switch
(
getBaseToken
(
nElementToken
))
{
{
case
XML_wgp
:
case
XML_wgp
:
break
;
break
;
case
XML_cNvGrpSpPr
:
case
XML_cNvGrpSpPr
:
break
;
break
;
case
XML_grpSpPr
:
case
XML_grpSpPr
:
return
new
oox
::
drawingml
::
ShapePropertiesContext
(
*
this
,
*
mpShape
);
return
new
oox
::
drawingml
::
ShapePropertiesContext
(
*
this
,
*
mpShape
);
break
;
break
;
case
XML_wsp
:
case
XML_wsp
:
{
{
oox
::
drawingml
::
ShapePtr
pShape
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.CustomShape"
));
oox
::
drawingml
::
ShapePtr
pShape
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.CustomShape"
));
return
new
oox
::
drawingml
::
ShapeContext
(
*
this
,
mpShape
,
pShape
);
return
new
oox
::
drawingml
::
ShapeContext
(
*
this
,
mpShape
,
pShape
);
}
}
break
;
break
;
case
XML_grpSp
:
case
XML_grpSp
:
{
{
oox
::
drawingml
::
ShapePtr
pShape
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.GroupShape"
));
oox
::
drawingml
::
ShapePtr
pShape
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.GroupShape"
));
return
new
oox
::
drawingml
::
ShapeGroupContext
(
*
this
,
mpShape
,
pShape
);
return
new
oox
::
drawingml
::
ShapeGroupContext
(
*
this
,
mpShape
,
pShape
);
}
}
break
;
break
;
default
:
default
:
SAL_WARN
(
"oox"
,
"WpgContext::createFastChildContext: unhandled element: "
<<
getBaseToken
(
nElementToken
));
SAL_WARN
(
"oox"
,
"WpgContext::createFastChildContext: unhandled element: "
<<
getBaseToken
(
nElementToken
));
break
;
break
;
}
}
return
0
;
return
0
;
}
}
}
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
oox/source/shape/WpgContext.hxx
Dosyayı görüntüle @
8a6d84fc
...
@@ -13,7 +13,10 @@
...
@@ -13,7 +13,10 @@
#include "oox/core/contexthandler2.hxx"
#include "oox/core/contexthandler2.hxx"
#include "oox/drawingml/shape.hxx"
#include "oox/drawingml/shape.hxx"
namespace
oox
{
namespace
shape
{
namespace
oox
{
namespace
shape
{
/// Wpg is the drawingML equivalent of v:group.
/// Wpg is the drawingML equivalent of v:group.
class
WpgContext
:
public
oox
::
core
::
ContextHandler2
class
WpgContext
:
public
oox
::
core
::
ContextHandler2
...
@@ -31,7 +34,8 @@ protected:
...
@@ -31,7 +34,8 @@ protected:
};
};
}
}
}
}
#endif
#endif
...
...
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