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
a0ebf6ee
Kaydet (Commit)
a0ebf6ee
authored
Ara 23, 2011
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "callcatcher: Remove unused code"
This reverts commit
bbad7057
.
üst
bbad7057
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
0 deletions
+94
-0
pstm.hxx
tools/inc/tools/pstm.hxx
+5
-0
stream.hxx
tools/inc/tools/stream.hxx
+1
-0
svborder.hxx
tools/inc/tools/svborder.hxx
+1
-0
svborder.cxx
tools/source/generic/svborder.cxx
+18
-0
pstm.cxx
tools/source/ref/pstm.cxx
+58
-0
strmunx.cxx
tools/source/stream/strmunx.cxx
+11
-0
No files found.
tools/inc/tools/pstm.hxx
Dosyayı görüntüle @
a0ebf6ee
...
...
@@ -127,6 +127,7 @@ class TOOLS_DLLPUBLIC SvPersistBaseMemberList : public SuperSvPersistBaseMemberL
{
public
:
SvPersistBaseMemberList
();
SvPersistBaseMemberList
(
sal_uInt16
nInitSz
,
sal_uInt16
nResize
);
void
WriteObjects
(
SvPersistStream
&
,
sal_Bool
bOnlyStreamedObj
=
sal_False
)
const
;
TOOLS_DLLPUBLIC
friend
SvPersistStream
&
operator
<<
(
SvPersistStream
&
,
const
SvPersistBaseMemberList
&
);
...
...
@@ -216,6 +217,8 @@ public:
SvPersistStream
(
SvClassManager
&
,
SvStream
*
pStream
,
sal_uInt32
nStartIdx
=
1
);
SvPersistStream
(
SvClassManager
&
,
SvStream
*
pStream
,
const
SvPersistStream
&
rPersStm
);
~
SvPersistStream
();
void
SetStream
(
SvStream
*
pStream
);
...
...
@@ -244,6 +247,8 @@ public:
// gespeichert werden.
friend
SvStream
&
operator
>>
(
SvStream
&
,
SvPersistStream
&
);
friend
SvStream
&
operator
<<
(
SvStream
&
,
SvPersistStream
&
);
sal_uIntPtr
InsertObj
(
SvPersistBase
*
);
sal_uIntPtr
RemoveObj
(
SvPersistBase
*
);
};
#endif // _PSTM_HXX
...
...
tools/inc/tools/stream.hxx
Dosyayı görüntüle @
a0ebf6ee
...
...
@@ -651,6 +651,7 @@ public:
sal_Bool
LockRange
(
sal_Size
nByteOffset
,
sal_Size
nBytes
);
sal_Bool
UnlockRange
(
sal_Size
nByteOffset
,
sal_Size
nBytes
);
sal_Bool
LockFile
();
sal_Bool
UnlockFile
();
void
Open
(
const
String
&
rFileName
,
StreamMode
eOpenMode
);
void
Close
();
...
...
tools/inc/tools/svborder.hxx
Dosyayı görüntüle @
a0ebf6ee
...
...
@@ -40,6 +40,7 @@ public:
{
nTop
=
nRight
=
nBottom
=
nLeft
=
0
;
}
SvBorder
(
const
Size
&
rSz
)
{
nTop
=
nBottom
=
rSz
.
Height
();
nRight
=
nLeft
=
rSz
.
Width
();
}
SvBorder
(
const
Rectangle
&
rOuter
,
const
Rectangle
&
rInner
);
SvBorder
(
long
nLeftP
,
long
nTopP
,
long
nRightP
,
long
nBottomP
)
{
nLeft
=
nLeftP
;
nTop
=
nTopP
;
nRight
=
nRightP
;
nBottom
=
nBottomP
;
}
sal_Bool
operator
==
(
const
SvBorder
&
rObj
)
const
...
...
tools/source/generic/svborder.cxx
Dosyayı görüntüle @
a0ebf6ee
...
...
@@ -30,6 +30,24 @@
#include <tools/svborder.hxx>
#include <osl/diagnose.h>
SvBorder
::
SvBorder
(
const
Rectangle
&
rOuter
,
const
Rectangle
&
rInner
)
{
Rectangle
aOuter
(
rOuter
);
aOuter
.
Justify
();
Rectangle
aInner
(
rInner
);
if
(
aInner
.
IsEmpty
()
)
aInner
=
Rectangle
(
aOuter
.
Center
(),
aOuter
.
Center
()
);
else
aInner
.
Justify
();
OSL_ENSURE
(
aOuter
.
IsInside
(
aInner
),
"SvBorder::SvBorder: sal_False == aOuter.IsInside( aInner )"
);
nTop
=
aInner
.
Top
()
-
aOuter
.
Top
();
nRight
=
aOuter
.
Right
()
-
aInner
.
Right
();
nBottom
=
aOuter
.
Bottom
()
-
aInner
.
Bottom
();
nLeft
=
aInner
.
Left
()
-
aOuter
.
Left
();
}
Rectangle
&
operator
+=
(
Rectangle
&
rRect
,
const
SvBorder
&
rBorder
)
{
// wegen Empty-Rect, GetSize muss als erstes gerufen werden
...
...
tools/source/ref/pstm.cxx
Dosyayı görüntüle @
a0ebf6ee
...
...
@@ -62,6 +62,9 @@ TYPEINIT0( SvRttiBase );
/****************** SvPersistBaseMemberList ******************************/
SvPersistBaseMemberList
::
SvPersistBaseMemberList
(){}
SvPersistBaseMemberList
::
SvPersistBaseMemberList
(
sal_uInt16
nInitSz
,
sal_uInt16
nResize
)
:
SuperSvPersistBaseMemberList
(
nInitSz
,
nResize
){}
#define PERSIST_LIST_VER (sal_uInt8)0
#define PERSIST_LIST_DBGUTIL (sal_uInt8)0x80
...
...
@@ -196,6 +199,44 @@ SvPersistStream::SvPersistStream
}
}
//=========================================================================
SvPersistStream
::
SvPersistStream
(
SvClassManager
&
rMgr
,
/* Alle Factorys, deren Objekt geladen und
gespeichert werdn k"onnen */
SvStream
*
pStream
,
/* Dieser Stream wird als Medium genommen, auf
dem der PersistStream arbeitet */
const
SvPersistStream
&
rPersStm
/* Wenn PersistStream's verschachtelt werden,
dann ist dies der Parent-Stream. */
)
:
rClassMgr
(
rMgr
)
,
pStm
(
pStream
)
// Bereiche nicht ueberschneiden, deshalb nur groessere Indexe
,
aPUIdx
(
rPersStm
.
GetCurMaxIndex
()
+
1
)
,
nStartIdx
(
rPersStm
.
GetCurMaxIndex
()
+
1
)
,
pRefStm
(
&
rPersStm
)
,
nFlags
(
0
)
/* [Beschreibung]
Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und
pStream d"urfen nicht ver"andert werden, solange sie in einem
SvPersistStream eingesetzt sind. Eine Aussnahme gibt es f"ur
pStream (siehe <SvPersistStream::SetStream>).
Durch diesen Konstruktor wird eine Hierarchiebildung unterst"utzt.
Alle Objekte aus einer Hierarchie m"ussen erst geladen werden,
wenn das erste aus dieser Hierarchie benutzt werden soll.
*/
{
bIsWritable
=
sal_True
;
if
(
pStm
)
{
SetVersion
(
pStm
->
GetVersion
()
);
SetError
(
pStm
->
GetError
()
);
SyncSvStream
(
pStm
->
Tell
()
);
}
}
//=========================================================================
SvPersistStream
::~
SvPersistStream
()
/* [Beschreibung]
...
...
@@ -862,4 +903,21 @@ SvStream& operator >>
return
rStm
;
}
//=========================================================================
sal_uIntPtr
SvPersistStream
::
InsertObj
(
SvPersistBase
*
pObj
)
{
sal_uIntPtr
nId
=
aPUIdx
.
Insert
(
pObj
);
aPTable
.
Insert
(
(
sal_uIntPtr
)
pObj
,
(
void
*
)
nId
);
return
nId
;
}
//=========================================================================
sal_uIntPtr
SvPersistStream
::
RemoveObj
(
SvPersistBase
*
pObj
)
{
sal_uIntPtr
nIdx
=
GetIndex
(
pObj
);
aPUIdx
.
Remove
(
nIdx
);
aPTable
.
Remove
(
(
sal_uIntPtr
)
pObj
);
return
nIdx
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
tools/source/stream/strmunx.cxx
Dosyayı görüntüle @
a0ebf6ee
...
...
@@ -590,6 +590,17 @@ sal_Bool SvFileStream::LockFile()
return
LockRange
(
0UL
,
0UL
);
}
/*************************************************************************
|*
|* SvFileStream::UnlockFile()
|*
*************************************************************************/
sal_Bool
SvFileStream
::
UnlockFile
()
{
return
UnlockRange
(
0UL
,
0UL
);
}
/*************************************************************************
|*
|* SvFileStream::Open()
...
...
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