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
5b42e9d7
Kaydet (Commit)
5b42e9d7
authored
Şub 05, 2011
tarafından
Joseph Powers
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove DECLARE_LIST( ImplFontList, ImplFontNameListData* )
üst
1b82bcb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
ctrlbox.hxx
svtools/inc/ctrlbox.hxx
+4
-3
ctrlbox.cxx
svtools/source/control/ctrlbox.cxx
+11
-9
No files found.
svtools/inc/ctrlbox.hxx
Dosyayı görüntüle @
5b42e9d7
...
@@ -38,13 +38,14 @@
...
@@ -38,13 +38,14 @@
#include <vcl/metric.hxx>
#include <vcl/metric.hxx>
#include <vcl/field.hxx>
#include <vcl/field.hxx>
class
ImplFontList
;
class
FontList
;
class
FontList
;
class
ImplColorListData
;
class
ImplColorListData
;
class
ImpLineListData
;
class
ImpLineListData
;
class
ImplFontNameListData
;
typedef
::
std
::
vector
<
ImplColorListData
*
>
ImpColorList
;
typedef
::
std
::
vector
<
ImplColorListData
*
>
ImpColorList
;
typedef
::
std
::
vector
<
ImpLineListData
*
>
ImpLineList
;
typedef
::
std
::
vector
<
ImpLineListData
*
>
ImpLineList
;
typedef
::
std
::
vector
<
ImplFontNameListData
*
>
ImplFontList
;
#define STYLE_SOLID ( ( USHORT ) 0 )
#define STYLE_SOLID ( ( USHORT ) 0 )
#define STYLE_DOTTED ( ( USHORT ) 1 )
#define STYLE_DOTTED ( ( USHORT ) 1 )
...
...
svtools/source/control/ctrlbox.cxx
Dosyayı görüntüle @
5b42e9d7
...
@@ -745,8 +745,6 @@ struct ImplFontNameListData
...
@@ -745,8 +745,6 @@ struct ImplFontNameListData
{}
{}
};
};
DECLARE_LIST
(
ImplFontList
,
ImplFontNameListData
*
)
// -------------------------------------------------------------------
// -------------------------------------------------------------------
FontNameBox
::
FontNameBox
(
Window
*
pParent
,
WinBits
nWinStyle
)
:
FontNameBox
::
FontNameBox
(
Window
*
pParent
,
WinBits
nWinStyle
)
:
...
@@ -801,12 +799,10 @@ void FontNameBox::ImplDestroyFontList()
...
@@ -801,12 +799,10 @@ void FontNameBox::ImplDestroyFontList()
{
{
if
(
mpFontList
)
if
(
mpFontList
)
{
{
ImplFontNameListData
*
pInfo
=
mpFontList
->
First
();
for
(
size_t
i
=
0
,
n
=
mpFontList
->
size
();
i
<
n
;
++
i
)
{
while
(
pInfo
)
delete
(
*
mpFontList
)[
i
];
{
delete
pInfo
;
pInfo
=
mpFontList
->
Next
();
}
}
mpFontList
->
clear
();
delete
mpFontList
;
delete
mpFontList
;
}
}
}
}
...
@@ -832,7 +828,13 @@ void FontNameBox::Fill( const FontList* pList )
...
@@ -832,7 +828,13 @@ void FontNameBox::Fill( const FontList* pList )
{
{
USHORT
nType
=
pList
->
GetFontNameType
(
i
);
USHORT
nType
=
pList
->
GetFontNameType
(
i
);
ImplFontNameListData
*
pData
=
new
ImplFontNameListData
(
rFontInfo
,
nType
);
ImplFontNameListData
*
pData
=
new
ImplFontNameListData
(
rFontInfo
,
nType
);
mpFontList
->
Insert
(
pData
,
nIndex
);
if
(
nIndex
<
mpFontList
->
size
()
)
{
ImplFontList
::
iterator
it
=
mpFontList
->
begin
();
::
std
::
advance
(
it
,
nIndex
);
mpFontList
->
insert
(
it
,
pData
);
}
else
{
mpFontList
->
push_back
(
pData
);
}
}
}
}
}
...
@@ -975,7 +977,7 @@ namespace
...
@@ -975,7 +977,7 @@ namespace
void
FontNameBox
::
UserDraw
(
const
UserDrawEvent
&
rUDEvt
)
void
FontNameBox
::
UserDraw
(
const
UserDrawEvent
&
rUDEvt
)
{
{
ImplFontNameListData
*
pData
=
mpFontList
->
GetObject
(
rUDEvt
.
GetItemId
()
)
;
ImplFontNameListData
*
pData
=
(
*
mpFontList
)[
rUDEvt
.
GetItemId
()
]
;
const
FontInfo
&
rInfo
=
pData
->
maInfo
;
const
FontInfo
&
rInfo
=
pData
->
maInfo
;
USHORT
nType
=
pData
->
mnType
;
USHORT
nType
=
pData
->
mnType
;
Point
aTopLeft
=
rUDEvt
.
GetRect
().
TopLeft
();
Point
aTopLeft
=
rUDEvt
.
GetRect
().
TopLeft
();
...
...
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