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
32fe0c6a
Kaydet (Commit)
32fe0c6a
authored
Şub 18, 2015
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Şub 18, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
better way to set default for chart area fill style, related tdf#89451
Change-Id: Iee7fea0f55cf54d43a349b6cc0ffa25995069e40
üst
a51300bc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
graphichelper.hxx
include/oox/helper/graphichelper.hxx
+1
-1
objectformatter.cxx
oox/source/drawingml/chart/objectformatter.cxx
+6
-0
graphichelper.cxx
oox/source/helper/graphichelper.cxx
+2
-2
pptimport.cxx
oox/source/ppt/pptimport.cxx
+3
-3
No files found.
include/oox/helper/graphichelper.hxx
Dosyayı görüntüle @
32fe0c6a
...
...
@@ -76,7 +76,7 @@ public:
/** Derived classes may implement to resolve a palette index to an RGB color. */
virtual
sal_Int32
getPaletteColor
(
sal_Int32
nPaletteIdx
)
const
;
virtual
css
::
drawing
::
FillStyle
getDefaultChartAreaFillStyle
()
const
;
virtual
sal_Int32
getDefaultChartAreaFillStyle
()
const
;
// Device info and device dependent unit conversion -----------------------
...
...
oox/source/drawingml/chart/objectformatter.cxx
Dosyayı görüntüle @
32fe0c6a
...
...
@@ -34,6 +34,7 @@
#include "oox/drawingml/theme.hxx"
#include "drawingml/chart/chartspacemodel.hxx"
#include "oox/helper/modelobjecthelper.hxx"
#include <oox/helper/graphichelper.hxx>
namespace
oox
{
namespace
drawingml
{
...
...
@@ -877,6 +878,11 @@ FillFormatter::FillFormatter( ObjectFormatterData& rData, const AutoFormatEntry*
if
(
const
Theme
*
pTheme
=
mrData
.
mrFilter
.
getCurrentTheme
()
)
if
(
const
FillProperties
*
pFillProps
=
pTheme
->
getFillStyle
(
pAutoFormatEntry
->
mnThemedIdx
)
)
*
mxAutoFill
=
*
pFillProps
;
if
(
eObjType
==
OBJECTTYPE_CHARTSPACE
)
{
mxAutoFill
->
moFillType
=
rData
.
mrFilter
.
getGraphicHelper
().
getDefaultChartAreaFillStyle
();
}
}
}
...
...
oox/source/helper/graphichelper.cxx
Dosyayı görüntüle @
32fe0c6a
...
...
@@ -157,9 +157,9 @@ sal_Int32 GraphicHelper::getPaletteColor( sal_Int32 /*nPaletteIdx*/ ) const
return
API_RGB_TRANSPARENT
;
}
drawing
::
FillStyle
GraphicHelper
::
getDefaultChartAreaFillStyle
()
const
sal_Int32
GraphicHelper
::
getDefaultChartAreaFillStyle
()
const
{
return
drawing
::
FillStyle_SOLID
;
return
XML_solidFill
;
}
// Device info and device dependent unit conversion ---------------------------
...
...
oox/source/ppt/pptimport.cxx
Dosyayı görüntüle @
32fe0c6a
...
...
@@ -193,7 +193,7 @@ class PptGraphicHelper : public GraphicHelper
public
:
explicit
PptGraphicHelper
(
const
PowerPointImport
&
rFilter
);
virtual
sal_Int32
getSchemeColor
(
sal_Int32
nToken
)
const
SAL_OVERRIDE
;
virtual
drawing
::
FillStyle
getDefaultChartAreaFillStyle
()
const
SAL_OVERRIDE
;
virtual
sal_Int32
getDefaultChartAreaFillStyle
()
const
SAL_OVERRIDE
;
private
:
const
PowerPointImport
&
mrFilter
;
};
...
...
@@ -209,9 +209,9 @@ sal_Int32 PptGraphicHelper::getSchemeColor( sal_Int32 nToken ) const
return
mrFilter
.
getSchemeColor
(
nToken
);
}
drawing
::
FillStyle
PptGraphicHelper
::
getDefaultChartAreaFillStyle
()
const
sal_Int32
PptGraphicHelper
::
getDefaultChartAreaFillStyle
()
const
{
return
drawing
::
FillStyle_NONE
;
return
XML_noFill
;
}
}
// namespace
...
...
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