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
74221eb2
Kaydet (Commit)
74221eb2
authored
Haz 01, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sidebar: Allow creation of SidebarToolBoxes via .ui.
Change-Id: If8789fd423a609a18514e5a798df5b5992dac34f
üst
5414cab2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
SidebarToolBox.hxx
include/sfx2/sidebar/SidebarToolBox.hxx
+6
-0
toolbox.hxx
include/vcl/toolbox.hxx
+1
-1
SidebarToolBox.cxx
sfx2/source/sidebar/SidebarToolBox.cxx
+13
-3
No files found.
include/sfx2/sidebar/SidebarToolBox.hxx
Dosyayı görüntüle @
74221eb2
...
@@ -52,6 +52,12 @@ public:
...
@@ -52,6 +52,12 @@ public:
Window
*
pParentWindow
);
Window
*
pParentWindow
);
virtual
~
SidebarToolBox
(
void
);
virtual
~
SidebarToolBox
(
void
);
using
ToolBox
::
InsertItem
;
virtual
void
InsertItem
(
const
OUString
&
rCommand
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XFrame
>&
rFrame
,
ToolBoxItemBits
nBits
=
0
,
sal_uInt16
nPos
=
TOOLBOX_APPEND
);
void
SetBorderWindow
(
const
Window
*
pBorderWindow
);
void
SetBorderWindow
(
const
Window
*
pBorderWindow
);
virtual
void
Paint
(
const
Rectangle
&
rRect
);
virtual
void
Paint
(
const
Rectangle
&
rRect
);
...
...
include/vcl/toolbox.hxx
Dosyayı görüntüle @
74221eb2
...
@@ -340,7 +340,7 @@ public:
...
@@ -340,7 +340,7 @@ public:
void
InsertItem
(
const
ResId
&
rResId
,
void
InsertItem
(
const
ResId
&
rResId
,
sal_uInt16
nPos
=
TOOLBOX_APPEND
);
sal_uInt16
nPos
=
TOOLBOX_APPEND
);
/// Insert a command (like '.uno:Save').
/// Insert a command (like '.uno:Save').
v
oid
InsertItem
(
const
OUString
&
rCommand
,
v
irtual
void
InsertItem
(
const
OUString
&
rCommand
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XFrame
>&
rFrame
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XFrame
>&
rFrame
,
ToolBoxItemBits
nBits
=
0
,
ToolBoxItemBits
nBits
=
0
,
sal_uInt16
nPos
=
TOOLBOX_APPEND
);
sal_uInt16
nPos
=
TOOLBOX_APPEND
);
...
...
sfx2/source/sidebar/SidebarToolBox.cxx
Dosyayı görüntüle @
74221eb2
...
@@ -87,14 +87,17 @@ SidebarToolBox::SidebarToolBox (Window* pParentWindow)
...
@@ -87,14 +87,17 @@ SidebarToolBox::SidebarToolBox (Window* pParentWindow)
{
{
SetBackground
(
Wallpaper
());
SetBackground
(
Wallpaper
());
SetPaintTransparent
(
true
);
SetPaintTransparent
(
true
);
SetToolboxButtonSize
(
TOOLBOX_BUTTONSIZE_SMALL
);
#ifdef DEBUG
#ifdef DEBUG
SetText
(
A2S
(
"SidebarToolBox"
));
SetText
(
A2S
(
"SidebarToolBox"
));
#endif
#endif
}
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSidebarToolBox
(
Window
*
pParent
)
{
return
new
SidebarToolBox
(
pParent
);
}
SidebarToolBox
::~
SidebarToolBox
(
void
)
SidebarToolBox
::~
SidebarToolBox
(
void
)
{
{
...
@@ -120,8 +123,15 @@ SidebarToolBox::~SidebarToolBox (void)
...
@@ -120,8 +123,15 @@ SidebarToolBox::~SidebarToolBox (void)
}
}
}
}
void
SidebarToolBox
::
InsertItem
(
const
OUString
&
rCommand
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XFrame
>&
rFrame
,
ToolBoxItemBits
nBits
,
sal_uInt16
nPos
)
{
ToolBox
::
InsertItem
(
rCommand
,
rFrame
,
nBits
,
nPos
);
CreateController
(
GetItemId
(
rCommand
),
rFrame
,
0
);
RegisterHandlers
();
}
void
SidebarToolBox
::
SetBorderWindow
(
const
Window
*
pBorderWindow
)
void
SidebarToolBox
::
SetBorderWindow
(
const
Window
*
pBorderWindow
)
{
{
...
...
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