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
9d88c7a3
Kaydet (Commit)
9d88c7a3
authored
Agu 11, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove close button in template dialog.
Change-Id: I7a8cac7b8dfa73eabea9113d4b9921a2d48b0324
üst
3f660094
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
33 deletions
+0
-33
templatedlg.hxx
sfx2/inc/templatedlg.hxx
+0
-2
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+0
-22
templatedlg.hrc
sfx2/source/doc/templatedlg.hrc
+0
-2
templatedlg.src
sfx2/source/doc/templatedlg.src
+0
-7
No files found.
sfx2/inc/templatedlg.hxx
Dosyayı görüntüle @
9d88c7a3
...
...
@@ -49,7 +49,6 @@ private:
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
);
DECL_LINK
(
CloseHdl
,
void
*
);
DECL_LINK
(
CloseOverlayHdl
,
void
*
);
DECL_LINK
(
OnClickSelectionMode
,
ImageButton
*
);
...
...
@@ -114,7 +113,6 @@ private:
PushButton
aButtonPresents
;
PushButton
aButtonSheets
;
PushButton
aButtonDraws
;
PushButton
maButtonClose
;
ImageButton
maButtonSelMode
;
Edit
*
mpSearchEdit
;
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
9d88c7a3
...
...
@@ -107,7 +107,6 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
aButtonPresents
(
this
,
SfxResId
(
BTN_SELECT_PRESENTATIONS
)),
aButtonSheets
(
this
,
SfxResId
(
BTN_SELECT_SHEETS
)),
aButtonDraws
(
this
,
SfxResId
(
BTN_SELECT_DRAWS
)),
maButtonClose
(
this
,
SfxResId
(
BTN_TEMPLATE_CLOSE
)),
maButtonSelMode
(
this
,
SfxResId
(
BTN_SELECTION_MODE
)),
mpSearchEdit
(
new
Edit
(
this
,
WB_HIDE
|
WB_BORDER
)),
mpViewBar
(
new
ToolBox
(
this
,
SfxResId
(
TBX_ACTION_VIEW
))),
...
...
@@ -229,22 +228,11 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
mpSearchView
->
setItemStateHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
TVTemplateStateHdl
));
// Set OK button position
Point
aBtnPos
;
Size
aBtnSize
=
maButtonClose
.
GetSizePixel
();
aBtnPos
.
setX
(
aWinSize
.
getWidth
()
-
PADDING_DLG_BORDER
-
aBtnSize
.
getWidth
());
aBtnPos
.
setY
(
aViewPos
.
getY
()
+
aThumbSize
.
getHeight
()
+
PADDING_TOOLBAR_VIEW
);
maButtonClose
.
SetPosPixel
(
aBtnPos
);
if
(
aWinSize
.
getHeight
()
!=
aBtnPos
.
getY
()
+
aBtnSize
.
getHeight
()
+
PADDING_DLG_BORDER
)
aWinSize
.
setHeight
(
aBtnPos
.
getY
()
+
aBtnSize
.
getHeight
()
+
PADDING_DLG_BORDER
);
aButtonAll
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
ViewAllHdl
));
aButtonDocs
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
ViewDocsHdl
));
aButtonPresents
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
ViewPresentsHdl
));
aButtonSheets
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
ViewSheetsHdl
));
aButtonDraws
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
ViewDrawsHdl
));
maButtonClose
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
CloseHdl
));
maButtonSelMode
.
SetClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
OnClickSelectionMode
));
// Set dialog to correct dimensions
...
...
@@ -326,12 +314,6 @@ void SfxTemplateManagerDlg::MouseButtonDown( const MouseEvent& rMEvt )
}
}
IMPL_LINK_NOARG
(
SfxTemplateManagerDlg
,
CloseHdl
)
{
Close
();
return
0
;
}
IMPL_LINK_NOARG
(
SfxTemplateManagerDlg
,
CloseOverlayHdl
)
{
maSelTemplates
.
clear
();
...
...
@@ -783,7 +765,6 @@ void SfxTemplateManagerDlg::OnTemplateImport ()
void
SfxTemplateManagerDlg
::
OnTemplateSearch
()
{
Point
aPos
=
maView
->
GetPosPixel
();
Point
aClosePos
=
maButtonClose
.
GetPosPixel
();
bool
bVisible
=
mpSearchEdit
->
IsVisible
();
Size
aWinSize
=
GetSizePixel
();
long
nEditHeight
=
mpSearchEdit
->
GetSizePixel
().
getHeight
();
...
...
@@ -792,14 +773,12 @@ void SfxTemplateManagerDlg::OnTemplateSearch ()
{
aWinSize
.
setHeight
(
aWinSize
.
getHeight
()
-
nEditHeight
);
aPos
.
setY
(
aPos
.
getY
()
-
nEditHeight
);
aClosePos
.
setY
(
aClosePos
.
getY
()
-
nEditHeight
);
mpActionBar
->
SetItemState
(
TBI_TEMPLATE_SEARCH
,
STATE_NOCHECK
);
}
else
{
aWinSize
.
setHeight
(
aWinSize
.
getHeight
()
+
nEditHeight
);
aPos
.
setY
(
aPos
.
getY
()
+
nEditHeight
);
aClosePos
.
setY
(
aClosePos
.
getY
()
+
nEditHeight
);
mpActionBar
->
SetItemState
(
TBI_TEMPLATE_SEARCH
,
STATE_CHECK
);
}
...
...
@@ -807,7 +786,6 @@ void SfxTemplateManagerDlg::OnTemplateSearch ()
maView
->
SetPosPixel
(
aPos
);
mpOnlineView
->
SetPosPixel
(
aPos
);
mpSearchView
->
SetPosPixel
(
aPos
);
maButtonClose
.
SetPosPixel
(
aClosePos
);
// Hide search view
if
(
bVisible
)
...
...
sfx2/source/doc/templatedlg.hrc
Dosyayı görüntüle @
9d88c7a3
...
...
@@ -32,8 +32,6 @@
#define MNI_ACTION_REFRESH 22
#define MNI_ACTION_SORT_NAME 23
#define BTN_TEMPLATE_CLOSE 24
#define TBI_TEMPLATE_FOLDER_DEL 25
#define TBI_TEMPLATE_REPOSITORY 26
...
...
sfx2/source/doc/templatedlg.src
Dosyayı görüntüle @
9d88c7a3
...
...
@@ -110,13 +110,6 @@ ModelessDialog DLG_TEMPLATE_MANAGER
QuickHelpText [en-US] = "Enables selecting items by just clicking in the thumbnail or title.";
};
PushButton BTN_TEMPLATE_CLOSE
{
Size = MAP_APPFONT(50,14);
TabStop = TRUE;
Text [en-US] = "Close";
};
Control TEMPLATE_VIEW
{
Pos = MAP_APPFONT(5,30);
...
...
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