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
33242bbc
Kaydet (Commit)
33242bbc
authored
Nis 17, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i122042 corrected adding default values in LineStyleListBox
üst
b902cae0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
12 deletions
+45
-12
dlgctrl.hxx
svx/inc/svx/dlgctrl.hxx
+14
-8
dlgctrl.cxx
svx/source/dialog/dlgctrl.cxx
+31
-4
No files found.
svx/inc/svx/dlgctrl.hxx
Dosyayı görüntüle @
33242bbc
...
...
@@ -388,18 +388,24 @@ public:
\************************************************************************/
class
SVX_DLLPUBLIC
LineLB
:
public
ListBox
{
private
:
/// bitfield
/// defines if standard fields (none, solid) are added, default is true
bool
mbAddStandardFields
:
1
;
public
:
LineLB
(
Window
*
pParent
,
ResId
Id
)
:
ListBox
(
pParent
,
Id
)
{}
LineLB
(
Window
*
pParent
,
WinBits
aWB
)
:
ListBox
(
pParent
,
aWB
)
{}
LineLB
(
Window
*
pParent
,
ResId
Id
);
LineLB
(
Window
*
pParent
,
WinBits
aWB
);
virtual
~
LineLB
();
virtual
void
Fill
(
const
XDashList
*
pList
);
virtual
void
Fill
(
const
XDashList
*
pList
);
bool
getAddStandardFields
()
const
{
return
mbAddStandardFields
;
}
void
setAddStandardFields
(
bool
bNew
);
void
Append
(
XDashEntry
*
pEntry
,
const
Bitmap
*
pBmp
=
NULL
);
void
Modify
(
XDashEntry
*
pEntry
,
sal_uInt16
nPos
,
const
Bitmap
*
pBmp
=
NULL
);
void
SelectEntryByList
(
const
XDashList
*
pList
,
const
String
&
rStr
,
const
XDash
&
rDash
,
sal_uInt16
nDist
=
0
);
// void FillStyles();
void
Append
(
XDashEntry
*
pEntry
,
const
Bitmap
*
pBmp
=
0
);
void
Modify
(
XDashEntry
*
pEntry
,
sal_uInt16
nPos
,
const
Bitmap
*
pBmp
=
0
);
void
SelectEntryByList
(
const
XDashList
*
pList
,
const
String
&
rStr
,
const
XDash
&
rDash
,
sal_uInt16
nDist
=
0
);
};
/*************************************************************************
...
...
svx/source/dialog/dlgctrl.cxx
Dosyayı görüntüle @
33242bbc
...
...
@@ -1778,15 +1778,42 @@ void FillTypeLB::Fill()
|* Fuellt die Listbox (vorlaeufig) mit Strings
|*
\************************************************************************/
LineLB
::
LineLB
(
Window
*
pParent
,
ResId
Id
)
:
ListBox
(
pParent
,
Id
),
mbAddStandardFields
(
true
)
{
}
LineLB
::
LineLB
(
Window
*
pParent
,
WinBits
aWB
)
:
ListBox
(
pParent
,
aWB
),
mbAddStandardFields
(
true
)
{
}
LineLB
::~
LineLB
()
{
}
void
LineLB
::
setAddStandardFields
(
bool
bNew
)
{
if
(
getAddStandardFields
()
!=
bNew
)
{
mbAddStandardFields
=
bNew
;
}
}
void
LineLB
::
Fill
(
const
XDashList
*
pList
)
{
Clear
();
// entry for 'none'
InsertEntry
(
pList
->
GetStringForUiNoLine
());
if
(
getAddStandardFields
())
{
// entry for 'none'
InsertEntry
(
pList
->
GetStringForUiNoLine
());
// entry for solid line
InsertEntry
(
pList
->
GetStringForUiSolidLine
(),
pList
->
GetBitmapForUISolidLine
());
// entry for solid line
InsertEntry
(
pList
->
GetStringForUiSolidLine
(),
pList
->
GetBitmapForUISolidLine
());
}
// entries for dashed lines
long
nCount
=
pList
->
Count
();
...
...
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