diff options
Diffstat (limited to 'svtools/source/plugapp')
-rw-r--r-- | svtools/source/plugapp/testtool.hrc | 55 | ||||
-rw-r--r-- | svtools/source/plugapp/testtool.src | 194 | ||||
-rw-r--r-- | svtools/source/plugapp/ttprops.cxx | 81 |
3 files changed, 0 insertions, 330 deletions
diff --git a/svtools/source/plugapp/testtool.hrc b/svtools/source/plugapp/testtool.hrc deleted file mode 100644 index e8d1c04ac6..0000000000 --- a/svtools/source/plugapp/testtool.hrc +++ /dev/null @@ -1,55 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#define TTSTART 12345 - -#define DisplayHidToolBox ( TTSTART + 0 ) -#define TT_SHOW 1 -#define TT_SHOW2 ( TTSTART + 1 ) -#define TT_OUTPUT 3 -#define TT_SEND_DATA 4 -#define TT_ALLWIN 5 -#define TT_KURZNAME 6 -#define TT_LANGNAME 7 -#define TT_ALTERNATE_CAPTION ( TTSTART + 2 ) - -#define TT_INLINE_TRANSLATION ( TTSTART + 3) -#define TT_GB_TRANSLATION 1 -#define TT_E_NEW 2 -#define TT_FT_OLD 3 -#define TT_GB_COMMENT 4 -#define TT_E_COMMENT 5 - -#define TT_PB_SELECT 6 -#define TT_PB_RESTORE 7 -#define TT_PB_ACCEPT 8 -#define TT_PB_NEXT 9 - -#define TT_DISCARD_CHANGED_DATA ( TTSTART + 4 ) -#define TT_NO_CONTROL ( TTSTART + 5 ) - - -#define TT_GPF ( TTSTART + 6 ) diff --git a/svtools/source/plugapp/testtool.src b/svtools/source/plugapp/testtool.src deleted file mode 100644 index ae29d64976..0000000000 --- a/svtools/source/plugapp/testtool.src +++ /dev/null @@ -1,194 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#include "testtool.hrc" -#include <svl/solar.hrc> - - -#define Control_Control 5 -#define Control_Border 7 -#define Button_Button Control_Control -#define ButtonWidth 40 - - -ToolBox DisplayHidToolBox { - SVLook = TRUE ; - ItemList = { - ToolBoxItem { - Type = TOOLBOXITEM_BUTTON; - _ToolBoxItemFlags = TIB_AUTOCHECK ; - Identifier = TT_SHOW; - ItemBitmap = Bitmap { - File = "ttshow.png"; - }; - Text[ en-US ] = "Display IDs"; - }; - ToolBoxItem { - Type = TOOLBOXITEM_SEPARATOR; - }; - ToolBoxItem { - _ToolBoxItemFlags = TIB_AUTOSIZE; - Identifier = TT_OUTPUT; - Text[ en-US ] = "This is the input window"; - }; - ToolBoxItem { - Type = TOOLBOXITEM_SEPARATOR; - }; - ToolBoxItem { - Identifier = TT_SEND_DATA; - ItemBitmap = Bitmap { - File = "ttremote.png"; - }; - Text[ en-US ] = "Transfer to TestTool"; - }; - ToolBoxItem { - Type = TOOLBOXITEM_SEPARATOR; - }; - ToolBoxItem { - Identifier = TT_ALLWIN; - ItemBitmap = Bitmap { - File = "ttall.png"; - }; - Text[ en-US ] = "Show all windows"; - }; - ToolBoxItem { - Identifier = TT_KURZNAME; - ItemBitmap = Bitmap { - File = "ttdef.png"; - }; - Text[ en-US ] = "Show short names (if available)"; - }; - ToolBoxItem { - Identifier = TT_LANGNAME; - ItemBitmap = Bitmap { - File = "tthid.png"; - }; - Text[ en-US ] = "Always show long-name"; - }; - }; - Text[ en-US ] = "DisplayHID"; -}; - -Bitmap TT_SHOW2 { - File = "ttshow2.png"; -}; - -WorkWindow TT_INLINE_TRANSLATION { - HelpID = "svtools:WorkWindow:TT_INLINE_TRANSLATION"; - SVLook = TRUE; - Size = MAP_APPFONT( 2*Control_Border + 4*ButtonWidth + 3*Button_Button, 120 ); - Moveable = TRUE; - Sizeable = TRUE; - Closeable = TRUE; - Border = TRUE; - GroupBox TT_GB_TRANSLATION { - Pos = MAP_APPFONT( 2, 3 ); - Size = MAP_APPFONT( 173, 44 ); - Text[ en-US ] = "Translation"; - }; - Edit TT_E_NEW { - HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_NEW"; - Disable = TRUE; - Border = TRUE; - Pos = MAP_APPFONT( 7, 16 ); - Size = MAP_APPFONT( 162, 12 ); - TabStop = TRUE; - Text[ en-US ] = "~Edit"; - }; - FixedText TT_FT_OLD { - Pos = MAP_APPFONT( 7, 33 ); - Size = MAP_APPFONT( 162, 10 ); - Text[ en-US ] = "Original Text"; - }; - GroupBox TT_GB_COMMENT { - Pos = MAP_APPFONT( 2, 52 ); - Size = MAP_APPFONT( 173, 32 ); - Text[ en-US ] = "Comment"; - }; - Edit TT_E_COMMENT { - HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_COMMENT"; - Disable = TRUE; - Border = TRUE; - Pos = MAP_APPFONT( 7, 64 ); - Size = MAP_APPFONT( 162, 12 ); - TabStop = TRUE; - Text[ en-US ] = "~Comment"; - }; - PushButton TT_PB_SELECT { - HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_SELECT"; - Pos = MAP_APPFONT( Control_Border, 89 ); - Size = MAP_APPFONT( ButtonWidth, 12 ); - TabStop = TRUE; - Text[ en-US ] = "~Select"; - }; - PushButton TT_PB_RESTORE { - HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_RESTORE"; - Disable = TRUE; - Pos = MAP_APPFONT( Control_Border + ButtonWidth + Button_Button, 89 ); - Size = MAP_APPFONT( ButtonWidth, 12 ); - TabStop = TRUE; - Text[ en-US ] = "~Restore"; - }; - PushButton TT_PB_ACCEPT { - HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_ACCEPT"; - Disable = TRUE; - Pos = MAP_APPFONT( Control_Border + 2*(ButtonWidth + Button_Button), 89 ); - Size = MAP_APPFONT( ButtonWidth, 12 ); - TabStop = TRUE; - Text[ en-US ] = "~Accept"; - }; - PushButton TT_PB_NEXT { - HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_NEXT"; - Pos = MAP_APPFONT( Control_Border + 3*(ButtonWidth + Button_Button), 89 ); - Size = MAP_APPFONT( ButtonWidth, 12 ); - TabStop = TRUE; - Text[ en-US ] = "~Next"; - }; - Text[ en-US ] = "Inplace Translation"; -}; - -MessBox TT_DISCARD_CHANGED_DATA { - Buttons = WB_YES_NO; - DefButton = WB_DEF_YES; - Message[ en-US ] = "The Translation will be lost. Proceed anyway?"; -}; - -ErrorBox TT_NO_CONTROL { - Buttons = WB_OK; - DefButton = WB_DEF_OK; - Message[ en-US ] = "The Control is no longer valid. The Translation cannot be saved."; -}; - -String TT_GPF -{ - Text[ en-US ] = "GPF occurred"; -}; - -String TT_ALTERNATE_CAPTION -{ - Text[ en-US ] = "HelpID does not match UniqueID: "; -}; - diff --git a/svtools/source/plugapp/ttprops.cxx b/svtools/source/plugapp/ttprops.cxx deleted file mode 100644 index ccc92d5953..0000000000 --- a/svtools/source/plugapp/ttprops.cxx +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -// MARKER(update_precomp.py): autogen include statement, do not remove -#include "precompiled_svtools.hxx" -#include <svtools/ttprops.hxx> -#include <vcl/svapp.hxx> -#include <vcl/bitmap.hxx> -#include <tools/rtti.hxx> - -TYPEINIT1( TTProperties, ApplicationProperty ) - -sal_Bool TTProperties::RequestProperty( sal_uInt16 nRequest ) -{ - if ( (( nRequest & TT_PR_ONCE ) == 0) || (nDonePRs & (nRequest & 0x0ff)) == 0 ) - { - nActualPR = nRequest; - nDonePRs |= nRequest; - GetpApp()->Property( *this ); - return nActualPR == 0; - } - return sal_True; -} - - -sal_Bool TTProperties::GetSlots() -{ - RequestProperty( TT_PR_SLOTS ); - return HasSlots(); -} - -sal_uInt16 TTProperties::ExecuteFunction( sal_uInt16 nSID, SfxPoolItem** ppArgs, sal_uInt16 nMode ) -{ - mnSID = nSID; - mppArgs = ppArgs; - mnMode = nMode; - RequestProperty( TT_PR_DISPATCHER ); - mppArgs = NULL; - return nActualPR; -} - -sal_Bool TTProperties::Img( Bitmap *pBmp ) -{ - sal_Bool bRet; - mpBmp = pBmp; - bRet = RequestProperty( TT_PR_IMG ); - mpBmp = NULL; - return bRet; -} - -SvtResId TTProperties::GetSvtResId( sal_uInt16 nId ) -{ - return SvtResId( nId ); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |