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
56366b91
Kaydet (Commit)
56366b91
authored
May 20, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
boost::function to std for sidebar Deck, cleanup a bit
Change-Id: Ia0ce7349efcdf0ee8f46bbfeca8b2496b738b9ad
üst
e497141d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
40 deletions
+30
-40
Deck.cxx
sfx2/source/sidebar/Deck.cxx
+12
-16
Deck.hxx
sfx2/source/sidebar/Deck.hxx
+1
-4
DeckTitleBar.cxx
sfx2/source/sidebar/DeckTitleBar.cxx
+15
-16
DeckTitleBar.hxx
sfx2/source/sidebar/DeckTitleBar.hxx
+2
-4
No files found.
sfx2/source/sidebar/Deck.cxx
Dosyayı görüntüle @
56366b91
...
@@ -32,27 +32,23 @@
...
@@ -32,27 +32,23 @@
#include <vcl/scrbar.hxx>
#include <vcl/scrbar.hxx>
#include <tools/svborder.hxx>
#include <tools/svborder.hxx>
#include <boost/bind.hpp>
using
namespace
css
;
using
namespace
css
;
using
namespace
css
::
uno
;
using
namespace
css
::
uno
;
namespace
sfx2
{
namespace
sidebar
{
namespace
sfx2
{
namespace
sidebar
{
Deck
::
Deck
(
Deck
::
Deck
(
const
DeckDescriptor
&
rDeckDescriptor
,
vcl
::
Window
*
pParentWindow
,
const
DeckDescriptor
&
rDeckDescriptor
,
const
std
::
function
<
void
()
>&
rCloserAction
)
vcl
::
Window
*
pParentWindow
,
:
Window
(
pParentWindow
,
0
)
const
::
boost
::
function
<
void
()
>&
rCloserAction
)
,
msId
(
rDeckDescriptor
.
msId
)
:
Window
(
pParentWindow
,
0
),
,
maIcon
()
msId
(
rDeckDescriptor
.
msId
),
,
mnMinimalWidth
(
0
)
maIcon
(),
,
maPanels
()
mnMinimalWidth
(
0
),
,
mpTitleBar
(
VclPtr
<
DeckTitleBar
>::
Create
(
rDeckDescriptor
.
msTitle
,
this
,
rCloserAction
))
maPanels
(),
,
mpScrollClipWindow
(
VclPtr
<
vcl
::
Window
>::
Create
(
this
))
mpTitleBar
(
VclPtr
<
DeckTitleBar
>::
Create
(
rDeckDescriptor
.
msTitle
,
this
,
rCloserAction
)),
,
mpScrollContainer
(
VclPtr
<
ScrollContainerWindow
>::
Create
(
mpScrollClipWindow
.
get
()))
mpScrollClipWindow
(
VclPtr
<
vcl
::
Window
>::
Create
(
this
)),
,
mpFiller
(
VclPtr
<
vcl
::
Window
>::
Create
(
this
))
mpScrollContainer
(
VclPtr
<
ScrollContainerWindow
>::
Create
(
mpScrollClipWindow
.
get
())),
,
mpVerticalScrollBar
(
VclPtr
<
ScrollBar
>::
Create
(
this
))
mpFiller
(
VclPtr
<
vcl
::
Window
>::
Create
(
this
)),
mpVerticalScrollBar
(
VclPtr
<
ScrollBar
>::
Create
(
this
))
{
{
SetBackground
(
Wallpaper
());
SetBackground
(
Wallpaper
());
...
...
sfx2/source/sidebar/Deck.hxx
Dosyayı görüntüle @
56366b91
...
@@ -25,9 +25,6 @@
...
@@ -25,9 +25,6 @@
#include <vcl/image.hxx>
#include <vcl/image.hxx>
#include <com/sun/star/ui/LayoutSize.hpp>
#include <com/sun/star/ui/LayoutSize.hpp>
#include <boost/function.hpp>
#include <boost/scoped_ptr.hpp>
class
ScrollBar
;
class
ScrollBar
;
namespace
sfx2
{
namespace
sidebar
{
namespace
sfx2
{
namespace
sidebar
{
...
@@ -43,7 +40,7 @@ class Deck : public vcl::Window
...
@@ -43,7 +40,7 @@ class Deck : public vcl::Window
public
:
public
:
Deck
(
const
DeckDescriptor
&
rDeckDescriptor
,
Deck
(
const
DeckDescriptor
&
rDeckDescriptor
,
vcl
::
Window
*
pParentWindow
,
vcl
::
Window
*
pParentWindow
,
const
boost
::
function
<
void
()
>&
rCloserAction
);
const
std
::
function
<
void
()
>&
rCloserAction
);
virtual
~
Deck
();
virtual
~
Deck
();
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
dispose
()
SAL_OVERRIDE
;
...
...
sfx2/source/sidebar/DeckTitleBar.cxx
Dosyayı görüntüle @
56366b91
...
@@ -30,16 +30,19 @@
...
@@ -30,16 +30,19 @@
namespace
sfx2
{
namespace
sidebar
{
namespace
sfx2
{
namespace
sidebar
{
namespace
{
static
const
sal_Int32
gaLeftGripPadding
(
3
);
static
const
sal_Int32
gaLeftGripPadding
(
3
);
static
const
sal_Int32
gaRightGripPadding
(
3
);
static
const
sal_Int32
gaRightGripPadding
(
3
);
}
DeckTitleBar
::
DeckTitleBar
(
const
OUString
&
rsTitle
,
DeckTitleBar
::
DeckTitleBar
(
const
OUString
&
rsTitle
,
vcl
::
Window
*
pParentWindow
,
vcl
::
Window
*
pParentWindow
,
const
boost
::
function
<
void
()
>&
rCloserAction
)
const
std
::
function
<
void
()
>&
rCloserAction
)
:
TitleBar
(
rsTitle
,
pParentWindow
,
GetBackgroundPaint
())
,
:
TitleBar
(
rsTitle
,
pParentWindow
,
GetBackgroundPaint
())
mnCloserItemIndex
(
1
),
,
mnCloserItemIndex
(
1
)
maCloserAction
(
rCloserAction
),
,
maCloserAction
(
rCloserAction
)
mbIsCloserVisible
(
false
)
,
mbIsCloserVisible
(
false
)
{
{
OSL_ASSERT
(
pParentWindow
!=
NULL
);
OSL_ASSERT
(
pParentWindow
!=
NULL
);
...
@@ -59,16 +62,13 @@ void DeckTitleBar::SetCloserVisible (const bool bIsCloserVisible)
...
@@ -59,16 +62,13 @@ void DeckTitleBar::SetCloserVisible (const bool bIsCloserVisible)
if
(
mbIsCloserVisible
)
if
(
mbIsCloserVisible
)
{
{
maToolBox
->
InsertItem
(
maToolBox
->
InsertItem
(
mnCloserItemIndex
,
mnCloserItemIndex
,
Theme
::
GetImage
(
Theme
::
Image_Closer
));
Theme
::
GetImage
(
Theme
::
Image_Closer
));
maToolBox
->
SetQuickHelpText
(
mnCloserItemIndex
,
maToolBox
->
SetQuickHelpText
(
SFX2_RESSTR
(
SFX_STR_SIDEBAR_CLOSE_DECK
));
mnCloserItemIndex
,
SFX2_RESSTR
(
SFX_STR_SIDEBAR_CLOSE_DECK
));
}
}
else
else
maToolBox
->
RemoveItem
(
maToolBox
->
RemoveItem
(
maToolBox
->
GetItemPos
(
mnCloserItemIndex
));
maToolBox
->
GetItemPos
(
mnCloserItemIndex
));
}
}
}
}
...
@@ -98,9 +98,8 @@ Color DeckTitleBar::GetTextColor()
...
@@ -98,9 +98,8 @@ Color DeckTitleBar::GetTextColor()
void
DeckTitleBar
::
HandleToolBoxItemClick
(
const
sal_uInt16
nItemIndex
)
void
DeckTitleBar
::
HandleToolBoxItemClick
(
const
sal_uInt16
nItemIndex
)
{
{
if
(
nItemIndex
==
mnCloserItemIndex
)
if
(
nItemIndex
==
mnCloserItemIndex
&&
maCloserAction
)
if
(
maCloserAction
)
maCloserAction
();
maCloserAction
();
}
}
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
DeckTitleBar
::
CreateAccessible
()
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
DeckTitleBar
::
CreateAccessible
()
...
...
sfx2/source/sidebar/DeckTitleBar.hxx
Dosyayı görüntüle @
56366b91
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
#include "TitleBar.hxx"
#include "TitleBar.hxx"
#include <boost/function.hpp>
namespace
sfx2
{
namespace
sidebar
{
namespace
sfx2
{
namespace
sidebar
{
class
DeckTitleBar
:
public
TitleBar
class
DeckTitleBar
:
public
TitleBar
...
@@ -30,7 +28,7 @@ class DeckTitleBar : public TitleBar
...
@@ -30,7 +28,7 @@ class DeckTitleBar : public TitleBar
public
:
public
:
DeckTitleBar
(
const
OUString
&
rsTitle
,
DeckTitleBar
(
const
OUString
&
rsTitle
,
vcl
::
Window
*
pParentWindow
,
vcl
::
Window
*
pParentWindow
,
const
boost
::
function
<
void
()
>&
rCloserAction
);
const
std
::
function
<
void
()
>&
rCloserAction
);
void
SetCloserVisible
(
const
bool
bIsCloserVisible
);
void
SetCloserVisible
(
const
bool
bIsCloserVisible
);
...
@@ -46,7 +44,7 @@ protected:
...
@@ -46,7 +44,7 @@ protected:
private
:
private
:
const
sal_uInt16
mnCloserItemIndex
;
const
sal_uInt16
mnCloserItemIndex
;
const
boost
::
function
<
void
()
>
maCloserAction
;
const
std
::
function
<
void
()
>
maCloserAction
;
bool
mbIsCloserVisible
;
bool
mbIsCloserVisible
;
};
};
...
...
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