diff options
author | Faisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa> | 2013-06-06 11:31:34 +0200 |
---|---|---|
committer | Faisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa> | 2013-06-06 11:39:20 +0200 |
commit | a638554c02871005e3741ea71ecd59b5fd340809 (patch) | |
tree | dc3cad85b4e79e85eb6eb221000a7bdd5f877fef /sd/source/ui/dlg | |
parent | 057891e7a2721cdd204e1eef4051b2021d2c5c6b (diff) |
Convert sd view page to .ui
Change-Id: If199b877b762780e4c18b15025454f0dc7912dcd
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r-- | sd/source/ui/dlg/tpoption.cxx | 44 | ||||
-rw-r--r-- | sd/source/ui/dlg/tpoption.src | 75 |
2 files changed, 21 insertions, 98 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index b3084b49df74..da1321a39ee7 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -135,14 +135,12 @@ SfxTabPage* SdTpOptionsSnap::Create( Window* pWindow, \************************************************************************/ SdTpOptionsContents::SdTpOptionsContents( Window* pParent, const SfxItemSet& rInAttrs ) : - SfxTabPage ( pParent, SdResId( TP_OPTIONS_CONTENTS ), rInAttrs ), - aGrpDisplay ( this, SdResId( GRP_DISPLAY ) ), - aCbxRuler ( this, SdResId( CBX_RULER ) ), - aCbxDragStripes ( this, SdResId( CBX_HELPLINES ) ), - aCbxHandlesBezier ( this, SdResId( CBX_HANDLES_BEZIER ) ), - aCbxMoveOutline ( this, SdResId( CBX_MOVE_OUTLINE ) ) + SfxTabPage ( pParent, "SdViewPage", "modules/simpress/ui/sdviewpage.ui", rInAttrs ) { - FreeResource(); + get( m_pCbxRuler, "ruler"); + get( m_pCbxDragStripes, "dragstripes"); + get( m_pCbxHandlesBezier, "handlesbezier"); + get( m_pCbxMoveOutline, "moveoutline"); } // ----------------------------------------------------------------------- @@ -157,17 +155,17 @@ sal_Bool SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs ) { sal_Bool bModified = sal_False; - if( aCbxRuler.GetSavedValue() != aCbxRuler.IsChecked() || - aCbxMoveOutline.GetSavedValue() != aCbxMoveOutline.IsChecked() || - aCbxDragStripes.GetSavedValue() != aCbxDragStripes.IsChecked() || - aCbxHandlesBezier.GetSavedValue() != aCbxHandlesBezier.IsChecked() ) + if( m_pCbxRuler->GetSavedValue() != m_pCbxRuler->IsChecked() || + m_pCbxMoveOutline->GetSavedValue() != m_pCbxMoveOutline->IsChecked() || + m_pCbxDragStripes->GetSavedValue() != m_pCbxDragStripes->IsChecked() || + m_pCbxHandlesBezier->GetSavedValue() != m_pCbxHandlesBezier->IsChecked() ) { SdOptionsLayoutItem aOptsItem( ATTR_OPTIONS_LAYOUT ); - aOptsItem.GetOptionsLayout().SetRulerVisible( aCbxRuler.IsChecked() ); - aOptsItem.GetOptionsLayout().SetMoveOutline( aCbxMoveOutline.IsChecked() ); - aOptsItem.GetOptionsLayout().SetDragStripes( aCbxDragStripes.IsChecked() ); - aOptsItem.GetOptionsLayout().SetHandlesBezier( aCbxHandlesBezier.IsChecked() ); + aOptsItem.GetOptionsLayout().SetRulerVisible( m_pCbxRuler->IsChecked() ); + aOptsItem.GetOptionsLayout().SetMoveOutline( m_pCbxMoveOutline->IsChecked() ); + aOptsItem.GetOptionsLayout().SetDragStripes( m_pCbxDragStripes->IsChecked() ); + aOptsItem.GetOptionsLayout().SetHandlesBezier( m_pCbxHandlesBezier->IsChecked() ); rAttrs.Put( aOptsItem ); bModified = sal_True; @@ -185,15 +183,15 @@ void SdTpOptionsContents::Reset( const SfxItemSet& rAttrs ) SdOptionsLayoutItem aLayoutItem( (const SdOptionsLayoutItem&) rAttrs. Get( ATTR_OPTIONS_LAYOUT ) ); - aCbxRuler.Check( aLayoutItem.GetOptionsLayout().IsRulerVisible() ); - aCbxMoveOutline.Check( aLayoutItem.GetOptionsLayout().IsMoveOutline() ); - aCbxDragStripes.Check( aLayoutItem.GetOptionsLayout().IsDragStripes() ); - aCbxHandlesBezier.Check( aLayoutItem.GetOptionsLayout().IsHandlesBezier() ); + m_pCbxRuler->Check( aLayoutItem.GetOptionsLayout().IsRulerVisible() ); + m_pCbxMoveOutline->Check( aLayoutItem.GetOptionsLayout().IsMoveOutline() ); + m_pCbxDragStripes->Check( aLayoutItem.GetOptionsLayout().IsDragStripes() ); + m_pCbxHandlesBezier->Check( aLayoutItem.GetOptionsLayout().IsHandlesBezier() ); - aCbxRuler.SaveValue(); - aCbxMoveOutline.SaveValue(); - aCbxDragStripes.SaveValue(); - aCbxHandlesBezier.SaveValue(); + m_pCbxRuler->SaveValue(); + m_pCbxMoveOutline->SaveValue(); + m_pCbxDragStripes->SaveValue(); + m_pCbxHandlesBezier->SaveValue(); } // ----------------------------------------------------------------------- diff --git a/sd/source/ui/dlg/tpoption.src b/sd/source/ui/dlg/tpoption.src deleted file mode 100644 index ad2be1ee43f3..000000000000 --- a/sd/source/ui/dlg/tpoption.src +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include <sfx2/tabpage.hrc> - -#include "tpoption.hrc" -#include "helpids.h" - -#define SCALE_TEXT \ - Text [ en-US ] = "Scale" ; \ - - // Contents -TabPage TP_OPTIONS_CONTENTS -{ - HelpID = HID_SD_OPTIONS_CONTENTS ; - Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ; - Hide = TRUE; - Text [ en-US ] = "Contents" ; - FixedLine GRP_DISPLAY - { - Pos = MAP_APPFONT ( 6 , 72 - 69 ) ; - Size = MAP_APPFONT ( 248 , 8 ) ; - Text [ en-US ] = "Display" ; - }; - CheckBox CBX_RULER - { - HelpID = "sd:CheckBox:TP_OPTIONS_CONTENTS:CBX_RULER"; - Pos = MAP_APPFONT ( 12 , 83 - 69 ) ; - Size = MAP_APPFONT ( 160 , 10 ) ; - TabStop = TRUE ; - Text [ en-US ] = "~Rulers visible" ; - }; - CheckBox CBX_HELPLINES - { - HelpID = "sd:CheckBox:TP_OPTIONS_CONTENTS:CBX_HELPLINES"; - Pos = MAP_APPFONT ( 12 , 97 - 69 ) ; - Size = MAP_APPFONT ( 160 , 10 ) ; - TabStop = TRUE ; - Text [ en-US ] = "~Snap Lines when moving" ; - }; - CheckBox CBX_HANDLES_BEZIER - { - HelpID = "sd:CheckBox:TP_OPTIONS_CONTENTS:CBX_HANDLES_BEZIER"; - Pos = MAP_APPFONT ( 12 , 111 - 69 ) ; - Size = MAP_APPFONT ( 160 , 10 ) ; - TabStop = TRUE ; - Text [ en-US ] = "~All control points in Bézier editor" ; - }; - CheckBox CBX_MOVE_OUTLINE - { - HelpID = "sd:CheckBox:TP_OPTIONS_CONTENTS:CBX_MOVE_OUTLINE"; - Pos = MAP_APPFONT ( 12 , 125 - 69 ) ; - Size = MAP_APPFONT ( 160 , 10 ) ; - TabStop = TRUE ; - Text [ en-US ] = "~Contour of each individual object" ; - }; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |