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
f8327138
Kaydet (Commit)
f8327138
authored
Ara 26, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I788473f88d78cd3818dfed20112fa36cea81de0d
üst
01402f9d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
43 deletions
+43
-43
XMLRedlineImportHelper.cxx
sw/source/filter/xml/XMLRedlineImportHelper.cxx
+15
-15
XMLRedlineImportHelper.hxx
sw/source/filter/xml/XMLRedlineImportHelper.hxx
+3
-3
swxml.cxx
sw/source/filter/xml/swxml.cxx
+10
-10
wrtxml.cxx
sw/source/filter/xml/wrtxml.cxx
+13
-13
wrtxml.hxx
sw/source/filter/xml/wrtxml.hxx
+2
-2
No files found.
sw/source/filter/xml/XMLRedlineImportHelper.cxx
Dosyayı görüntüle @
f8327138
...
...
@@ -103,7 +103,7 @@ public:
void
CopyPositionInto
(
SwPosition
&
rPos
,
SwDoc
&
rDoc
);
SwDoc
*
GetDoc
();
sal_B
ool
IsValid
();
b
ool
IsValid
();
};
XTextRangeOrNodeIndexPosition
::
XTextRangeOrNodeIndexPosition
()
:
...
...
@@ -193,7 +193,7 @@ SwDoc* XTextRangeOrNodeIndexPosition::GetDoc()
return
(
NULL
!=
pIndex
)
?
pIndex
->
GetNodes
().
GetDoc
()
:
lcl_GetDocViaTunnel
(
xRange
);
}
sal_B
ool
XTextRangeOrNodeIndexPosition
::
IsValid
()
b
ool
XTextRangeOrNodeIndexPosition
::
IsValid
()
{
return
(
xRange
.
is
()
||
(
pIndex
!=
NULL
)
);
}
...
...
@@ -233,7 +233,7 @@ public:
RedlineInfo
*
pNextRedline
;
/// store whether we expect an adjustment for this redline
sal_B
ool
bNeedsAdjustment
;
b
ool
bNeedsAdjustment
;
};
RedlineInfo
::
RedlineInfo
()
:
...
...
@@ -246,7 +246,7 @@ RedlineInfo::RedlineInfo() :
aAnchorEnd
(),
pContentIndex
(
NULL
),
pNextRedline
(
NULL
),
bNeedsAdjustment
(
sal_F
alse
)
bNeedsAdjustment
(
f
alse
)
{
}
...
...
@@ -262,7 +262,7 @@ RedlineInfo::~RedlineInfo()
//
XMLRedlineImportHelper
::
XMLRedlineImportHelper
(
sal_B
ool
bNoRedlinesPlease
,
b
ool
bNoRedlinesPlease
,
const
Reference
<
XPropertySet
>
&
rModel
,
const
Reference
<
XPropertySet
>
&
rImportInfo
)
:
sEmpty
(),
...
...
@@ -278,9 +278,9 @@ XMLRedlineImportHelper::XMLRedlineImportHelper(
xImportInfoPropertySet
(
rImportInfo
)
{
// check to see if redline mode is handled outside of component
sal_Bool
bHandleShowChanges
=
sal_T
rue
;
sal_Bool
bHandleRecordChanges
=
sal_T
rue
;
sal_Bool
bHandleProtectionKey
=
sal_T
rue
;
bool
bHandleShowChanges
=
t
rue
;
bool
bHandleRecordChanges
=
t
rue
;
bool
bHandleProtectionKey
=
t
rue
;
if
(
xImportInfoPropertySet
.
is
()
)
{
Reference
<
XPropertySetInfo
>
xInfo
=
...
...
@@ -333,7 +333,7 @@ XMLRedlineImportHelper::~XMLRedlineImportHelper()
else
{
// try if only the adjustment was missing
pInfo
->
bNeedsAdjustment
=
sal_F
alse
;
pInfo
->
bNeedsAdjustment
=
f
alse
;
if
(
IsReady
(
pInfo
)
)
{
OSL_FAIL
(
"RedlineInfo without adjustment; now inserted"
);
...
...
@@ -355,9 +355,9 @@ XMLRedlineImportHelper::~XMLRedlineImportHelper()
// set redline mode, either to info property set, or directly to
// the document
sal_Bool
bHandleShowChanges
=
sal_T
rue
;
sal_Bool
bHandleRecordChanges
=
sal_T
rue
;
sal_Bool
bHandleProtectionKey
=
sal_T
rue
;
bool
bHandleShowChanges
=
t
rue
;
bool
bHandleRecordChanges
=
t
rue
;
bool
bHandleProtectionKey
=
t
rue
;
if
(
xImportInfoPropertySet
.
is
()
)
{
Reference
<
XPropertySetInfo
>
xInfo
=
...
...
@@ -535,7 +535,7 @@ void XMLRedlineImportHelper::SetCursor(
}
// also remember that we expect an adjustment for this redline
pInfo
->
bNeedsAdjustment
=
sal_T
rue
;
pInfo
->
bNeedsAdjustment
=
t
rue
;
}
else
{
...
...
@@ -576,7 +576,7 @@ void XMLRedlineImportHelper::AdjustStartNodeCursor(
// RedlineInfo found; now set Cursor
RedlineInfo
*
pInfo
=
aFind
->
second
;
pInfo
->
bNeedsAdjustment
=
sal_F
alse
;
pInfo
->
bNeedsAdjustment
=
f
alse
;
// if now ready, insert into document
if
(
IsReady
(
pInfo
)
)
...
...
@@ -590,7 +590,7 @@ void XMLRedlineImportHelper::AdjustStartNodeCursor(
}
inline
sal_B
ool
XMLRedlineImportHelper
::
IsReady
(
RedlineInfo
*
pRedline
)
inline
b
ool
XMLRedlineImportHelper
::
IsReady
(
RedlineInfo
*
pRedline
)
{
// we can insert a redline if we have start & end, and we don't
// expect adjustments for either of these
...
...
sw/source/filter/xml/XMLRedlineImportHelper.hxx
Dosyayı görüntüle @
f8327138
...
...
@@ -53,7 +53,7 @@ class XMLRedlineImportHelper
/// if sal_True, no redlines should be inserted into document
/// (This typically happen when a document is loaded in 'insert'-mode.)
sal_B
ool
bIgnoreRedlines
;
b
ool
bIgnoreRedlines
;
/// save information for saving and reconstruction of the redline mode
::
com
::
sun
::
star
::
uno
::
Reference
<
...
...
@@ -67,7 +67,7 @@ class XMLRedlineImportHelper
public
:
XMLRedlineImportHelper
(
sal_B
ool
bIgnoreRedlines
,
/// ignore redlines mode
b
ool
bIgnoreRedlines
,
/// ignore redlines mode
// property sets of model + import info for saving + restoring the
// redline mode
...
...
@@ -134,7 +134,7 @@ public:
private
:
inline
sal_B
ool
IsReady
(
RedlineInfo
*
pRedline
);
inline
b
ool
IsReady
(
RedlineInfo
*
pRedline
);
void
InsertIntoDocument
(
RedlineInfo
*
pRedline
);
...
...
sw/source/filter/xml/swxml.cxx
Dosyayı görüntüle @
f8327138
...
...
@@ -133,8 +133,8 @@ sal_Int32 ReadThroughComponent(
const
sal_Char
*
pFilterName
,
const
Sequence
<
Any
>&
rFilterArguments
,
const
OUString
&
rName
,
sal_B
ool
bMustBeSuccessfull
,
sal_B
ool
bEncrypted
)
b
ool
bMustBeSuccessfull
,
b
ool
bEncrypted
)
{
OSL_ENSURE
(
xInputStream
.
is
(),
"input stream missing"
);
OSL_ENSURE
(
xModelComponent
.
is
(),
"document missing"
);
...
...
@@ -188,7 +188,7 @@ sal_Int32 ReadThroughComponent(
// sax parser sends wrapped exceptions,
// try to find the original one
xml
::
sax
::
SAXException
aSaxEx
=
*
(
xml
::
sax
::
SAXException
*
)(
&
r
);
sal_Bool
bTryChild
=
sal_T
rue
;
bool
bTryChild
=
t
rue
;
while
(
bTryChild
)
{
...
...
@@ -196,7 +196,7 @@ sal_Int32 ReadThroughComponent(
if
(
aSaxEx
.
WrappedException
>>=
aTmp
)
aSaxEx
=
aTmp
;
else
bTryChild
=
sal_F
alse
;
bTryChild
=
f
alse
;
}
packages
::
zip
::
ZipIOException
aBrokenPackage
;
...
...
@@ -303,7 +303,7 @@ sal_Int32 ReadThroughComponent(
const
sal_Char
*
pFilterName
,
const
Sequence
<
Any
>&
rFilterArguments
,
const
OUString
&
rName
,
sal_B
ool
bMustBeSuccessfull
)
b
ool
bMustBeSuccessfull
)
{
OSL_ENSURE
(
xStorage
.
is
(),
"Need storage!"
);
OSL_ENSURE
(
NULL
!=
pStreamName
,
"Please, please, give me a name!"
);
...
...
@@ -362,7 +362,7 @@ sal_Int32 ReadThroughComponent(
Any
aAny
=
xProps
->
getPropertyValue
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Encrypted"
)
)
);
sal_B
ool
bEncrypted
=
aAny
.
getValueType
()
==
::
getBooleanCppuType
()
&&
b
ool
bEncrypted
=
aAny
.
getValueType
()
==
::
getBooleanCppuType
()
&&
*
(
sal_Bool
*
)
aAny
.
getValue
();
uno
::
Reference
<
io
::
XInputStream
>
xInputStream
=
xStream
->
getInputStream
();
...
...
@@ -903,7 +903,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
xStorage
,
xModelComp
,
"meta.xml"
,
"Meta.xml"
,
xServiceFactory
,
(
bOASIS
?
"com.sun.star.comp.Writer.XMLOasisMetaImporter"
:
"com.sun.star.comp.Writer.XMLMetaImporter"
),
aEmptyArgs
,
rName
,
sal_F
alse
);
aEmptyArgs
,
rName
,
f
alse
);
sal_uInt32
nWarn2
=
0
;
if
(
!
(
IsOrganizerMode
()
||
IsBlockMode
()
||
aOpt
.
IsFmtsOnly
()
||
...
...
@@ -913,21 +913,21 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
xStorage
,
xModelComp
,
"settings.xml"
,
NULL
,
xServiceFactory
,
(
bOASIS
?
"com.sun.star.comp.Writer.XMLOasisSettingsImporter"
:
"com.sun.star.comp.Writer.XMLSettingsImporter"
),
aFilterArgs
,
rName
,
sal_F
alse
);
aFilterArgs
,
rName
,
f
alse
);
}
nRet
=
ReadThroughComponent
(
xStorage
,
xModelComp
,
"styles.xml"
,
NULL
,
xServiceFactory
,
(
bOASIS
?
"com.sun.star.comp.Writer.XMLOasisStylesImporter"
:
"com.sun.star.comp.Writer.XMLStylesImporter"
),
aFilterArgs
,
rName
,
sal_T
rue
);
aFilterArgs
,
rName
,
t
rue
);
if
(
!
nRet
&&
!
(
IsOrganizerMode
()
||
aOpt
.
IsFmtsOnly
())
)
nRet
=
ReadThroughComponent
(
xStorage
,
xModelComp
,
"content.xml"
,
"Content.xml"
,
xServiceFactory
,
(
bOASIS
?
"com.sun.star.comp.Writer.XMLOasisContentImporter"
:
"com.sun.star.comp.Writer.XMLContentImporter"
),
aFilterArgs
,
rName
,
sal_T
rue
);
aFilterArgs
,
rName
,
t
rue
);
if
(
!
(
IsOrganizerMode
()
||
IsBlockMode
()
||
bInsertMode
||
aOpt
.
IsFmtsOnly
()
)
)
...
...
sw/source/filter/xml/wrtxml.cxx
Dosyayı görüntüle @
f8327138
...
...
@@ -238,7 +238,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
}
// #i69627#
const
sal_B
ool
bOASIS
=
(
SotStorage
::
GetVersion
(
xStg
)
>
SOFFICE_FILEFORMAT_60
);
const
b
ool
bOASIS
=
(
SotStorage
::
GetVersion
(
xStg
)
>
SOFFICE_FILEFORMAT_60
);
if
(
bOASIS
&&
docfunc
::
HasOutlineStyleToBeWrittenAsNormalListStyle
(
*
pDoc
)
)
{
...
...
@@ -297,7 +297,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
}
// export sub streams for package, else full stream into a file
sal_Bool
bWarn
=
sal_False
,
bErr
=
sal_F
alse
;
bool
bWarn
=
false
,
bErr
=
f
alse
;
String
sWarnFile
,
sErrFile
;
// RDF metadata: export if ODF >= 1.2
...
...
@@ -324,11 +324,11 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
{
/* ignore */
}
catch
(
uno
::
Exception
&
)
{
bWarn
=
sal_T
rue
;
bWarn
=
t
rue
;
}
}
sal_B
ool
bStoreMeta
=
(
SFX_CREATE_MODE_EMBEDDED
!=
pDoc
->
GetDocShell
()
->
GetCreateMode
()
);
b
ool
bStoreMeta
=
(
SFX_CREATE_MODE_EMBEDDED
!=
pDoc
->
GetDocShell
()
->
GetCreateMode
()
);
if
(
!
bStoreMeta
)
{
try
...
...
@@ -352,7 +352,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
:
"com.sun.star.comp.Writer.XMLMetaExporter"
),
aEmptyArgs
,
aProps
)
)
{
bWarn
=
sal_T
rue
;
bWarn
=
t
rue
;
sWarnFile
=
String
(
RTL_CONSTASCII_STRINGPARAM
(
"meta.xml"
),
RTL_TEXTENCODING_ASCII_US
);
}
...
...
@@ -370,7 +370,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
{
if
(
!
bWarn
)
{
bWarn
=
sal_T
rue
;
bWarn
=
t
rue
;
sWarnFile
=
String
(
RTL_CONSTASCII_STRINGPARAM
(
"settings.xml"
),
RTL_TEXTENCODING_ASCII_US
);
}
...
...
@@ -384,7 +384,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
:
"com.sun.star.comp.Writer.XMLStylesExporter"
),
aFilterArgs
,
aProps
)
)
{
bErr
=
sal_T
rue
;
bErr
=
t
rue
;
sErrFile
=
String
(
RTL_CONSTASCII_STRINGPARAM
(
"styles.xml"
),
RTL_TEXTENCODING_ASCII_US
);
}
...
...
@@ -398,7 +398,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
:
"com.sun.star.comp.Writer.XMLContentExporter"
),
aFilterArgs
,
aProps
)
)
{
bErr
=
sal_T
rue
;
bErr
=
t
rue
;
sErrFile
=
String
(
RTL_CONSTASCII_STRINGPARAM
(
"content.xml"
),
RTL_TEXTENCODING_ASCII_US
);
}
...
...
@@ -500,7 +500,7 @@ sal_uLong SwXMLWriter::Write( SwPaM& rPaM, SfxMedium& rMed,
:
((
Writer
*
)
this
)
->
Write
(
rPaM
,
*
rMed
.
GetOutStream
(),
pFileName
);
}
sal_B
ool
SwXMLWriter
::
WriteThroughComponent
(
b
ool
SwXMLWriter
::
WriteThroughComponent
(
const
uno
::
Reference
<
XComponent
>
&
xComponent
,
const
sal_Char
*
pStreamName
,
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
&
rFactory
,
...
...
@@ -517,7 +517,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
pStreamName
);
// open stream
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
try
{
OUString
sStreamName
=
OUString
::
createFromAscii
(
pStreamName
);
...
...
@@ -527,7 +527,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
uno
::
Reference
<
beans
::
XPropertySet
>
xSet
(
xStream
,
uno
::
UNO_QUERY
);
if
(
!
xSet
.
is
()
)
return
sal_F
alse
;
return
f
alse
;
OUString
aMime
(
RTL_CONSTASCII_USTRINGPARAM
(
"text/xml"
)
);
uno
::
Any
aAny
;
...
...
@@ -568,7 +568,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
}
sal_B
ool
SwXMLWriter
::
WriteThroughComponent
(
b
ool
SwXMLWriter
::
WriteThroughComponent
(
const
uno
::
Reference
<
io
::
XOutputStream
>
&
xOutputStream
,
const
uno
::
Reference
<
XComponent
>
&
xComponent
,
const
uno
::
Reference
<
XMultiServiceFactory
>
&
rFactory
,
...
...
@@ -604,7 +604,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
OSL_ENSURE
(
xExporter
.
is
(),
"can't instantiate export filter component"
);
if
(
!
xExporter
.
is
()
)
return
sal_F
alse
;
return
f
alse
;
RTL_LOGFILE_CONTEXT_TRACE1
(
aFilterLog
,
"%s instantiated."
,
pServiceName
);
// connect model and filter
...
...
sw/source/filter/xml/wrtxml.hxx
Dosyayı görüntüle @
f8327138
...
...
@@ -59,7 +59,7 @@ private:
// helper methods to write XML streams
/// write a single XML stream into the package
sal_B
ool
WriteThroughComponent
(
b
ool
WriteThroughComponent
(
/// the component we export
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XComponent
>
&
xComponent
,
...
...
@@ -77,7 +77,7 @@ private:
/// write a single output stream
/// (to be called either directly or by WriteThroughComponent(...))
sal_B
ool
WriteThroughComponent
(
b
ool
WriteThroughComponent
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>
&
xOutputStream
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
...
...
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