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
2da415ee
Kaydet (Commit)
2da415ee
authored
Ock 14, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
UtBool -> bool
Change-Id: I4cec5ba61762ac87d5bfb07b15ab661955e207ac
üst
b32b45c5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
42 deletions
+38
-42
benname.cxx
lotuswordpro/source/filter/benname.cxx
+10
-10
benobj.cxx
lotuswordpro/source/filter/benobj.cxx
+2
-2
bento.hxx
lotuswordpro/source/filter/bento.hxx
+13
-13
tocread.cxx
lotuswordpro/source/filter/tocread.cxx
+9
-9
tocread.hxx
lotuswordpro/source/filter/tocread.hxx
+1
-1
ut.hxx
lotuswordpro/source/filter/ut.hxx
+0
-4
utlist.hxx
lotuswordpro/source/filter/utlist.hxx
+3
-3
No files found.
lotuswordpro/source/filter/benname.cxx
Dosyayı görüntüle @
2da415ee
...
@@ -66,20 +66,20 @@ CBenNamedObject::CBenNamedObject(pLtcBenContainer pContainer,
...
@@ -66,20 +66,20 @@ CBenNamedObject::CBenNamedObject(pLtcBenContainer pContainer,
cNameListElmt
.
SetNamedObject
(
this
);
cNameListElmt
.
SetNamedObject
(
this
);
}
}
UtB
ool
CBenNamedObject
::
IsNamedObject
()
b
ool
CBenNamedObject
::
IsNamedObject
()
{
return
UT_TRUE
;
}
{
return
true
;
}
UtB
ool
CBenNamedObject
::
IsPropertyName
()
b
ool
CBenNamedObject
::
IsPropertyName
()
{
return
UT_FALSE
;
}
{
return
false
;
}
UtB
ool
CBenNamedObject
::
IsTypeName
()
b
ool
CBenNamedObject
::
IsTypeName
()
{
return
UT_FALSE
;
}
{
return
false
;
}
UtB
ool
CBenPropertyName
::
IsPropertyName
()
b
ool
CBenPropertyName
::
IsPropertyName
()
{
return
UT_TRUE
;
}
{
return
true
;
}
UtB
ool
CBenTypeName
::
IsTypeName
()
b
ool
CBenTypeName
::
IsTypeName
()
{
return
UT_TRUE
;
}
{
return
true
;
}
}
// end namespace OpenStormBento
}
// end namespace OpenStormBento
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
lotuswordpro/source/filter/benobj.cxx
Dosyayı görüntüle @
2da415ee
...
@@ -57,10 +57,10 @@
...
@@ -57,10 +57,10 @@
namespace
OpenStormBento
namespace
OpenStormBento
{
{
UtB
ool
b
ool
CBenObject
::
IsNamedObject
()
CBenObject
::
IsNamedObject
()
{
{
return
UT_FALSE
;
return
false
;
}
}
pCBenProperty
pCBenProperty
...
...
lotuswordpro/source/filter/bento.hxx
Dosyayı görüntüle @
2da415ee
...
@@ -252,7 +252,7 @@ class CBenObject : public CBenIDListElmt
...
@@ -252,7 +252,7 @@ class CBenObject : public CBenIDListElmt
public
:
public
:
pCBenProperty
UseProperty
(
BenObjectID
PropertyID
);
pCBenProperty
UseProperty
(
BenObjectID
PropertyID
);
pCBenValue
UseValue
(
BenObjectID
PropertyID
);
pCBenValue
UseValue
(
BenObjectID
PropertyID
);
virtual
UtB
ool
IsNamedObject
();
virtual
b
ool
IsNamedObject
();
pLtcBenContainer
GetContainer
()
{
return
cpContainer
;
}
pLtcBenContainer
GetContainer
()
{
return
cpContainer
;
}
BenObjectID
GetObjectID
()
{
return
GetID
();
}
BenObjectID
GetObjectID
()
{
return
GetID
();
}
public
:
// Internal methods
public
:
// Internal methods
...
@@ -354,24 +354,24 @@ class CBenValueSegment : public CUtListElmt
...
@@ -354,24 +354,24 @@ class CBenValueSegment : public CUtListElmt
public
:
// Internal methods
public
:
// Internal methods
CBenValueSegment
(
pCBenValue
pValue
,
BenContainerPos
Pos
,
CBenValueSegment
(
pCBenValue
pValue
,
BenContainerPos
Pos
,
unsigned
long
Size
)
:
CUtListElmt
(
pValue
->
GetValueSegments
())
unsigned
long
Size
)
:
CUtListElmt
(
pValue
->
GetValueSegments
())
{
cpValue
=
pValue
;
cImmediate
=
UT_FALSE
;
cPos
=
Pos
;
{
cpValue
=
pValue
;
cImmediate
=
false
;
cPos
=
Pos
;
cSize
=
Size
;
}
cSize
=
Size
;
}
CBenValueSegment
(
pCBenValue
pValue
,
BenConstDataPtr
pImmData
,
CBenValueSegment
(
pCBenValue
pValue
,
BenConstDataPtr
pImmData
,
unsigned
short
Size
)
:
CUtListElmt
(
pValue
->
GetValueSegments
())
unsigned
short
Size
)
:
CUtListElmt
(
pValue
->
GetValueSegments
())
{
cpValue
=
pValue
;
cImmediate
=
UT_TRUE
;
{
cpValue
=
pValue
;
cImmediate
=
true
;
UtHugeMemcpy
(
cImmData
,
pImmData
,
Size
);
cSize
=
Size
;
}
UtHugeMemcpy
(
cImmData
,
pImmData
,
Size
);
cSize
=
Size
;
}
CBenValueSegment
(
BenContainerPos
Pos
,
unsigned
long
Size
)
CBenValueSegment
(
BenContainerPos
Pos
,
unsigned
long
Size
)
{
cpValue
=
NULL
;
cImmediate
=
UT_FALSE
;
cPos
=
Pos
;
{
cpValue
=
NULL
;
cImmediate
=
false
;
cPos
=
Pos
;
cSize
=
Size
;
}
cSize
=
Size
;
}
CBenValueSegment
(
BenConstDataPtr
pImmData
,
unsigned
short
Size
)
CBenValueSegment
(
BenConstDataPtr
pImmData
,
unsigned
short
Size
)
{
cpValue
=
NULL
;
cImmediate
=
UT_TRUE
;
{
cpValue
=
NULL
;
cImmediate
=
true
;
UtHugeMemcpy
(
cImmData
,
pImmData
,
Size
);
cSize
=
Size
;
}
UtHugeMemcpy
(
cImmData
,
pImmData
,
Size
);
cSize
=
Size
;
}
UtB
ool
IsLast
()
b
ool
IsLast
()
{
{
return
cpValue
==
NULL
||
cpValue
->
GetValueSegments
()
->
GetLast
()
==
return
cpValue
==
NULL
||
cpValue
->
GetValueSegments
()
->
GetLast
()
==
this
;
this
;
}
}
UtB
ool
IsImmediate
()
{
return
cImmediate
;
}
b
ool
IsImmediate
()
{
return
cImmediate
;
}
BenContainerPos
GetPosition
()
{
return
cPos
;
}
BenContainerPos
GetPosition
()
{
return
cPos
;
}
unsigned
long
GetSize
()
{
return
cSize
;
}
unsigned
long
GetSize
()
{
return
cSize
;
}
void
SetSize
(
unsigned
long
Size
)
{
cSize
=
Size
;
}
void
SetSize
(
unsigned
long
Size
)
{
cSize
=
Size
;
}
...
@@ -379,7 +379,7 @@ public: // Internal methods
...
@@ -379,7 +379,7 @@ public: // Internal methods
private
:
// Data
private
:
// Data
pCBenValue
cpValue
;
pCBenValue
cpValue
;
UtB
ool
cImmediate
;
b
ool
cImmediate
;
union
union
{
{
BenContainerPos
cPos
;
BenContainerPos
cPos
;
...
@@ -398,9 +398,9 @@ inline pLtcBenContainer CBenValue::GetContainer()
...
@@ -398,9 +398,9 @@ inline pLtcBenContainer CBenValue::GetContainer()
class
CBenNamedObject
:
public
CBenObject
class
CBenNamedObject
:
public
CBenObject
{
{
public
:
// Methods
public
:
// Methods
virtual
UtB
ool
IsNamedObject
();
virtual
b
ool
IsNamedObject
();
virtual
UtB
ool
IsPropertyName
();
virtual
b
ool
IsPropertyName
();
virtual
UtB
ool
IsTypeName
();
virtual
b
ool
IsTypeName
();
public
:
// Internal methods
public
:
// Internal methods
CBenNamedObject
(
pLtcBenContainer
pContainer
,
BenObjectID
ObjectID
,
CBenNamedObject
(
pLtcBenContainer
pContainer
,
BenObjectID
ObjectID
,
...
@@ -431,7 +431,7 @@ public: // Internal methods
...
@@ -431,7 +431,7 @@ public: // Internal methods
pCBenNamedObjectListElmt
pPrevNamedObjectListElmt
)
:
pCBenNamedObjectListElmt
pPrevNamedObjectListElmt
)
:
CBenNamedObject
(
pContainer
,
ObjectID
,
pPrevObject
,
sName
,
CBenNamedObject
(
pContainer
,
ObjectID
,
pPrevObject
,
sName
,
pPrevNamedObjectListElmt
)
{
;
}
pPrevNamedObjectListElmt
)
{
;
}
virtual
UtB
ool
IsPropertyName
();
virtual
b
ool
IsPropertyName
();
};
};
class
CBenTypeName
:
public
CBenNamedObject
class
CBenTypeName
:
public
CBenNamedObject
...
@@ -442,7 +442,7 @@ public: // Internal methods
...
@@ -442,7 +442,7 @@ public: // Internal methods
pCBenNamedObjectListElmt
pPrevNamedObjectListElmt
)
:
pCBenNamedObjectListElmt
pPrevNamedObjectListElmt
)
:
CBenNamedObject
(
pContainer
,
ObjectID
,
pPrevObject
,
sName
,
CBenNamedObject
(
pContainer
,
ObjectID
,
pPrevObject
,
sName
,
pPrevNamedObjectListElmt
)
{
;
}
pPrevNamedObjectListElmt
)
{
;
}
virtual
UtB
ool
IsTypeName
();
virtual
b
ool
IsTypeName
();
};
};
...
...
lotuswordpro/source/filter/tocread.cxx
Dosyayı görüntüle @
2da415ee
...
@@ -372,8 +372,8 @@ CBenTOCReader::ReadSegment(pCBenValue pValue, BenByte * pLookAhead)
...
@@ -372,8 +372,8 @@ CBenTOCReader::ReadSegment(pCBenValue pValue, BenByte * pLookAhead)
{
{
BenError
Err
;
BenError
Err
;
UtBool
Immediate
=
UT_FALSE
;
bool
Immediate
=
false
;
UtBool
EightByteOffset
=
UT_FALSE
;
bool
EightByteOffset
=
false
;
unsigned
long
Offset
(
0
),
Length
(
0
);
unsigned
long
Offset
(
0
),
Length
(
0
);
switch
(
*
pLookAhead
)
switch
(
*
pLookAhead
)
...
@@ -387,29 +387,29 @@ CBenTOCReader::ReadSegment(pCBenValue pValue, BenByte * pLookAhead)
...
@@ -387,29 +387,29 @@ CBenTOCReader::ReadSegment(pCBenValue pValue, BenByte * pLookAhead)
break
;
break
;
case
BEN_IMMEDIATE0
:
case
BEN_IMMEDIATE0
:
Length
=
0
;
Immediate
=
UT_TRUE
;
Length
=
0
;
Immediate
=
true
;
break
;
break
;
case
BEN_IMMEDIATE1
:
case
BEN_IMMEDIATE1
:
Length
=
1
;
Immediate
=
UT_TRUE
;
Length
=
1
;
Immediate
=
true
;
break
;
break
;
case
BEN_IMMEDIATE2
:
case
BEN_IMMEDIATE2
:
Length
=
2
;
Immediate
=
UT_TRUE
;
Length
=
2
;
Immediate
=
true
;
break
;
break
;
case
BEN_IMMEDIATE3
:
case
BEN_IMMEDIATE3
:
Length
=
3
;
Immediate
=
UT_TRUE
;
Length
=
3
;
Immediate
=
true
;
break
;
break
;
case
BEN_CONT_IMMEDIATE4
:
case
BEN_CONT_IMMEDIATE4
:
case
BEN_IMMEDIATE4
:
case
BEN_IMMEDIATE4
:
Length
=
4
;
Immediate
=
UT_TRUE
;
Length
=
4
;
Immediate
=
true
;
break
;
break
;
case
BEN_CONT_OFFSET8_LEN4
:
case
BEN_CONT_OFFSET8_LEN4
:
case
BEN_OFFSET8_LEN4
:
case
BEN_OFFSET8_LEN4
:
EightByteOffset
=
UT_TRUE
;
EightByteOffset
=
true
;
break
;
break
;
default
:
default
:
...
@@ -440,7 +440,7 @@ CBenTOCReader::ReadSegment(pCBenValue pValue, BenByte * pLookAhead)
...
@@ -440,7 +440,7 @@ CBenTOCReader::ReadSegment(pCBenValue pValue, BenByte * pLookAhead)
return
BenErr_OK
;
return
BenErr_OK
;
}
}
UtB
ool
b
ool
CBenTOCReader
::
CanGetData
(
unsigned
long
Amt
)
CBenTOCReader
::
CanGetData
(
unsigned
long
Amt
)
{
{
return
cCurr
+
Amt
<=
cTOCSize
;
return
cCurr
+
Amt
<=
cTOCSize
;
...
...
lotuswordpro/source/filter/tocread.hxx
Dosyayı görüntüle @
2da415ee
...
@@ -72,7 +72,7 @@ private: // Methods
...
@@ -72,7 +72,7 @@ private: // Methods
BenError
ReadTOC
();
BenError
ReadTOC
();
BenError
ReadSegments
(
pCBenValue
pValue
,
BenByte
*
pLookAhead
);
BenError
ReadSegments
(
pCBenValue
pValue
,
BenByte
*
pLookAhead
);
BenError
ReadSegment
(
pCBenValue
pValue
,
BenByte
*
pLookAhead
);
BenError
ReadSegment
(
pCBenValue
pValue
,
BenByte
*
pLookAhead
);
UtB
ool
CanGetData
(
unsigned
long
Amt
);
b
ool
CanGetData
(
unsigned
long
Amt
);
BenError
GetByte
(
BenByte
*
pByte
);
BenError
GetByte
(
BenByte
*
pByte
);
BenError
GetDWord
(
BenDWord
*
pDWord
);
BenError
GetDWord
(
BenDWord
*
pDWord
);
BenByte
GetCode
();
BenByte
GetCode
();
...
...
lotuswordpro/source/filter/ut.hxx
Dosyayı görüntüle @
2da415ee
...
@@ -68,13 +68,9 @@ namespace OpenStormBento
...
@@ -68,13 +68,9 @@ namespace OpenStormBento
#define UtErr_OK 0
#define UtErr_OK 0
#define UtErr_Fail 1
#define UtErr_Fail 1
#define UT_TRUE sal_True
#define UT_FALSE sal_False
#define UtByte sal_uInt8
#define UtByte sal_uInt8
#define UtDWord sal_uInt32
#define UtDWord sal_uInt32
#define UtWord sal_uInt16
#define UtWord sal_uInt16
#define UtBool sal_Int32
#define UtDefClassP(Name) class Name; typedef Name * p##Name; \
#define UtDefClassP(Name) class Name; typedef Name * p##Name; \
typedef const Name * pConst##Name
typedef const Name * pConst##Name
...
...
lotuswordpro/source/filter/utlist.hxx
Dosyayı görüntüle @
2da415ee
...
@@ -82,7 +82,7 @@ public: // Methods
...
@@ -82,7 +82,7 @@ public: // Methods
cpNext
->
cpPrev
=
cpPrev
;
cpNext
->
cpPrev
=
cpPrev
;
cpNext
=
NULL
;
cpNext
=
NULL
;
}
}
UtB
ool
OnList
()
{
return
cpNext
!=
NULL
;
}
b
ool
OnList
()
{
return
cpNext
!=
NULL
;
}
void
MakeNotOnList
()
{
cpNext
=
NULL
;
}
// Same as Remove but doesn't
void
MakeNotOnList
()
{
cpNext
=
NULL
;
}
// Same as Remove but doesn't
// patch up list
// patch up list
pCUtListElmt
GetNext
()
const
{
return
cpNext
;
}
pCUtListElmt
GetNext
()
const
{
return
cpNext
;
}
...
@@ -129,8 +129,8 @@ public: // Methods
...
@@ -129,8 +129,8 @@ public: // Methods
pCUtListElmt
GetLast
()
{
return
cDummyElmt
.
GetPrev
();
}
pCUtListElmt
GetLast
()
{
return
cDummyElmt
.
GetPrev
();
}
pCUtListElmt
GetTerminating
()
{
return
&
cDummyElmt
;
}
pCUtListElmt
GetTerminating
()
{
return
&
cDummyElmt
;
}
pCUtListElmt
GetNextOrNULL
(
pCUtListElmt
pCurr
);
pCUtListElmt
GetNextOrNULL
(
pCUtListElmt
pCurr
);
UtB
ool
IsEmpty
()
{
return
GetFirst
()
==
GetTerminating
();
};
b
ool
IsEmpty
()
{
return
GetFirst
()
==
GetTerminating
();
};
UtB
ool
ContainsAtLeastTwoItems
()
{
return
GetFirst
()
!=
GetLast
();
};
b
ool
ContainsAtLeastTwoItems
()
{
return
GetFirst
()
!=
GetLast
();
};
void
Destroy
(
void
);
void
Destroy
(
void
);
...
...
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