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
19a23df7
Kaydet (Commit)
19a23df7
authored
Eki 02, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
valgrind: fix some leaks
üst
d820977d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
45 deletions
+40
-45
localtime.cxx
lotuswordpro/source/filter/localtime.cxx
+1
-0
lwpframelayout.cxx
lotuswordpro/source/filter/lwpframelayout.cxx
+16
-27
lwpgrfobj.cxx
lotuswordpro/source/filter/lwpgrfobj.cxx
+2
-5
lwpobjstrm.cxx
lotuswordpro/source/filter/lwpobjstrm.cxx
+4
-3
lwppara1.cxx
lotuswordpro/source/filter/lwppara1.cxx
+2
-2
xfconfigmanager.cxx
lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx
+13
-6
xfconfigmanager.hxx
lotuswordpro/source/filter/xfilter/xfconfigmanager.hxx
+1
-0
xfcontentcontainer.cxx
lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx
+1
-2
No files found.
lotuswordpro/source/filter/localtime.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -185,6 +185,7 @@ bool LtgLocalTime(long rtime,LtTm& rtm)
{
TimeZone
*
pLocalZone
=
TimeZone
::
createDefault
();
long
offset
=
(
pLocalZone
->
getRawOffset
())
/
1000
;
delete
pLocalZone
;
long
ltime
=
rtime
+
offset
;
return
LtgGmTime
(
ltime
,
rtm
);
}
...
...
lotuswordpro/source/filter/lwpframelayout.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -764,16 +764,11 @@ void LwpFrameLink::Read(LwpObjectStream* pStrm)
LwpFrameLayout
::
LwpFrameLayout
(
LwpObjectHeader
&
objHdr
,
LwpSvStream
*
pStrm
)
:
LwpPlacableLayout
(
objHdr
,
pStrm
),
m_pFrame
(
NULL
)
{
}
LwpFrameLayout
::~
LwpFrameLayout
()
{
if
(
m_pFrame
)
{
delete
m_pFrame
;
m_pFrame
=
NULL
;
}
delete
m_pFrame
;
}
/**
...
...
@@ -856,10 +851,12 @@ void LwpFrameLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart
void
LwpFrameLayout
::
RegisterStyle
()
{
//if it is for water mark, don't register style
if
(
IsForWaterMark
())
{
if
(
IsForWaterMark
())
return
;
}
if
(
m_pFrame
)
return
;
//register frame style
XFFrameStyle
*
pFrameStyle
=
new
XFFrameStyle
();
m_pFrame
=
new
LwpFrame
(
this
);
...
...
@@ -875,9 +872,8 @@ void LwpFrameLayout::RegisterStyle()
//register child frame style
RegisterChildStyle
();
}
/**
* @descr get the name of the frame that current frame links
*
...
...
@@ -1021,18 +1017,15 @@ void LwpFrameLayout::ApplyGraphicSize(XFFrame * pXFFrame)
}
LwpGroupLayout
::
LwpGroupLayout
(
LwpObjectHeader
&
objHdr
,
LwpSvStream
*
pStrm
)
:
LwpPlacableLayout
(
objHdr
,
pStrm
),
m_pFrame
(
NULL
)
:
LwpPlacableLayout
(
objHdr
,
pStrm
)
,
m_pFrame
(
NULL
)
{
}
LwpGroupLayout
::~
LwpGroupLayout
()
{
if
(
m_pFrame
)
{
delete
m_pFrame
;
m_pFrame
=
NULL
;
}
delete
m_pFrame
;
}
/**
* @descr read group layout object
...
...
@@ -1049,6 +1042,9 @@ void LwpGroupLayout::Read()
*/
void
LwpGroupLayout
::
RegisterStyle
()
{
if
(
m_pFrame
)
return
;
//register frame style
XFFrameStyle
*
pFrameStyle
=
new
XFFrameStyle
();
m_pFrame
=
new
LwpFrame
(
this
);
...
...
@@ -1056,15 +1052,6 @@ void LwpGroupLayout::RegisterStyle()
//register child frame style
RegisterChildStyle
();
/*
LwpVirtualLayout* pLayout = static_cast<LwpVirtualLayout*>(GetChildHead()->obj());
while(pLayout)
{
pLayout->SetFoundry(m_pFoundry);
pLayout->RegisterStyle();
pLayout = static_cast<LwpVirtualLayout*>(pLayout->GetNext()->obj());
}
*/
}
/**
* @descr create a xfframe and add into content container
...
...
@@ -1134,9 +1121,11 @@ void LwpGroupFrame::Read()
m_pObjStrm
->
SkipExtra
();
}
void
LwpGroupFrame
::
RegisterStyle
()
void
LwpGroupFrame
::
RegisterStyle
()
{
}
void
LwpGroupFrame
::
XFConvert
(
XFContentContainer
*
/*pCont*/
)
{
}
...
...
lotuswordpro/source/filter/lwpgrfobj.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -100,10 +100,11 @@ LwpGraphicObject::LwpGraphicObject(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
memset
(
m_sDataFormat
,
0
,
sizeof
(
m_sDataFormat
));
memset
(
m_sServerContextFormat
,
0
,
sizeof
(
m_sServerContextFormat
));
}
LwpGraphicObject
::~
LwpGraphicObject
()
{
m_vXFDrawObjects
.
clear
();
}
void
LwpGraphicObject
::
Read
()
{
LwpGraphicOleObject
::
Read
();
...
...
@@ -213,7 +214,6 @@ void LwpGraphicObject::XFConvert (XFContentContainer* pCont)
std
::
vector
<
XFFrame
*>::
iterator
iter
;
for
(
iter
=
m_vXFDrawObjects
.
begin
();
iter
!=
m_vXFDrawObjects
.
end
();
++
iter
)
{
//pPara->Add(*iter);
pCont
->
Add
(
*
iter
);
}
...
...
@@ -457,7 +457,6 @@ sal_uInt32 LwpGraphicObject::GetGrafData(sal_uInt8*& pGrafData)
*/
void
LwpGraphicObject
::
CreateGrafObject
()
{
XFImage
*
pImage
=
new
XFImage
();
// set image processing styles
...
...
@@ -594,8 +593,6 @@ void LwpGraphicObject::CreateGrafObject()
else
{
// set left-top alignment
// pImageStyle->SetXPosType(enumXFFrameXPosLeft, enumXFFrameXRelFrame);
// pImageStyle->SetYPosType(enumXFFrameYPosTop, enumXFFrameYRelFrame);
pImageStyle
->
SetYPosType
(
enumXFFrameYPosFromTop
,
enumXFFrameYRelFrame
);
pImageStyle
->
SetXPosType
(
enumXFFrameXPosFromLeft
,
enumXFFrameXRelFrame
);
...
...
lotuswordpro/source/filter/lwpobjstrm.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -60,6 +60,7 @@
#include "lwpobjstrm.hxx"
#include "lwptools.hxx"
#include <boost/scoped_array.hpp>
/**
* @descr ctor() from LwpSvStream
...
...
@@ -99,15 +100,15 @@ void LwpObjectStream::Read2Buffer()
if
(
m_bCompressed
)
{
sal_uInt8
*
pCompressBuffer
=
new
sal_uInt8
[
m_nBufSize
];
boost
::
scoped_array
<
sal_uInt8
>
xCompressBuf
(
new
sal_uInt8
[
m_nBufSize
]);
sal_uInt8
*
pCompressBuffer
=
xCompressBuf
.
get
();
memset
(
pCompressBuffer
,
0
,
m_nBufSize
);
m_pStrm
->
Read
(
pCompressBuffer
,
m_nBufSize
);
sal_uInt8
pTempDst
[
IO_BUFFERSIZE
];
m_nBufSize
=
DecompressBuffer
(
pTempDst
,
pCompressBuffer
,
m_nBufSize
);
assert
(
m_nBufSize
<
IO_BUFFERSIZE
);
delete
[]
pCompressBuffer
;
pCompressBuffer
=
NULL
;
m_pContentBuf
=
AllocBuffer
(
m_nBufSize
);
memcpy
(
m_pContentBuf
,
pTempDst
,
m_nBufSize
);
...
...
lotuswordpro/source/filter/lwppara1.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -356,7 +356,7 @@ void LwpPara::OverrideParaBorder(LwpParaProperty* pProps, XFParaStyle* pOverStyl
LwpOverride
*
pBorder
=
pParaStyle
->
GetParaBorder
();
SAL_WNODEPRECATED_DECLARATIONS_PUSH
std
::
auto
_ptr
<
LwpParaBorderOverride
>
pFinalBorder
(
boost
::
scoped
_ptr
<
LwpParaBorderOverride
>
pFinalBorder
(
pBorder
?
polymorphic_downcast
<
LwpParaBorderOverride
*>
(
pBorder
->
clone
())
:
new
LwpParaBorderOverride
)
...
...
@@ -372,7 +372,7 @@ void LwpPara::OverrideParaBorder(LwpParaProperty* pProps, XFParaStyle* pOverStyl
pLocalBorder
->
Override
(
pFinalBorder
.
get
());
}
pParaStyle
->
ApplyParaBorder
(
pOverStyle
,
pFinalBorder
.
release
());
pParaStyle
->
ApplyParaBorder
(
pOverStyle
,
pFinalBorder
.
get
());
}
/**
* @short: Override parabreaks style.
...
...
lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -60,13 +60,21 @@
#include "xfconfigmanager.hxx"
XFConfigManager
::
XFConfigManager
()
:
m_pLineNumberConfig
(
0
)
,
m_pFootnoteConfig
(
0
)
,
m_pEndnoteConfig
(
0
)
{
m_pLineNumberConfig
=
NULL
;
m_pFootnoteConfig
=
NULL
;
m_pEndnoteConfig
=
NULL
;
}
void
XFConfigManager
::
SetLineNumberConfig
(
XFLineNumberConfig
*
pLNConfig
)
XFConfigManager
::~
XFConfigManager
()
{
delete
m_pEndnoteConfig
;
delete
m_pFootnoteConfig
;
delete
m_pLineNumberConfig
;
}
void
XFConfigManager
::
SetLineNumberConfig
(
XFLineNumberConfig
*
pLNConfig
)
{
if
(
m_pLineNumberConfig
)
delete
m_pLineNumberConfig
;
...
...
@@ -82,8 +90,7 @@ void XFConfigManager::SetFootnoteConfig(XFFootnoteConfig *pFNConfig)
void
XFConfigManager
::
SetEndnoteConfig
(
XFEndnoteConfig
*
pENConfig
)
{
if
(
m_pEndnoteConfig
)
delete
m_pEndnoteConfig
;
delete
m_pEndnoteConfig
;
m_pEndnoteConfig
=
pENConfig
;
}
...
...
lotuswordpro/source/filter/xfilter/xfconfigmanager.hxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -76,6 +76,7 @@ class XFConfigManager : public XFStyleContainer
{
public
:
XFConfigManager
();
~
XFConfigManager
();
public
:
/**
...
...
lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx
Dosyayı görüntüle @
19a23df7
...
...
@@ -104,8 +104,7 @@ XFContentContainer::~XFContentContainer()
for
(
it
=
m_aContents
.
begin
();
it
!=
m_aContents
.
end
();
++
it
)
{
IXFContent
*
pContent
=
*
it
;
if
(
pContent
)
delete
pContent
;
delete
pContent
;
}
}
...
...
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