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
19c54819
Kaydet (Commit)
19c54819
authored
Kas 21, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
apply packing properties of pseudo-scrolledwindow to self-scrolling child
Change-Id: I13b0b625109237a0ec9711ed2efdc34cd3e0d32b
üst
eae73264
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
builder.hxx
vcl/inc/vcl/builder.hxx
+1
-1
builder.cxx
vcl/source/window/builder.cxx
+16
-5
No files found.
vcl/inc/vcl/builder.hxx
Dosyayı görüntüle @
19c54819
...
...
@@ -125,7 +125,7 @@ private:
std
::
vector
<
ButtonImageWidgetMap
>
m_aButtonImageWidgetMaps
;
StockMap
m_aStockMap
;
Translations
m_aTranslations
;
std
::
set
<
Window
*>
m_aRedundantParentWidgets
;
std
::
map
<
Window
*
,
Window
*>
m_aRedundantParentWidgets
;
};
void
loadTranslations
(
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
,
const
OUString
&
rUri
);
...
...
vcl/source/window/builder.cxx
Dosyayı görüntüle @
19c54819
...
...
@@ -224,10 +224,10 @@ VclBuilder::VclBuilder(Window *pParent, OUString sUIDir, OUString sUIFile, OStri
//Remove ScrollWindow parent widgets whose children in vcl implement scrolling
//internally.
for
(
std
::
set
<
Window
*>::
iterator
aI
=
m_pParserState
->
m_aRedundantParentWidgets
.
begin
(),
for
(
std
::
map
<
Window
*
,
Window
*>::
iterator
aI
=
m_pParserState
->
m_aRedundantParentWidgets
.
begin
(),
aEnd
=
m_pParserState
->
m_aRedundantParentWidgets
.
end
();
aI
!=
aEnd
;
++
aI
)
{
delete_by_window
(
*
aI
);
delete_by_window
(
aI
->
first
);
}
//drop maps, etc. that we don't need again
...
...
@@ -795,23 +795,28 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
//so if it appears as a child of a scrolling window
//shoehorn that scrolling settings to this
//widget and remove the parent
Window
*
pScrollParent
=
NULL
;
if
(
pParent
&&
pParent
->
GetType
()
==
WINDOW_SCROLLWINDOW
)
{
WinBits
nScrollBits
=
pParent
->
GetStyle
();
nScrollBits
&=
(
WB_AUTOHSCROLL
|
WB_HSCROLL
|
WB_AUTOVSCROLL
|
WB_VSCROLL
);
nWinStyle
|=
nScrollBits
;
Window
*
pScrollParent
=
pParent
;
pScrollParent
=
pParent
;
pParent
=
pParent
->
GetParent
();
}
pWindow
=
new
VclMultiLineEdit
(
pParent
,
nWinStyle
);
if
(
pScrollParent
)
{
sal_Int32
nWidthReq
=
pScrollParent
->
get_width_request
();
rMap
[
OString
(
"width-request"
)]
=
OString
::
valueOf
(
nWidthReq
);
sal_Int32
nHeightReq
=
pScrollParent
->
get_height_request
();
rMap
[
OString
(
"height-request"
)]
=
OString
::
valueOf
(
nHeightReq
);
m_pParserState
->
m_aRedundantParentWidgets
.
insert
(
pScrollParent
)
;
m_pParserState
->
m_aRedundantParentWidgets
[
pScrollParent
]
=
pWindow
;
}
pWindow
=
new
VclMultiLineEdit
(
pParent
,
nWinStyle
);
}
else
{
...
...
@@ -1446,6 +1451,12 @@ void VclBuilder::applyPackingProperty(Window *pCurrent,
xmlreader
::
Span
name
;
int
nsId
;
if
(
pCurrent
->
GetType
()
==
WINDOW_SCROLLWINDOW
)
{
pCurrent
=
m_pParserState
->
m_aRedundantParentWidgets
[
pCurrent
];
assert
(
pCurrent
);
}
while
(
reader
.
nextAttribute
(
&
nsId
,
&
name
))
{
if
(
name
.
equals
(
RTL_CONSTASCII_STRINGPARAM
(
"name"
)))
...
...
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