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
0635208e
Kaydet (Commit)
0635208e
authored
Tem 22, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle more than one chart with chart sidebar
Change-Id: I4998904a9273f2c67114a246d7f234843602573c
üst
cfac266d
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
220 additions
and
5 deletions
+220
-5
ChartController.cxx
chart2/source/controller/main/ChartController.cxx
+1
-0
ChartAreaPanel.cxx
chart2/source/controller/sidebar/ChartAreaPanel.cxx
+12
-0
ChartAreaPanel.hxx
chart2/source/controller/sidebar/ChartAreaPanel.hxx
+6
-1
ChartAxisPanel.cxx
chart2/source/controller/sidebar/ChartAxisPanel.cxx
+12
-0
ChartAxisPanel.hxx
chart2/source/controller/sidebar/ChartAxisPanel.hxx
+4
-0
ChartElementsPanel.cxx
chart2/source/controller/sidebar/ChartElementsPanel.cxx
+12
-0
ChartElementsPanel.hxx
chart2/source/controller/sidebar/ChartElementsPanel.hxx
+4
-0
ChartErrorBarPanel.cxx
chart2/source/controller/sidebar/ChartErrorBarPanel.cxx
+12
-0
ChartErrorBarPanel.hxx
chart2/source/controller/sidebar/ChartErrorBarPanel.hxx
+4
-0
ChartSeriesPanel.cxx
chart2/source/controller/sidebar/ChartSeriesPanel.cxx
+15
-1
ChartSeriesPanel.hxx
chart2/source/controller/sidebar/ChartSeriesPanel.hxx
+4
-0
ResourceManager.hxx
include/sfx2/sidebar/ResourceManager.hxx
+2
-0
SidebarController.hxx
include/sfx2/sidebar/SidebarController.hxx
+2
-0
SidebarModelUpdate.hxx
include/sfx2/sidebar/SidebarModelUpdate.hxx
+30
-0
SidebarPanelBase.hxx
include/sfx2/sidebar/SidebarPanelBase.hxx
+9
-3
UnoApi_offapi.mk
offapi/UnoApi_offapi.mk
+1
-0
XUpdateModel.idl
offapi/com/sun/star/ui/XUpdateModel.idl
+34
-0
Library_sfx.mk
sfx2/Library_sfx.mk
+1
-0
ResourceManager.cxx
sfx2/source/sidebar/ResourceManager.cxx
+19
-0
SidebarController.cxx
sfx2/source/sidebar/SidebarController.cxx
+5
-0
SidebarModelUpdate.cxx
sfx2/source/sidebar/SidebarModelUpdate.cxx
+20
-0
SidebarPanelBase.cxx
sfx2/source/sidebar/SidebarPanelBase.cxx
+11
-0
No files found.
chart2/source/controller/main/ChartController.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -421,6 +421,7 @@ void SAL_CALL ChartController::attachFrame(
{
sfx2
::
sidebar
::
SidebarController
*
pSidebar
=
dynamic_cast
<
sfx2
::
sidebar
::
SidebarController
*>
(
xSidebar
.
get
());
sfx2
::
sidebar
::
SidebarController
::
registerSidebarForFrame
(
pSidebar
,
this
);
pSidebar
->
updateModel
(
getModel
());
}
if
(
m_xFrame
.
is
())
//what happens, if we do have a Frame already??
...
...
chart2/source/controller/sidebar/ChartAreaPanel.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -170,6 +170,18 @@ void ChartAreaPanel::modelInvalid()
{
}
void
ChartAreaPanel
::
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcaster
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcaster
->
removeModifyListener
(
mxListener
);
mxModel
=
xModel
;
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
}
}
}
...
...
chart2/source/controller/sidebar/ChartAreaPanel.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -12,6 +12,7 @@
#include <vcl/ctrl.hxx>
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <svx/xgrad.hxx>
#include <svx/itemwin.hxx>
#include <svx/xfillit0.hxx>
...
...
@@ -44,7 +45,9 @@ class ChartController;
namespace
sidebar
{
class
ChartAreaPanel
:
public
svx
::
sidebar
::
AreaPropertyPanelBase
,
public
ChartSidebarModifyListenerParent
public
sfx2
::
sidebar
::
SidebarModelUpdate
,
public
ChartSidebarModifyListenerParent
,
public
sfx2
::
sidebar
::
SidebarModelUpdate
{
public
:
static
VclPtr
<
vcl
::
Window
>
Create
(
...
...
@@ -74,6 +77,8 @@ public:
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
SAL_OVERRIDE
;
private
:
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
mxModel
;
...
...
chart2/source/controller/sidebar/ChartAxisPanel.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -281,6 +281,18 @@ void ChartAxisPanel::modelInvalid()
{
}
void
ChartAxisPanel
::
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcaster
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcaster
->
removeModifyListener
(
mxListener
);
mxModel
=
xModel
;
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
}
IMPL_LINK
(
ChartAxisPanel
,
CheckBoxHdl
,
CheckBox
*
,
pCheckbox
)
{
OUString
aCID
=
getCID
(
mxModel
);
...
...
chart2/source/controller/sidebar/ChartAxisPanel.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -13,6 +13,7 @@
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <svx/sidebar/PanelLayout.hxx>
#include "ChartSidebarModifyListener.hxx"
...
...
@@ -32,6 +33,7 @@ namespace sidebar {
class
ChartAxisPanel
:
public
PanelLayout
,
public
::
sfx2
::
sidebar
::
IContextChangeReceiver
,
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
,
public
sfx2
::
sidebar
::
SidebarModelUpdate
,
public
ChartSidebarModifyListenerParent
{
public
:
...
...
@@ -63,6 +65,8 @@ public:
virtual
void
updateData
()
SAL_OVERRIDE
;
virtual
void
modelInvalid
()
SAL_OVERRIDE
;
virtual
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
SAL_OVERRIDE
;
private
:
//ui controls
VclPtr
<
CheckBox
>
mpCBShowLabel
;
...
...
chart2/source/controller/sidebar/ChartElementsPanel.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -451,6 +451,18 @@ void ChartElementsPanel::modelInvalid()
}
void
ChartElementsPanel
::
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcaster
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcaster
->
removeModifyListener
(
mxListener
);
mxModel
=
xModel
;
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
}
IMPL_LINK
(
ChartElementsPanel
,
CheckBoxHdl
,
CheckBox
*
,
pCheckBox
)
{
bool
bChecked
=
pCheckBox
->
IsChecked
();
...
...
chart2/source/controller/sidebar/ChartElementsPanel.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -21,6 +21,7 @@
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <svx/sidebar/PanelLayout.hxx>
#include "ChartSidebarModifyListener.hxx"
...
...
@@ -39,6 +40,7 @@ namespace sidebar {
class
ChartElementsPanel
:
public
PanelLayout
,
public
::
sfx2
::
sidebar
::
IContextChangeReceiver
,
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
,
public
sfx2
::
sidebar
::
SidebarModelUpdate
,
public
ChartSidebarModifyListenerParent
{
public
:
...
...
@@ -70,6 +72,8 @@ public:
virtual
void
updateData
()
SAL_OVERRIDE
;
virtual
void
modelInvalid
()
SAL_OVERRIDE
;
virtual
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
SAL_OVERRIDE
;
private
:
//ui controls
VclPtr
<
CheckBox
>
mpCBTitle
;
...
...
chart2/source/controller/sidebar/ChartErrorBarPanel.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -381,6 +381,18 @@ void ChartErrorBarPanel::modelInvalid()
{
}
void
ChartErrorBarPanel
::
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcaster
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcaster
->
removeModifyListener
(
mxListener
);
mxModel
=
xModel
;
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
}
IMPL_LINK_NOARG
(
ChartErrorBarPanel
,
RadioBtnHdl
)
{
OUString
aCID
=
getCID
(
mxModel
);
...
...
chart2/source/controller/sidebar/ChartErrorBarPanel.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -13,6 +13,7 @@
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <svx/sidebar/PanelLayout.hxx>
#include "ChartSidebarModifyListener.hxx"
...
...
@@ -33,6 +34,7 @@ namespace sidebar {
class
ChartErrorBarPanel
:
public
PanelLayout
,
public
::
sfx2
::
sidebar
::
IContextChangeReceiver
,
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
,
public
sfx2
::
sidebar
::
SidebarModelUpdate
,
public
ChartSidebarModifyListenerParent
{
public
:
...
...
@@ -64,6 +66,8 @@ public:
virtual
void
updateData
()
SAL_OVERRIDE
;
virtual
void
modelInvalid
()
SAL_OVERRIDE
;
virtual
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
SAL_OVERRIDE
;
private
:
//ui controls
VclPtr
<
RadioButton
>
mpRBPosAndNeg
;
...
...
chart2/source/controller/sidebar/ChartSeriesPanel.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -269,7 +269,9 @@ OUString getCID(css::uno::Reference<css::frame::XModel> xModel)
return
OUString
();
uno
::
Any
aAny
=
xSelectionSupplier
->
getSelection
();
assert
(
aAny
.
hasValue
());
if
(
!
aAny
.
hasValue
())
return
OUString
();
OUString
aCID
;
aAny
>>=
aCID
;
#ifdef DBG_UTIL
...
...
@@ -410,6 +412,18 @@ void ChartSeriesPanel::modelInvalid()
}
void
ChartSeriesPanel
::
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcaster
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcaster
->
removeModifyListener
(
mxListener
);
mxModel
=
xModel
;
css
::
uno
::
Reference
<
css
::
util
::
XModifyBroadcaster
>
xBroadcasterNew
(
mxModel
,
css
::
uno
::
UNO_QUERY_THROW
);
xBroadcasterNew
->
addModifyListener
(
mxListener
);
}
IMPL_LINK
(
ChartSeriesPanel
,
CheckBoxHdl
,
CheckBox
*
,
pCheckBox
)
{
bool
bChecked
=
pCheckBox
->
IsChecked
();
...
...
chart2/source/controller/sidebar/ChartSeriesPanel.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -21,6 +21,7 @@
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <svx/sidebar/PanelLayout.hxx>
#include "ChartSidebarModifyListener.hxx"
...
...
@@ -40,6 +41,7 @@ namespace sidebar {
class
ChartSeriesPanel
:
public
PanelLayout
,
public
::
sfx2
::
sidebar
::
IContextChangeReceiver
,
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
,
public
sfx2
::
sidebar
::
SidebarModelUpdate
,
public
ChartSidebarModifyListenerParent
{
public
:
...
...
@@ -71,6 +73,8 @@ public:
virtual
void
updateData
()
SAL_OVERRIDE
;
virtual
void
modelInvalid
()
SAL_OVERRIDE
;
virtual
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
SAL_OVERRIDE
;
private
:
//ui controls
VclPtr
<
CheckBox
>
mpCBLabel
;
...
...
include/sfx2/sidebar/ResourceManager.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -66,6 +66,8 @@ public:
void
SetPanelOrderIndex
(
const
OUString
&
rsPanelId
,
const
sal_Int32
orderIndex
);
void
UpdateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
);
class
DeckContextDescriptor
{
...
...
include/sfx2/sidebar/SidebarController.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -156,6 +156,8 @@ public:
void
notifyDeckTitle
(
const
OUString
&
targetDeckId
);
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
);
private
:
VclPtr
<
Deck
>
mpCurrentDeck
;
...
...
include/sfx2/sidebar/SidebarModelUpdate.hxx
0 → 100644
Dosyayı görüntüle @
0635208e
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_INCLUDE_SFX2_SIDEBAR_SIDEBARUPDATEMODEL_HXX
#define INCLUDED_INCLUDE_SFX2_SIDEBAR_SIDEBARUPDATEMODEL_HXX
#include <com/sun/star/frame/XModel.hpp>
#include <sfx2/dllapi.h>
namespace
sfx2
{
namespace
sidebar
{
class
SFX2_DLLPUBLIC
SidebarModelUpdate
{
public
:
virtual
~
SidebarModelUpdate
();
virtual
void
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
=
0
;
};
}
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/sfx2/sidebar/SidebarPanelBase.hxx
Dosyayı görüntüle @
0635208e
...
...
@@ -22,7 +22,7 @@
#include <sfx2/sidebar/EnumContext.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <cppuhelper/compbase
4
.hxx>
#include <cppuhelper/compbase
5
.hxx>
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/frame/XController.hpp>
...
...
@@ -30,6 +30,7 @@
#include <com/sun/star/ui/XUIElement.hpp>
#include <com/sun/star/ui/XToolPanel.hpp>
#include <com/sun/star/ui/XSidebarPanel.hpp>
#include <com/sun/star/ui/XUpdateModel.hpp>
#include <boost/noncopyable.hpp>
#include <boost/function.hpp>
...
...
@@ -43,10 +44,11 @@ namespace sfx2 { namespace sidebar {
namespace
{
typedef
cppu
::
WeakComponentImplHelper
4
<
css
::
ui
::
XContextChangeEventListener
,
typedef
cppu
::
WeakComponentImplHelper
5
<
css
::
ui
::
XContextChangeEventListener
,
css
::
ui
::
XUIElement
,
css
::
ui
::
XToolPanel
,
css
::
ui
::
XSidebarPanel
>
css
::
ui
::
XSidebarPanel
,
css
::
ui
::
XUpdateModel
>
SidebarPanelBaseInterfaceBase
;
}
...
...
@@ -94,6 +96,10 @@ public:
virtual
sal_Int32
SAL_CALL
getMinimalWidth
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XUpdateModel
virtual
void
SAL_CALL
updateModel
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>&
xModel
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
protected
:
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
mxFrame
;
...
...
offapi/UnoApi_offapi.mk
Dosyayı görüntüle @
0635208e
...
...
@@ -4039,6 +4039,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/ui,\
XUIElementFactoryManager \
XUIElementFactoryRegistration \
XUIElementSettings \
XUpdateModel \
XUIFunctionListener \
))
$(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/ui/dialogs,\
...
...
offapi/com/sun/star/ui/XUpdateModel.idl
0 → 100644
Dosyayı görüntüle @
0635208e
/*
-*-
Mode
:
C
++
; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
*
This
file
is
part
of
the
LibreOffice
project
.
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2.0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
:
//
mozilla
.
org/MPL/2.0/.
*/
#
ifndef
__com_sun_star_ui_XUpdateModel_idl__
#
define
__com_sun_star_ui_XUpdateModel_idl__
#
include
<
com
/
sun
/
star
/
uno
/
XInterface
.
idl>
#
include
<
com
/
sun
/
star
/
frame
/
XModel
.
idl>
module
com
{
module
sun
{
module
star
{
module
ui
{
/**
Internal
interface
to
update
the
used
css
::
frame
::
XModel
</
p
>
*/
interface
XUpdateModel
:
com
::
sun
::
star
::
uno
::
XInterface
{
void
updateModel
(
[
in
]
com
::
sun
::
star
::
frame
::
XModel
xModel
)
;
}
;
}
; }; }; };
#
endif
/*
vim
:
set
shiftwidth
=
4
softtabstop
=
4
expandtab
:
*/
sfx2/Library_sfx.mk
Dosyayı görüntüle @
0635208e
...
...
@@ -251,6 +251,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/sidebar/SidebarChildWindow \
sfx2/source/sidebar/SidebarDockingWindow \
sfx2/source/sidebar/SidebarController \
sfx2/source/sidebar/SidebarModelUpdate \
sfx2/source/sidebar/SidebarPanelBase \
sfx2/source/sidebar/SidebarToolBox \
sfx2/source/sidebar/Accessible \
...
...
sfx2/source/sidebar/ResourceManager.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -29,6 +29,7 @@
#include <tools/diagnose_ex.h>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/ui/XUpdateModel.hpp>
#include <map>
...
...
@@ -646,6 +647,24 @@ bool ResourceManager::IsDeckEnabled (
return
false
;
}
void
ResourceManager
::
UpdateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
for
(
DeckContainer
::
iterator
itr
=
maDecks
.
begin
();
itr
!=
maDecks
.
end
();
++
itr
)
{
if
(
!
itr
->
mpDeck
)
continue
;
const
SharedPanelContainer
&
rContainer
=
itr
->
mpDeck
->
GetPanels
();
for
(
SharedPanelContainer
::
const_iterator
it
=
rContainer
.
begin
();
it
!=
rContainer
.
end
();
++
it
)
{
css
::
uno
::
Reference
<
css
::
ui
::
XUpdateModel
>
xPanel
((
*
it
)
->
GetPanelComponent
(),
css
::
uno
::
UNO_QUERY
);
xPanel
->
updateModel
(
xModel
);
}
}
}
}
}
// end of namespace sfx2::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sfx2/source/sidebar/SidebarController.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -1252,6 +1252,11 @@ ResourceManager::PanelContextDescriptorContainer SidebarController::GetMatchingP
return
aPanels
;
}
void
SidebarController
::
updateModel
(
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
xModel
)
{
mpResourceManager
->
UpdateModel
(
xModel
);
}
}
}
// end of namespace sfx2::sidebar
...
...
sfx2/source/sidebar/SidebarModelUpdate.cxx
0 → 100644
Dosyayı görüntüle @
0635208e
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
namespace
sfx2
{
namespace
sidebar
{
SidebarModelUpdate
::~
SidebarModelUpdate
()
{
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sfx2/source/sidebar/SidebarPanelBase.cxx
Dosyayı görüntüle @
0635208e
...
...
@@ -20,6 +20,7 @@
#include <sfx2/sidebar/Theme.hxx>
#include <sfx2/sidebar/ILayoutableWindow.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <sfx2/imagemgr.hxx>
#include <vcl/ctrl.hxx>
#include <vcl/layout.hxx>
...
...
@@ -203,6 +204,16 @@ sal_Int32 SAL_CALL SidebarPanelBase::getMinimalWidth () throw(css::uno::RuntimeE
return
0
;
}
void
SAL_CALL
SidebarPanelBase
::
updateModel
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>&
xModel
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
SidebarModelUpdate
*
pModelUpdate
=
dynamic_cast
<
SidebarModelUpdate
*>
(
mpControl
.
get
());
if
(
!
pModelUpdate
)
return
;
pModelUpdate
->
updateModel
(
xModel
);
}
}
}
// end of namespace sfx2::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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