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
219f314c
Kaydet (Commit)
219f314c
authored
Tem 04, 2014
tarafından
Efe Gürkan YALAMAN
Kaydeden (comit)
Jan Holesovsky
Agu 14, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Start of filtering implementation
Change-Id: Iebf71deb4739703d87b944300cbc1b8ee2daacc5
üst
e3f513ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
backingwindow.cxx
sfx2/source/dialog/backingwindow.cxx
+30
-1
backingwindow.hxx
sfx2/source/dialog/backingwindow.hxx
+1
-0
No files found.
sfx2/source/dialog/backingwindow.cxx
Dosyayı görüntüle @
219f314c
...
...
@@ -34,6 +34,7 @@
#include <vcl/msgbox.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/menubtn.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequenceashashmap.hxx>
...
...
@@ -302,7 +303,20 @@ void BackingWindow::initControls()
*Filter and the bars*/
setupButton
(
mpOpenButton
);
setupButton
(
mpTemplateButton
);
//setupButton( mpTemplateButton );
Font
aFont
(
mpTemplateButton
->
GetSettings
().
GetStyleSettings
().
GetPushButtonFont
());
aFont
.
SetSize
(
Size
(
0
,
aFont
.
GetSize
().
Height
()
*
fMultiplier
));
mpTemplateButton
->
SetControlFont
(
aFont
);
// color that fits the theme
mpTemplateButton
->
SetControlForeground
(
aButtonsText
);
mpTemplateButton
->
SetDropDown
(
PUSHBUTTON_DROPDOWN_MENUBUTTON
);
MenuButton
*
pMenuButton
=
static_cast
<
MenuButton
*>
(
mpTemplateButton
);
pMenuButton
->
SetMenuMode
(
MENUBUTTON_MENUMODE_TIMED
);
pMenuButton
->
SetActivateHdl
(
LINK
(
this
,
BackingWindow
,
ActivateHdl
));
//pMenuButton->Activate();
setupButton
(
mpWriterAllButton
);
setupButton
(
mpDrawAllButton
);
...
...
@@ -575,6 +589,21 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
return
0
;
}
IMPL_LINK
(
BackingWindow
,
ActivateHdl
,
Button
*
,
pButton
)
{
printf
(
"---------------------------------"
);
MenuButton
*
pMenuButton
=
static_cast
<
MenuButton
*>
(
pButton
);
PopupMenu
*
pFilterMenu
=
new
PopupMenu
;
//pFilterMenu->SetSelectHdl(LINK( this, BackingWindow, FilterMenuSelectHdl));
pFilterMenu
->
InsertItem
(
0
,
"Writer"
);
pMenuButton
->
SetPopupMenu
(
pFilterMenu
);
return
0
;
}
IMPL_LINK_NOARG
(
BackingWindow
,
OpenRegionHdl
)
...
...
sfx2/source/dialog/backingwindow.hxx
Dosyayı görüntüle @
219f314c
...
...
@@ -111,6 +111,7 @@ class BackingWindow
std
::
set
<
const
ThumbnailViewItem
*
,
selection_cmp_fn
>
maSelFolders
;
DECL_LINK
(
ClickHdl
,
Button
*
);
DECL_LINK
(
ActivateHdl
,
Button
*
);
DECL_LINK
(
ExtLinkClickHdl
,
Button
*
);
DECL_LINK
(
OpenRegionHdl
,
void
*
);
DECL_LINK
(
OpenTemplateHdl
,
ThumbnailViewItem
*
);
...
...
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