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
e41c33b3
Kaydet (Commit)
e41c33b3
authored
May 24, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
May 24, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make sure that OpenGL charts are rendered after import
Change-Id: I3701a7593d7394abc39532a87b9aa50a3c92d457
üst
2ed32f7a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
+62
-0
ChartModel.hxx
chart2/inc/ChartModel.hxx
+3
-0
ChartModel.cxx
chart2/source/model/main/ChartModel.cxx
+13
-0
X3DChartWindowProvider.idl
offapi/com/sun/star/chart2/X3DChartWindowProvider.idl
+2
-0
tabvwsh4.cxx
sc/source/ui/view/tabvwsh4.cxx
+44
-0
No files found.
chart2/inc/ChartModel.hxx
Dosyayı görüntüle @
e41c33b3
...
...
@@ -580,6 +580,9 @@ public:
virtual
void
SAL_CALL
setWindow
(
const
sal_uInt64
nWindowPtr
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
update
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XDumper
virtual
OUString
SAL_CALL
dump
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
...
...
chart2/source/model/main/ChartModel.cxx
Dosyayı görüntüle @
e41c33b3
...
...
@@ -1420,6 +1420,19 @@ void ChartModel::setWindow( const sal_uInt64 nWindowPtr )
mpOpenGLWindow
=
pWindow
;
}
void
ChartModel
::
update
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
if
(
!
mpChartView
)
{
mpChartView
=
new
ChartView
(
m_xContext
,
*
this
);
xChartView
=
static_cast
<
::
cppu
::
OWeakObject
*
>
(
mpChartView
);
}
mpChartView
->
setViewDirty
();
mpChartView
->
update
();
}
OpenGLWindow
*
ChartModel
::
getOpenGLWindow
()
{
return
mpOpenGLWindow
;
...
...
offapi/com/sun/star/chart2/X3DChartWindowProvider.idl
Dosyayı görüntüle @
e41c33b3
...
...
@@ -24,6 +24,8 @@ module com { module sun { module star { module chart2 {
interface
X3DChartWindowProvider
{
void
setWindow
(
[
in
]
unsigned
hyper
window
)
;
void
update
()
;
}
;
}
; }; }; };
...
...
sc/source/ui/view/tabvwsh4.cxx
Dosyayı görüntüle @
e41c33b3
...
...
@@ -93,6 +93,10 @@
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/chart2/X3DChartWindowProvider.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
#include <com/sun/star/chart2/XCoordinateSystem.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XChartType.hpp>
extern
SfxViewShell
*
pScActiveViewShell
;
// global.cxx
...
...
@@ -532,6 +536,41 @@ void ScTabViewShell::DoReadUserDataSequence( const uno::Sequence < beans::Proper
//! if ViewData has more tables than document, remove tables in ViewData
}
namespace
{
bool
isGL3DDiagram
(
const
css
::
uno
::
Reference
<
css
::
chart2
::
XDiagram
>&
xDiagram
)
{
uno
::
Reference
<
chart2
::
XCoordinateSystemContainer
>
xCooSysContainer
(
xDiagram
,
uno
::
UNO_QUERY
);
if
(
!
xCooSysContainer
.
is
())
return
false
;
uno
::
Sequence
<
uno
::
Reference
<
chart2
::
XCoordinateSystem
>
>
aCooSysList
=
xCooSysContainer
->
getCoordinateSystems
();
for
(
sal_Int32
nCS
=
0
;
nCS
<
aCooSysList
.
getLength
();
++
nCS
)
{
uno
::
Reference
<
chart2
::
XCoordinateSystem
>
xCooSys
=
aCooSysList
[
nCS
];
//iterate through all chart types in the current coordinate system
uno
::
Reference
<
chart2
::
XChartTypeContainer
>
xChartTypeContainer
(
xCooSys
,
uno
::
UNO_QUERY
);
OSL_ASSERT
(
xChartTypeContainer
.
is
());
if
(
!
xChartTypeContainer
.
is
()
)
continue
;
uno
::
Sequence
<
uno
::
Reference
<
chart2
::
XChartType
>
>
aChartTypeList
=
xChartTypeContainer
->
getChartTypes
();
for
(
sal_Int32
nT
=
0
;
nT
<
aChartTypeList
.
getLength
();
++
nT
)
{
uno
::
Reference
<
chart2
::
XChartType
>
xChartType
=
aChartTypeList
[
nT
];
OUString
aChartType
=
xChartType
->
getChartType
();
if
(
aChartType
==
"com.sun.star.chart2.GL3DBarChartType"
)
return
true
;
}
}
return
false
;
}
}
void
ScTabViewShell
::
AddOpenGLChartWindows
()
{
ScDocument
*
pDoc
=
GetViewData
()
->
GetDocument
();
...
...
@@ -554,6 +593,11 @@ void ScTabViewShell::AddOpenGLChartWindows()
uno
::
Reference
<
chart2
::
X3DChartWindowProvider
>
x3DWindowProvider
(
itr
->
first
,
uno
::
UNO_QUERY_THROW
);
sal_uInt64
nWindowPtr
=
reinterpret_cast
<
sal_uInt64
>
(
pOpenGLWindow
);
x3DWindowProvider
->
setWindow
(
nWindowPtr
);
if
(
isGL3DDiagram
(
itr
->
first
->
getFirstDiagram
()))
{
x3DWindowProvider
->
update
();
}
}
}
...
...
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