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
d179a612
Kaydet (Commit)
d179a612
authored
Nis 11, 2013
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
121420: Provide sidebar panels with XCanvas objects.
üst
3df01501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
SidebarController.cxx
sfx2/source/sidebar/SidebarController.cxx
+14
-2
SidebarController.hxx
sfx2/source/sidebar/SidebarController.hxx
+2
-1
No files found.
sfx2/source/sidebar/SidebarController.cxx
Dosyayı görüntüle @
d179a612
...
@@ -41,6 +41,8 @@
...
@@ -41,6 +41,8 @@
#include "splitwin.hxx"
#include "splitwin.hxx"
#include <svl/smplhint.hxx>
#include <svl/smplhint.hxx>
#include <tools/link.hxx>
#include <tools/link.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <comphelper/componentfactory.hxx>
#include <comphelper/componentfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/componentcontext.hxx>
#include <comphelper/componentcontext.hxx>
...
@@ -53,6 +55,7 @@
...
@@ -53,6 +55,7 @@
#include <com/sun/star/ui/XUIElementFactory.hpp>
#include <com/sun/star/ui/XUIElementFactory.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/rendering/XSpriteCanvas.hpp>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/function.hpp>
...
@@ -498,6 +501,7 @@ bool SidebarController::ArePanelSetsEqual (
...
@@ -498,6 +501,7 @@ bool SidebarController::ArePanelSetsEqual (
const
SharedPanelContainer
&
rCurrentPanels
,
const
SharedPanelContainer
&
rCurrentPanels
,
const
ResourceManager
::
PanelContextDescriptorContainer
&
rRequestedPanels
)
const
ResourceManager
::
PanelContextDescriptorContainer
&
rRequestedPanels
)
{
{
#ifdef DEBUG
OSL_TRACE
(
"current panel list:"
);
OSL_TRACE
(
"current panel list:"
);
for
(
SharedPanelContainer
::
const_iterator
for
(
SharedPanelContainer
::
const_iterator
iPanel
(
rCurrentPanels
.
begin
()),
iPanel
(
rCurrentPanels
.
begin
()),
...
@@ -517,6 +521,7 @@ bool SidebarController::ArePanelSetsEqual (
...
@@ -517,6 +521,7 @@ bool SidebarController::ArePanelSetsEqual (
{
{
OSL_TRACE
(
" panel %s"
,
S2A
(
iId
->
msId
));
OSL_TRACE
(
" panel %s"
,
S2A
(
iId
->
msId
));
}
}
#endif
if
(
rCurrentPanels
.
size
()
!=
rRequestedPanels
.
size
())
if
(
rCurrentPanels
.
size
()
!=
rRequestedPanels
.
size
())
return
false
;
return
false
;
...
@@ -560,7 +565,8 @@ SharedPanel SidebarController::CreatePanel (
...
@@ -560,7 +565,8 @@ SharedPanel SidebarController::CreatePanel (
// Create the XUIElement.
// Create the XUIElement.
Reference
<
ui
::
XUIElement
>
xUIElement
(
CreateUIElement
(
Reference
<
ui
::
XUIElement
>
xUIElement
(
CreateUIElement
(
pPanel
->
GetComponentInterface
(),
pPanel
->
GetComponentInterface
(),
pPanelDescriptor
->
msImplementationURL
));
pPanelDescriptor
->
msImplementationURL
,
pPanelDescriptor
->
mbWantsCanvas
));
if
(
xUIElement
.
is
())
if
(
xUIElement
.
is
())
{
{
// Initialize the panel and add it to the active deck.
// Initialize the panel and add it to the active deck.
...
@@ -579,7 +585,8 @@ SharedPanel SidebarController::CreatePanel (
...
@@ -579,7 +585,8 @@ SharedPanel SidebarController::CreatePanel (
Reference
<
ui
::
XUIElement
>
SidebarController
::
CreateUIElement
(
Reference
<
ui
::
XUIElement
>
SidebarController
::
CreateUIElement
(
const
Reference
<
awt
::
XWindowPeer
>&
rxWindow
,
const
Reference
<
awt
::
XWindowPeer
>&
rxWindow
,
const
::
rtl
::
OUString
&
rsImplementationURL
)
const
::
rtl
::
OUString
&
rsImplementationURL
,
const
bool
bWantsCanvas
)
{
{
try
try
{
{
...
@@ -597,6 +604,11 @@ Reference<ui::XUIElement> SidebarController::CreateUIElement (
...
@@ -597,6 +604,11 @@ Reference<ui::XUIElement> SidebarController::CreateUIElement (
aCreationArguments
.
put
(
"SfxBindings"
,
makeAny
(
sal_uInt64
(
&
pSfxDockingWindow
->
GetBindings
())));
aCreationArguments
.
put
(
"SfxBindings"
,
makeAny
(
sal_uInt64
(
&
pSfxDockingWindow
->
GetBindings
())));
aCreationArguments
.
put
(
"Theme"
,
Theme
::
GetPropertySet
());
aCreationArguments
.
put
(
"Theme"
,
Theme
::
GetPropertySet
());
aCreationArguments
.
put
(
"Sidebar"
,
makeAny
(
Reference
<
ui
::
XSidebar
>
(
static_cast
<
ui
::
XSidebar
*>
(
this
))));
aCreationArguments
.
put
(
"Sidebar"
,
makeAny
(
Reference
<
ui
::
XSidebar
>
(
static_cast
<
ui
::
XSidebar
*>
(
this
))));
if
(
bWantsCanvas
)
{
Reference
<
rendering
::
XSpriteCanvas
>
xCanvas
(
VCLUnoHelper
::
GetWindow
(
rxWindow
)
->
GetSpriteCanvas
());
aCreationArguments
.
put
(
"Canvas"
,
makeAny
(
xCanvas
));
}
Reference
<
ui
::
XUIElement
>
xUIElement
(
Reference
<
ui
::
XUIElement
>
xUIElement
(
xUIElementFactory
->
createUIElement
(
xUIElementFactory
->
createUIElement
(
...
...
sfx2/source/sidebar/SidebarController.hxx
Dosyayı görüntüle @
d179a612
...
@@ -128,7 +128,8 @@ private:
...
@@ -128,7 +128,8 @@ private:
const
ResourceManager
::
PanelContextDescriptorContainer
&
rRequestedPanels
);
const
ResourceManager
::
PanelContextDescriptorContainer
&
rRequestedPanels
);
cssu
::
Reference
<
css
::
ui
::
XUIElement
>
CreateUIElement
(
cssu
::
Reference
<
css
::
ui
::
XUIElement
>
CreateUIElement
(
const
cssu
::
Reference
<
css
::
awt
::
XWindowPeer
>&
rxWindow
,
const
cssu
::
Reference
<
css
::
awt
::
XWindowPeer
>&
rxWindow
,
const
::
rtl
::
OUString
&
rsImplementationURL
);
const
::
rtl
::
OUString
&
rsImplementationURL
,
const
bool
bWantsCanvas
);
SharedPanel
CreatePanel
(
SharedPanel
CreatePanel
(
const
::
rtl
::
OUString
&
rsPanelId
,
const
::
rtl
::
OUString
&
rsPanelId
,
::
Window
*
pParentWindow
,
::
Window
*
pParentWindow
,
...
...
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