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
13c4d0ab
Kaydet (Commit)
13c4d0ab
authored
Tem 27, 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
Template Filtering Implementation
Change-Id: I9270136afeaadbbe16c408e6e7d2fbde5b53d324
üst
219f314c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
18 deletions
+91
-18
backingwindow.cxx
sfx2/source/dialog/backingwindow.cxx
+28
-13
backingwindow.hxx
sfx2/source/dialog/backingwindow.hxx
+5
-2
startcenter.ui
sfx2/uiconfig/ui/startcenter.ui
+58
-3
No files found.
sfx2/source/dialog/backingwindow.cxx
Dosyayı görüntüle @
13c4d0ab
...
...
@@ -312,11 +312,14 @@ void BackingWindow::initControls()
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();
//Menubutton implementation
PopupMenu
*
pMenu
=
mpTemplateButton
->
GetPopupMenu
();
pMenu
->
SetMenuFlags
(
pMenu
->
GetMenuFlags
()
|
MENU_FLAG_ALWAYSSHOWDISABLEDENTRIES
);
mpTemplateButton
->
SetSelectHdl
(
LINK
(
this
,
BackingWindow
,
MenuSelectHdl
));
mpTemplateButton
->
SetClickHdl
(
LINK
(
this
,
BackingWindow
,
ClickHdl
)
);
setupButton
(
mpWriterAllButton
);
setupButton
(
mpDrawAllButton
);
...
...
@@ -589,18 +592,30 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
return
0
;
}
IMPL_LINK
(
BackingWindow
,
ActivateHdl
,
Button
*
,
pButton
)
IMPL_LINK
(
BackingWindow
,
MenuSelectHdl
,
Menu
Button
*
,
pButton
)
{
printf
(
"---------------------------------"
);
MenuButton
*
pMenuButton
=
static_cast
<
MenuButton
*>
(
pButton
);
PopupMenu
*
pFilterMenu
=
new
PopupMenu
;
//pFilterMenu->SetSelectHdl(LINK( this, BackingWindow, FilterMenuSelectHdl));
pFilterMenu
->
InsertItem
(
0
,
"Writer"
);
OString
sId
=
pButton
->
GetCurItemIdent
();
if
(
sId
==
"filter_writer"
)
{
mpCurrentView
->
filterItems
(
ViewFilter_Application
(
FILTER_APP_WRITER
));
}
else
if
(
sId
==
"filter_calc"
)
{
mpLocalView
->
filterItems
(
ViewFilter_Application
(
FILTER_APP_CALC
));
}
else
if
(
sId
==
"filter_impress"
)
{
mpLocalView
->
filterItems
(
ViewFilter_Application
(
FILTER_APP_IMPRESS
));
}
else
if
(
sId
==
"filter_draw"
)
{
mpLocalView
->
filterItems
(
ViewFilter_Application
(
FILTER_APP_DRAW
));
}
pMenuButton
->
SetPopupMenu
(
pFilterMenu
);
mpAllRecentThumbnails
->
Hide
();
mpLocalView
->
Show
();
return
0
;
}
...
...
sfx2/source/dialog/backingwindow.hxx
Dosyayı görüntüle @
13c4d0ab
...
...
@@ -27,6 +27,8 @@
#include <vcl/tabctrl.hxx>
#include <vcl/layout.hxx>
#include <vcl/menubtn.hxx>
#include <sfx2/recentdocsview.hxx>
#include <sfx2/templatelocalview.hxx>
#include <sfx2/templateabstractview.hxx>
...
...
@@ -59,7 +61,8 @@ class BackingWindow
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
datatransfer
::
dnd
::
XDropTargetListener
>
mxDropTargetListener
;
PushButton
*
mpOpenButton
;
PushButton
*
mpTemplateButton
;
//PushButton* mpTemplateButton;
MenuButton
*
mpTemplateButton
;
FixedText
*
mpCreateLabel
;
...
...
@@ -111,7 +114,7 @@ class BackingWindow
std
::
set
<
const
ThumbnailViewItem
*
,
selection_cmp_fn
>
maSelFolders
;
DECL_LINK
(
ClickHdl
,
Button
*
);
DECL_LINK
(
ActivateHdl
,
Button
*
);
DECL_LINK
(
MenuSelectHdl
,
Menu
Button
*
);
DECL_LINK
(
ExtLinkClickHdl
,
Button
*
);
DECL_LINK
(
OpenRegionHdl
,
void
*
);
DECL_LINK
(
OpenTemplateHdl
,
ThumbnailViewItem
*
);
...
...
sfx2/uiconfig/ui/startcenter.ui
Dosyayı görüntüle @
13c4d0ab
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.0 on Wed Jul
2 15:37:52
2014 -->
<!-- Generated with glade 3.16.0 on Wed Jul
23 16:41:24
2014 -->
<interface>
<!-- interface-requires LibreOffice 1.0 -->
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
<object
class=
"GtkImage"
id=
"calc_all_image"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
...
...
@@ -86,7 +86,7 @@
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"templates_all"
>
<object
class=
"GtkButton"
id=
"templates_all
:filtermenu
"
>
<property
name=
"label"
translatable=
"yes"
>
T_emplates
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
...
...
@@ -430,4 +430,59 @@
</packing>
</child>
</object>
<object
class=
"GtkMenu"
id=
"filtermenu"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkMenuItem"
id=
"filter_writer"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Writer Templates
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"filter_calc"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Calc Templates
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"filter_impress"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Impress Templates
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"filter_draw"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Draw Templates
</property>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"filter_math"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Math Templates
</property>
</object>
</child>
<child>
<object
class=
"GtkSeparatorMenuItem"
id=
"menuitem3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"edit"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Edit Templates
</property>
</object>
</child>
</object>
</interface>
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