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
214ef61b
Kaydet (Commit)
214ef61b
authored
Şub 28, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix leak
Change-Id: Id501339e1576277655c53e0cf0d172947640d64e
üst
11c92df5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
23 deletions
+14
-23
lwpfoundry.cxx
lotuswordpro/source/filter/lwpfoundry.cxx
+7
-16
lwpfoundry.hxx
lotuswordpro/source/filter/lwpfoundry.hxx
+7
-7
No files found.
lotuswordpro/source/filter/lwpfoundry.cxx
Dosyayı görüntüle @
214ef61b
...
...
@@ -72,28 +72,20 @@
#include "xfilter/xfstylemanager.hxx"
#include "lwplayout.hxx"
#include <osl/diagnose.h>
LwpFoundry
::
LwpFoundry
(
LwpObjectStream
*
pStrm
,
LwpDocument
*
pDoc
)
:
m_pDoc
(
pDoc
)
,
m_bRegisteredAll
(
false
)
,
m_pPieceMgr
(
nullptr
)
,
m_pStyleMgr
(
nullptr
)
{
Read
(
pStrm
);
m_
pDropcapMgr
=
new
LwpDropcapMgr
;
m_
pBulletStyleMgr
=
new
LwpBulletStyleMgr
(
);
m_
p
BulletStyleMgr
->
SetFoundry
(
this
);
m_
xDropcapMgr
.
reset
(
new
LwpDropcapMgr
)
;
m_
xBulletStyleMgr
.
reset
(
new
LwpBulletStyleMgr
);
m_
x
BulletStyleMgr
->
SetFoundry
(
this
);
}
LwpFoundry
::~
LwpFoundry
()
{
delete
m_pPieceMgr
;
delete
m_pStyleMgr
;
delete
m_pDropcapMgr
;
delete
m_pBulletStyleMgr
;
}
void
LwpFoundry
::
Read
(
LwpObjectStream
*
pStrm
)
...
...
@@ -132,9 +124,8 @@ void LwpFoundry::Read(LwpObjectStream *pStrm)
if
(
!
m_pDoc
->
IsChildDoc
()
&&
LwpFileHeader
::
m_nFileRevision
>=
0x000B
)
{
m_pPieceMgr
=
new
LwpPieceManager
();
m_pPieceMgr
->
Read
(
pStrm
);
m_xPieceMgr
.
reset
(
new
LwpPieceManager
);
m_xPieceMgr
->
Read
(
pStrm
);
}
if
(
LwpFileHeader
::
m_nFileRevision
>=
0x000B
)
...
...
@@ -148,8 +139,8 @@ void LwpFoundry::Read(LwpObjectStream *pStrm)
}
pStrm
->
SkipExtra
();
m_
pStyleMgr
=
new
LwpStyleManager
(
);
m_
p
StyleMgr
->
SetFoundry
(
this
);
m_
xStyleMgr
.
reset
(
new
LwpStyleManager
);
m_
x
StyleMgr
->
SetFoundry
(
this
);
}
void
LwpFoundry
::
ReadStyles
(
LwpObjectStream
*
pStrm
)
...
...
lotuswordpro/source/filter/lwpfoundry.hxx
Dosyayı görüntüle @
214ef61b
...
...
@@ -240,7 +240,7 @@ private: //file members
LwpContentManager
m_ContentMgr
;
LwpFontManager
m_FontMgr
;
LwpPieceManager
*
m_p
PieceMgr
;
std
::
unique_ptr
<
LwpPieceManager
>
m_x
PieceMgr
;
LwpObjectID
m_DftDropCapStyle
;
LwpObjectID
m_DftHeaderStyle
;
...
...
@@ -259,16 +259,16 @@ public:
inline
LwpNumberManager
&
GetNumberManager
()
{
return
m_NumMgr
;}
LwpObjectID
*
GetDefaultTextStyle
()
;
private
:
LwpStyleManager
*
m_p
StyleMgr
;
LwpDropcapMgr
*
m_p
DropcapMgr
;
LwpBulletStyleMgr
*
m_p
BulletStyleMgr
;
std
::
unique_ptr
<
LwpStyleManager
>
m_x
StyleMgr
;
std
::
unique_ptr
<
LwpDropcapMgr
>
m_x
DropcapMgr
;
std
::
unique_ptr
<
LwpBulletStyleMgr
>
m_x
BulletStyleMgr
;
public
:
inline
LwpStyleManager
*
GetStyleManager
()
{
return
m_pStyleMgr
;
}
LwpStyleManager
*
GetStyleManager
()
{
return
m_xStyleMgr
.
get
();
}
LwpBookMark
*
GetBookMark
(
LwpObjectID
objMarker
);
LwpDropcapMgr
*
GetDropcapMgr
()
{
return
m_pDropcapMgr
;
}
LwpDropcapMgr
*
GetDropcapMgr
()
{
return
m_xDropcapMgr
.
get
();
}
LwpContent
*
EnumContents
(
LwpContent
*
pContent
);
LwpSection
*
EnumSections
(
LwpSection
*
pSection
);
LwpBulletStyleMgr
*
GetBulletStyleMgr
()
{
return
m_pBulletStyleMgr
;
}
LwpBulletStyleMgr
*
GetBulletStyleMgr
()
{
return
m_xBulletStyleMgr
.
get
();
}
LwpObjectID
*
FindParaStyleByName
(
const
OUString
&
name
);
OUString
FindActuralStyleName
(
const
OUString
&
name
);
...
...
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