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
efe9bf61
Kaydet (Commit)
efe9bf61
authored
Şub 02, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I7d05020b6e07268349fb269bd58ce11aeddf6631
üst
108a9563
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
49 deletions
+49
-49
stgdir.cxx
sot/source/sdstor/stgdir.cxx
+0
-0
stgdir.hxx
sot/source/sdstor/stgdir.hxx
+29
-29
stgstrms.cxx
sot/source/sdstor/stgstrms.cxx
+0
-0
stgstrms.hxx
sot/source/sdstor/stgstrms.hxx
+20
-20
No files found.
sot/source/sdstor/stgdir.cxx
Dosyayı görüntüle @
efe9bf61
This diff is collapsed.
Click to expand it.
sot/source/sdstor/stgdir.hxx
Dosyayı görüntüle @
efe9bf61
...
@@ -43,46 +43,46 @@ class StgDirEntry : public StgAvlNode
...
@@ -43,46 +43,46 @@ class StgDirEntry : public StgAvlNode
StgTmpStrm
*
pCurStrm
;
// temp stream after commit
StgTmpStrm
*
pCurStrm
;
// temp stream after commit
sal_Int32
nEntry
;
// entry # in TOC stream (temp)
sal_Int32
nEntry
;
// entry # in TOC stream (temp)
sal_Int32
nPos
;
// current position
sal_Int32
nPos
;
// current position
sal_B
ool
bDirty
;
// dirty directory entry
b
ool
bDirty
;
// dirty directory entry
sal_B
ool
bCreated
;
// newly created entry
b
ool
bCreated
;
// newly created entry
sal_B
ool
bRemoved
;
// removed per Invalidate()
b
ool
bRemoved
;
// removed per Invalidate()
sal_B
ool
bRenamed
;
// renamed
b
ool
bRenamed
;
// renamed
void
InitMembers
();
// ctor helper
void
InitMembers
();
// ctor helper
virtual
short
Compare
(
const
StgAvlNode
*
)
const
;
virtual
short
Compare
(
const
StgAvlNode
*
)
const
;
sal_B
ool
StoreStream
(
StgIo
&
);
// store the stream
b
ool
StoreStream
(
StgIo
&
);
// store the stream
sal_B
ool
StoreStreams
(
StgIo
&
);
// store all streams
b
ool
StoreStreams
(
StgIo
&
);
// store all streams
void
RevertAll
();
// revert the whole tree
void
RevertAll
();
// revert the whole tree
sal_B
ool
Strm2Tmp
();
// copy stgstream to temp file
b
ool
Strm2Tmp
();
// copy stgstream to temp file
sal_B
ool
Tmp2Strm
();
// copy temp file to stgstream
b
ool
Tmp2Strm
();
// copy temp file to stgstream
public
:
public
:
StgEntry
aEntry
;
// entry data
StgEntry
aEntry
;
// entry data
sal_Int32
nRefCnt
;
// reference count
sal_Int32
nRefCnt
;
// reference count
StreamMode
nMode
;
// open mode
StreamMode
nMode
;
// open mode
sal_Bool
bTemp
;
// sal_T
rue: delete on dir flush
bool
bTemp
;
// t
rue: delete on dir flush
sal_Bool
bDirect
;
// sal_T
rue: direct mode
bool
bDirect
;
// t
rue: direct mode
sal_Bool
bZombie
;
// sal_T
rue: Removed From StgIo
bool
bZombie
;
// t
rue: Removed From StgIo
sal_Bool
bInvalid
;
// sal_T
rue: invalid entry
bool
bInvalid
;
// t
rue: invalid entry
StgDirEntry
(
const
void
*
pBuffer
,
sal_uInt32
nBufferLen
,
sal_B
ool
*
pbOk
);
StgDirEntry
(
const
void
*
pBuffer
,
sal_uInt32
nBufferLen
,
b
ool
*
pbOk
);
StgDirEntry
(
const
StgEntry
&
);
StgDirEntry
(
const
StgEntry
&
);
~
StgDirEntry
();
~
StgDirEntry
();
void
Invalidate
(
sal_Bool
=
sal_F
alse
);
// invalidate all open entries
void
Invalidate
(
bool
=
f
alse
);
// invalidate all open entries
void
Enum
(
sal_Int32
&
);
// enumerate entries for iteration
void
Enum
(
sal_Int32
&
);
// enumerate entries for iteration
void
DelTemp
(
sal_B
ool
);
// delete temporary entries
void
DelTemp
(
b
ool
);
// delete temporary entries
sal_B
ool
Store
(
StgDirStrm
&
);
// save entry into dir strm
b
ool
Store
(
StgDirStrm
&
);
// save entry into dir strm
sal_B
ool
IsContained
(
StgDirEntry
*
);
// check if subentry
b
ool
IsContained
(
StgDirEntry
*
);
// check if subentry
void
SetDirty
()
{
bDirty
=
sal_T
rue
;
}
void
SetDirty
()
{
bDirty
=
t
rue
;
}
sal_B
ool
IsDirty
();
b
ool
IsDirty
();
void
ClearDirty
();
void
ClearDirty
();
sal_B
ool
Commit
();
b
ool
Commit
();
sal_B
ool
Revert
();
b
ool
Revert
();
void
OpenStream
(
StgIo
&
,
sal_Bool
=
sal_F
alse
);
// set up an approbiate stream
void
OpenStream
(
StgIo
&
,
bool
=
f
alse
);
// set up an approbiate stream
void
Close
();
void
Close
();
sal_Int32
GetSize
();
sal_Int32
GetSize
();
sal_B
ool
SetSize
(
sal_Int32
);
b
ool
SetSize
(
sal_Int32
);
sal_Int32
Seek
(
sal_Int32
);
sal_Int32
Seek
(
sal_Int32
);
sal_Int32
Tell
()
{
return
nPos
;
}
sal_Int32
Tell
()
{
return
nPos
;
}
sal_Int32
Read
(
void
*
,
sal_Int32
);
sal_Int32
Read
(
void
*
,
sal_Int32
);
...
@@ -99,15 +99,15 @@ class StgDirStrm : public StgDataStrm
...
@@ -99,15 +99,15 @@ class StgDirStrm : public StgDataStrm
public
:
public
:
StgDirStrm
(
StgIo
&
);
StgDirStrm
(
StgIo
&
);
~
StgDirStrm
();
~
StgDirStrm
();
virtual
sal_B
ool
SetSize
(
sal_Int32
);
// change the size
virtual
b
ool
SetSize
(
sal_Int32
);
// change the size
sal_B
ool
Store
();
b
ool
Store
();
void
*
GetEntry
(
sal_Int32
n
,
sal_Bool
=
sal_F
alse
);
// get an entry
void
*
GetEntry
(
sal_Int32
n
,
bool
=
f
alse
);
// get an entry
StgDirEntry
*
GetRoot
()
{
return
pRoot
;
}
StgDirEntry
*
GetRoot
()
{
return
pRoot
;
}
StgDirEntry
*
Find
(
StgDirEntry
&
,
const
String
&
);
StgDirEntry
*
Find
(
StgDirEntry
&
,
const
String
&
);
StgDirEntry
*
Create
(
StgDirEntry
&
,
const
String
&
,
StgEntryType
);
StgDirEntry
*
Create
(
StgDirEntry
&
,
const
String
&
,
StgEntryType
);
sal_B
ool
Remove
(
StgDirEntry
&
,
const
String
&
);
b
ool
Remove
(
StgDirEntry
&
,
const
String
&
);
sal_B
ool
Rename
(
StgDirEntry
&
,
const
String
&
,
const
String
&
);
b
ool
Rename
(
StgDirEntry
&
,
const
String
&
,
const
String
&
);
sal_B
ool
Move
(
StgDirEntry
&
,
StgDirEntry
&
,
const
String
&
);
b
ool
Move
(
StgDirEntry
&
,
StgDirEntry
&
,
const
String
&
);
};
};
class
StgIterator
:
public
StgAvlIterator
class
StgIterator
:
public
StgAvlIterator
...
...
sot/source/sdstor/stgstrms.cxx
Dosyayı görüntüle @
efe9bf61
This diff is collapsed.
Click to expand it.
sot/source/sdstor/stgstrms.hxx
Dosyayı görüntüle @
efe9bf61
...
@@ -30,7 +30,7 @@ class StgPage;
...
@@ -30,7 +30,7 @@ class StgPage;
class
StgDirEntry
;
class
StgDirEntry
;
// The FAT class performs FAT operations on an underlying storage stream.
// The FAT class performs FAT operations on an underlying storage stream.
// This stream is either the physical FAT stream (bPhys ==
sal_T
rue ) or a normal
// This stream is either the physical FAT stream (bPhys ==
t
rue ) or a normal
// storage stream, which then holds the FAT for small data allocations.
// storage stream, which then holds the FAT for small data allocations.
class
StgFAT
class
StgFAT
...
@@ -41,16 +41,16 @@ class StgFAT
...
@@ -41,16 +41,16 @@ class StgFAT
short
nEntries
;
// FAT entries per page
short
nEntries
;
// FAT entries per page
short
nOffset
;
// current offset within page
short
nOffset
;
// current offset within page
sal_Int32
nLimit
;
// search limit recommendation
sal_Int32
nLimit
;
// search limit recommendation
sal_Bool
bPhys
;
// sal_T
rue: physical FAT
bool
bPhys
;
// t
rue: physical FAT
rtl
::
Reference
<
StgPage
>
GetPhysPage
(
sal_Int32
nPage
);
rtl
::
Reference
<
StgPage
>
GetPhysPage
(
sal_Int32
nPage
);
sal_B
ool
MakeChain
(
sal_Int32
nStart
,
sal_Int32
nPages
);
b
ool
MakeChain
(
sal_Int32
nStart
,
sal_Int32
nPages
);
sal_B
ool
InitNew
(
sal_Int32
nPage1
);
b
ool
InitNew
(
sal_Int32
nPage1
);
public
:
public
:
StgFAT
(
StgStrm
&
rStrm
,
sal_B
ool
bMark
);
StgFAT
(
StgStrm
&
rStrm
,
b
ool
bMark
);
sal_Int32
FindBlock
(
sal_Int32
&
nPages
);
sal_Int32
FindBlock
(
sal_Int32
&
nPages
);
sal_Int32
GetNextPage
(
sal_Int32
nPg
);
sal_Int32
GetNextPage
(
sal_Int32
nPg
);
sal_Int32
AllocPages
(
sal_Int32
nStart
,
sal_Int32
nPages
);
sal_Int32
AllocPages
(
sal_Int32
nStart
,
sal_Int32
nPages
);
sal_Bool
FreePages
(
sal_Int32
nStart
,
sal_B
ool
bAll
);
bool
FreePages
(
sal_Int32
nStart
,
b
ool
bAll
);
sal_Int32
GetMaxPage
()
{
return
nMaxPage
;
}
sal_Int32
GetMaxPage
()
{
return
nMaxPage
;
}
void
SetLimit
(
sal_Int32
n
)
{
nLimit
=
n
;
}
void
SetLimit
(
sal_Int32
n
)
{
nLimit
=
n
;
}
};
};
...
@@ -72,7 +72,7 @@ protected:
...
@@ -72,7 +72,7 @@ protected:
short
nPageSize
;
// logical page size
short
nPageSize
;
// logical page size
std
::
vector
<
sal_Int32
>
m_aPagesCache
;
std
::
vector
<
sal_Int32
>
m_aPagesCache
;
void
scanBuildPageChainCache
(
sal_Int32
*
pOptionalCalcSize
=
NULL
);
void
scanBuildPageChainCache
(
sal_Int32
*
pOptionalCalcSize
=
NULL
);
sal_B
ool
Copy
(
sal_Int32
nFrom
,
sal_Int32
nBytes
);
b
ool
Copy
(
sal_Int32
nFrom
,
sal_Int32
nBytes
);
StgStrm
(
StgIo
&
);
StgStrm
(
StgIo
&
);
public
:
public
:
virtual
~
StgStrm
();
virtual
~
StgStrm
();
...
@@ -85,12 +85,12 @@ public:
...
@@ -85,12 +85,12 @@ public:
sal_Int32
GetPages
()
const
;
sal_Int32
GetPages
()
const
;
short
GetOffset
()
const
{
return
nOffset
;}
short
GetOffset
()
const
{
return
nOffset
;}
void
SetEntry
(
StgDirEntry
&
);
void
SetEntry
(
StgDirEntry
&
);
virtual
sal_B
ool
SetSize
(
sal_Int32
);
virtual
b
ool
SetSize
(
sal_Int32
);
virtual
sal_B
ool
Pos2Page
(
sal_Int32
nBytePos
);
virtual
b
ool
Pos2Page
(
sal_Int32
nBytePos
);
virtual
sal_Int32
Read
(
void
*
,
sal_Int32
)
{
return
0
;
}
virtual
sal_Int32
Read
(
void
*
,
sal_Int32
)
{
return
0
;
}
virtual
sal_Int32
Write
(
const
void
*
,
sal_Int32
)
{
return
0
;
}
virtual
sal_Int32
Write
(
const
void
*
,
sal_Int32
)
{
return
0
;
}
virtual
rtl
::
Reference
<
StgPage
>
GetPhysPage
(
sal_Int32
nBytePos
,
sal_Bool
bForce
=
sal_F
alse
);
virtual
rtl
::
Reference
<
StgPage
>
GetPhysPage
(
sal_Int32
nBytePos
,
bool
bForce
=
f
alse
);
virtual
sal_Bool
IsSmallStrm
()
const
{
return
sal_F
alse
;
}
virtual
bool
IsSmallStrm
()
const
{
return
f
alse
;
}
};
};
// The FAT stream class provides physical access to the master FAT.
// The FAT stream class provides physical access to the master FAT.
...
@@ -98,15 +98,15 @@ public:
...
@@ -98,15 +98,15 @@ public:
// FAT allocator.
// FAT allocator.
class
StgFATStrm
:
public
StgStrm
{
// the master FAT stream
class
StgFATStrm
:
public
StgStrm
{
// the master FAT stream
virtual
sal_B
ool
Pos2Page
(
sal_Int32
nBytePos
);
virtual
b
ool
Pos2Page
(
sal_Int32
nBytePos
);
sal_B
ool
SetPage
(
short
,
sal_Int32
);
b
ool
SetPage
(
short
,
sal_Int32
);
public
:
public
:
StgFATStrm
(
StgIo
&
);
StgFATStrm
(
StgIo
&
);
virtual
~
StgFATStrm
()
{}
virtual
~
StgFATStrm
()
{}
using
StgStrm
::
GetPage
;
using
StgStrm
::
GetPage
;
sal_Int32
GetPage
(
short
,
sal_B
ool
,
sal_uInt16
*
pnMasterAlloc
=
0
);
sal_Int32
GetPage
(
short
,
b
ool
,
sal_uInt16
*
pnMasterAlloc
=
0
);
virtual
sal_B
ool
SetSize
(
sal_Int32
);
virtual
b
ool
SetSize
(
sal_Int32
);
virtual
rtl
::
Reference
<
StgPage
>
GetPhysPage
(
sal_Int32
nBytePos
,
sal_Bool
bForce
=
sal_F
alse
);
virtual
rtl
::
Reference
<
StgPage
>
GetPhysPage
(
sal_Int32
nBytePos
,
bool
bForce
=
f
alse
);
};
};
// The stream has a size increment which normally is 1, but which can be
// The stream has a size increment which normally is 1, but which can be
...
@@ -119,9 +119,9 @@ class StgDataStrm : public StgStrm // a physical data stream
...
@@ -119,9 +119,9 @@ class StgDataStrm : public StgStrm // a physical data stream
public
:
public
:
StgDataStrm
(
StgIo
&
,
sal_Int32
nBgn
,
sal_Int32
nLen
=-
1
);
StgDataStrm
(
StgIo
&
,
sal_Int32
nBgn
,
sal_Int32
nLen
=-
1
);
StgDataStrm
(
StgIo
&
,
StgDirEntry
&
);
StgDataStrm
(
StgIo
&
,
StgDirEntry
&
);
void
*
GetPtr
(
sal_Int32
nPos
,
sal_Bool
bForce
,
sal_B
ool
bDirty
);
void
*
GetPtr
(
sal_Int32
nPos
,
bool
bForce
,
b
ool
bDirty
);
void
SetIncrement
(
short
n
)
{
nIncr
=
n
;
}
void
SetIncrement
(
short
n
)
{
nIncr
=
n
;
}
virtual
sal_B
ool
SetSize
(
sal_Int32
);
virtual
b
ool
SetSize
(
sal_Int32
);
virtual
sal_Int32
Read
(
void
*
,
sal_Int32
);
virtual
sal_Int32
Read
(
void
*
,
sal_Int32
);
virtual
sal_Int32
Write
(
const
void
*
,
sal_Int32
);
virtual
sal_Int32
Write
(
const
void
*
,
sal_Int32
);
};
};
...
@@ -140,7 +140,7 @@ public:
...
@@ -140,7 +140,7 @@ public:
StgSmallStrm
(
StgIo
&
,
StgDirEntry
&
);
StgSmallStrm
(
StgIo
&
,
StgDirEntry
&
);
virtual
sal_Int32
Read
(
void
*
,
sal_Int32
);
virtual
sal_Int32
Read
(
void
*
,
sal_Int32
);
virtual
sal_Int32
Write
(
const
void
*
,
sal_Int32
);
virtual
sal_Int32
Write
(
const
void
*
,
sal_Int32
);
virtual
sal_Bool
IsSmallStrm
()
const
{
return
sal_T
rue
;
}
virtual
bool
IsSmallStrm
()
const
{
return
t
rue
;
}
};
};
class
StgTmpStrm
:
public
SvMemoryStream
class
StgTmpStrm
:
public
SvMemoryStream
...
@@ -156,7 +156,7 @@ class StgTmpStrm : public SvMemoryStream
...
@@ -156,7 +156,7 @@ class StgTmpStrm : public SvMemoryStream
public
:
public
:
StgTmpStrm
(
sal_uLong
=
16
);
StgTmpStrm
(
sal_uLong
=
16
);
~
StgTmpStrm
();
~
StgTmpStrm
();
sal_B
ool
Copy
(
StgTmpStrm
&
);
b
ool
Copy
(
StgTmpStrm
&
);
void
SetSize
(
sal_uLong
);
void
SetSize
(
sal_uLong
);
sal_uLong
GetSize
()
const
;
sal_uLong
GetSize
()
const
;
};
};
...
...
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