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
fbaad98b
Kaydet (Commit)
fbaad98b
authored
Mar 15, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
forgot the file
Change-Id: I90a001b354810daefd6cd05ca96de4207eee15aa
üst
b0434a2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
chart_imp.cxx
sc/source/filter/chart/chart_imp.cxx
+42
-0
No files found.
sc/source/filter/chart/chart_imp.cxx
0 → 100644
Dosyayı görüntüle @
fbaad98b
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <sfx2/docfile.hxx>
#include "xmlwrap.hxx"
#include <comphelper/processfactory.hxx>
#include <com/sun/star/document/XStorageBasedDocument.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
using
namespace
com
::
sun
::
star
;
ScXMLChartExportWrapper
::
ScXMLChartExportWrapper
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>
xModel
,
SfxMedium
&
rMed
)
:
mxModel
(
xModel
),
mrMedium
(
rMed
)
{
}
bool
ScXMLChartExportWrapper
::
Export
()
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xServiceFactory
(
comphelper
::
getProcessServiceFactory
());
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
(
comphelper
::
getProcessComponentContext
());
OSL_ENSURE
(
xServiceFactory
.
is
(),
"got no service manager"
);
if
(
!
xServiceFactory
.
is
()
)
return
false
;
//uno::Reference<xml::sax::XWriter> xWriter = xml::sax::Writer::create(xContext);
if
(
!
mxStorage
.
is
()
)
mxStorage
=
mrMedium
.
GetOutputStorage
();
uno
::
Reference
<
document
::
XStorageBasedDocument
>
(
mxModel
,
uno
::
UNO_QUERY_THROW
)
->
storeToStorage
(
mxStorage
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
);
return
true
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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