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
7d3fa6ba
Kaydet (Commit)
7d3fa6ba
authored
Agu 09, 2015
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#93290 Limit the size request of the styles combobox
Change-Id: I1ef697008dcd5e993c1d509fce055c5454d80f40
üst
05925ef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+11
-1
No files found.
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
7d3fa6ba
...
@@ -164,6 +164,7 @@ private:
...
@@ -164,6 +164,7 @@ private:
static
void
UserDrawEntry
(
const
UserDrawEvent
&
rUDEvt
,
const
OUString
&
rStyleName
);
static
void
UserDrawEntry
(
const
UserDrawEvent
&
rUDEvt
,
const
OUString
&
rStyleName
);
void
SetupEntry
(
vcl
::
RenderContext
&
rRenderContext
,
vcl
::
Window
*
pParent
,
sal_uInt16
nItem
,
const
Rectangle
&
rRect
,
const
OUString
&
rStyleName
,
bool
bIsNotSelected
);
void
SetupEntry
(
vcl
::
RenderContext
&
rRenderContext
,
vcl
::
Window
*
pParent
,
sal_uInt16
nItem
,
const
Rectangle
&
rRect
,
const
OUString
&
rStyleName
,
bool
bIsNotSelected
);
static
bool
AdjustFontForItemHeight
(
OutputDevice
*
pDevice
,
Rectangle
&
rTextRect
,
long
nHeight
);
static
bool
AdjustFontForItemHeight
(
OutputDevice
*
pDevice
,
Rectangle
&
rTextRect
,
long
nHeight
);
void
SetOptimalSize
();
DECL_LINK
(
MenuSelectHdl
,
Menu
*
);
DECL_LINK
(
MenuSelectHdl
,
Menu
*
);
};
};
...
@@ -333,6 +334,7 @@ SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent,
...
@@ -333,6 +334,7 @@ SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent,
for
(
int
i
=
0
;
i
<
MAX_STYLES_ENTRIES
;
i
++
)
for
(
int
i
=
0
;
i
<
MAX_STYLES_ENTRIES
;
i
++
)
m_pButtons
[
i
]
=
NULL
;
m_pButtons
[
i
]
=
NULL
;
aLogicalSize
=
PixelToLogic
(
GetSizePixel
(),
MAP_APPFONT
);
aLogicalSize
=
PixelToLogic
(
GetSizePixel
(),
MAP_APPFONT
);
SetOptimalSize
();
EnableAutocomplete
(
true
);
EnableAutocomplete
(
true
);
EnableUserDraw
(
true
);
EnableUserDraw
(
true
);
SetUserItemSize
(
Size
(
0
,
ITEM_HEIGHT
)
);
SetUserItemSize
(
Size
(
0
,
ITEM_HEIGHT
)
);
...
@@ -541,7 +543,7 @@ void SvxStyleBox_Impl::DataChanged( const DataChangedEvent& rDCEvt )
...
@@ -541,7 +543,7 @@ void SvxStyleBox_Impl::DataChanged( const DataChangedEvent& rDCEvt )
if
(
(
rDCEvt
.
GetType
()
==
DataChangedEventType
::
SETTINGS
)
&&
if
(
(
rDCEvt
.
GetType
()
==
DataChangedEventType
::
SETTINGS
)
&&
(
rDCEvt
.
GetFlags
()
&
AllSettingsFlags
::
STYLE
)
)
(
rDCEvt
.
GetFlags
()
&
AllSettingsFlags
::
STYLE
)
)
{
{
Set
SizePixel
(
LogicToPixel
(
aLogicalSize
,
MAP_APPFONT
)
);
Set
OptimalSize
(
);
}
}
ComboBox
::
DataChanged
(
rDCEvt
);
ComboBox
::
DataChanged
(
rDCEvt
);
...
@@ -582,6 +584,14 @@ bool SvxStyleBox_Impl::AdjustFontForItemHeight(OutputDevice* pDevice, Rectangle&
...
@@ -582,6 +584,14 @@ bool SvxStyleBox_Impl::AdjustFontForItemHeight(OutputDevice* pDevice, Rectangle&
return
false
;
return
false
;
}
}
void
SvxStyleBox_Impl
::
SetOptimalSize
()
{
Size
aSize
(
LogicToPixel
(
aLogicalSize
,
MAP_APPFONT
));
set_width_request
(
aSize
.
Width
());
set_height_request
(
aSize
.
Height
());
SetSizePixel
(
aSize
);
}
void
SvxStyleBox_Impl
::
UserDrawEntry
(
const
UserDrawEvent
&
rUDEvt
,
const
OUString
&
rStyleName
)
void
SvxStyleBox_Impl
::
UserDrawEntry
(
const
UserDrawEvent
&
rUDEvt
,
const
OUString
&
rStyleName
)
{
{
vcl
::
RenderContext
*
pDevice
=
rUDEvt
.
GetRenderContext
();
vcl
::
RenderContext
*
pDevice
=
rUDEvt
.
GetRenderContext
();
...
...
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