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
a4d39c8a
Kaydet (Commit)
a4d39c8a
authored
Eki 22, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: remove unused DffBlock class in doctok
Change-Id: I4b8cd7d7166f100bd718d2bf00ae44d347000f6d
üst
520a67cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
155 deletions
+0
-155
Dff.cxx
writerfilter/source/doctok/Dff.cxx
+0
-121
Dff.hxx
writerfilter/source/doctok/Dff.hxx
+0
-34
No files found.
writerfilter/source/doctok/Dff.cxx
Dosyayı görüntüle @
a4d39c8a
...
@@ -323,127 +323,6 @@ Sprm::Kind DffRecord::getKind()
...
@@ -323,127 +323,6 @@ Sprm::Kind DffRecord::getKind()
return
Sprm
::
UNKNOWN
;
return
Sprm
::
UNKNOWN
;
}
}
DffBlock
::
DffBlock
(
WW8Stream
&
rStream
,
sal_uInt32
nOffset
,
sal_uInt32
nCount
,
sal_uInt32
nPadding
)
:
WW8StructBase
(
rStream
,
nOffset
,
nCount
),
mnPadding
(
nPadding
)
{
}
DffBlock
::
DffBlock
(
WW8StructBase
*
pParent
,
sal_uInt32
nOffset
,
sal_uInt32
nCount
,
sal_uInt32
nPadding
)
:
WW8StructBase
(
pParent
,
nOffset
,
nCount
),
mnPadding
(
nPadding
)
{
}
DffBlock
::
DffBlock
(
const
DffBlock
&
rSrc
)
:
WW8StructBase
(
rSrc
),
writerfilter
::
Reference
<
Properties
>
(
rSrc
),
mnPadding
(
rSrc
.
mnPadding
)
{
}
Records_t
DffBlock
::
findRecords
(
sal_uInt32
nType
,
bool
bRecursive
,
bool
bAny
)
{
Records_t
aResult
;
findRecords
(
nType
,
aResult
,
bRecursive
,
bAny
);
return
aResult
;
}
void
DffBlock
::
findRecords
(
sal_uInt32
nType
,
Records_t
&
rRecords
,
bool
bRecursive
,
bool
bAny
)
{
Records_t
::
iterator
aIt
=
begin
();
while
(
aIt
!=
end
())
{
DffRecord
::
Pointer_t
pPointer
(
*
aIt
);
if
(
bAny
||
pPointer
->
getRecordType
()
==
nType
)
rRecords
.
push_back
(
pPointer
);
if
(
bRecursive
)
pPointer
->
findRecords
(
nType
,
rRecords
,
bRecursive
,
bAny
);
++
aIt
;
}
}
void
DffBlock
::
resolve
(
Properties
&
rHandler
)
{
Records_t
::
iterator
aIt
;
for
(
aIt
=
begin
();
aIt
!=
end
();
++
aIt
)
{
DffRecord
*
pDff
=
aIt
->
get
();
rHandler
.
sprm
(
*
pDff
);
}
}
DffRecord
::
Pointer_t
DffBlock
::
getShape
(
sal_uInt32
nSpid
)
{
DffRecord
::
Pointer_t
pResult
;
Records_t
aRecords
=
findRecords
(
0xf004
);
Records_t
::
iterator
aIt
;
for
(
aIt
=
aRecords
.
begin
();
aIt
!=
aRecords
.
end
();
++
aIt
)
{
DffRecord
::
Pointer_t
pPointer
=
*
aIt
;
Records_t
aFSPs
=
pPointer
->
findRecords
(
0xf00a
);
Records_t
::
iterator
aItFSP
=
aFSPs
.
begin
();
if
(
aItFSP
!=
aFSPs
.
end
())
{
DffFSP
*
pFSP
=
dynamic_cast
<
DffFSP
*>
((
*
aItFSP
).
get
());
if
(
pFSP
->
get_shpid
()
==
nSpid
)
{
pResult
=
pPointer
;
break
;
}
}
}
return
pResult
;
}
DffRecord
::
Pointer_t
DffBlock
::
getBlip
(
sal_uInt32
nBlip
)
{
DffRecord
::
Pointer_t
pResult
;
if
(
nBlip
>
0
)
{
nBlip
--
;
Records_t
aRecords
=
findRecords
(
0xf007
);
if
(
nBlip
<
aRecords
.
size
())
{
pResult
=
aRecords
[
nBlip
];
}
}
return
pResult
;
}
Records_t
::
iterator
DffBlock
::
begin
()
{
return
mRecords
.
begin
();
}
Records_t
::
iterator
DffBlock
::
end
()
{
return
mRecords
.
end
();
}
string
DffBlock
::
getType
()
const
{
return
"DffBlock"
;
}
}}
}}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerfilter/source/doctok/Dff.hxx
Dosyayı görüntüle @
a4d39c8a
...
@@ -29,8 +29,6 @@ namespace doctok
...
@@ -29,8 +29,6 @@ namespace doctok
{
{
using
std
::
vector
;
using
std
::
vector
;
class
DffBlock
;
class
DffRecord
:
public
WW8StructBase
,
public
writerfilter
::
Reference
<
Properties
>
,
class
DffRecord
:
public
WW8StructBase
,
public
writerfilter
::
Reference
<
Properties
>
,
public
Sprm
public
Sprm
{
{
...
@@ -92,38 +90,6 @@ public:
...
@@ -92,38 +90,6 @@ public:
typedef
vector
<
DffRecord
::
Pointer_t
>
Records_t
;
typedef
vector
<
DffRecord
::
Pointer_t
>
Records_t
;
class
DffBlock
:
public
WW8StructBase
,
public
writerfilter
::
Reference
<
Properties
>
{
sal_uInt32
mnPadding
;
Records_t
mRecords
;
public
:
typedef
boost
::
shared_ptr
<
DffBlock
>
Pointer_t
;
DffBlock
(
WW8Stream
&
rStream
,
sal_uInt32
nOffset
,
sal_uInt32
nCount
,
sal_uInt32
nPadding
);
DffBlock
(
WW8StructBase
*
pParent
,
sal_uInt32
nOffset
,
sal_uInt32
nCount
,
sal_uInt32
nPadding
);
DffBlock
(
const
DffBlock
&
rSrc
);
virtual
~
DffBlock
()
{}
Records_t
findRecords
(
sal_uInt32
nType
,
bool
bRecursive
=
true
,
bool
bAny
=
false
);
void
findRecords
(
sal_uInt32
nType
,
Records_t
&
rRecords
,
bool
bRecursive
=
true
,
bool
bAny
=
false
);
DffRecord
::
Pointer_t
getShape
(
sal_uInt32
nSpid
);
DffRecord
::
Pointer_t
getBlip
(
sal_uInt32
nBlip
);
Records_t
::
iterator
begin
();
Records_t
::
iterator
end
();
/* Properties methods */
virtual
void
resolve
(
Properties
&
rHandler
);
virtual
string
getType
()
const
;
};
}}
}}
#endif
#endif
...
...
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