diff options
Diffstat (limited to 'svx/source/form')
32 files changed, 84 insertions, 472 deletions
diff --git a/svx/source/form/ParseContext.cxx b/svx/source/form/ParseContext.cxx index 2723e11ddc..f38c341847 100644 --- a/svx/source/form/ParseContext.cxx +++ b/svx/source/form/ParseContext.cxx @@ -37,7 +37,7 @@ #include <svx/dialmgr.hxx> -#include <svtools/syslocale.hxx> +#include <unotools/syslocale.hxx> #include <vcl/svapp.hxx> #include <tools/debug.hxx> #include <vos/mutex.hxx> diff --git a/svx/source/form/databaselocationinput.cxx b/svx/source/form/databaselocationinput.cxx index b7d117b3de..215e74d72f 100644 --- a/svx/source/form/databaselocationinput.cxx +++ b/svx/source/form/databaselocationinput.cxx @@ -45,7 +45,7 @@ #include <rtl/ustrbuf.hxx> #include <sfx2/filedlghelper.hxx> #include <svtools/urlcontrol.hxx> -#include <svtools/filenotation.hxx> +#include <svl/filenotation.hxx> #include <tools/diagnose_ex.h> #include <unotools/confignode.hxx> #include <unotools/ucbhelper.hxx> diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index c56b4b77f6..c54c9f8e65 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,9 +44,9 @@ #include <svx/dialmgr.hxx> #include <svx/fmshell.hxx> #include <svtools/miscopt.hxx> -#include <svtools/pathoptions.hxx> -#include <svtools/viewoptions.hxx> -#include <svtools/svtools.hrc> +#include <unotools/pathoptions.hxx> +#include <unotools/viewoptions.hxx> +#include <svl/svtools.hrc> #include <sfx2/app.hxx> #include <sfx2/filedlghelper.hxx> #include <sfx2/objitem.hxx> @@ -816,8 +816,8 @@ namespace svxform // create a resource manager, for the svx resource file // and the UI locale ByteString aResourceFile( "svx" ); - ResMgr* pResMgr = ResMgr::CreateResMgr( - aResourceFile.GetBuffer(), + ResMgr* pResMgr = ResMgr::CreateResMgr( + aResourceFile.GetBuffer(), Application::GetSettings().GetUILocale() ); // load the resources for the AddSubmission modal dialog. @@ -833,7 +833,7 @@ namespace svxform // clean up: remove context, and delete the resource manager // ( Increment(..) is needed since PopContext() requires that // the file pointer is at the end. ) - pResMgr->Increment( pResMgr->GetRemainSize() ); + pResMgr->Increment( pResMgr->GetRemainSize() ); pResMgr->PopContext(); delete pResMgr; } @@ -1608,10 +1608,10 @@ namespace svxform ActivatePageHdl( &m_aTabCtrl ); // get our frame - DBG_ASSERT( pBindings != NULL, + DBG_ASSERT( pBindings != NULL, "DataNavigatorWindow::LoadModels(): no SfxBindings; can't get frame" ); - m_xFrame = Reference<XFrame>( - pBindings->GetDispatcher()->GetFrame()->GetFrame()->GetFrameInterface(), + m_xFrame = Reference<XFrame>( + pBindings->GetDispatcher()->GetFrame()->GetFrame()->GetFrameInterface(), UNO_QUERY ); DBG_ASSERT( m_xFrame.is(), "DataNavigatorWindow::LoadModels(): no frame" ); // add frameaction listener @@ -3566,13 +3566,13 @@ namespace svxform } } - // #i36342# we need a temporary binding; create one if no existing binding + // #i36342# we need a temporary binding; create one if no existing binding // is found if( !m_xTempBinding.is() ) { - m_xCreatedBinding = m_xUIHelper->getBindingForNode( - Reference<css::xml::dom::XNode>( - xModel->getDefaultInstance()->getDocumentElement(), + m_xCreatedBinding = m_xUIHelper->getBindingForNode( + Reference<css::xml::dom::XNode>( + xModel->getDefaultInstance()->getDocumentElement(), UNO_QUERY_THROW ), sal_True ); m_xTempBinding = m_xCreatedBinding; diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 993aac658e..8af92d75cb 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -47,6 +47,7 @@ /** === end UNO includes === **/ #include <comphelper/processfactory.hxx> +#include <svx/fmtools.hxx> #include <comphelper/property.hxx> #include <comphelper/sequence.hxx> #include <comphelper/uno3.hxx> diff --git a/svx/source/form/fmcontrollayout.cxx b/svx/source/form/fmcontrollayout.cxx index b54e7a20f8..f0d21e2a2c 100644 --- a/svx/source/form/fmcontrollayout.cxx +++ b/svx/source/form/fmcontrollayout.cxx @@ -44,7 +44,8 @@ #include <comphelper/processfactory.hxx> #include <i18npool/mslangid.hxx> -#include <svtools/syslocale.hxx> +#include <unotools/syslocale.hxx> + #include <toolkit/helper/vclunohelper.hxx> #include <tools/debug.hxx> #include <tools/diagnose_ex.h> diff --git a/svx/source/form/fmexch.cxx b/svx/source/form/fmexch.cxx index 55d92e07a0..e511a2e0ba 100644 --- a/svx/source/form/fmexch.cxx +++ b/svx/source/form/fmexch.cxx @@ -33,7 +33,7 @@ #include "fmexch.hxx" #include <sot/storage.hxx> -#include <svtools/itempool.hxx> +#include <svl/itempool.hxx> #ifndef _SVX_DBEXCH_HRC #include <dbexch.hrc> @@ -43,7 +43,7 @@ #include <tools/diagnose_ex.h> #define _SVSTDARR_ULONGS -#include <svtools/svstdarr.hxx> +#include <svl/svstdarr.hxx> //........................................................................ namespace svxform diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 3dba031b97..b8df2bfd9d 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -33,7 +33,6 @@ #include "fmobj.hxx" #include "fmprop.hrc" #include "fmvwimp.hxx" -#include "fmtools.hxx" #include "fmpgeimp.hxx" #include "fmresids.hrc" #include "svx/fmview.hxx" @@ -51,6 +50,7 @@ #include <com/sun/star/awt/XControlContainer.hpp> #include <com/sun/star/util/XCloneable.hpp> /** === end UNO includes === **/ +#include "svx/fmtools.hxx" #include <tools/shl.hxx> #include <comphelper/property.hxx> diff --git a/svx/source/form/fmobjfac.cxx b/svx/source/form/fmobjfac.cxx index 141a7a4fe2..dac0daaf8f 100644 --- a/svx/source/form/fmobjfac.cxx +++ b/svx/source/form/fmobjfac.cxx @@ -32,6 +32,7 @@ #include "precompiled_svx.hxx" #include <comphelper/stl_types.hxx> #include <svx/svdobj.hxx> +#include "svx/fmtools.hxx" #include "fmservs.hxx" #ifndef _FM_FMOBJFAC_HXX diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx index ea21bec78e..691b141c40 100644 --- a/svx/source/form/fmpage.cxx +++ b/svx/source/form/fmpage.cxx @@ -78,6 +78,7 @@ #include "fmprop.hrc" #endif #include "fmundo.hxx" +#include "svx/fmtools.hxx" using namespace ::svxform; #endif #include <comphelper/property.hxx> diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx index 9da374d24d..d0b5a295de 100644 --- a/svx/source/form/fmpgeimp.cxx +++ b/svx/source/form/fmpgeimp.cxx @@ -34,7 +34,7 @@ #include "svxerr.hxx" #include "fmpgeimp.hxx" #include "fmundo.hxx" -#include "fmtools.hxx" +#include "svx/fmtools.hxx" #include "fmprop.hrc" #include "fmservs.hxx" #include "fmobj.hxx" diff --git a/svx/source/form/fmsearch.src b/svx/source/form/fmsearch.src deleted file mode 100644 index 63a175e04b..0000000000 --- a/svx/source/form/fmsearch.src +++ /dev/null @@ -1,333 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: fmsearch.src,v $ - * $Revision: 1.59 $ - * - * 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 "fmresids.hrc" -#include "fmsearch.hrc" -#include "fmhelp.hrc" - -ModalDialog RID_SVXDLG_SEARCHFORM -{ - OutputSize = TRUE; - SVLook = TRUE; - Size = MAP_APPFONT( 300, 253 ); - Text [ en-US ] = "Record Search"; - Moveable = TRUE; - HelpId = HID_FM_DLG_SEARCH; - - FixedLine FL_SEARCHFOR - { - Pos = MAP_APPFONT( 6, 8 ); - Size = MAP_APPFONT( 232, 8 ); - Text [ en-US ] = "Search for"; - }; - RadioButton RB_SEARCHFORTEXT - { - Pos = MAP_APPFONT( 12, 23 ); - Size = MAP_APPFONT( 50, 10 ); - Group = TRUE; - Text [ en-US ] = "~Text"; - }; - RadioButton RB_SEARCHFORNULL - { - Pos = MAP_APPFONT( 12, 36 ); - Size = MAP_APPFONT( 207, 10 ); - Text [ en-US ] = "Field content is ~NULL"; - }; - RadioButton RB_SEARCHFORNOTNULL - { - Pos = MAP_APPFONT( 12, 49 ); - Size = MAP_APPFONT( 207, 10 ); - Text [ en-US ] = "Field content is not NU~LL"; - }; - ComboBox CMB_SEARCHTEXT - { - Border = TRUE; - Pos = MAP_APPFONT( 65, 20 ); - Size = MAP_APPFONT( 154, 80 ); - DropDown = TRUE; - TabStop = TRUE; - HelpId = HID_SEARCH_TEXT; - }; - - FixedLine FL_WHERE - { - Pos = MAP_APPFONT( 6, 65 ); - Size = MAP_APPFONT( 232, 8 ); - Text [ en-US ] = "Where to search"; - }; - FixedText FT_FORM - { - Pos = MAP_APPFONT( 12, 77 ); - Size = MAP_APPFONT( 87, 10 ); - Text [ en-US ] = "Form"; - }; - ListBox LB_FORM - { - Border = TRUE; - Pos = MAP_APPFONT( 110, 76 ); - Size = MAP_APPFONT( 109, 60 ); - TabStop = TRUE; - DropDown = TRUE; - }; - RadioButton RB_ALLFIELDS - { - Pos = MAP_APPFONT( 24, 91 ); - Size = MAP_APPFONT( 75, 10 ); - TabStop = TRUE; - HelpId = HID_SEARCH_ALLFIELDS; - Text [ en-US ] = "All Fields"; - }; - RadioButton RB_SINGLEFIELD - { - Pos = MAP_APPFONT( 24, 106 ); - Size = MAP_APPFONT( 75, 10 ); - Text [ en-US ] = "Single field"; - }; - ListBox LB_FIELD - { - Border = TRUE; - Pos = MAP_APPFONT( 110, 105 ); - Size = MAP_APPFONT( 109, 60 ); - TabStop = TRUE; - DropDown = TRUE; - HelpId = HID_SEARCH_FIELDSELECTION; - }; - FixedLine FL_OPTIONS - { - Pos = MAP_APPFONT( 6, 126 ); - Size = MAP_APPFONT( 288, 8 ); - Text [ en-US ] = "Settings"; - }; - FixedText FT_POSITION - { - Pos = MAP_APPFONT( 12, 138 ); - Size = MAP_APPFONT( 87, 8 ); - Text [ en-US ] = "Position"; - }; - ListBox LB_POSITION - { - Border = TRUE; - Pos = MAP_APPFONT( 110, 136 ); - Size = MAP_APPFONT( 109, 60 ); - TabStop = TRUE; - DropDown = TRUE; - HelpId = HID_SEARCH_POSITION; - }; - CheckBox CB_USEFORMATTER - { - Pos = MAP_APPFONT( 12, 158 ); - Size = MAP_APPFONT( 90, 10 ); - TabStop = TRUE; - HelpId = HID_SEARCH_FORMATTER; - Text [ en-US ] = "Apply field format"; - }; - CheckBox CB_CASE - { - Pos = MAP_APPFONT( 12, 171 ); - Size = MAP_APPFONT( 90, 20 ); - TabStop = TRUE; - WordBreak = TRUE; - HelpId = HID_SEARCH_CASE; - Text [ en-US ] = "Match case"; - }; - CheckBox CB_BACKWARD - { - Pos = MAP_APPFONT( 105, 158 ); - Size = MAP_APPFONT( 85, 10 ); - TabStop = TRUE; - HelpId = HID_SEARCH_BACKWARD; - Text [ en-US ] = "Search backwards"; - }; - CheckBox CB_STARTOVER - { - Pos = MAP_APPFONT( 105, 171 ); - Size = MAP_APPFONT( 85, 10 ); - TabStop = TRUE; - HelpId = HID_SEARCH_STARTOVER; - Text [ en-US ] = "From Beginning"; - }; - CheckBox CB_WILDCARD - { - Pos = MAP_APPFONT( 190, 158 ); - Size = MAP_APPFONT( 100, 10 ); - TabStop = TRUE; - HelpId = HID_SEARCH_WILDCARD; - Text [ en-US ] = "Wildcard expression"; - }; - CheckBox CB_REGULAR - { - Pos = MAP_APPFONT( 190, 171 ); - Size = MAP_APPFONT( 100, 10 ); - TabStop = TRUE; - HelpId = HID_SEARCH_REGULAR; - Text [ en-US ] = "Regular expression"; - }; - CheckBox CB_APPROX - { - Pos = MAP_APPFONT( 190, 184 ); - Size = MAP_APPFONT( 84, 20 ); - TabStop = TRUE; - WordBreak = TRUE; - HelpId = HID_SEARCH_APPROX; - Text [ en-US ] = "Similarity Search"; - }; - PushButton PB_APPROXSETTINGS - { - Pos = MAP_APPFONT( 275, 182 ); - Size = MAP_APPFONT( 14, 14 ); - TabStop = TRUE ; - HelpId = HID_SEARCH_APPROXSETTINGS; - Text [ en-US ] = "..."; - }; - CheckBox CB_HALFFULLFORMS - { - Pos = MAP_APPFONT( 105, 209 ); - Size = MAP_APPFONT( 85, 10 ); - TabStop = TRUE ; - Text [ en-US ] = "Match character width" ; - }; - CheckBox CB_SOUNDSLIKECJK - { - Pos = MAP_APPFONT( 190, 209 ); - Size = MAP_APPFONT( 84, 10 ); - TabStop = TRUE ; - Text [ en-US ] = "Sounds like (Japanese)"; - }; - PushButton PB_SOUNDSLIKESETTINGS - { - Pos = MAP_APPFONT( 275, 207 ); - Size = MAP_APPFONT( 14, 14 ); - TabStop = TRUE ; - Text [ en-US ] = "..." ; - }; - FixedLine FL_STATE - { - Pos = MAP_APPFONT( 6, 222 ); - Size = MAP_APPFONT( 288, 8 ); - Text [ en-US ] = "State"; - }; - FixedText FT_RECORDLABEL - { - Pos = MAP_APPFONT( 12, 232 ); - Size = MAP_APPFONT( 45, 10 ); - Text [ en-US ] = "Record :"; - }; - FixedText FT_RECORD - { - Pos = MAP_APPFONT( 60, 232 ); - Size = MAP_APPFONT( 30, 10 ); - UniqueId = UID_SEARCH_RECORDSTATUS; - }; - FixedText FT_HINT - { - Pos = MAP_APPFONT( 99, 232 ); - Size = MAP_APPFONT( 190, 10 ); - }; - PushButton PB_SEARCH - { - Pos = MAP_APPFONT( 244, 6 ); - Size = MAP_APPFONT( 50, 14 ); - TabStop = TRUE; - DefButton = TRUE; - HelpId = HID_SEARCH_BTN_SEARCH; - Text [ en-US ] = "Search"; - }; - CancelButton 1 - { - Pos = MAP_APPFONT( 244, 26 ); - Size = MAP_APPFONT( 50, 14 ); - HelpId = HID_SEARCH_BTN_CLOSE; - TabStop = TRUE; - Text [ en-US ] = "~Close"; - }; - HelpButton 1 - { - Pos = MAP_APPFONT( 244, 46 ); - Size = MAP_APPFONT( 50, 14 ); - TabStop = TRUE; - Text [ en-US ] = "~Help"; - }; -}; - -String RID_STR_SEARCH_ANYWHERE -{ - Text [ en-US ] = "anywhere in the field"; -}; - -String RID_STR_SEARCH_BEGINNING -{ - Text [ en-US ] = "beginning of field"; -}; - -String RID_STR_SEARCH_END -{ - Text [ en-US ] = "end of field"; -}; - -String RID_STR_SEARCH_WHOLE -{ - Text [ en-US ] = "entire field"; -}; - -String RID_STR_FROM_TOP -{ - Text [ en-US ] = "From top"; -}; -String RID_STR_FROM_BOTTOM -{ - Text [ en-US ] = "From bottom"; -}; - -ErrorBox RID_SVXERR_SEARCH_NORECORD -{ - Buttons = WB_OK; - Message [ en-US ] = "No records corresponding to your data found."; -}; - -ErrorBox RID_SVXERR_SEARCH_GENERAL_ERROR -{ - Buttons = WB_OK; - Message [ en-US ] = "An unknown error occurred. The search could not be finished."; -}; - -String RID_STR_OVERFLOW_FORWARD -{ - Text [ en-US ] = "Overflow, search continued at the beginning"; -}; - -String RID_STR_OVERFLOW_BACKWARD -{ - Text [ en-US ] = "Overflow, search continued at the end"; -}; - -String RID_STR_SEARCH_COUNTING -{ - Text [ en-US ] = "counting records"; -}; diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx index 4bea83e7f7..83df202699 100644 --- a/svx/source/form/fmshell.cxx +++ b/svx/source/form/fmshell.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,6 +32,7 @@ #include "precompiled_svx.hxx" #include "fmvwimp.hxx" #include <svx/fmshell.hxx> +#include "svx/fmtools.hxx" #include "fmservs.hxx" #ifndef _SVX_FMPROP_HRC #include "fmprop.hrc" @@ -55,11 +56,11 @@ #include <sfx2/viewfrm.hxx> #include <vcl/wrkwin.hxx> #include <vcl/msgbox.hxx> -#include <svtools/whiter.hxx> +#include <svl/whiter.hxx> #include <sfx2/app.hxx> -#include <svtools/intitem.hxx> -#include <svtools/visitem.hxx> -#include <svtools/moduleoptions.hxx> +#include <svl/intitem.hxx> +#include <svl/visitem.hxx> +#include <unotools/moduleoptions.hxx> #include <sfx2/objface.hxx> #include <sfx2/request.hxx> #include <sfx2/dispatch.hxx> @@ -78,7 +79,7 @@ #endif #include "fmexch.hxx" #include <svx/fmglob.hxx> -#include <svtools/eitem.hxx> +#include <svl/eitem.hxx> #include <tools/shl.hxx> #include <svx/svdpage.hxx> #include <svx/fmmodel.hxx> @@ -90,7 +91,7 @@ #include <vcl/sound.hxx> #include "fmexpl.hxx" #include "formcontrolling.hxx" -#include <svtools/numuno.hxx> +#include <svl/numuno.hxx> #include <connectivity/dbtools.hxx> #include <comphelper/types.hxx> #include <comphelper/processfactory.hxx> @@ -794,7 +795,7 @@ void FmFormShell::Execute(SfxRequest &rReq) DBG_ASSERT( pFact, "no dialog factory!" ); if ( pFact ) { - ::std::auto_ptr< AbstractFmInputRecordNoDialog > dlg( pFact->CreateFmInputRecordNoDialog( NULL, RID_SVX_DLG_INPUTRECORDNO ) ); + ::std::auto_ptr< AbstractFmInputRecordNoDialog > dlg( pFact->CreateFmInputRecordNoDialog( NULL ) ); DBG_ASSERT( dlg.get(), "Dialogdiet fail!" ); dlg->SetValue( rController->getCursor()->getRow() ); if ( dlg->Execute() == RET_OK ) diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 10b53e4a97..00f498448b 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -34,6 +34,7 @@ #include "fmitems.hxx" #include "fmobj.hxx" #include "fmpgeimp.hxx" +#include "svx/fmtools.hxx" #include "fmprop.hrc" #include "fmresids.hrc" #include "fmservs.hxx" @@ -4091,6 +4092,10 @@ void FmXFormShell::Notify( const com::sun::star::uno::Sequence< rtl::OUString >& } } +void FmXFormShell::Commit() +{ +} + //------------------------------------------------------------------------ void FmXFormShell::SetWizardUsing(sal_Bool _bUseThem) { diff --git a/svx/source/form/fmsrccfg.cxx b/svx/source/form/fmsrccfg.cxx index 58ad4d641e..c986ba991c 100644 --- a/svx/source/form/fmsrccfg.cxx +++ b/svx/source/form/fmsrccfg.cxx @@ -31,7 +31,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_svx.hxx" #include "fmsrccfg.hxx" -#include <svtools/filerec.hxx> +#include <svl/filerec.hxx> #include <com/sun/star/i18n/TransliterationModules.hpp> #include <comphelper/processfactory.hxx> diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 1b304874fb..56e55cc127 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -34,6 +34,7 @@ #ifndef _SVX_FMRESIDS_HRC #include "fmresids.hrc" #endif +#include "svx/fmtools.hxx" #include "fmsrccfg.hxx" #include <tools/debug.hxx> #include <tools/diagnose_ex.h> @@ -68,11 +69,8 @@ #include "fmsrcimp.hxx" #include <svx/fmsearch.hxx> -#ifndef _FMSEARCH_HRC -#include "fmsearch.hrc" -#endif #include <comphelper/numbers.hxx> -#include <svtools/syslocale.hxx> +#include <unotools/syslocale.hxx> #define EQUAL_BOOKMARKS(a, b) a == b diff --git a/svx/source/form/fmtextcontroldialogs.cxx b/svx/source/form/fmtextcontroldialogs.cxx index 15a843ee88..32a245120f 100644 --- a/svx/source/form/fmtextcontroldialogs.cxx +++ b/svx/source/form/fmtextcontroldialogs.cxx @@ -48,10 +48,10 @@ #endif #include "flagsdef.hxx" -#include <svtools/intitem.hxx> +#include <svl/intitem.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <svtools/cjkoptions.hxx> +#include <svl/cjkoptions.hxx> //........................................................................ namespace svx diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx index bd0f8642c5..e864ba4207 100644 --- a/svx/source/form/fmtextcontrolshell.cxx +++ b/svx/source/form/fmtextcontrolshell.cxx @@ -66,12 +66,12 @@ #include <sfx2/request.hxx> #include <sfx2/sfxuno.hxx> #include <sfx2/viewfrm.hxx> -#include <svtools/eitem.hxx> -#include <svtools/intitem.hxx> -#include <svtools/itempool.hxx> -#include <svtools/languageoptions.hxx> +#include <svl/eitem.hxx> +#include <svl/intitem.hxx> +#include <svl/itempool.hxx> +#include <svl/languageoptions.hxx> #include <svtools/stringtransfer.hxx> -#include <svtools/whiter.hxx> +#include <svl/whiter.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <tools/diagnose_ex.h> #include <vcl/msgbox.hxx> diff --git a/svx/source/form/fmtools.cxx b/svx/source/form/fmtools.cxx index 67ee38cb6a..0b135ef885 100644 --- a/svx/source/form/fmtools.cxx +++ b/svx/source/form/fmtools.cxx @@ -33,7 +33,7 @@ #include "fmprop.hrc" #include "fmservs.hxx" -#include "fmtools.hxx" +#include "svx/fmtools.hxx" #include "svx/dbtoolsclient.hxx" #include "svx/fmglob.hxx" @@ -75,6 +75,8 @@ /** === end UNO includes === **/ #include <basic/sbxvar.hxx> +#include <svl/eitem.hxx> +#include <svl/stritem.hxx> #include <comphelper/container.hxx> #include <comphelper/extract.hxx> #include <comphelper/processfactory.hxx> diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx index 93f5d401ff..709656dc1b 100644 --- a/svx/source/form/fmundo.cxx +++ b/svx/source/form/fmundo.cxx @@ -32,7 +32,6 @@ #include "precompiled_svx.hxx" #include "fmundo.hxx" -#include "fmtools.hxx" #include "fmpgeimp.hxx" #include "svx/dbtoolsclient.hxx" #include "svditer.hxx" @@ -55,8 +54,9 @@ #include <com/sun/star/reflection/XInterfaceMethodTypeDescription.hpp> /** === end UNO includes === **/ +#include "svx/fmtools.hxx" #include <rtl/logfile.hxx> -#include <svtools/macitem.hxx> +#include <svl/macitem.hxx> #include <tools/shl.hxx> #include <tools/diagnose_ex.h> #include <sfx2/objsh.hxx> diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx index cdd344377a..5911ed4ca9 100644 --- a/svx/source/form/fmview.cxx +++ b/svx/source/form/fmview.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,7 @@ #undef REFERENCE #endif #include <svtools/ehdl.hxx> -#include <svtools/moduleoptions.hxx> +#include <unotools/moduleoptions.hxx> #include <com/sun/star/sdb/SQLContext.hpp> #include <com/sun/star/uno/XNamingService.hpp> #include <com/sun/star/sdbc/XConnection.hpp> @@ -61,6 +61,7 @@ #include <svx/fmpage.hxx> #include <svx/fmshell.hxx> #include "fmpgeimp.hxx" +#include "svx/fmtools.hxx" #include "fmshimp.hxx" #include "fmservs.hxx" #include "fmprop.hrc" @@ -476,7 +477,7 @@ void FmFormView::InsertControlContainer(const Reference< ::com::sun::star::awt:: for( sal_uInt32 i = 0L; i < pPageView->PageWindowCount(); i++ ) { const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(i); - + if( rPageWindow.GetControlContainer( false ) == xCC ) { pImpl->addWindow(rPageWindow); @@ -516,15 +517,15 @@ BOOL FmFormView::KeyInput(const KeyEvent& rKEvt, Window* pWin) { BOOL bDone = FALSE; const KeyCode& rKeyCode = rKEvt.GetKeyCode(); - if ( IsDesignMode() + if ( IsDesignMode() && rKeyCode.GetCode() == KEY_RETURN ) { // RETURN alone enters grid controls, for keyboard accessibility - if ( pWin - && !rKeyCode.IsShift() - && !rKeyCode.IsMod1() - && !rKeyCode.IsMod2() + if ( pWin + && !rKeyCode.IsShift() + && !rKeyCode.IsMod1() + && !rKeyCode.IsMod2() ) { FmFormObj* pObj = getMarkedGrid(); diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index e73d416aff..1960bc4b09 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,6 +38,7 @@ #include "fmresids.hrc" #include "fmservs.hxx" #include "fmshimp.hxx" +#include "svx/fmtools.hxx" #include "fmundo.hxx" #include "fmvwimp.hxx" #include "formcontrolfactory.hxx" @@ -91,7 +92,8 @@ #include <comphelper/numbers.hxx> #include <comphelper/property.hxx> #include <cppuhelper/exc_hlp.hxx> -#include <svtools/moduleoptions.hxx> + +#include <unotools/moduleoptions.hxx> #include <tools/diagnose_ex.h> #include <vcl/msgbox.hxx> #include <vcl/stdtext.hxx> @@ -1026,7 +1028,7 @@ void FmXFormView::onCreatedFormObject( FmFormObj& _rFormObject ) // it is valid that the form shell's forms collection is not initialized, yet pShellImpl->UpdateForms( sal_True ); - + m_xLastCreatedControlModel.set( _rFormObject.GetUnoControlModel(), UNO_QUERY ); if ( !m_xLastCreatedControlModel.is() ) return; diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx index 94da6833c6..4ac70bd3dc 100644 --- a/svx/source/form/formcontrolfactory.cxx +++ b/svx/source/form/formcontrolfactory.cxx @@ -56,7 +56,7 @@ #include <comphelper/componentcontext.hxx> #include <comphelper/numbers.hxx> -#include <svtools/syslocale.hxx> +#include <unotools/syslocale.hxx> #include <tools/gen.hxx> #include <tools/diagnose_ex.h> diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index a9a8d101a9..1714fba726 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -38,8 +38,8 @@ #include "svx/dialmgr.hxx" #include "fmresids.hrc" #include "fmservs.hxx" +#include "svx/fmtools.hxx" #include "fmurl.hxx" -#include "fmtools.hxx" /** === begin UNO includes === **/ #include <com/sun/star/awt/FocusChangeReason.hpp> diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx index 84aa3efb0b..76dbe7771b 100644 --- a/svx/source/form/formcontrolling.cxx +++ b/svx/source/form/formcontrolling.cxx @@ -35,7 +35,7 @@ #include "fmurl.hxx" #include "svx/svxids.hrc" #include "fmprop.hrc" -#include "fmtools.hxx" +#include "svx/fmtools.hxx" /** === begin UNO includes === **/ #include <com/sun/star/form/runtime/FormOperations.hpp> diff --git a/svx/source/form/makefile.mk b/svx/source/form/makefile.mk index 7100253154..1ea5a3f71e 100644 --- a/svx/source/form/makefile.mk +++ b/svx/source/form/makefile.mk @@ -49,8 +49,6 @@ SRC1FILES= \ fmexpl.src \ filtnav.src \ fmstring.src \ - tbxform.src \ - fmsearch.src \ formshell.src \ datanavi.src diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 232a075ec3..678ca0f6b4 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -47,6 +47,7 @@ #include "fmpgeimp.hxx" #include "fmitems.hxx" #include "fmobj.hxx" +#include "fmprop.hrc" #include <vcl/wrkwin.hxx> #include <sfx2/viewsh.hxx> #include <sfx2/dispatch.hxx> diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx index d19e75f923..15f580a799 100644 --- a/svx/source/form/navigatortreemodel.cxx +++ b/svx/source/form/navigatortreemodel.cxx @@ -39,6 +39,7 @@ #include <svx/svdogrp.hxx> #include <svx/svdpagv.hxx> +#include "fmprop.hrc" #include "fmundo.hxx" #include "fmhelp.hrc" diff --git a/svx/source/form/sdbdatacolumn.cxx b/svx/source/form/sdbdatacolumn.cxx index 5c443c7437..ed43578cb9 100644 --- a/svx/source/form/sdbdatacolumn.cxx +++ b/svx/source/form/sdbdatacolumn.cxx @@ -149,17 +149,17 @@ namespace svxform return m_xColumn->getBytes(); } - Date DataColumn::getDate() throw( SQLException, RuntimeException ) + com::sun::star::util::Date DataColumn::getDate() throw( SQLException, RuntimeException ) { return m_xColumn->getDate(); } - Time DataColumn::getTime() throw( SQLException, RuntimeException ) + com::sun::star::util::Time DataColumn::getTime() throw( SQLException, RuntimeException ) { return m_xColumn->getTime(); } - DateTime DataColumn::getTimestamp() throw( SQLException, RuntimeException ) + com::sun::star::util::DateTime DataColumn::getTimestamp() throw( SQLException, RuntimeException ) { return m_xColumn->getTimestamp(); } @@ -255,12 +255,12 @@ namespace svxform m_xColumnUpdate->updateDate(x); } - void DataColumn::updateTime(const Time& x) throw( SQLException, RuntimeException ) + void DataColumn::updateTime(const com::sun::star::util::Time& x) throw( SQLException, RuntimeException ) { m_xColumnUpdate->updateTime(x); } - void DataColumn::updateTimestamp(const DateTime& x) throw( SQLException, RuntimeException ) + void DataColumn::updateTimestamp(const com::sun::star::util::DateTime& x) throw( SQLException, RuntimeException ) { m_xColumnUpdate->updateTimestamp(x); } diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx index 8017ff80a8..e280619a1a 100644 --- a/svx/source/form/tabwin.cxx +++ b/svx/source/form/tabwin.cxx @@ -32,6 +32,7 @@ #include "precompiled_svx.hxx" #include "tabwin.hxx" +#include "svx/fmtools.hxx" #include "fmservs.hxx" #include "stringlistresource.hxx" diff --git a/svx/source/form/tbxform.cxx b/svx/source/form/tbxform.cxx index 5025337118..dea9ec53e4 100644 --- a/svx/source/form/tbxform.cxx +++ b/svx/source/form/tbxform.cxx @@ -33,9 +33,9 @@ #include <string> // HACK: prevent conflict between STLPORT and Workshop headers #include <tools/ref.hxx> #include <tools/shl.hxx> -#include <svtools/intitem.hxx> -#include <svtools/eitem.hxx> -#include <svtools/stritem.hxx> +#include <svl/intitem.hxx> +#include <svl/eitem.hxx> +#include <svl/stritem.hxx> #include <sfx2/dispatch.hxx> #include <vcl/toolbox.hxx> #include <vcl/fixed.hxx> diff --git a/svx/source/form/tbxform.src b/svx/source/form/tbxform.src deleted file mode 100644 index 0d52e8c4cb..0000000000 --- a/svx/source/form/tbxform.src +++ /dev/null @@ -1,69 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: tbxform.src,v $ - * $Revision: 1.31 $ - * - * 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 <svx/svxids.hrc> -#include "fmresids.hrc" -#include "helpid.hrc" - -ModalDialog RID_SVX_DLG_INPUTRECORDNO -{ - OutputSize = TRUE ; - SVLook = TRUE ; - Size = MAP_APPFONT ( 130 , 45 ) ; - Moveable = TRUE ; - Closeable = TRUE ; - Text [ en-US ] = "Record Number"; - - FixedText 1 - { - Pos = MAP_APPFONT ( 6 , 6 ) ; - Size = MAP_APPFONT ( 70 , 12 ) ; - Text [ en-US ] = "go to record"; - }; - NumericField 1 - { - Border = TRUE ; - Pos = MAP_APPFONT ( 79 , 6 ) ; - Size = MAP_APPFONT ( 45 , 12 ) ; - TabStop = TRUE ; - }; - OKButton 1 - { - Pos = MAP_APPFONT ( 6 , 25 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - DefButton = TRUE ; - }; - CancelButton 1 - { - Pos = MAP_APPFONT ( 74 , 25 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - }; -}; diff --git a/svx/source/form/typemap.cxx b/svx/source/form/typemap.cxx index 0898dcdb2b..5a8baa8086 100644 --- a/svx/source/form/typemap.cxx +++ b/svx/source/form/typemap.cxx @@ -32,8 +32,8 @@ #include "precompiled_svx.hxx" #include <sfx2/objitem.hxx> #include <sfx2/msg.hxx> -#include <svtools/stritem.hxx> -#include <svtools/intitem.hxx> +#include <svl/stritem.hxx> +#include <svl/intitem.hxx> #include <svx/wghtitem.hxx> #include <svx/udlnitem.hxx> #include <svx/crsditem.hxx> |