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
0baadcea
Kaydet (Commit)
0baadcea
authored
Nis 14, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Re-work app side-bar code to manage objects correctly.
Change-Id: Ie0eb8fe41a9fd4f996f724c47d20d6edecba3672
üst
26fced1c
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
73 additions
and
86 deletions
+73
-86
AlignmentPropertyPanel.cxx
sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+5
-5
AlignmentPropertyPanel.hxx
sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
+1
-1
CellAppearancePropertyPanel.cxx
sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
+5
-5
CellAppearancePropertyPanel.hxx
sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
+1
-1
NumberFormatPropertyPanel.cxx
sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+5
-5
NumberFormatPropertyPanel.hxx
sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
+1
-1
ScPanelFactory.cxx
sc/source/ui/sidebar/ScPanelFactory.cxx
+13
-33
AllMasterPagesSelector.cxx
sd/source/ui/sidebar/AllMasterPagesSelector.cxx
+4
-3
AllMasterPagesSelector.hxx
sd/source/ui/sidebar/AllMasterPagesSelector.hxx
+1
-1
CurrentMasterPagesSelector.cxx
sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
+4
-3
CurrentMasterPagesSelector.hxx
sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx
+1
-1
PanelFactory.cxx
sd/source/ui/sidebar/PanelFactory.cxx
+7
-7
RecentMasterPagesSelector.cxx
sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
+4
-3
RecentMasterPagesSelector.hxx
sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
+1
-1
PagePropertyPanel.cxx
sw/source/uibase/sidebar/PagePropertyPanel.cxx
+7
-5
PagePropertyPanel.hxx
sw/source/uibase/sidebar/PagePropertyPanel.hxx
+1
-1
SwPanelFactory.cxx
sw/source/uibase/sidebar/SwPanelFactory.cxx
+4
-4
WrapPropertyPanel.cxx
sw/source/uibase/sidebar/WrapPropertyPanel.cxx
+7
-5
WrapPropertyPanel.hxx
sw/source/uibase/sidebar/WrapPropertyPanel.hxx
+1
-1
No files found.
sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -218,7 +218,7 @@ IMPL_LINK(AlignmentPropertyPanel, CBOXWrapTextClkHdl, void*, EMPTYARG)
...
@@ -218,7 +218,7 @@ IMPL_LINK(AlignmentPropertyPanel, CBOXWrapTextClkHdl, void*, EMPTYARG)
return
0
;
return
0
;
}
}
AlignmentPropertyPanel
*
AlignmentPropertyPanel
::
Create
(
VclPtr
<
vcl
::
Window
>
AlignmentPropertyPanel
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
SfxBindings
*
pBindings
)
...
@@ -230,10 +230,10 @@ AlignmentPropertyPanel* AlignmentPropertyPanel::Create (
...
@@ -230,10 +230,10 @@ AlignmentPropertyPanel* AlignmentPropertyPanel::Create (
if
(
pBindings
==
NULL
)
if
(
pBindings
==
NULL
)
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to AlignmentPropertyPanel::Create"
,
NULL
,
2
);
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to AlignmentPropertyPanel::Create"
,
NULL
,
2
);
return
new
AlignmentPropertyPanel
(
return
VclPtr
<
vcl
::
Window
>
(
pParent
,
new
AlignmentPropertyPanel
(
rxFrame
,
pParent
,
rxFrame
,
pBindings
)
,
pBindings
);
SAL_NO_ACQUIRE
);
}
}
void
AlignmentPropertyPanel
::
DataChanged
(
void
AlignmentPropertyPanel
::
DataChanged
(
...
...
sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -39,7 +39,7 @@ class AlignmentPropertyPanel
...
@@ -39,7 +39,7 @@ class AlignmentPropertyPanel
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
{
{
public
:
public
:
static
AlignmentPropertyPanel
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
);
SfxBindings
*
pBindings
);
...
...
sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -235,7 +235,7 @@ IMPL_LINK(CellAppearancePropertyPanel, CBOXGridShowClkHdl, void*, EMPTYARG)
...
@@ -235,7 +235,7 @@ IMPL_LINK(CellAppearancePropertyPanel, CBOXGridShowClkHdl, void*, EMPTYARG)
return
0
;
return
0
;
}
}
CellAppearancePropertyPanel
*
CellAppearancePropertyPanel
::
Create
(
VclPtr
<
vcl
::
Window
>
CellAppearancePropertyPanel
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
SfxBindings
*
pBindings
)
...
@@ -247,10 +247,10 @@ CellAppearancePropertyPanel* CellAppearancePropertyPanel::Create (
...
@@ -247,10 +247,10 @@ CellAppearancePropertyPanel* CellAppearancePropertyPanel::Create (
if
(
pBindings
==
NULL
)
if
(
pBindings
==
NULL
)
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to CellAppearancePropertyPanel::Create"
,
NULL
,
2
);
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to CellAppearancePropertyPanel::Create"
,
NULL
,
2
);
return
new
CellAppearancePropertyPanel
(
return
VclPtr
<
vcl
::
Window
>
(
pParent
,
new
CellAppearancePropertyPanel
(
rxFrame
,
pParent
,
rxFrame
,
pBindings
)
,
pBindings
);
SAL_NO_ACQUIRE
);
}
}
void
CellAppearancePropertyPanel
::
DataChanged
(
void
CellAppearancePropertyPanel
::
DataChanged
(
...
...
sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -50,7 +50,7 @@ private:
...
@@ -50,7 +50,7 @@ private:
friend
class
CellBorderStyleControl
;
friend
class
CellBorderStyleControl
;
public
:
public
:
static
CellAppearancePropertyPanel
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
);
SfxBindings
*
pBindings
);
...
...
sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -178,7 +178,7 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG )
...
@@ -178,7 +178,7 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG )
return
0L
;
return
0L
;
}
}
NumberFormatPropertyPanel
*
NumberFormatPropertyPanel
::
Create
(
VclPtr
<
vcl
::
Window
>
NumberFormatPropertyPanel
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
SfxBindings
*
pBindings
)
...
@@ -190,10 +190,10 @@ NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create (
...
@@ -190,10 +190,10 @@ NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create (
if
(
pBindings
==
NULL
)
if
(
pBindings
==
NULL
)
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to NumberFormatPropertyPanel::Create"
,
NULL
,
2
);
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to NumberFormatPropertyPanel::Create"
,
NULL
,
2
);
return
new
NumberFormatPropertyPanel
(
return
VclPtr
<
vcl
::
Window
>
(
pParent
,
new
NumberFormatPropertyPanel
(
rxFrame
,
pParent
,
rxFrame
,
pBindings
)
,
pBindings
);
SAL_NO_ACQUIRE
);
}
}
void
NumberFormatPropertyPanel
::
DataChanged
(
void
NumberFormatPropertyPanel
::
DataChanged
(
...
...
sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -37,7 +37,7 @@ class NumberFormatPropertyPanel
...
@@ -37,7 +37,7 @@ class NumberFormatPropertyPanel
{
{
public
:
public
:
public
:
public
:
static
NumberFormatPropertyPanel
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
);
SfxBindings
*
pBindings
);
...
...
sc/source/ui/sidebar/ScPanelFactory.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -108,51 +108,31 @@ Reference<ui::XUIElement> SAL_CALL ScPanelFactory::createUIElement (
...
@@ -108,51 +108,31 @@ Reference<ui::XUIElement> SAL_CALL ScPanelFactory::createUIElement (
"PanelFactory::createUIElement called without SfxBindings"
,
"PanelFactory::createUIElement called without SfxBindings"
,
NULL
);
NULL
);
sal_Int32
nMinimumSize
=
-
1
;
VclPtr
<
vcl
::
Window
>
pPanel
;
if
(
rsResourceURL
.
endsWith
(
"/AlignmentPropertyPanel"
))
if
(
rsResourceURL
.
endsWith
(
"/AlignmentPropertyPanel"
))
{
pPanel
=
AlignmentPropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
AlignmentPropertyPanel
*
pPanel
=
AlignmentPropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
xFrame
,
pPanel
,
ui
::
LayoutSize
(
-
1
,
-
1
,
-
1
));
}
else
if
(
rsResourceURL
.
endsWith
(
"/CellAppearancePropertyPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/CellAppearancePropertyPanel"
))
{
pPanel
=
CellAppearancePropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
CellAppearancePropertyPanel
*
pPanel
=
CellAppearancePropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
xFrame
,
pPanel
,
ui
::
LayoutSize
(
-
1
,
-
1
,
-
1
));
}
else
if
(
rsResourceURL
.
endsWith
(
"/NumberFormatPropertyPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/NumberFormatPropertyPanel"
))
{
pPanel
=
NumberFormatPropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
NumberFormatPropertyPanel
*
pPanel
=
NumberFormatPropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
xFrame
,
pPanel
,
ui
::
LayoutSize
(
-
1
,
-
1
,
-
1
));
}
else
if
(
rsResourceURL
.
endsWith
(
"/NavigatorPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/NavigatorPanel"
))
{
{
vcl
::
Window
*
pPanel
=
new
ScNavigatorDlg
(
pBindings
,
NULL
,
pParentWindow
,
false
);
pPanel
=
VclPtr
<
vcl
::
Window
>
(
new
ScNavigatorDlg
(
pBindings
,
NULL
,
pParentWindow
,
false
),
SAL_NO_ACQUIRE
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
nMinimumSize
=
0
;
rsResourceURL
,
xFrame
,
pPanel
,
ui
::
LayoutSize
(
0
,
-
1
,
-
1
));
}
}
else
if
(
rsResourceURL
.
endsWith
(
"/FunctionsPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/FunctionsPanel"
))
{
{
vcl
::
Window
*
pPanel
=
new
ScFunctionDockWin
(
pBindings
,
NULL
,
pParentWindow
,
ScResId
(
FID_FUNCTION_BOX
));
pPanel
=
VclPtr
<
vcl
::
Window
>
(
new
ScFunctionDockWin
(
pBindings
,
NULL
,
pParentWindow
,
ScResId
(
FID_FUNCTION_BOX
)),
SAL_NO_ACQUIRE
);;
nMinimumSize
=
0
;
}
if
(
pPanel
)
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
rsResourceURL
,
xFrame
,
xFrame
,
pPanel
,
pPanel
,
ui
::
LayoutSize
(
0
,
-
1
,
-
1
));
ui
::
LayoutSize
(
nMinimumSize
,
-
1
,
-
1
));
}
}
}
catch
(
const
uno
::
RuntimeException
&
)
catch
(
const
uno
::
RuntimeException
&
)
{
{
...
...
sd/source/ui/sidebar/AllMasterPagesSelector.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -77,7 +77,7 @@ public:
...
@@ -77,7 +77,7 @@ public:
SortedMasterPageDescriptorList
(
void
)
{}
SortedMasterPageDescriptorList
(
void
)
{}
};
};
MasterPagesSelector
*
AllMasterPagesSelector
::
Create
(
VclPtr
<
vcl
::
Window
>
AllMasterPagesSelector
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
ViewShellBase
&
rViewShellBase
,
ViewShellBase
&
rViewShellBase
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
...
@@ -88,13 +88,14 @@ MasterPagesSelector* AllMasterPagesSelector::Create (
...
@@ -88,13 +88,14 @@ MasterPagesSelector* AllMasterPagesSelector::Create (
::
boost
::
shared_ptr
<
MasterPageContainer
>
pContainer
(
new
MasterPageContainer
());
::
boost
::
shared_ptr
<
MasterPageContainer
>
pContainer
(
new
MasterPageContainer
());
MasterPagesSelector
*
pSelector
(
VclPtr
<
MasterPagesSelector
>
pSelector
(
new
AllMasterPagesSelector
(
new
AllMasterPagesSelector
(
pParent
,
pParent
,
*
pDocument
,
*
pDocument
,
rViewShellBase
,
rViewShellBase
,
pContainer
,
pContainer
,
rxSidebar
));
rxSidebar
),
SAL_NO_ACQUIRE
);
pSelector
->
LateInit
();
pSelector
->
LateInit
();
pSelector
->
SetHelpId
(
HID_SD_TASK_PANE_PREVIEW_ALL
);
pSelector
->
SetHelpId
(
HID_SD_TASK_PANE_PREVIEW_ALL
);
...
...
sd/source/ui/sidebar/AllMasterPagesSelector.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -37,7 +37,7 @@ class AllMasterPagesSelector
...
@@ -37,7 +37,7 @@ class AllMasterPagesSelector
:
public
MasterPagesSelector
:
public
MasterPagesSelector
{
{
public
:
public
:
static
MasterPagesSelector
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
ViewShellBase
&
rViewShellBase
,
ViewShellBase
&
rViewShellBase
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
);
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
);
...
...
sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -42,7 +42,7 @@ using namespace ::com::sun::star;
...
@@ -42,7 +42,7 @@ using namespace ::com::sun::star;
namespace
sd
{
namespace
sidebar
{
namespace
sd
{
namespace
sidebar
{
MasterPagesSelector
*
CurrentMasterPagesSelector
::
Create
(
VclPtr
<
vcl
::
Window
>
CurrentMasterPagesSelector
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
ViewShellBase
&
rViewShellBase
,
ViewShellBase
&
rViewShellBase
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
...
@@ -53,13 +53,14 @@ MasterPagesSelector* CurrentMasterPagesSelector::Create (
...
@@ -53,13 +53,14 @@ MasterPagesSelector* CurrentMasterPagesSelector::Create (
::
boost
::
shared_ptr
<
MasterPageContainer
>
pContainer
(
new
MasterPageContainer
());
::
boost
::
shared_ptr
<
MasterPageContainer
>
pContainer
(
new
MasterPageContainer
());
MasterPagesSelector
*
pSelector
(
VclPtr
<
MasterPagesSelector
>
pSelector
(
new
CurrentMasterPagesSelector
(
new
CurrentMasterPagesSelector
(
pParent
,
pParent
,
*
pDocument
,
*
pDocument
,
rViewShellBase
,
rViewShellBase
,
pContainer
,
pContainer
,
rxSidebar
));
rxSidebar
),
SAL_NO_ACQUIRE
);
pSelector
->
LateInit
();
pSelector
->
LateInit
();
pSelector
->
SetHelpId
(
HID_SD_TASK_PANE_PREVIEW_CURRENT
);
pSelector
->
SetHelpId
(
HID_SD_TASK_PANE_PREVIEW_CURRENT
);
...
...
sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -35,7 +35,7 @@ class CurrentMasterPagesSelector
...
@@ -35,7 +35,7 @@ class CurrentMasterPagesSelector
public
SfxListener
public
SfxListener
{
{
public
:
public
:
static
MasterPagesSelector
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
ViewShellBase
&
rViewShellBase
,
ViewShellBase
&
rViewShellBase
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
);
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
);
...
...
sd/source/ui/sidebar/PanelFactory.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -120,14 +120,14 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement (
...
@@ -120,14 +120,14 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement (
SfxBindings
*
pBindings
=
reinterpret_cast
<
SfxBindings
*>
(
nBindingsValue
);
SfxBindings
*
pBindings
=
reinterpret_cast
<
SfxBindings
*>
(
nBindingsValue
);
// Create a framework view.
// Create a framework view.
vcl
::
Window
*
pControl
=
NULL
;
VclPtr
<
vcl
::
Window
>
pControl
;
css
::
ui
::
LayoutSize
aLayoutSize
(
-
1
,
-
1
,
-
1
);
css
::
ui
::
LayoutSize
aLayoutSize
(
-
1
,
-
1
,
-
1
);
#define EndsWith(s,t) s.endsWithAsciiL(t,strlen(t))
#define EndsWith(s,t) s.endsWithAsciiL(t,strlen(t))
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameCustomAnimations
))
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameCustomAnimations
))
pControl
=
new
CustomAnimationPanel
(
pParentWindow
,
*
pBase
,
xFrame
);
pControl
=
VclPtr
<
vcl
::
Window
>
(
new
CustomAnimationPanel
(
pParentWindow
,
*
pBase
,
xFrame
),
SAL_NO_ACQUIRE
);
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameLayouts
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameLayouts
))
pControl
=
new
LayoutMenu
(
pParentWindow
,
*
pBase
,
xSidebar
);
pControl
=
VclPtr
<
vcl
::
Window
>
(
new
LayoutMenu
(
pParentWindow
,
*
pBase
,
xSidebar
),
SAL_NO_ACQUIRE
);
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameAllMasterPages
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameAllMasterPages
))
pControl
=
AllMasterPagesSelector
::
Create
(
pParentWindow
,
*
pBase
,
xSidebar
);
pControl
=
AllMasterPagesSelector
::
Create
(
pParentWindow
,
*
pBase
,
xSidebar
);
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameRecentMasterPages
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameRecentMasterPages
))
...
@@ -135,14 +135,14 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement (
...
@@ -135,14 +135,14 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement (
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameUsedMasterPages
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameUsedMasterPages
))
pControl
=
CurrentMasterPagesSelector
::
Create
(
pParentWindow
,
*
pBase
,
xSidebar
);
pControl
=
CurrentMasterPagesSelector
::
Create
(
pParentWindow
,
*
pBase
,
xSidebar
);
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameSlideTransitions
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameSlideTransitions
))
pControl
=
new
SlideTransitionPanel
(
pParentWindow
,
*
pBase
,
xFrame
);
pControl
=
VclPtr
<
vcl
::
Window
>
(
new
SlideTransitionPanel
(
pParentWindow
,
*
pBase
,
xFrame
),
SAL_NO_ACQUIRE
);
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameTableDesign
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameTableDesign
))
pControl
=
new
TableDesignPanel
(
pParentWindow
,
*
pBase
);
pControl
=
VclPtr
<
vcl
::
Window
>
(
new
TableDesignPanel
(
pParentWindow
,
*
pBase
),
SAL_NO_ACQUIRE
);
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameNavigator
))
else
if
(
EndsWith
(
rsUIElementResourceURL
,
gsResourceNameNavigator
))
pControl
=
new
NavigatorWrapper
(
pParentWindow
,
*
pBase
,
pBindings
);
pControl
=
VclPtr
<
vcl
::
Window
>
(
new
NavigatorWrapper
(
pParentWindow
,
*
pBase
,
pBindings
),
SAL_NO_ACQUIRE
);
#undef EndsWith
#undef EndsWith
if
(
pControl
==
NULL
)
if
(
!
pControl
)
throw
lang
::
IllegalArgumentException
();
throw
lang
::
IllegalArgumentException
();
// Create a wrapper around the control that implements the
// Create a wrapper around the control that implements the
...
...
sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
namespace
sd
{
namespace
sidebar
{
namespace
sd
{
namespace
sidebar
{
MasterPagesSelector
*
RecentMasterPagesSelector
::
Create
(
VclPtr
<
vcl
::
Window
>
RecentMasterPagesSelector
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
ViewShellBase
&
rViewShellBase
,
ViewShellBase
&
rViewShellBase
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
...
@@ -43,13 +43,14 @@ MasterPagesSelector* RecentMasterPagesSelector::Create (
...
@@ -43,13 +43,14 @@ MasterPagesSelector* RecentMasterPagesSelector::Create (
::
boost
::
shared_ptr
<
MasterPageContainer
>
pContainer
(
new
MasterPageContainer
());
::
boost
::
shared_ptr
<
MasterPageContainer
>
pContainer
(
new
MasterPageContainer
());
MasterPagesSelector
*
pSelector
(
VclPtr
<
MasterPagesSelector
>
pSelector
(
new
RecentMasterPagesSelector
(
new
RecentMasterPagesSelector
(
pParent
,
pParent
,
*
pDocument
,
*
pDocument
,
rViewShellBase
,
rViewShellBase
,
pContainer
,
pContainer
,
rxSidebar
));
rxSidebar
),
SAL_NO_ACQUIRE
);
pSelector
->
LateInit
();
pSelector
->
LateInit
();
pSelector
->
SetHelpId
(
HID_SD_TASK_PANE_PREVIEW_RECENT
);
pSelector
->
SetHelpId
(
HID_SD_TASK_PANE_PREVIEW_RECENT
);
...
...
sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -30,7 +30,7 @@ class RecentMasterPagesSelector
...
@@ -30,7 +30,7 @@ class RecentMasterPagesSelector
:
public
MasterPagesSelector
:
public
MasterPagesSelector
{
{
public
:
public
:
static
MasterPagesSelector
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
ViewShellBase
&
rViewShellBase
,
ViewShellBase
&
rViewShellBase
,
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
);
const
css
::
uno
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
);
...
...
sw/source/uibase/sidebar/PagePropertyPanel.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -83,7 +83,7 @@ namespace {
...
@@ -83,7 +83,7 @@ namespace {
namespace
sw
{
namespace
sidebar
{
namespace
sw
{
namespace
sidebar
{
PagePropertyPanel
*
PagePropertyPanel
::
Create
(
VclPtr
<
vcl
::
Window
>
PagePropertyPanel
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
SfxBindings
*
pBindings
)
...
@@ -95,10 +95,12 @@ PagePropertyPanel* PagePropertyPanel::Create (
...
@@ -95,10 +95,12 @@ PagePropertyPanel* PagePropertyPanel::Create (
if
(
pBindings
==
NULL
)
if
(
pBindings
==
NULL
)
throw
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
(
"no SfxBindings given to PagePropertyPanel::Create"
,
NULL
,
2
);
throw
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
(
"no SfxBindings given to PagePropertyPanel::Create"
,
NULL
,
2
);
return
new
PagePropertyPanel
(
return
VclPtr
<
vcl
::
Window
>
(
pParent
,
new
PagePropertyPanel
(
rxFrame
,
pParent
,
pBindings
);
rxFrame
,
pBindings
),
SAL_NO_ACQUIRE
);
}
}
PagePropertyPanel
::
PagePropertyPanel
(
PagePropertyPanel
::
PagePropertyPanel
(
...
...
sw/source/uibase/sidebar/PagePropertyPanel.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -55,7 +55,7 @@ namespace sw { namespace sidebar {
...
@@ -55,7 +55,7 @@ namespace sw { namespace sidebar {
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
{
{
public
:
public
:
static
PagePropertyPanel
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
);
SfxBindings
*
pBindings
);
...
...
sw/source/uibase/sidebar/SwPanelFactory.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -119,7 +119,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
...
@@ -119,7 +119,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
if
(
rsResourceURL
.
endsWith
(
"/PagePropertyPanel"
))
if
(
rsResourceURL
.
endsWith
(
"/PagePropertyPanel"
))
{
{
sw
::
sidebar
::
PagePropertyPanel
*
pPanel
=
sw
::
sidebar
::
PagePropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
VclPtr
<
vcl
::
Window
>
pPanel
=
sw
::
sidebar
::
PagePropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
rsResourceURL
,
xFrame
,
xFrame
,
...
@@ -128,7 +128,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
...
@@ -128,7 +128,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
}
}
else
if
(
rsResourceURL
.
endsWith
(
"/WrapPropertyPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/WrapPropertyPanel"
))
{
{
sw
::
sidebar
::
WrapPropertyPanel
*
pPanel
=
sw
::
sidebar
::
WrapPropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
VclPtr
<
vcl
::
Window
>
pPanel
=
sw
::
sidebar
::
WrapPropertyPanel
::
Create
(
pParentWindow
,
xFrame
,
pBindings
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
rsResourceURL
,
xFrame
,
xFrame
,
...
@@ -137,7 +137,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
...
@@ -137,7 +137,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
}
}
else
if
(
rsResourceURL
.
endsWith
(
"/NavigatorPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/NavigatorPanel"
))
{
{
vcl
::
Window
*
pPanel
=
new
SwNavigationPI
(
pBindings
,
NULL
,
pParentWindow
);
VclPtr
<
vcl
::
Window
>
pPanel
(
new
SwNavigationPI
(
pBindings
,
NULL
,
pParentWindow
),
SAL_NO_ACQUIRE
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
rsResourceURL
,
xFrame
,
xFrame
,
...
@@ -146,7 +146,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
...
@@ -146,7 +146,7 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
}
}
else
if
(
rsResourceURL
.
endsWith
(
"/ManageChangesPanel"
))
else
if
(
rsResourceURL
.
endsWith
(
"/ManageChangesPanel"
))
{
{
vcl
::
Window
*
pPanel
=
new
SwRedlineAcceptPanel
(
pParentWindow
,
xFrame
);
VclPtr
<
vcl
::
Window
>
pPanel
(
new
SwRedlineAcceptPanel
(
pParentWindow
,
xFrame
),
SAL_NO_ACQUIRE
);
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
xElement
=
sfx2
::
sidebar
::
SidebarPanelBase
::
Create
(
rsResourceURL
,
rsResourceURL
,
xFrame
,
xFrame
,
...
...
sw/source/uibase/sidebar/WrapPropertyPanel.cxx
Dosyayı görüntüle @
0baadcea
...
@@ -42,7 +42,7 @@ const char UNO_WRAPIDEAL[] = ".uno:WrapIdeal";
...
@@ -42,7 +42,7 @@ const char UNO_WRAPIDEAL[] = ".uno:WrapIdeal";
namespace
sw
{
namespace
sidebar
{
namespace
sw
{
namespace
sidebar
{
WrapPropertyPanel
*
WrapPropertyPanel
::
Create
(
VclPtr
<
vcl
::
Window
>
WrapPropertyPanel
::
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
)
SfxBindings
*
pBindings
)
...
@@ -54,10 +54,12 @@ WrapPropertyPanel* WrapPropertyPanel::Create (
...
@@ -54,10 +54,12 @@ WrapPropertyPanel* WrapPropertyPanel::Create (
if
(
pBindings
==
NULL
)
if
(
pBindings
==
NULL
)
throw
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
(
"no SfxBindings given to WrapPropertyPanel::Create"
,
NULL
,
2
);
throw
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
(
"no SfxBindings given to WrapPropertyPanel::Create"
,
NULL
,
2
);
return
new
WrapPropertyPanel
(
return
VclPtr
<
vcl
::
Window
>
(
pParent
,
new
WrapPropertyPanel
(
rxFrame
,
pParent
,
pBindings
);
rxFrame
,
pBindings
),
SAL_NO_ACQUIRE
);
}
}
WrapPropertyPanel
::
WrapPropertyPanel
(
WrapPropertyPanel
::
WrapPropertyPanel
(
...
...
sw/source/uibase/sidebar/WrapPropertyPanel.hxx
Dosyayı görüntüle @
0baadcea
...
@@ -35,7 +35,7 @@ namespace sw { namespace sidebar {
...
@@ -35,7 +35,7 @@ namespace sw { namespace sidebar {
,
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
,
public
::
sfx2
::
sidebar
::
ControllerItem
::
ItemUpdateReceiverInterface
{
{
public
:
public
:
static
WrapPropertyPanel
*
Create
(
static
VclPtr
<
vcl
::
Window
>
Create
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rxFrame
,
SfxBindings
*
pBindings
);
SfxBindings
*
pBindings
);
...
...
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