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
7a25aa28
Kaydet (Commit)
7a25aa28
authored
Mar 22, 2013
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#61390: Fixed the tabstop in the TemplateView.
Change-Id: I887b11646efb9a839da11cd3e20cdf7e532caf3e
üst
a4b4942f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
20 deletions
+13
-20
templateview.hxx
sfx2/inc/sfx2/templateview.hxx
+0
-1
templateabstractview.cxx
sfx2/source/control/templateabstractview.cxx
+8
-2
templateview.cxx
sfx2/source/control/templateview.cxx
+5
-11
templateview.src
sfx2/source/control/templateview.src
+0
-6
No files found.
sfx2/inc/sfx2/templateview.hxx
Dosyayı görüntüle @
7a25aa28
...
...
@@ -54,7 +54,6 @@ private:
Link
maOpenHdl
;
TemplateAbstractView
*
mpMasterView
;
Control
maButtons
;
PushButton
maAllButton
;
FixedText
maFTName
;
sal_uInt16
mnId
;
...
...
sfx2/source/control/templateabstractview.cxx
Dosyayı görüntüle @
7a25aa28
...
...
@@ -115,7 +115,7 @@ bool ViewFilter_Keyword::operator ()(const ThumbnailViewItem *pItem)
TemplateAbstractView
::
TemplateAbstractView
(
Window
*
pParent
,
WinBits
nWinStyle
,
bool
bDisableTransientChildren
)
:
ThumbnailView
(
pParent
,
nWinStyle
,
bDisableTransientChildren
),
mpItemView
(
new
TemplateView
(
this
)),
mpItemView
(
new
TemplateView
(
pParent
)),
mbFilteredResults
(
false
),
meFilterOption
(
FILTER_APP_WRITER
)
{
...
...
@@ -124,7 +124,7 @@ TemplateAbstractView::TemplateAbstractView (Window *pParent, WinBits nWinStyle,
TemplateAbstractView
::
TemplateAbstractView
(
Window
*
pParent
,
const
ResId
&
rResId
,
bool
bDisableTransientChildren
)
:
ThumbnailView
(
pParent
,
rResId
,
bDisableTransientChildren
),
mpItemView
(
new
TemplateView
(
this
)),
mpItemView
(
new
TemplateView
(
pParent
)),
mbFilteredResults
(
false
),
meFilterOption
(
FILTER_APP_WRITER
)
{
...
...
@@ -186,8 +186,14 @@ void TemplateAbstractView::filterTemplatesByApp (const FILTER_APPLICATION &eApp)
void
TemplateAbstractView
::
showOverlay
(
bool
bVisible
)
{
Show
(
!
bVisible
);
mpItemView
->
Show
(
bVisible
);
mpItemView
->
SetPosSizePixel
(
GetPosPixel
(),
GetSizePixel
());
mpItemView
->
SetStyle
(
GetStyle
());
mpItemView
->
GrabFocus
();
// Clear items is the overlay is closed.
if
(
!
bVisible
)
{
...
...
sfx2/source/control/templateview.cxx
Dosyayı görüntüle @
7a25aa28
...
...
@@ -34,14 +34,13 @@ using namespace drawinglayer::attribute;
using
namespace
drawinglayer
::
primitive2d
;
TemplateView
::
TemplateView
(
Window
*
pParent
)
:
ThumbnailView
(
pParent
,
WB_VSCROLL
),
:
ThumbnailView
(
pParent
,
WB_VSCROLL
|
WB_TABSTOP
),
mpMasterView
(
NULL
),
maButtons
(
this
,
SfxResId
(
CONTROL_BUTTONS
)),
maAllButton
(
&
maButtons
,
SfxResId
(
BTN_ALL_TEMPLATES
)),
maFTName
(
&
maButtons
,
SfxResId
(
FT_NAME
)),
maAllButton
(
this
,
SfxResId
(
BTN_ALL_TEMPLATES
)),
maFTName
(
this
,
SfxResId
(
FT_NAME
)),
mnId
(
0
)
{
mnHeaderHeight
=
ma
Buttons
.
GetSizePixel
().
getHeight
()
;
mnHeaderHeight
=
ma
AllButton
.
GetSizePixel
().
getHeight
()
+
maAllButton
.
GetPosPixel
().
Y
()
*
2
;
maAllButton
.
SetStyle
(
maAllButton
.
GetStyle
()
|
WB_FLATBUTTON
);
}
...
...
@@ -88,13 +87,8 @@ void TemplateView::Resize()
Size
aWinSize
=
GetOutputSize
();
// Set the buttons panel and buttons size
Size
aPanelSize
=
maButtons
.
GetSizePixel
();
int
nDeltaW
=
aWinSize
.
getWidth
()
-
aPanelSize
.
getWidth
();
aPanelSize
.
setWidth
(
aWinSize
.
getWidth
());
maButtons
.
SetSizePixel
(
aPanelSize
);
Size
aNameSize
=
maFTName
.
GetSizePixel
();
aNameSize
.
setWidth
(
aNameSize
.
getWidth
()
+
nDeltaW
);
aNameSize
.
setWidth
(
aWinSize
.
getWidth
()
-
maFTName
.
GetPosPixel
().
X
()
);
maFTName
.
SetSizePixel
(
aNameSize
);
ThumbnailView
::
Resize
();
...
...
sfx2/source/control/templateview.src
Dosyayı görüntüle @
7a25aa28
...
...
@@ -9,12 +9,6 @@
#include "templateview.hrc"
Control CONTROL_BUTTONS
{
Size = MAP_APPFONT( 290, 17 );
TabStop = False;
};
PushButton BTN_ALL_TEMPLATES
{
Pos = MAP_APPFONT( 1, 1 );
...
...
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