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
57f71f19
Kaydet (Commit)
57f71f19
authored
Tem 13, 2016
tarafından
Jaskaran Singh
Kaydeden (comit)
Markus Mohrhard
Eyl 17, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add call to import ODF styles when spreadsheet is created or loaded
Change-Id: If2f6843337f554829a321cfbe0b7dfdba90dca48
üst
e57e81ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
docsh.cxx
sc/source/ui/docshell/docsh.cxx
+10
-0
docsh2.cxx
sc/source/ui/docshell/docsh2.cxx
+11
-0
No files found.
sc/source/ui/docshell/docsh.cxx
Dosyayı görüntüle @
57f71f19
...
...
@@ -109,6 +109,8 @@
#include "docshimp.hxx"
#include "sizedev.hxx"
#include "refreshtimerprotector.hxx"
#include <orcus/orcus_import_ods.hpp>
#include <orcusfiltersimpl.hxx>
#include <officecfg/Office/Calc.hxx>
#include <comphelper/processfactory.hxx>
...
...
@@ -586,6 +588,14 @@ bool ScDocShell::Load( SfxMedium& rMedium )
aDocument
.
GetStyleSheetPool
()
->
CreateStandardStyles
();
aDocument
.
UpdStlShtPtrsFrmNms
();
/* Create styles that are imported through Orcus */
OUString
aFileName
=
"styles.xml"
;
ScOrcusFilters
*
pOrcus
=
ScFormatFilter
::
Get
().
GetOrcusFilters
();
if
(
!
pOrcus
)
return
false
;
pOrcus
->
importODS_Styles
(
aDocument
,
aFileName
);
bRet
=
LoadXML
(
&
rMedium
,
nullptr
);
}
}
...
...
sc/source/ui/docshell/docsh2.cxx
Dosyayı görüntüle @
57f71f19
...
...
@@ -22,6 +22,8 @@
#include <svl/asiancfg.hxx>
#include <editeng/forbiddencharacterstable.hxx>
#include <editeng/unolingu.hxx>
#include <orcus/orcus_import_ods.hpp>
#include <orcusfiltersimpl.hxx>
#include "drwlayer.hxx"
#include "stlpool.hxx"
...
...
@@ -29,6 +31,7 @@
#include "docshimp.hxx"
#include "docfunc.hxx"
#include "sc.hrc"
#include "filter.hxx"
using
namespace
com
::
sun
::
star
;
...
...
@@ -53,6 +56,14 @@ bool ScDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
aDocument
.
GetStyleSheetPool
()
->
CreateStandardStyles
();
aDocument
.
UpdStlShtPtrsFrmNms
();
/* Create styles that are imported through Orcus */
OUString
aFileName
=
"styles.xml"
;
ScOrcusFilters
*
pOrcus
=
ScFormatFilter
::
Get
().
GetOrcusFilters
();
if
(
!
pOrcus
)
return
false
;
pOrcus
->
importODS_Styles
(
aDocument
,
aFileName
);
// SetDocumentModified is not allowed anymore in Load/InitNew!
InitItems
();
CalcOutputFactor
();
...
...
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