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
f242aa85
Kaydet (Commit)
f242aa85
authored
Şub 12, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: I854458cb6f34976a275d479bb5d01548f7e464fd
üst
f96c1024
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
xmlwrap.hxx
sc/inc/xmlwrap.hxx
+4
-4
xmlwrap.cxx
sc/source/filter/xml/xmlwrap.cxx
+15
-15
docsh.cxx
sc/source/ui/docshell/docsh.cxx
+2
-2
No files found.
sc/inc/xmlwrap.hxx
Dosyayı görüntüle @
f242aa85
...
...
@@ -60,9 +60,9 @@ class ScXMLImportWrapper
com
::
sun
::
star
::
xml
::
sax
::
InputSource
&
aParserInput
,
const
OUString
&
sComponentName
,
const
OUString
&
sDocName
,
const
OUString
&
sOldDocName
,
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Any
>&
aArgs
,
sal_B
ool
bMustBeSuccessfull
);
b
ool
bMustBeSuccessfull
);
sal_B
ool
ExportToComponent
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
,
b
ool
ExportToComponent
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>&
xModel
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XWriter
>&
xWriter
,
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
aDescriptor
,
...
...
@@ -72,8 +72,8 @@ class ScXMLImportWrapper
public
:
ScXMLImportWrapper
(
ScDocument
&
rD
,
SfxMedium
*
pM
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
embed
::
XStorage
>&
);
sal_Bool
Import
(
sal_B
ool
bStylesOnly
,
ErrCode
&
);
sal_Bool
Export
(
sal_B
ool
bStylesOnly
);
bool
Import
(
b
ool
bStylesOnly
,
ErrCode
&
);
bool
Export
(
b
ool
bStylesOnly
);
const
sc
::
ImportPostProcessData
&
GetImportPostProcessData
()
const
;
};
...
...
sc/source/filter/xml/xmlwrap.cxx
Dosyayı görüntüle @
f242aa85
...
...
@@ -105,7 +105,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(const uno::Reference<uno::XCo
xml
::
sax
::
InputSource
&
aParserInput
,
const
OUString
&
sComponentName
,
const
OUString
&
sDocName
,
const
OUString
&
sOldDocName
,
uno
::
Sequence
<
uno
::
Any
>&
aArgs
,
sal_B
ool
bMustBeSuccessfull
)
b
ool
bMustBeSuccessfull
)
{
uno
::
Reference
<
io
::
XStream
>
xDocStream
;
if
(
!
xStorage
.
is
()
&&
pMedium
)
...
...
@@ -308,7 +308,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(const uno::Reference<uno::XCo
return
nReturn
;
}
sal_Bool
ScXMLImportWrapper
::
Import
(
sal_B
ool
bStylesOnly
,
ErrCode
&
nError
)
bool
ScXMLImportWrapper
::
Import
(
b
ool
bStylesOnly
,
ErrCode
&
nError
)
{
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
...
...
@@ -515,7 +515,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
bOasis
?
OUString
(
"com.sun.star.comp.Calc.XMLOasisStylesImporter"
)
:
OUString
(
"com.sun.star.comp.Calc.XMLStylesImporter"
),
OUString
(
"styles.xml"
),
sEmpty
,
aStylesArgs
,
sal_T
rue
);
sEmpty
,
aStylesArgs
,
t
rue
);
SAL_INFO
(
"sc.filter"
,
"styles import end"
);
}
...
...
@@ -537,7 +537,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
:
OUString
(
"com.sun.star.comp.Calc.XMLContentImporter"
),
OUString
(
"content.xml"
),
OUString
(
"Content.xml"
),
aDocArgs
,
sal_T
rue
);
t
rue
);
SAL_INFO
(
"sc.filter"
,
"content import end"
);
}
...
...
@@ -550,13 +550,13 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
if
(
xStatusIndicator
.
is
())
xStatusIndicator
->
end
();
sal_B
ool
bRet
(
false
);
b
ool
bRet
(
false
);
if
(
bStylesOnly
)
{
if
(
nStylesRetval
)
nError
=
nStylesRetval
;
else
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
else
{
...
...
@@ -567,7 +567,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
nDocRetval
==
SCWARN_IMPORT_ROW_OVERFLOW
||
nDocRetval
==
SCWARN_IMPORT_COLUMN_OVERFLOW
||
nDocRetval
==
SCWARN_IMPORT_SHEET_OVERFLOW
)
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
else
if
(
nStylesRetval
)
nError
=
nStylesRetval
;
...
...
@@ -576,7 +576,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
else
if
(
nSettingsRetval
)
nError
=
nSettingsRetval
;
else
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
// set BuildId on XModel for later OLE object loading
...
...
@@ -643,13 +643,13 @@ static bool lcl_HasValidStream(ScDocument& rDoc)
return
false
;
}
sal_B
ool
ScXMLImportWrapper
::
ExportToComponent
(
const
uno
::
Reference
<
uno
::
XComponentContext
>&
xContext
,
b
ool
ScXMLImportWrapper
::
ExportToComponent
(
const
uno
::
Reference
<
uno
::
XComponentContext
>&
xContext
,
uno
::
Reference
<
frame
::
XModel
>&
xModel
,
uno
::
Reference
<
xml
::
sax
::
XWriter
>&
xWriter
,
uno
::
Sequence
<
beans
::
PropertyValue
>&
aDescriptor
,
const
OUString
&
sName
,
const
OUString
&
sMediaType
,
const
OUString
&
sComponentName
,
uno
::
Sequence
<
uno
::
Any
>&
aArgs
,
ScMySharedData
*&
pSharedData
)
{
sal_B
ool
bRet
(
false
);
b
ool
bRet
(
false
);
uno
::
Reference
<
io
::
XOutputStream
>
xOut
;
uno
::
Reference
<
io
::
XStream
>
xStream
;
...
...
@@ -757,7 +757,7 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(const uno::Reference<uno::XCompon
return
bRet
;
}
sal_Bool
ScXMLImportWrapper
::
Export
(
sal_B
ool
bStylesOnly
)
bool
ScXMLImportWrapper
::
Export
(
b
ool
bStylesOnly
)
{
rDoc
.
CreateAllNoteCaptions
();
...
...
@@ -838,10 +838,10 @@ sal_Bool ScXMLImportWrapper::Export(sal_Bool bStylesOnly)
}
}
sal_B
ool
bMetaRet
(
pObjSh
->
GetCreateMode
()
==
SFX_CREATE_MODE_EMBEDDED
);
sal_B
ool
bStylesRet
(
false
);
sal_B
ool
bDocRet
(
false
);
sal_B
ool
bSettingsRet
(
false
);
b
ool
bMetaRet
(
pObjSh
->
GetCreateMode
()
==
SFX_CREATE_MODE_EMBEDDED
);
b
ool
bStylesRet
(
false
);
b
ool
bDocRet
(
false
);
b
ool
bSettingsRet
(
false
);
ScMySharedData
*
pSharedData
=
NULL
;
sal_Bool
bOasis
=
(
SotStorage
::
GetVersion
(
xStorage
)
>
SOFFICE_FILEFORMAT_60
);
...
...
sc/source/ui/docshell/docsh.cxx
Dosyayı görüntüle @
f242aa85
...
...
@@ -457,7 +457,7 @@ sal_Bool ScDocShell::LoadXML( SfxMedium* pLoadMedium, const ::com::sun::star::un
if
(
GetCreateMode
()
!=
SFX_CREATE_MODE_ORGANIZER
)
bRet
=
aImport
.
Import
(
false
,
nError
);
else
bRet
=
aImport
.
Import
(
sal_T
rue
,
nError
);
bRet
=
aImport
.
Import
(
t
rue
,
nError
);
if
(
nError
)
pLoadMedium
->
SetError
(
nError
,
OUString
(
OSL_LOG_PREFIX
)
);
...
...
@@ -529,7 +529,7 @@ sal_Bool ScDocShell::SaveXML( SfxMedium* pSaveMedium, const ::com::sun::star::un
if
(
GetCreateMode
()
!=
SFX_CREATE_MODE_ORGANIZER
)
bRet
=
aImport
.
Export
(
false
);
else
bRet
=
aImport
.
Export
(
sal_T
rue
);
bRet
=
aImport
.
Export
(
t
rue
);
aDocument
.
EnableIdle
(
true
);
...
...
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