summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-03-19 10:13:16 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-03-19 10:18:34 +0100
commiteff94128b8434501a6f9c26a5a47cfd7d408f472 (patch)
tree58e386a54033f49ea9c5fc0955c75fe97774de5e
parentb6ba04639b9922f6717f79ac4be215e09691d7a9 (diff)
Template Manager: fixed TabStops for the toolbars
Change-Id: Iab2dd8ef71fd84e9d147d90e9cad46d69a8fe650
-rw-r--r--sfx2/inc/templatedlg.hxx1
-rw-r--r--sfx2/source/doc/templatedlg.cxx13
-rw-r--r--sfx2/source/doc/templatedlg.src6
3 files changed, 4 insertions, 16 deletions
diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx
index 6b2d4bc4106d..0a6be502838d 100644
--- a/sfx2/inc/templatedlg.hxx
+++ b/sfx2/inc/templatedlg.hxx
@@ -130,7 +130,6 @@ private:
TabControl maTabControl;
TabPage maTabPage;
- Control *mpToolbars;
Edit *mpSearchEdit;
ToolBox *mpViewBar;
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 54bfdbc0d508..6a828ce987a5 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -114,11 +114,10 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
: ModelessDialog(parent, SfxResId(DLG_TEMPLATE_MANAGER)),
maTabControl(this,SfxResId(TAB_CONTROL)),
maTabPage(&maTabControl, SfxResId(TAB_TEMPLATE_MANAGER)),
- mpToolbars( new Control(&maTabPage,SfxResId(TOOLBARS))),
mpSearchEdit(new Edit(&maTabPage,WB_HIDE | WB_BORDER)),
- mpViewBar( new ToolBox(mpToolbars, SfxResId(TBX_ACTION_VIEW))),
- mpActionBar( new ToolBox(mpToolbars, SfxResId(TBX_ACTION_ACTION))),
- mpTemplateBar( new ToolBox(mpToolbars, SfxResId(TBX_ACTION_TEMPLATES))),
+ mpViewBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_VIEW))),
+ mpActionBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_ACTION))),
+ mpTemplateBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_TEMPLATES))),
mpSearchView(new TemplateSearchView(&maTabPage)),
maView(new TemplateLocalView(&maTabPage,SfxResId(TEMPLATE_VIEW))),
mpOnlineView(new TemplateRemoteView(&maTabPage, WB_VSCROLL,false)),
@@ -240,7 +239,6 @@ SfxTemplateManagerDlg::~SfxTemplateManagerDlg ()
delete mpTemplateDefaultMenu;
delete mpActionMenu;
delete mpRepositoryMenu;
- delete mpToolbars;
}
void SfxTemplateManagerDlg::setSaveMode(bool bMode)
@@ -319,9 +317,6 @@ void SfxTemplateManagerDlg::Resize()
long nToolbarsHeight = std::max(std::max(aViewSize.getHeight(), aActionSize.getHeight()), aTemplateSize.getHeight());
- Size aToolbarsSize (aWinSize.getWidth(), nToolbarsHeight);
- mpToolbars->SetSizePixel(aToolbarsSize);
-
aActionSize.setWidth(3*aActionSize.getWidth());
aViewSize.setWidth(aWinSize.getWidth()-aActionSize.getWidth()-mpViewBar->GetPosPixel().X());
aTemplateSize.setWidth(aWinSize.getWidth());
@@ -335,7 +330,7 @@ void SfxTemplateManagerDlg::Resize()
// Set view position below toolbox
Point aViewPos = maView->GetPosPixel();
- aViewPos.setY(aToolbarsSize.getHeight());
+ aViewPos.setY(nToolbarsHeight);
aViewPos.setX(0);
Size aThumbSize(aWinSize.getWidth(), maTabControl.GetTabPageSizePixel().getWidth() - aViewPos.getY());
maView->SetPosSizePixel(aViewPos, aThumbSize);
diff --git a/sfx2/source/doc/templatedlg.src b/sfx2/source/doc/templatedlg.src
index 3de2c42c396b..17611186f8fe 100644
--- a/sfx2/source/doc/templatedlg.src
+++ b/sfx2/source/doc/templatedlg.src
@@ -112,12 +112,6 @@ TabPage TAB_TEMPLATE_MANAGER
Size = MAP_APPFONT( 290, 220 );
Hide = TRUE;
- Control TOOLBARS
- {
- Size = MAP_APPFONT( 290 , 20 );
- TabStop = False;
- };
-
Control TEMPLATE_VIEW
{
Pos = MAP_APPFONT( 0, 20 );