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
25ede145
Kaydet (Commit)
25ede145
authored
Nis 20, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix legend pos overlay MSO 2007 vs OOXML
Change-Id: I277bdd76e79310992bbf645d9e215f4dbba47554
üst
f3ec35db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
titlemodel.hxx
oox/inc/drawingml/chart/titlemodel.hxx
+1
-1
chartspacefragment.cxx
oox/source/drawingml/chart/chartspacefragment.cxx
+2
-3
titlecontext.cxx
oox/source/drawingml/chart/titlecontext.cxx
+2
-1
titlemodel.cxx
oox/source/drawingml/chart/titlemodel.cxx
+2
-2
No files found.
oox/inc/drawingml/chart/titlemodel.hxx
Dosyayı görüntüle @
25ede145
...
...
@@ -74,7 +74,7 @@ struct LegendModel
sal_Int32
mnPosition
;
/// Legend position.
bool
mbOverlay
;
/// True = legend may overlay other objects.
explicit
LegendModel
();
explicit
LegendModel
(
bool
bMSO2007Doc
);
~
LegendModel
();
};
...
...
oox/source/drawingml/chart/chartspacefragment.cxx
Dosyayı görüntüle @
25ede145
...
...
@@ -43,6 +43,7 @@ ChartSpaceFragment::~ChartSpaceFragment()
ContextHandlerRef
ChartSpaceFragment
::
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
)
{
bool
bMSO2007Document
=
getFilter
().
isMSO2007Document
();
switch
(
getCurrentElement
()
)
{
case
XML_ROOT_CONTEXT
:
...
...
@@ -82,7 +83,6 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
{
case
C_TOKEN
(
autoTitleDeleted
):
{
bool
bMSO2007Document
=
getFilter
().
isMSO2007Document
();
// default value is false for MSO 2007 and true in OOXML
mrModel
.
mbAutoTitleDel
=
rAttribs
.
getBool
(
XML_val
,
!
bMSO2007Document
);
...
...
@@ -92,7 +92,6 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
return
new
WallFloorContext
(
*
this
,
mrModel
.
mxBackWall
.
create
()
);
case
C_TOKEN
(
dispBlanksAs
):
{
bool
bMSO2007Document
=
getFilter
().
isMSO2007Document
();
// default value is XML_gap for MSO 2007 and XML_zero in OOXML
mrModel
.
mnDispBlanksAs
=
rAttribs
.
getToken
(
XML_val
,
bMSO2007Document
?
XML_gap
:
XML_zero
);
return
0
;
...
...
@@ -100,7 +99,7 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
case
C_TOKEN
(
floor
):
return
new
WallFloorContext
(
*
this
,
mrModel
.
mxFloor
.
create
()
);
case
C_TOKEN
(
legend
):
return
new
LegendContext
(
*
this
,
mrModel
.
mxLegend
.
create
()
);
return
new
LegendContext
(
*
this
,
mrModel
.
mxLegend
.
create
(
bMSO2007Document
)
);
case
C_TOKEN
(
plotArea
):
return
new
PlotAreaContext
(
*
this
,
mrModel
.
mxPlotArea
.
create
()
);
case
C_TOKEN
(
plotVisOnly
):
...
...
oox/source/drawingml/chart/titlecontext.cxx
Dosyayı görüntüle @
25ede145
...
...
@@ -122,6 +122,7 @@ LegendContext::~LegendContext()
ContextHandlerRef
LegendContext
::
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
)
{
bool
bMSO2007Doc
=
getFilter
().
isMSO2007Document
();
// this context handler is used for <c:legend> only
switch
(
nElement
)
{
...
...
@@ -134,7 +135,7 @@ ContextHandlerRef LegendContext::onCreateContext( sal_Int32 nElement, const Attr
case
C_TOKEN
(
overlay
):
// default is 'false', not 'true' as specified
mrModel
.
mbOverlay
=
rAttribs
.
getBool
(
XML_val
,
false
);
mrModel
.
mbOverlay
=
rAttribs
.
getBool
(
XML_val
,
!
bMSO2007Doc
);
return
0
;
case
C_TOKEN
(
spPr
):
...
...
oox/source/drawingml/chart/titlemodel.cxx
Dosyayı görüntüle @
25ede145
...
...
@@ -41,9 +41,9 @@ TitleModel::~TitleModel()
{
}
LegendModel
::
LegendModel
()
:
LegendModel
::
LegendModel
(
bool
bMSO2007Doc
)
:
mnPosition
(
XML_r
),
mbOverlay
(
false
)
mbOverlay
(
!
bMSO2007Doc
)
{
}
...
...
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