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
33ae095d
Kaydet (Commit)
33ae095d
authored
Kas 13, 2016
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add missing dependency
Change-Id: I72696c82d9a96709746060ae18bd497da8715d35
üst
a64958ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
IndexedStyleSheets.cxx
svl/source/items/IndexedStyleSheets.cxx
+7
-2
CppunitTest_writerperfect_draw.mk
writerperfect/CppunitTest_writerperfect_draw.mk
+3
-0
No files found.
svl/source/items/IndexedStyleSheets.cxx
Dosyayı görüntüle @
33ae095d
...
...
@@ -53,7 +53,6 @@ IndexedStyleSheets::IndexedStyleSheets()
}
;}
void
IndexedStyleSheets
::
Register
(
const
SfxStyleSheetBase
&
style
,
unsigned
pos
)
{
...
...
@@ -91,6 +90,7 @@ IndexedStyleSheets::GetNumberOfStyleSheets() const
void
IndexedStyleSheets
::
AddStyleSheet
(
const
rtl
::
Reference
<
SfxStyleSheetBase
>&
style
)
{
assert
(
!
style
->
GetName
().
isEmpty
());
if
(
!
HasStyleSheet
(
style
))
{
mStyleSheets
.
push_back
(
style
);
// since we just added an element to the vector, we can safely do -1 as it will always be >= 1
...
...
@@ -101,6 +101,7 @@ IndexedStyleSheets::AddStyleSheet(const rtl::Reference< SfxStyleSheetBase >& sty
bool
IndexedStyleSheets
::
RemoveStyleSheet
(
const
rtl
::
Reference
<
SfxStyleSheetBase
>&
style
)
{
assert
(
!
style
->
GetName
().
isEmpty
());
rtl
::
OUString
styleName
=
style
->
GetName
();
std
::
vector
<
unsigned
>
positions
=
FindPositionsByName
(
styleName
);
bool
found
=
false
;
...
...
@@ -200,6 +201,7 @@ void
IndexedStyleSheets
::
Clear
(
StyleSheetDisposer
&
disposer
)
{
for
(
VectorType
::
iterator
it
=
mStyleSheets
.
begin
();
it
!=
mStyleSheets
.
end
();
++
it
)
{
assert
(
!
(
*
it
)
->
GetName
().
isEmpty
());
disposer
.
Dispose
(
*
it
);
}
mStyleSheets
.
clear
();
...
...
@@ -207,7 +209,10 @@ IndexedStyleSheets::Clear(StyleSheetDisposer& disposer)
}
IndexedStyleSheets
::~
IndexedStyleSheets
()
{;}
{
for
(
const
auto
&
rStyleSheet
:
mStyleSheets
)
assert
(
!
rStyleSheet
->
GetName
().
isEmpty
());
}
bool
IndexedStyleSheets
::
HasStyleSheet
(
const
rtl
::
Reference
<
SfxStyleSheetBase
>&
style
)
const
...
...
writerperfect/CppunitTest_writerperfect_draw.mk
Dosyayı görüntüle @
33ae095d
...
...
@@ -42,4 +42,7 @@ $(eval $(call gb_CppunitTest_add_exception_objects,writerperfect_draw,\
writerperfect/qa/unit/WpftDrawFilterTest \
))
$(call gb_CppunitTest_get_target,writerperfect_draw): \
$(call gb_AllLangResTarget_get_target,sd)
# vim: set noet sw=4 ts=4:
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