diff options
Diffstat (limited to 'binfilter/bf_svx/source/form')
19 files changed, 4441 insertions, 0 deletions
diff --git a/binfilter/bf_svx/source/form/makefile.mk b/binfilter/bf_svx/source/form/makefile.mk new file mode 100644 index 000000000000..9dc029e66022 --- /dev/null +++ b/binfilter/bf_svx/source/form/makefile.mk @@ -0,0 +1,77 @@ +#************************************************************************* +# +# 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. +# +#************************************************************************* + +EXTERNAL_WARNINGS_NOT_ERRORS := TRUE + +PRJ=..$/..$/.. +BFPRJ=..$/.. + +PRJNAME=binfilter +TARGET=svx_form + +NO_HIDS=TRUE + +ENABLE_EXCEPTIONS=TRUE + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk +.INCLUDE : $(BFPRJ)$/util$/makefile.pmk +INC+= -I$(PRJ)$/inc$/bf_svx + +# --- Files -------------------------------------------------------- + +BMP_IN=$(BFPRJ)$/win$/res + +SRS1NAME=svx_form +SRC1FILES= \ + svx_fmexpl.src \ + svx_filtnav.src \ + svx_taborder.src \ + svx_fmstring.src \ + svx_tbxform.src \ + svx_fmsearch.src + + +SLOFILES = \ + $(SLO)$/svx_fmpage.obj \ + $(SLO)$/svx_fmmodel.obj \ + $(SLO)$/svx_fmdpage.obj \ + $(SLO)$/svx_fmobj.obj \ + $(SLO)$/svx_fmobjfac.obj \ + $(SLO)$/svx_fmimplids.obj \ + $(SLO)$/svx_fmdmod.obj \ + $(SLO)$/svx_ParseContext.obj \ + $(SLO)$/svx_siimport.obj \ + $(SLO)$/svx_fmtools.obj \ + $(SLO)$/svx_fmpgeimp.obj + +.IF "$(OS)$(CPU)"=="SOLARISI" +NOOPTFILES=$(SLO)$/svx_fmprop.obj +.ENDIF + +.INCLUDE : target.mk diff --git a/binfilter/bf_svx/source/form/svx_ParseContext.cxx b/binfilter/bf_svx/source/form/svx_ParseContext.cxx new file mode 100644 index 000000000000..bc90a9534ab3 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_ParseContext.cxx @@ -0,0 +1,134 @@ +/* -*- 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. + * + ************************************************************************/ +#include "ParseContext.hxx" +#include <tools/debug.hxx> +#include "fmresids.hrc" +#include "dialmgr.hxx" +#include <vcl/svapp.hxx> +#include <osl/mutex.hxx> + +#include <tools/shl.hxx> + +namespace binfilter { + + +using namespace svxform; +using namespace ::connectivity; +//========================================================================== +//= OSystemParseContext +//========================================================================== +/*N*/ DBG_NAME(OSystemParseContext) +//----------------------------------------------------------------------------- +/*N*/ OSystemParseContext::OSystemParseContext() : IParseContext() +/*N*/ { +/*N*/ DBG_CTOR(OSystemParseContext,NULL); +/*N*/ SolarMutexGuard aGuard; +/*N*/ m_aSQLInternationals = ByteString(SVX_RES(RID_STR_SVT_SQL_INTERNATIONAL),RTL_TEXTENCODING_ASCII_US); +/*N*/ } + +//----------------------------------------------------------------------------- +/*?*/ OSystemParseContext::~OSystemParseContext() +/*?*/ { +/*?*/ DBG_DTOR(OSystemParseContext,NULL); +/*?*/ } + +//----------------------------------------------------------------------------- +/*?*/ ::com::sun::star::lang::Locale OSystemParseContext::getPreferredLocale( ) const +/*?*/ {DBG_BF_ASSERT(0, "STRIP"); ::com::sun::star::lang::Locale alocal; return alocal;//STRIP001 +/*?*/ //STRIP001 return SvtSysLocale().GetLocaleData().getLocale(); +/*?*/ } + +//----------------------------------------------------------------------------- +/*?*/ ::rtl::OUString OSystemParseContext::getErrorMessage(ErrorCode _eCode) const +/*?*/ {DBG_BF_ASSERT(0, "STRIP"); String astring; return astring;//STRIP001 +/*?*/ } + +//----------------------------------------------------------------------------- +/*?*/ ::rtl::OString OSystemParseContext::getIntlKeywordAscii(InternationalKeyCode _eKey) const +/*?*/ {DBG_BF_ASSERT(0, "STRIP"); ByteString aKeyword; return aKeyword;//STRIP001 +/*?*/ } + +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// ----------------------------------------------------------------------------- +/*?*/ IParseContext::InternationalKeyCode OSystemParseContext::getIntlKeyCode(const ::rtl::OString& rToken) const +/*?*/ {DBG_BF_ASSERT(0, "STRIP"); return KEY_NONE;//STRIP001 +/*?*/ } + + +// ============================================================================= +// ============================================================================= +namespace +{ + // ----------------------------------------------------------------------------- +/*N*/ ::osl::Mutex& getSafteyMutex() +/*N*/ { +/*N*/ static ::osl::Mutex s_aSafety; +/*N*/ return s_aSafety; +/*N*/ } + // ----------------------------------------------------------------------------- +/*N*/ oslInterlockedCount& getCounter() +/*N*/ { +/*N*/ static oslInterlockedCount s_nCounter; +/*N*/ return s_nCounter; +/*N*/ } + // ----------------------------------------------------------------------------- +/*N*/ OSystemParseContext* getSharedContext(OSystemParseContext* _pContext = NULL,sal_Bool _bSet = sal_False) +/*N*/ { +/*N*/ static OSystemParseContext* s_pSharedContext = NULL; +/*N*/ if ( _pContext && !s_pSharedContext || _bSet ) +/*N*/ s_pSharedContext = _pContext; +/*N*/ return s_pSharedContext; + } + // ----------------------------------------------------------------------------- +} +// ----------------------------------------------------------------------------- +/*N*/ OParseContextClient::OParseContextClient() +/*N*/ { +/*N*/ ::osl::MutexGuard aGuard( getSafteyMutex() ); +/*N*/ if ( 1 == osl_incrementInterlockedCount( &getCounter() ) ) +/*N*/ { // first instance +/*N*/ getSharedContext( new OSystemParseContext ); +/*N*/ } +/*N*/ } + +// ----------------------------------------------------------------------------- +/*N*/ OParseContextClient::~OParseContextClient() +/*N*/ { +/*N*/ { +/*N*/ ::osl::MutexGuard aGuard( getSafteyMutex() ); +/*N*/ if ( 0 == osl_decrementInterlockedCount( &getCounter() ) ) +/*N*/ delete getSharedContext(NULL,sal_True); +/*N*/ } +/*N*/ } +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_filtnav.src b/binfilter/bf_svx/source/form/svx_filtnav.src new file mode 100644 index 000000000000..7a879dd7aa52 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_filtnav.src @@ -0,0 +1,185 @@ +/************************************************************************* + * + * 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 NO_LOCALIZE_EXPORT + +#include "svxids.hrc" +#include "fmresids.hrc" +Menu RID_FM_FILTER_MENU +{ + ItemList = + { + MenuItem + { + Identifier = SID_FM_DELETE ; + HelpID = SID_FM_DELETE ; + Text [ de ] = "~Löschen" ; + Text [ en-US ] = "~Delete" ; + Text [ x-comment ] = " "; + Text[ pt ] = "E~liminar"; + Text[ ru ] = "Удалить"; + Text[ el ] = "Διαγρα~φή"; + Text[ nl ] = "Wi~ssen"; + Text[ fr ] = "~Supprimer"; + Text[ es ] = "~Borrar"; + Text[ fi ] = "~Poista"; + Text[ ca ] = "~Suprimeix"; + Text[ it ] = "~Elimina"; + Text[ sk ] = "~Zmazať"; + Text[ da ] = "Slet"; + Text[ sv ] = "~Radera"; + Text[ pl ] = "~Usuń"; + Text[ pt-BR ] = "E~xcluir"; + Text[ th ] = "~ลบ"; + Text[ ja ] = "削除(~D)"; + Text[ ko ] = "삭제(~D)"; + Text[ zh-CN ] = "删除(~D)"; + Text[ zh-TW ] = "刪除(~D)"; + Text[ tr ] = "Sil"; + Text[ hi-IN ] = "~मिटाओ"; + Text[ ar ] = "حذف"; + Text[ he ] = "מחיקה"; + }; + MenuItem + { + Identifier = SID_FM_FILTER_EDIT ; + HelpID = SID_FM_FILTER_EDIT ; + Text [ de ] = "~Bearbeiten" ; + Text [ en-US ] = "~Edit" ; + Text [ x-comment ] = " "; + Text[ pt ] = "~Editar"; + Text[ ru ] = "~Правка"; + Text[ el ] = "~Επεξεργασία"; + Text[ nl ] = "B~ewerken"; + Text[ fr ] = "~Éditer"; + Text[ es ] = "~Editar"; + Text[ fi ] = "~Muokkaa"; + Text[ ca ] = "~Edita"; + Text[ it ] = "~Modifica"; + Text[ sk ] = "~Upraviť"; + Text[ da ] = "~Rediger"; + Text[ sv ] = "~Redigera"; + Text[ pl ] = "~Edytuj"; + Text[ pt-BR ] = "~Editar"; + Text[ th ] = "แ~ก้ไข"; + Text[ ja ] = "編集(~E)"; + Text[ ko ] = "편집(~E)"; + Text[ zh-CN ] = "编辑(~E)"; + Text[ zh-TW ] = "編輯(~E)"; + Text[ tr ] = "Düzenle"; + Text[ hi-IN ] = "~संपादन"; + Text[ ar ] = "~تحرير"; + Text[ he ] = "עריכה"; + }; + MenuItem + { + Identifier = SID_FM_FILTER_IS_NULL ; + HelpID = SID_FM_FILTER_IS_NULL ; + Text [ de ] = "~Ist Leer" ; + Text [ en-US ] = "~Is Null" ; + Text[ pt ] = "~Vazio"; + Text[ ru ] = "~Пусто"; + Text[ el ] = "Είνα~ι μηδενικός χαρακτήρας"; + Text[ nl ] = "~Is leeg"; + Text[ fr ] = "~Est vide"; + Text[ es ] = "~Vacío"; + Text[ fi ] = "~Ei päde"; + Text[ ca ] = "~Buit"; + Text[ it ] = "È ~vuoto"; + Text[ sk ] = "~Je Null"; + Text[ da ] = "Er tom"; + Text[ sv ] = "~Är tom"; + Text[ pl ] = "~Jest pusty"; + Text[ pt-BR ] = "~É Vazio"; + Text[ th ] = "เ~ป็น Null"; + Text[ ja ] = "空白(~I)"; + Text[ ko ] = "비어 있음(~I)"; + Text[ zh-CN ] = "是空缺(~I)"; + Text[ zh-TW ] = "是空缺(~I)"; + Text[ tr ] = "Boş"; + Text[ hi-IN ] = "Null है ~क्या"; + Text[ ar ] = "خالي"; + Text[ he ] = "ריק"; + }; + MenuItem + { + Identifier = SID_FM_FILTER_IS_NOT_NULL ; + HelpID = SID_FM_FILTER_IS_NOT_NULL ; + Text [ de ] = "~Ist nicht leer" ; + Text [ en-US ] = "I~s not Null" ; + Text[ pt ] = "~Não vazio"; + Text[ ru ] = "~Не пусто"; + Text[ el ] = "Δεν είνα~ι μηδενικός χαρακτήρας"; + Text[ nl ] = "~Is niet leeg"; + Text[ fr ] = "~N'est pas vide"; + Text[ es ] = "~No Vacío"; + Text[ fi ] = "~Pätee"; + Text[ ca ] = "~No buit"; + Text[ it ] = "~Non è vuoto"; + Text[ sk ] = "~Nie je null"; + Text[ da ] = "Er ikke tom"; + Text[ sv ] = "~Är inte tom"; + Text[ pl ] = "~Nie jest pusty"; + Text[ pt-BR ] = "~Não é Vazio"; + Text[ th ] = "ไ~ม่เป็น Null"; + Text[ ja ] = "空白でない(~S)"; + Text[ ko ] = "비어 있지 않음(~S)"; + Text[ zh-CN ] = "不是空缺(~S)"; + Text[ zh-TW ] = "不是空缺(~S)"; + Text[ tr ] = "Boş değil"; + Text[ hi-IN ] = "Null ~नहीं है क्या"; + Text[ ar ] = "غير خالي"; + Text[ he ] = "לא ריק"; + }; + }; +}; + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/binfilter/bf_svx/source/form/svx_fmdmod.cxx b/binfilter/bf_svx/source/form/svx_fmdmod.cxx new file mode 100644 index 000000000000..717d9326add6 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmdmod.cxx @@ -0,0 +1,99 @@ +/* -*- 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. + * + ************************************************************************/ +#ifdef _MSC_VER +#pragma hdrstop +#endif + +#include "fmdmod.hxx" + +#include "fmservs.hxx" +#include <fmobj.hxx> +#include <unoshape.hxx> +#include "fmglob.hxx" +#include <legacysmgr/legacy_binfilters_smgr.hxx> //STRIP002 +namespace binfilter { + +using namespace ::binfilter::svxform;//STRIP008 using namespace ::svxform; + +//----------------------------------------------------------------------------- +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxFmMSFactory::createInstance(const ::rtl::OUString& ServiceSpecifier) throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException ) +/*N*/ { +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xRet; +/*N*/ if ( ServiceSpecifier.indexOf( ::rtl::OUString::createFromAscii("com.sun.star.form.component.") ) == 0 ) +/*N*/ { +/*?*/ xRet = ::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance(ServiceSpecifier); +/*N*/ } +/*N*/ else if ( ServiceSpecifier == ::rtl::OUString( ::rtl::OUString::createFromAscii("com.sun.star.drawing.ControlShape") ) ) +/*N*/ { +/*N*/ SdrObject* pObj = new FmFormObj(OBJ_FM_CONTROL); +/*N*/ xRet = *new SvxShapeControl(pObj); +/*N*/ } +/*N*/ if (!xRet.is()) +/*N*/ xRet = SvxUnoDrawMSFactory::createInstance(ServiceSpecifier); +/*N*/ return xRet; +/*N*/ } + +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- + +/* +// XServiceManager +::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvxFmDrawModel::createInstance(const ::rtl::OUString& ServiceName) + const throw( ::com::sun::star::lang::ServiceNotRegisteredException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException ) +{ + ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xRet; + sal_uInt16 nTokenCount = ServiceName.getTokenCount('.'); + if (nTokenCount == 5 && + ServiceName.getToken( 0, '.' ) == ::rtl::OUString::createFromAscii("stardiv") && + ServiceName.getToken( 1, '.' ) == ::rtl::OUString::createFromAscii("one") && + ServiceName.getToken( 2, '.' ) == ::rtl::OUString::createFromAscii("form") && + ServiceName.getToken( 3, '.' ) == ::rtl::OUString::createFromAscii("component")) + { + xRet = ::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance(ServiceName); + } + else + if (nTokenCount == 4 && + ServiceName.getToken( 0, '.' ) == ::rtl::OUString::createFromAscii("stardiv") && + ServiceName.getToken( 1, '.' ) == ::rtl::OUString::createFromAscii("one") && + ServiceName.getToken( 2, '.' ) == ::rtl::OUString::createFromAscii("drawing") && + ServiceName.getToken( 3, '.' ) == ::rtl::OUString::createFromAscii("ControlShape")) + { + SdrObject* pObj = new FmFormObj(); + xRet = *new SvxShapeControl(pObj); + } + if (!xRet.is()) + xRet = SvxUnoDrawModel::createInstance(ServiceName); + return xRet; +} +*/ + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmdpage.cxx b/binfilter/bf_svx/source/form/svx_fmdpage.cxx new file mode 100644 index 000000000000..5cfee33479e5 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmdpage.cxx @@ -0,0 +1,126 @@ +/* -*- 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. + * + ************************************************************************/ + +#ifdef _MSC_VER +#pragma hdrstop +#endif + +#include "fmpage.hxx" + +#include "fmobj.hxx" + +#include "fmglob.hxx" + +#include "fmdpage.hxx" + +#include "unoshape.hxx" +#include "fmimplids.hxx" +namespace binfilter { + +/*N*/ DBG_NAME(SvxFmDrawPage) +/*N*/ SvxFmDrawPage::SvxFmDrawPage( SdrPage* pInPage ) : +/*N*/ SvxDrawPage( pInPage ) +/*N*/ { +/*N*/ DBG_CTOR(SvxFmDrawPage,NULL); + /*N*/ m_pHoldImplIdHelper = new ::binfilter::form::OImplementationIdsRef(); //STRIP008 m_pHoldImplIdHelper = new ::form::OImplementationIdsRef(); +/*N*/ } + +/*N*/ SvxFmDrawPage::~SvxFmDrawPage() throw () +/*N*/ { +/*N*/ delete m_pHoldImplIdHelper; +/*N*/ DBG_DTOR(SvxFmDrawPage,NULL); +/*N*/ } + +/*N*/ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL SvxFmDrawPage::getImplementationId() throw(::com::sun::star::uno::RuntimeException) +/*N*/ {DBG_BF_ASSERT(0, "STRIP"); ::com::sun::star::uno::Sequence< sal_Int8 > a; return a; //STRIP001 +/*N*/ } + +/*N*/ ::com::sun::star::uno::Any SAL_CALL SvxFmDrawPage::queryAggregation( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException) +/*N*/ { +/*N*/ ::com::sun::star::uno::Any aRet = ::cppu::queryInterface(aType, +/*N*/ static_cast< ::com::sun::star::form::XFormsSupplier*>(this)); +/*N*/ if(aRet.hasValue()) +/*N*/ return aRet; +/*N*/ +/*N*/ return SvxDrawPage::queryAggregation(aType); +/*N*/ } + +/*********************************************************************** +* * +***********************************************************************/ + +/*N*/ SdrObject *SvxFmDrawPage::_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xDescr ) throw () +/*N*/ { +/*N*/ ::rtl::OUString aShapeType( xDescr->getShapeType() ); +/*N*/ +/*N*/ if (aShapeType == ::rtl::OUString::createFromAscii("com.sun.star.drawing.ShapeControl")) +/*?*/ return new FmFormObj(OBJ_FM_CONTROL); +/*N*/ else +/*N*/ return SvxDrawPage::_CreateSdrObject( xDescr ); +/*N*/ +/*N*/ } + +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > SvxFmDrawPage::_CreateShape( SdrObject *pObj ) const throw () +/*N*/ { +/*N*/ if( FmFormInventor == pObj->GetObjInventor() ) +/*N*/ { +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape = (SvxShape*)new SvxShapeControl( pObj ); +/*N*/ return xShape; +/*N*/ } +/*N*/ else +/*N*/ return SvxDrawPage::_CreateShape( pObj ); +/*N*/ } + +// ::com::sun::star::form::XFormsSupplier +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL SvxFmDrawPage::getForms(void) throw( ::com::sun::star::uno::RuntimeException ) +/*N*/ { +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xForms; +/*N*/ +/*N*/ FmFormPage *pFmPage = PTR_CAST( FmFormPage, GetSdrPage() ); +/*N*/ if( pFmPage ) +/*N*/ xForms = pFmPage->GetForms(); +/*N*/ +/*N*/ return xForms; +/*N*/ } + +// ::com::sun::star::lang::XServiceInfo +/*N*/ ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL SvxFmDrawPage::getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ) +/*N*/ { + /* TODO: DG? Irgendwelche Services? + ::com::sun::star::uno::Sequence aSeq( SvxDrawPage::getSupportedServiceNames() ); + addToSequence( aSeq, 1, ::rtl::OUString::createFromAscii("stardiv.form.superservice?") ); + return aSeq; + */ +/*N*/ +/*N*/ return SvxDrawPage::getSupportedServiceNames(); +/*N*/ } + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmexpl.src b/binfilter/bf_svx/source/form/svx_fmexpl.src new file mode 100644 index 000000000000..53f9d8f48c74 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmexpl.src @@ -0,0 +1,945 @@ +/************************************************************************* + * + * 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 NO_LOCALIZE_EXPORT + +#include "svxids.hrc" +#include "fmresids.hrc" +#include "fmexpl.hrc" +#include "globlmn.hrc" +Menu RID_FMEXPLORER_POPUPMENU +{ + ItemList = + { + MenuItem + { + Identifier = SID_FM_NEW ; + HelpID = SID_FM_NEW ; + Text [ de ] = "~Neu" ; + Text [ en-US ] = "~New" ; + SubMenu = Menu + { + ItemList = + { + MenuItem + { + Identifier = SID_FM_NEW_FORM ; + HelpID = SID_FM_NEW_FORM ; + Text [ de ] = "~Formular" ; + Text [ en-US ] = "Form" ; + Text [ x-comment ] = " "; + Text[ pt ] = "~Formulário"; + Text[ ru ] = "~Форма"; + Text[ el ] = "~Φόρμα"; + Text[ nl ] = "~Formulier"; + Text[ fr ] = "~Formulaire"; + Text[ es ] = "~Formulario"; + Text[ fi ] = "Lomake"; + Text[ ca ] = "Formulari"; + Text[ it ] = "Formulario"; + Text[ sk ] = "Formulár"; + Text[ da ] = "~Formular"; + Text[ sv ] = "~Formulär"; + Text[ pl ] = "Formularz"; + Text[ pt-BR ] = "Formulário"; + Text[ th ] = "แบบฟอร์ม"; + Text[ ja ] = "フォーム"; + Text[ ko ] = "양식"; + Text[ zh-CN ] = "表单"; + Text[ zh-TW ] = "表單"; + Text[ tr ] = "Forum"; + Text[ hi-IN ] = "फ़ॉर्म"; + Text[ ar ] = "استمارة"; + Text[ he ] = "טופס"; + }; + MenuItem + { + Identifier = SID_FM_NEW_HIDDEN ; + HelpID = SID_FM_NEW_HIDDEN ; + Text [ de ] = "~verstecktes Control" ; + Text [ en-US ] = "Hidden Control" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Controlo o~culto"; + Text[ ru ] = "Скрытый элемент управления"; + Text[ el ] = "Κρυ~φό στοιχείο ελέγχου"; + Text[ nl ] = "~verborgen controle"; + Text[ fr ] = "C~ontrôle masqué"; + Text[ es ] = "~Control oculto"; + Text[ fi ] = "Piilotettu ohjausobjekti"; + Text[ ca ] = "Control ocult"; + Text[ it ] = "Controllo nascosto"; + Text[ sk ] = "Skrytý ovládací prvok"; + Text[ da ] = "Skjult kontrol"; + Text[ sv ] = "~Dold kontroll"; + Text[ pl ] = "Ukryty formant"; + Text[ pt-BR ] = "Controle oculto"; + Text[ th ] = "ตัวควบคุมที่ซ่อน"; + Text[ ja ] = "隠しコントロール"; + Text[ ko ] = "숨겨진 컨트롤"; + Text[ zh-CN ] = "隐入的控制"; + Text[ zh-TW ] = "隱入的控制項"; + Text[ tr ] = "Gizli komut alanı"; + Text[ hi-IN ] = "छिपा हुआ नियंत्रण"; + Text[ ar ] = "عنصر تحكم مخفي"; + Text[ he ] = "פקד מוסתר"; + }; + }; + }; + Text [ x-comment ] = " "; + Text[ pt ] = "Novo"; + Text[ ru ] = "Созд~ать"; + Text[ el ] = "~Δημιουργία"; + Text[ nl ] = "~Nieuw"; + Text[ fr ] = "Nouveau"; + Text[ es ] = "N~uevo"; + Text[ fi ] = "~Uusi"; + Text[ ca ] = "~Nou"; + Text[ it ] = "Nuovo"; + Text[ sk ] = "~Nový"; + Text[ da ] = "~Ny(t)"; + Text[ sv ] = "~Nytt"; + Text[ pl ] = "~Nowy"; + Text[ pt-BR ] = "~Novo"; + Text[ th ] = "ใ~หม่"; + Text[ ja ] = "新規作成(~N)"; + Text[ ko ] = "새로 만들기(~N)"; + Text[ zh-CN ] = "新建(~N)"; + Text[ zh-TW ] = "開啟新檔(~N)"; + Text[ tr ] = "~Yeni"; + Text[ hi-IN ] = "~नया"; + Text[ ar ] = "~جديد"; + Text[ he ] = "חדש"; + }; + MenuItem + { + Text [ de ] = "Ersetzen durch"; + Identifier = SID_FM_CHANGECONTROLTYPE ; + HelpID = SID_FM_CHANGECONTROLTYPE ; + Text [ en-US ] = "Replace with"; + Text[ pt ] = "Substituir por"; + Text[ ru ] = "Заменить на"; + Text[ el ] = "Αντικατάσταση με"; + Text[ nl ] = "Vervangen door"; + Text[ fr ] = "Remplacer par"; + Text[ es ] = "Reemplazar por"; + Text[ fi ] = "Korvaa objektilla"; + Text[ ca ] = "Reemplaça amb"; + Text[ it ] = "Sostituisci con"; + Text[ sk ] = "Nahradiť za"; + Text[ da ] = "Erstat med"; + Text[ sv ] = "Ersätt med"; + Text[ pl ] = "Zamień na"; + Text[ pt-BR ] = "Substituir por"; + Text[ th ] = "แทนที่ด้วย"; + Text[ ja ] = "置き換え"; + Text[ ko ] = "바꾸기"; + Text[ zh-CN ] = "替换成"; + Text[ zh-TW ] = "更替成"; + Text[ tr ] = "Şununla değiştir..."; + Text[ hi-IN ] = "से प्रतिस्थापित करो"; + Text[ ar ] = "استبدال بـ"; + Text[ he ] = "להחליף ב"; + Text[ de ] = "Ersetzen durch"; + }; + MenuItem { ITEM_EDIT_CUT }; + MenuItem { ITEM_EDIT_COPY }; + MenuItem { ITEM_EDIT_PASTE }; + MenuItem + { + Identifier = SID_FM_DELETE ; + HelpID = SID_FM_DELETE ; + Text [ de ] = "~Löschen" ; + Text [ en-US ] = "~Delete" ; + Text [ x-comment ] = " "; + Text[ pt ] = "E~liminar"; + Text[ ru ] = "Удалить"; + Text[ el ] = "Διαγρα~φή"; + Text[ nl ] = "Wi~ssen"; + Text[ fr ] = "~Supprimer"; + Text[ es ] = "~Borrar"; + Text[ fi ] = "~Poista"; + Text[ ca ] = "~Suprimeix"; + Text[ it ] = "Elimina"; + Text[ sk ] = "~Zmazať"; + Text[ da ] = "~Slet"; + Text[ sv ] = "~Radera"; + Text[ pl ] = "~Usuń"; + Text[ pt-BR ] = "E~xcluir"; + Text[ th ] = "~ลบ"; + Text[ ja ] = "削除(~D)"; + Text[ ko ] = "삭제(~D)"; + Text[ zh-CN ] = "删除(~D)"; + Text[ zh-TW ] = "刪除(~D)"; + Text[ tr ] = "Sil"; + Text[ hi-IN ] = "~मिटाओ"; + Text[ ar ] = "حذف"; + Text[ he ] = "מחיקה"; + }; + MenuItem + { + Identifier = SID_FM_TAB_DIALOG ; + HelpID = SID_FM_TAB_DIALOG ; + Text [ de ] = "~Aktivierungsreihenfolge ..." ; + Text [ en-US ] = "Tab Order..." ; + Text [ x-comment ] = " "; + Text[ pt ] = "Sequência de ~activação..."; + Text[ ru ] = "Порядок активирования"; + Text[ el ] = "Σ~ειρά ενεργοποίησης..."; + Text[ nl ] = "Volgorde van a~ctivering"; + Text[ fr ] = "Séquence d'activation ..."; + Text[ es ] = "~Secuencia de activación..."; + Text[ fi ] = "Sarkainjärjestys..."; + Text[ ca ] = "Ordre de les pestanyes..."; + Text[ it ] = "Sequenza di attivazione..."; + Text[ sk ] = "Poradie aktivácie..."; + Text[ da ] = "Aktiveringsrækkefølge..."; + Text[ sv ] = "~Ordningsföljd för aktivering..."; + Text[ pl ] = "Kolejność aktywacji..."; + Text[ pt-BR ] = "Ordem da Tabulação..."; + Text[ th ] = "ลำดับระยะกั้น..."; + Text[ ja ] = "タブオーダー..."; + Text[ ko ] = "활성화 순서..."; + Text[ zh-CN ] = "轮换顺序..."; + Text[ zh-TW ] = "啟動順序..."; + Text[ tr ] = "Etkinleştirme sırası..."; + Text[ hi-IN ] = "टॉब क्रम..."; + Text[ ar ] = "ترتيب التنشيط..."; + Text[ he ] = "סדר הטאבים"; + }; + MenuItem + { + Identifier = SID_FM_RENAME_OBJECT ; + HelpID = SID_FM_RENAME_OBJECT ; + Text [ de ] = "~Umbenennen" ; + Text [ en-US ] = "~Rename" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Mudar ~nome"; + Text[ ru ] = "Переименовать"; + Text[ el ] = "Μετονομασία"; + Text[ nl ] = "~Naam wijzigen"; + Text[ fr ] = "~Renommer"; + Text[ es ] = "~Cambiar nombre"; + Text[ fi ] = "~Nimeä uudelleen"; + Text[ ca ] = "~Reanomena"; + Text[ it ] = "Rinomina"; + Text[ sk ] = "P~remenovať"; + Text[ da ] = "Omdøb"; + Text[ sv ] = "~Byt namn"; + Text[ pl ] = "~Zmień nazwę"; + Text[ pt-BR ] = "~Renomear"; + Text[ th ] = "เ~ปลี่ยนชื่อ"; + Text[ ja ] = "名前の変更(~R)"; + Text[ ko ] = "이름 바꾸기(~R)"; + Text[ zh-CN ] = "重命名(~R)"; + Text[ zh-TW ] = "重新命名(~R)"; + Text[ tr ] = "Yeniden adlandır"; + Text[ hi-IN ] = "~पुनः नाम दो"; + Text[ ar ] = "إعادة تسمية"; + Text[ he ] = "שינוי שם"; + }; + MenuItem + { + Identifier = SID_FM_SHOW_PROPERTY_BROWSER ; + HelpID = SID_FM_SHOW_PROPERTY_BROWSER ; + Text [ de ] = "~Eigenschaften" ; + Text [ en-US ] = "Propert~ies" ; + Text [ x-comment ] = " "; + Text[ pt ] = "~Propriedades"; + Text[ ru ] = "Свойства"; + Text[ el ] = "Ιδιότητ~ες"; + Text[ nl ] = "~Eigenschappen"; + Text[ fr ] = "~Propriétés"; + Text[ es ] = "~Propiedades"; + Text[ fi ] = "~Ominaisuudet"; + Text[ ca ] = "Propie~tats"; + Text[ it ] = "Proprietà"; + Text[ sk ] = "Vlastnost~i"; + Text[ da ] = "Egenskaber"; + Text[ sv ] = "~Egenskaper"; + Text[ pl ] = "~Właściwości"; + Text[ pt-BR ] = "~Propriedades"; + Text[ th ] = "คุณสม~บัติ"; + Text[ ja ] = "プロパティ(~I)"; + Text[ ko ] = "등록 정보(~I)"; + Text[ zh-CN ] = "属性(~I)"; + Text[ zh-TW ] = "屬性(~I)"; + Text[ tr ] = "Özellikler"; + Text[ hi-IN ] = "वि~शेषतायें"; + Text[ ar ] = "خصائص"; + Text[ he ] = "מאפיינים"; + }; + MenuItem + { + Identifier = SID_FM_OPEN_READONLY ; + HelpID = SID_FM_OPEN_READONLY ; + Text [ de ] = "Im Ent~wurfsmodus öffnen" ; + Text [ en-US ] = "Open in Design Mode" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Abrir no modo Es~boço"; + Text[ ru ] = "Открыть в режиме проектирования"; + Text[ el ] = "Άνοιγμα σε κατάσταση σ~χεδιασμού"; + Text[ nl ] = "In ~ontwerpmodus openen"; + Text[ fr ] = "Ouvrir en mode C~onception"; + Text[ es ] = "~Abrir en modo diseño"; + Text[ fi ] = "Avaa suunnittelutilassa"; + Text[ ca ] = "Obre en mode disseny"; + Text[ it ] = "Apri nel modo bozza"; + Text[ sk ] = "Otvoriť v režime návrhu"; + Text[ da ] = "Åbn i udkasttilstand"; + Text[ sv ] = "Öppna i ~utkastläge"; + Text[ pl ] = "Otwórz w trybie projektu"; + Text[ pt-BR ] = "Abrir no Modo Esboço"; + Text[ th ] = "เปิดในโหมดออกแบบ"; + Text[ ja ] = "デザインモードで開く"; + Text[ ko ] = "디자인 모드에서 열기"; + Text[ zh-CN ] = "用设计模式打开"; + Text[ zh-TW ] = "開啟設計模式"; + Text[ tr ] = "Tasarım kipinde aç"; + Text[ hi-IN ] = "डिसैन् प्रकार में खोलो"; + Text[ ar ] = "فتح في وضع التصميم"; + Text[ he ] = "פתיחה במצב עיצוב"; + }; + MenuItem + { + Identifier = SID_FM_AUTOCONTROLFOCUS ; + HelpID = SID_FM_AUTOCONTROLFOCUS ; + Text [ de ] = "Automatischer Kontrollelement-Fokus"; + Text [ en-US ] = "Automatic Control Focus"; + Text[ pt ] = "Foco automático de controlo"; + Text[ ru ] = "Автофокус для элемента управления"; + Text[ el ] = "Αυτόματη εστίαση στοιχείου ελέγχου"; + Text[ nl ] = "Automatische controle focus"; + Text[ fr ] = "Focalisation automatique sur l'élément de contrôle"; + Text[ es ] = "Foco automático de control"; + Text[ fi ] = "Automaattinen kohdistuksen ohjaus"; + Text[ ca ] = "Focus automàtic de control"; + Text[ it ] = "Punto focale automatico di controllo"; + Text[ sk ] = "Automaticky zamerať ovládací prvok"; + Text[ da ] = "Automatisk kontrolelement-fokus"; + Text[ sv ] = "Automatisk fokus för kontrollelement"; + Text[ pl ] = "Automatyczne ogniskowanie na formancie"; + Text[ pt-BR ] = "Controle de Foco Automático"; + Text[ th ] = "โฟกัสการควบคุมอัตโนมัติ"; + Text[ ja ] = "オートコントロールフォーカス"; + Text[ ko ] = "자동 초점 컨트롤 "; + Text[ zh-CN ] = "自动对准控制单元"; + Text[ zh-TW ] = "自動對準控制項"; + Text[ tr ] = "Otomatik odaklanma komutu"; + Text[ hi-IN ] = "स्वचालित नियंत्रण केन्द्रिभूत"; + Text[ ar ] = "تركيز تلقائي لعنصر التحكم"; + Text[ he ] = "בקרת מיקוד אוטומטית"; + }; + }; +}; + +Menu RID_FMSHELL_CONVERSIONMENU +{ + ItemList = + { + MenuItem + { + Identifier = SID_FM_CONVERTTO_EDIT ; + HelpID = SID_FM_CONVERTTO_EDIT ; + Text [ de ] = "~Textfeld" ; + Text [ en-US ] = "~Text Box"; + Text [ x-comment ] = " "; + Text[ pt ] = "~Caixa de texto"; + Text[ ru ] = "Текстовое поле"; + Text[ el ] = "Πεδίο ~κειμένου"; + Text[ nl ] = "~Tekstveld"; + Text[ fr ] = "Zone de ~texte"; + Text[ es ] = "~Campo de texto"; + Text[ fi ] = "~Tekstikehys"; + Text[ ca ] = "Quadre de ~text"; + Text[ it ] = "Campo di ~testo"; + Text[ sk ] = "~Textové pole"; + Text[ da ] = "Tekstfelt"; + Text[ sv ] = "~Textfält"; + Text[ pl ] = "Pole ~tekstowe"; + Text[ pt-BR ] = "~Caixa de Texto"; + Text[ th ] = "กล่อง~ข้อความ"; + Text[ ja ] = "テキストボックス(~T)"; + Text[ ko ] = "텍스트 필드(~T)"; + Text[ zh-CN ] = "文本框(~T)"; + Text[ zh-TW ] = "文字方塊(~T)"; + Text[ tr ] = "Metin alanı"; + Text[ hi-IN ] = "~टेक्स्ट् बॉक्स्"; + Text[ ar ] = "حقل نص"; + Text[ he ] = "תיבת טקסט"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_BUTTON ; + HelpID = SID_FM_CONVERTTO_BUTTON ; + Text [ de ] = "~Schältfläche" ; + Text [ en-US ] = "~Button"; + Text[ pt ] = "~Botão"; + Text[ ru ] = "Кнопка"; + Text[ el ] = "Πεδίο επιλογή~ς"; + Text[ nl ] = "~Knop"; + Text[ fr ] = "~Bouton"; + Text[ es ] = "~Botón"; + Text[ fi ] = "~Painike"; + Text[ ca ] = "~Botó"; + Text[ it ] = "~Pulsante"; + Text[ sk ] = "~Tlačidlo"; + Text[ da ] = "Knap"; + Text[ sv ] = "~Kommandoknapp"; + Text[ pl ] = "~Przycisk"; + Text[ pt-BR ] = "~Botão"; + Text[ th ] = "~ปุ่ม"; + Text[ ja ] = "ボタン(~B)"; + Text[ ko ] = "버튼(~B)"; + Text[ zh-CN ] = "按钮(~B)"; + Text[ zh-TW ] = "按鈕(~B)"; + Text[ tr ] = "Düğme"; + Text[ hi-IN ] = "~बटन"; + Text[ ar ] = "زر ضغط"; + Text[ he ] = "כפתור"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_FIXEDTEXT ; + HelpID = SID_FM_CONVERTTO_FIXEDTEXT ; + Text [ de ] = "~Beschriftungsfeld" ; + Text [ en-US ] = "La~bel field"; + Text [ x-comment ] = " "; + Text[ pt ] = "Campo de ~rótulo"; + Text[ ru ] = "Надпись"; + Text[ el ] = "Πεδίο ε~πιγραφής"; + Text[ nl ] = "~Titelveld"; + Text[ fr ] = "~Champ d'étiquette"; + Text[ es ] = "~Campo de etiqueta"; + Text[ fi ] = "~Selitekenttä"; + Text[ ca ] = "Cam~p d'etiqueta"; + Text[ it ] = "Testo ~fisso"; + Text[ sk ] = "~Popisné pole"; + Text[ da ] = "Etiketfelt"; + Text[ sv ] = "~Etikettfält"; + Text[ pl ] = "Pole ~etykiety"; + Text[ pt-BR ] = "~Campo de rótulo"; + Text[ th ] = "ป้าย~ชื่อเขตข้อมูล"; + Text[ ja ] = "ラベルフィールド(~B)"; + Text[ ko ] = "레이블 필드(~B)"; + Text[ zh-CN ] = "标签字段(~B)"; + Text[ zh-TW ] = "標籤欄位(~B)"; + Text[ tr ] = "Etiket alanı"; + Text[ hi-IN ] = "लेबि~ल क्षेत्र"; + Text[ ar ] = "حقل عنونة"; + Text[ he ] = "שדה תוית"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_GROUPBOX ; + HelpID = SID_FM_CONVERTTO_GROUPBOX ; + Text [ de ] = "~Gruppierungsrahmen" ; + Text [ en-US ] = "G~roup Box"; + Text[ pt ] = "Campo de g~rupo"; + Text[ ru ] = "Групповой блок"; + Text[ el ] = "Πλαίσιο ~ομαδοποίησης"; + Text[ nl ] = "~Groepskader"; + Text[ fr ] = "Zone de ~groupe"; + Text[ es ] = "~Marco de grupo"; + Text[ fi ] = "~Ryhmittele ruudut"; + Text[ ca ] = "Quadre de g~rup"; + Text[ it ] = "Casella di ~gruppo"; + Text[ sk ] = "Zo~skupenie"; + Text[ da ] = "Gruppeboks"; + Text[ sv ] = "~Grupperingsram"; + Text[ pl ] = "Pole g~rupy:"; + Text[ pt-BR ] = "Caixa de ~Grupo"; + Text[ th ] = "จัด~กลุ่มกล่อง"; + Text[ ja ] = "グループボックス(~R)"; + Text[ ko ] = "그룹 상자(~R)"; + Text[ zh-CN ] = "小组框(~R)"; + Text[ zh-TW ] = "群組方塊(~R)"; + Text[ tr ] = "Grup çerçevesi"; + Text[ hi-IN ] = "~समूह बॉक्स्"; + Text[ ar ] = "كادر تجميع"; + Text[ he ] = "תיבת קבוצה"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_LISTBOX ; + HelpID = SID_FM_CONVERTTO_LISTBOX ; + Text [ de ] = "~Listenfeld" ; + Text [ en-US ] = "L~ist Box"; + Text [ x-comment ] = " "; + Text[ pt ] = "Caixa de ~listagem"; + Text[ ru ] = "Список"; + Text[ el ] = "Πεδίο ~λίστας"; + Text[ nl ] = "Ke~uzelijst"; + Text[ fr ] = "Zone de ~liste"; + Text[ es ] = "L~istado"; + Text[ fi ] = "~Luetteloruutu"; + Text[ ca ] = "Quadre de ll~ista"; + Text[ it ] = "~Casella di riepilogo"; + Text[ sk ] = "Pole ~zoznamu"; + Text[ da ] = "Rulleliste"; + Text[ sv ] = "L~istruta"; + Text[ pl ] = "Pole l~isty"; + Text[ pt-BR ] = "Caixa de ~listagem"; + Text[ th ] = "กล่องรา~ยการ"; + Text[ ja ] = "リストボックス(~I)"; + Text[ ko ] = "목록 필드(~I)"; + Text[ zh-CN ] = "列表框(~I)"; + Text[ zh-TW ] = "清單方塊(~I)"; + Text[ tr ] = "Liste alanı"; + Text[ hi-IN ] = "सू~ची बॉक्स्"; + Text[ ar ] = "مربع قائمة"; + Text[ he ] = "תיבת רשימה"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_CHECKBOX ; + HelpID = SID_FM_CONVERTTO_CHECKBOX ; + Text [ de ] = "~Markierfeld" ; + Text [ en-US ] = "~Check Box"; + Text[ pt ] = "Caixa de ~verificação"; + Text[ ru ] = "Флажок"; + Text[ el ] = "Πεδίο σή~μανσης"; + Text[ nl ] = "~Markeerveld"; + Text[ fr ] = "~Case à cocher"; + Text[ es ] = "~Casilla de verificación"; + Text[ fi ] = "~Valintaruutu"; + Text[ ca ] = "~Casella de verificació"; + Text[ it ] = "Casella di controllo"; + Text[ sk ] = "~Zaškrtávacie políčko"; + Text[ da ] = "Afkrydsningsfelt"; + Text[ sv ] = "Kr~yssruta"; + Text[ pl ] = "~Pole wyboru"; + Text[ pt-BR ] = "~Caixa de verificação"; + Text[ th ] = "กล่อง~กาเครื่องหมาย"; + Text[ ja ] = "チェックボックス(~C)"; + Text[ ko ] = "확인란(~C)"; + Text[ zh-CN ] = "复选框(~C)"; + Text[ zh-TW ] = "核取方塊(~C)"; + Text[ tr ] = "Seçme kutusu"; + Text[ hi-IN ] = "चे~क् बॉक्स्"; + Text[ ar ] = "خانة اختيار"; + Text[ he ] = "תיבת סימון"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_RADIOBUTTON ; + HelpID = SID_FM_CONVERTTO_RADIOBUTTON ; + Text [ de ] = "~Optionsfeld" ; + Text [ en-US ] = "~Radio Button"; + Text [ x-comment ] = " "; + Text[ pt ] = "B~otão de opção"; + Text[ ru ] = "~Кнопка выбора вариантов"; + Text[ el ] = "Πεδί~ο επιλογών"; + Text[ nl ] = "~Optieveld"; + Text[ fr ] = "Bouton ~radio"; + Text[ es ] = "~Campo de opción"; + Text[ fi ] = "~Valintanappi"; + Text[ ca ] = "~Camp d'opció"; + Text[ it ] = "Pulsante di scelta"; + Text[ sk ] = "P~repínač"; + Text[ da ] = "Alternativfelt"; + Text[ sv ] = "~Alternativfält"; + Text[ pl ] = "~Pole opcji"; + Text[ pt-BR ] = "~Botão de Seleção"; + Text[ th ] = "ปุ่ม~วิทยุ"; + Text[ ja ] = "ラジオボタン(~R)"; + Text[ ko ] = "옵션 필드(~R)"; + Text[ zh-CN ] = "选项字段(~R)"; + Text[ zh-TW ] = "選項欄位(~R)"; + Text[ tr ] = "Seçenek düğmesi"; + Text[ hi-IN ] = "~रेडियो बटन"; + Text[ ar ] = "زر خيار"; + Text[ he ] = "כפתור רדיו"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_COMBOBOX ; + HelpID = SID_FM_CONVERTTO_COMBOBOX ; + Text [ de ] = "~Kombinationsfeld" ; + Text [ en-US ] = "Combo Bo~x"; + Text[ pt ] = "Caixa de com~binação"; + Text[ ru ] = "Поле со списком"; + Text[ el ] = "Πεδίο ~συνδυασμού"; + Text[ nl ] = "~Combinatieveld"; + Text[ fr ] = "Zone ~combinée"; + Text[ es ] = "Cu~adro combinado"; + Text[ fi ] = "~Yhdistelmäruutu"; + Text[ ca ] = "Q~uadre combinat"; + Text[ it ] = "Casella com~binata"; + Text[ sk ] = "~Kombinované pole"; + Text[ da ] = "Kombinationsboks"; + Text[ sv ] = "~Kombinationsfält"; + Text[ pl ] = "Pole ~kombi"; + Text[ pt-BR ] = "Cai~xa de Combinação"; + Text[ th ] = "กล่~องคอมโบ้ "; + Text[ ja ] = "コンボボックス(~X)"; + Text[ ko ] = "콤보 상자(~X)"; + Text[ zh-CN ] = "组合框(~X)"; + Text[ zh-TW ] = "組合方框(~X)"; + Text[ tr ] = "Kombinasyon alanı"; + Text[ hi-IN ] = "कॉम्बो ~बॉक्स्"; + Text[ ar ] = "مربع تحرير وسرد"; + Text[ he ] = "תיבה משולבת"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_IMAGEBUTTON ; + HelpID = SID_FM_CONVERTTO_IMAGEBUTTON ; + Text [ de ] = "~Grafische Schaltfläche" ; + Text [ en-US ] = "I~mage Button"; + Text[ pt ] = "Botão ~gráfico"; + Text[ ru ] = "Графическая кнопка"; + Text[ el ] = "~Γραφικό πεδίο επιλογής"; + Text[ nl ] = "~Afbeeldingenknop"; + Text[ fr ] = "Bouton ~picto"; + Text[ es ] = "Botón g~ráfico"; + Text[ fi ] = "~Kuvapainike"; + Text[ ca ] = "Botó g~ràfic"; + Text[ it ] = "P~ulsante immagine"; + Text[ sk ] = "~Obrázkové tlačidlo"; + Text[ da ] = "Grafisk knap"; + Text[ sv ] = "~Grafisk kommandoknapp"; + Text[ pl ] = "~Przycisk obrazkowy"; + Text[ pt-BR ] = "Botão de I~magem"; + Text[ th ] = "ปุ่มรูปภา~พ"; + Text[ ja ] = "イメージボタン(~M)"; + Text[ ko ] = "이미지 버튼(~M)"; + Text[ zh-CN ] = "图形按钮(~M)"; + Text[ zh-TW ] = "圖形按鈕(~M)"; + Text[ tr ] = "Grafiksel düğme"; + Text[ hi-IN ] = "चित्र ब~टन"; + Text[ ar ] = "مفتاح مصوّر"; + Text[ he ] = "כפתור צלם"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_FILECONTROL ; + HelpID = SID_FM_CONVERTTO_FILECONTROL ; + Text [ de ] = "~Dateiauswahl" ; + Text [ en-US ] = "~File Selection"; + Text [ x-comment ] = " "; + Text[ pt ] = "~Selecção de ficheiro"; + Text[ ru ] = "~Выбор файла"; + Text[ el ] = "Επιλογή ~αρχείου"; + Text[ nl ] = "~Bestandselectie"; + Text[ fr ] = "~Sélection de fichier"; + Text[ es ] = "Selec~ción de archivo"; + Text[ fi ] = "~Tiedoston valinta"; + Text[ ca ] = "Selec~ció de fitxer"; + Text[ it ] = "Scelta file"; + Text[ sk ] = "Výber ~súboru"; + Text[ da ] = "Filudvalg"; + Text[ sv ] = "~Filurval"; + Text[ pl ] = "Wybór ~plików"; + Text[ pt-BR ] = "~Seleção de arquivo"; + Text[ th ] = "เลือกแ~ฟ้ม"; + Text[ ja ] = "ファイル選択(~F)"; + Text[ ko ] = "파일 선택(~F)"; + Text[ zh-CN ] = "选择文件(~F)"; + Text[ zh-TW ] = "選擇檔案(~F)"; + Text[ tr ] = "Dosya seçimi"; + Text[ hi-IN ] = "~फाइल का चुनाव"; + Text[ ar ] = "اختيار الملف"; + Text[ he ] = "בחירת קובץ"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_DATE ; + HelpID = SID_FM_CONVERTTO_DATE ; + Text [ de ] = "D~atumsfeld" ; + Text [ en-US ] = "~Date Field"; + Text [ x-comment ] = " "; + Text[ pt ] = "Campo para d~ata"; + Text[ ru ] = "Поле даты"; + Text[ el ] = "Πεδίο ημερομηνί~ας"; + Text[ nl ] = "~Datumveld"; + Text[ fr ] = "Champ de ~date"; + Text[ es ] = "Campo de ~fecha"; + Text[ fi ] = "~Päivämääräkenttä"; + Text[ ca ] = "Camp ~data"; + Text[ it ] = "Campo ~data"; + Text[ sk ] = "~Dátumové pole"; + Text[ da ] = "Datofelt"; + Text[ sv ] = "~Datumfält"; + Text[ pl ] = "Pole ~daty"; + Text[ pt-BR ] = "~Campo de Data"; + Text[ th ] = "เขตข้อมูล~วันที่"; + Text[ ja ] = "日付フィールド(~D)"; + Text[ ko ] = "날짜 필드(~D)"; + Text[ zh-CN ] = "日期字段(~D)"; + Text[ zh-TW ] = "日期欄位(~D)"; + Text[ tr ] = "Tarih alanı"; + Text[ hi-IN ] = "~दिनांक क्षेत्र"; + Text[ ar ] = "حقل التاريخ"; + Text[ he ] = "שדה תאריך"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_TIME ; + HelpID = SID_FM_CONVERTTO_TIME ; + Text [ de ] = "~Zeitfeld" ; + Text [ en-US ] = "Tim~e Field"; + Text [ x-comment ] = " "; + Text[ pt ] = "Campo ~horário"; + Text[ ru ] = "Поле времени"; + Text[ el ] = "Πεδίο ώ~ρας"; + Text[ nl ] = "~Tijdveld"; + Text[ fr ] = "Champ ~horaire"; + Text[ es ] = "Campo ~horario"; + Text[ fi ] = "~Aikakenttä"; + Text[ ca ] = "Camp t~emps"; + Text[ it ] = "Campo ~orario"; + Text[ sk ] = "Č~asové pole"; + Text[ da ] = "Klokkeslætsfelt"; + Text[ sv ] = "~Tidsfält"; + Text[ pl ] = "~Pol~e godziny"; + Text[ pt-BR ] = "Campo de ~hora"; + Text[ th ] = "เขตข้อมูลเว~ลา"; + Text[ ja ] = "時刻フィールド(~E)"; + Text[ ko ] = "시간 필드(~E)"; + Text[ zh-CN ] = "时间字段(~E)"; + Text[ zh-TW ] = "時間欄位(~E)"; + Text[ tr ] = "Zaman alanı"; + Text[ hi-IN ] = "सम~य क्षेत्र"; + Text[ ar ] = "حقل الوقت"; + Text[ he ] = "שדה זמן"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_NUMERIC ; + HelpID = SID_FM_CONVERTTO_NUMERIC ; + Text [ de ] = "~Numerisches Feld" ; + Text [ en-US ] = "~Numerical Field"; + Text [ x-comment ] = " "; + Text[ pt ] = "~Campo ~numérico"; + Text[ ru ] = "Числовое поле"; + Text[ el ] = "Αρι~θμητικό πεδίο"; + Text[ nl ] = "~Numeriek veld"; + Text[ fr ] = "Champ ~numérique"; + Text[ es ] = "C~ampo numérico"; + Text[ fi ] = "~Numeerinen kenttä"; + Text[ ca ] = "C~amp numèric"; + Text[ it ] = "Campo ~numerico"; + Text[ sk ] = "Čísel~né pole"; + Text[ da ] = "Numerisk felt"; + Text[ sv ] = "~Numeriskt fält"; + Text[ pl ] = "~Pole liczbowe"; + Text[ pt-BR ] = "~Campo numérico"; + Text[ th ] = "เขตข้อมูล~ตัวเลข"; + Text[ ja ] = "数値フィールド(~N)"; + Text[ ko ] = "숫자 필드(~N)"; + Text[ zh-CN ] = "数字字段(~N)"; + Text[ zh-TW ] = "數字欄位(~N)"; + Text[ tr ] = "Sayısal alan"; + Text[ hi-IN ] = "~संख्या क्षेत्र"; + Text[ ar ] = "حقل رقمي"; + Text[ he ] = "שדה מספרי"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_CURRENCY ; + HelpID = SID_FM_CONVERTTO_CURRENCY ; + Text [ de ] = "~Währungsfeld" ; + Text [ en-US ] = "C~urrency Field"; + Text[ pt ] = "Campo para moe~da"; + Text[ ru ] = "Денежное поле"; + Text[ el ] = "Πε~δίο νομίσματος"; + Text[ nl ] = "~Valutaveld"; + Text[ fr ] = "Champ ~monétaire"; + Text[ es ] = "Cam~po de moneda"; + Text[ fi ] = "~Valuuttakenttä"; + Text[ ca ] = "Camp m~oneda"; + Text[ it ] = "Campo di ~valuta"; + Text[ sk ] = "~Menové pole"; + Text[ da ] = "Valutafelt"; + Text[ sv ] = "V~alutafält"; + Text[ pl ] = "Pole ~walutowe"; + Text[ pt-BR ] = "~Campo Monetário"; + Text[ th ] = "เขตข้อมูลส~กุลเงิน"; + Text[ ja ] = "通貨フィールド(~U)"; + Text[ ko ] = "통화 필드(~U)"; + Text[ zh-CN ] = "货币字段(~U)"; + Text[ zh-TW ] = "貨幣欄位(~U)"; + Text[ tr ] = "Para birimi alanı"; + Text[ hi-IN ] = "~मुद्रा क्षेत्र"; + Text[ ar ] = "حقل العملة"; + Text[ he ] = "שדה מטבע"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_PATTERN ; + HelpID = SID_FM_CONVERTTO_PATTERN ; + Text [ de ] = "Mask~iertes Feld" ; + Text [ en-US ] = "~Pattern Field"; + Text[ pt ] = "~Campo mascarado"; + Text[ ru ] = "Поле с маской ввода"; + Text[ el ] = "Καλ~υμμένο πεδίο"; + Text[ nl ] = "~Patroonveld"; + Text[ fr ] = "Champ ~masqué"; + Text[ es ] = "Campo enmascarado"; + Text[ fi ] = "~Kuviokenttä"; + Text[ ca ] = "Camp s~eleccionat"; + Text[ it ] = "Campo a ~maschera"; + Text[ sk ] = "Pole ~vzorky"; + Text[ da ] = "Maskeret felt"; + Text[ sv ] = "~Maskerat fält"; + Text[ pl ] = "~Pole wzorca"; + Text[ pt-BR ] = "~Campo Padrão"; + Text[ th ] = "เขตข้อมูล~ลวดลาย"; + Text[ ja ] = "パターンフィールド(~P)"; + Text[ ko ] = "패턴 필드(~P)"; + Text[ zh-CN ] = "掩码字段(~P)"; + Text[ zh-TW ] = "遮罩欄位(~P)"; + Text[ tr ] = "Maskelenmiş alan"; + Text[ hi-IN ] = "~नमूना क्षेत्र"; + Text[ ar ] = "حقل مُقنَّع"; + Text[ he ] = "שדה תבנית"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_IMAGECONTROL ; + HelpID = SID_FM_CONVERTTO_IMAGECONTROL ; + Text [ de ] = "G~rafisches Kontrollfeld" ; + Text [ en-US ] = "Ima~ge Control"; + Text[ pt ] = "Controlo g~ráfico"; + Text[ ru ] = "Графический элемент управления"; + Text[ el ] = "Γ~ραφικό πεδίο ελέγχου"; + Text[ nl ] = "Grafisch c~ontroleveld"; + Text[ fr ] = "Contrôle ~picto"; + Text[ es ] = "Control de ima~gen"; + Text[ fi ] = "~Kuvan ohjaus"; + Text[ ca ] = "Control d'imat~ge"; + Text[ it ] = "Campo di controllo ~immagine"; + Text[ sk ] = "Ovl~ádacie pole obrázku"; + Text[ da ] = "Grafisk kontrolelement"; + Text[ sv ] = "Gra~fiskt kontrollfält"; + Text[ pl ] = "~Formant obrazkowy"; + Text[ pt-BR ] = "Controle de ~imagem"; + Text[ th ] = "ควบคุมภา~พ"; + Text[ ja ] = "イメージコントロールフィールド(~G)"; + Text[ ko ] = "이미지 컨트롤(~G)"; + Text[ zh-CN ] = "图式控制(~G)"; + Text[ zh-TW ] = "圖式控制項(~G)"; + Text[ tr ] = "Grafiksel komut alanı"; + Text[ hi-IN ] = "चित्र नियंत्र~ण"; + Text[ ar ] = "عنصر تحكم رسومي"; + Text[ he ] = "בקרת צלם"; + }; + MenuItem + { + Identifier = SID_FM_CONVERTTO_FORMATTED ; + HelpID = SID_FM_CONVERTTO_FORMATTED ; + Text [ de ] = "~Formatiertes Feld" ; + Text [ en-US ] = "Fo~rmatted Field"; + Text [ x-comment ] = " "; + Text[ pt ] = "Campo ~formatado"; + Text[ ru ] = "Поле с форматированием"; + Text[ el ] = "Μορ~φοποιημένο πεδίο"; + Text[ nl ] = "Opge~maakt veld"; + Text[ fr ] = "~Champ formaté"; + Text[ es ] = "Campo for~mateado"; + Text[ fi ] = "~Muotoiltu kenttä"; + Text[ ca ] = "Camp fo~rmatat"; + Text[ it ] = "Campo fo~rmattato"; + Text[ sk ] = "Fo~rmátované pole"; + Text[ da ] = "Formateret felt"; + Text[ sv ] = "Fo~rmaterat fält"; + Text[ pl ] = "Pole fo~rmatowane"; + Text[ pt-BR ] = "Campo ~formatado"; + Text[ th ] = "เขตข้อมูลการจัดรูปแ~บบ"; + Text[ ja ] = "書式設定されたフィールド(~R)"; + Text[ ko ] = "서식 있는 필드(~R)"; + Text[ zh-CN ] = "格式化的字段(~R)"; + Text[ zh-TW ] = "格式化的欄位(~R)"; + Text[ tr ] = "Formatlı alan"; + Text[ hi-IN ] = "रचना किया हु~आ क्षेत्र"; + Text[ ar ] = "حقل مُنسَّق"; + Text[ he ] = "שדה מעוצב"; + }; + }; +}; + +#define NAVIGATOR_IMAGEIDS \ + IdList = \ + { \ + RID_SVXIMG_BUTTON ; \ + RID_SVXIMG_RADIOBUTTON ; \ + RID_SVXIMG_CHECKBOX ; \ + RID_SVXIMG_FIXEDTEXT ; \ + RID_SVXIMG_GROUPBOX ; \ + RID_SVXIMG_EDIT ; \ + RID_SVXIMG_LISTBOX ; \ + RID_SVXIMG_COMBOBOX ; \ + RID_SVXIMG_URLBUTTON ; \ + RID_SVXIMG_CONTROL ; \ + RID_SVXIMG_FORM ; \ + RID_SVXIMG_FORMS ; \ + RID_SVXIMG_COLLAPSEDNODE ; \ + RID_SVXIMG_EXPANDEDNODE ; \ + RID_SVXIMG_IMAGEBUTTON ; \ + RID_SVXIMG_FILECONTROL ; \ + RID_SVXIMG_DATEFIELD ; \ + RID_SVXIMG_TIMEFIELD ; \ + RID_SVXIMG_NUMERICFIELD ; \ + RID_SVXIMG_CURRENCYFIELD ; \ + RID_SVXIMG_PATTERNFIELD ; \ + RID_SVXIMG_HIDDEN ; \ + RID_SVXIMG_IMAGECONTROL ; \ + RID_SVXIMG_GRID ; \ + RID_SVXIMG_FILTER ; \ + RID_SVXIMG_FORMATTEDFIELD ; \ + RID_SVXIMG_DATE_N_TIME_FIELDS ; \ + RID_SVXIMG_FIELD ; \ + }; \ + IdCount = 28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/binfilter/bf_svx/source/form/svx_fmimplids.cxx b/binfilter/bf_svx/source/form/svx_fmimplids.cxx new file mode 100644 index 000000000000..af7be90fc8a4 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmimplids.cxx @@ -0,0 +1,37 @@ +/* -*- 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. + * + ************************************************************************/ + +#include "fmimplids.hxx" +namespace binfilter { + +/*N*/ IMPLEMENT_IMPLEMENTATIONID_HELPER_VSMALL(form, OImplementationIds) + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmmodel.cxx b/binfilter/bf_svx/source/form/svx_fmmodel.cxx new file mode 100644 index 000000000000..18eb7c059e10 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmmodel.cxx @@ -0,0 +1,386 @@ +/* -*- 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. + * + ************************************************************************/ + + +#ifndef SVX_LIGHT +#include <bf_sfx2/objsh.hxx> +#else +class SfxObjectShell; +#endif + +#ifdef _MSC_VER +#pragma hdrstop +#endif + +#include "fmmodel.hxx" + +#include "svdio.hxx" + +#include "fmpage.hxx" + +#include "svdobj.hxx" + +namespace binfilter { + +/*N*/ TYPEINIT1(FmFormModel, SdrModel); + +struct FmFormModelImplData +{ + XubString sNextPageId; + sal_Bool bOpenInDesignIsDefaulted; + sal_Bool bMovingPage; + + FmFormModelImplData() + :bOpenInDesignIsDefaulted( sal_True ) + ,bMovingPage( sal_False ) + { + } +}; + +/************************************************************************* +|* +|* Ctor +|* +\************************************************************************/ + +/************************************************************************* +|* +|* Ctor +|* +\************************************************************************/ +/*N*/ FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SvPersist* pPers) +/*N*/ :SdrModel(rPath, pPool, pPers) +/*N*/ ,pObjShell(0) +/*N*/ ,bStreamingOldVersion(sal_False) +/*N*/ ,m_pImpl(NULL) +/*N*/ ,m_bOpenInDesignMode(sal_False) +/*N*/ ,m_bAutoControlFocus(sal_False) +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ m_pImpl = new FmFormModelImplData; +/*N*/ m_pImpl->sNextPageId = '0'; +/*N*/ #endif +/*N*/ } + +/************************************************************************* +|* +|* Ctor +|* +\************************************************************************/ + +/************************************************************************* +|* +|* Ctor +|* +\************************************************************************/ +/*N*/ FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SvPersist* pPers, +/*N*/ FASTBOOL bUseExtColorTable) +/*N*/ :SdrModel(rPath, pPool, pPers, bUseExtColorTable, LOADREFCOUNTS) +/*N*/ ,pObjShell(0) +/*N*/ ,bStreamingOldVersion(sal_False) +/*N*/ ,m_bOpenInDesignMode(sal_False) +/*N*/ ,m_bAutoControlFocus(sal_False) +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ m_pImpl = new FmFormModelImplData; +/*N*/ m_pImpl->sNextPageId = '0'; +/*N*/ #endif +/*N*/ } + +/************************************************************************* +|* +|* Dtor +|* +\************************************************************************/ +/*N*/ FmFormModel::~FmFormModel() +/*N*/ { +/*N*/ SetObjectShell(NULL); +/*N*/ delete m_pImpl; +/*N*/ } + +/************************************************************************* +|* +|* Copy-Ctor +|* +\************************************************************************/ + +/************************************************************************* +|* +|* Operator= +|* +\************************************************************************/ + +/************************************************************************* +|* +|* Operator== +|* +\************************************************************************/ + + +/************************************************************************* +|* +|* Erzeugt eine neue Seite +|* +\************************************************************************/ + +/************************************************************************* +|* +|* WriteData +|* +\************************************************************************/ + +/*N*/ void FmFormModel::WriteData(SvStream& rOut) const +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ +/*N*/ if( rOut.GetVersion() < SOFFICE_FILEFORMAT_50 ) +/*N*/ ((FmFormModel*)this)->bStreamingOldVersion = sal_True; +/*N*/ +/*N*/ SdrModel::WriteData( rOut ); +/*N*/ +/*N*/ ////////////////////////////////////////////////////////////////////// +/*N*/ // Speichern der Option OpenInDesignMode +/*N*/ if (!bStreamingOldVersion) +/*N*/ { +/*N*/ SdrDownCompat aModelFormatCompat(rOut,STREAM_WRITE); +/*N*/ +/*N*/ sal_uInt8 nTemp = m_bOpenInDesignMode; +/*N*/ rOut << nTemp; +/*N*/ +/*N*/ nTemp = m_bAutoControlFocus; +/*N*/ rOut << nTemp; +/*N*/ } +/*N*/ +/*N*/ ((FmFormModel*)this)->bStreamingOldVersion = sal_False; +/*N*/ +/*N*/ #endif +/*N*/ } + + +/************************************************************************* +|* +|* ReadData +|* +\************************************************************************/ +/*N*/ void FmFormModel::ReadData(const SdrIOHeader& rHead, SvStream& rIn) +/*N*/ { +/*N*/ if( rIn.GetVersion() < SOFFICE_FILEFORMAT_50 ) +/*N*/ ((FmFormModel*)this)->bStreamingOldVersion = sal_True; +/*N*/ +/*N*/ SdrModel::ReadData( rHead, rIn ); +/*N*/ +/*N*/ ////////////////////////////////////////////////////////////////////// +/*N*/ // Lesen der Option OpenInDesignMode +/*N*/ if (!bStreamingOldVersion) +/*N*/ { +/*N*/ SdrDownCompat aCompat(rIn,STREAM_READ); +/*N*/ sal_uInt8 nTemp = 0; +/*N*/ rIn >> nTemp; +/*N*/ +/*N*/ implSetOpenInDesignMode( nTemp ? sal_True : sal_False, sal_True ); +/*N*/ +/*N*/ if (aCompat.GetBytesLeft()) +/*N*/ { // it is a version which already wrote the AutoControlFocus flag +/*N*/ rIn >> nTemp; +/*N*/ m_bAutoControlFocus = nTemp ? sal_True : sal_False; +/*N*/ } +/*N*/ } +/*N*/ +/*N*/ ((FmFormModel*)this)->bStreamingOldVersion = sal_False; +/*N*/ } + + +/************************************************************************* +|* +|* InsertPage +|* +\************************************************************************/ +/*N*/ void FmFormModel::InsertPage(SdrPage* pPage, sal_uInt16 nPos) +/*N*/ { +/*?*/ SetObjectShell(pObjShell); +/*N*/ +/*N*/ SdrModel::InsertPage( pPage, nPos ); +/*N*/ +/*N*/ #ifndef SVX_LIGHT +/*N*/ if ( !m_pImpl->bMovingPage ) +/*N*/ { +/*N*/ // this flag here is kind of a hack. +/*N*/ // When a page is moved, the SdrModel::MovePage calls an InsertPage only, but +/*N*/ // no preceding RemovePage. Thus, we (as a derivee) don't have a chance to see +/*N*/ // that the page which is just being inserted is (in real) already a part of the +/*N*/ // model. Especially, we do not have a change to notice that the UndoEnvironment +/*N*/ // already _knows_ the forms we're just going to add below. +/*N*/ // +/*N*/ // The real solution to this would have been to fix SdrModel::MovePage, which +/*N*/ // is buggy in it's current form (as it violates the semantics of InsertPage, which +/*N*/ // is: insert a page which /currently is not part of any model/). +/*N*/ // However, this change in the SdrModel is much too risky. +/*N*/ // +/*N*/ // Another solution to this would have been to track (in the UndoEnv) which pages +/*N*/ // we know, and ignore any AddForms calls which are for such a page. +/*N*/ // But I refuse to do this (much more) work to hack a bug in the SdrModel. +/*N*/ // +/*N*/ // I the decision is to do this "small hack" here (which I don't consider really +/*N*/ // bad). +/*N*/ // +/*N*/ // 2002-01-10 - #i3235# - fs@openoffice.org +/*N*/ // +/*N*/ } +/*N*/ #endif +/*N*/ } + +/************************************************************************* +|* +|* MovePage +|* +\************************************************************************/ +/*?*/ void FmFormModel::MovePage( USHORT nPgNum, USHORT nNewPos ) +/*?*/ {DBG_BF_ASSERT(0, "STRIP");//STRIP001 +/*?*/ } + +/************************************************************************* +|* +|* RemovePage +|* +\************************************************************************/ +/*N*/ SdrPage* FmFormModel::RemovePage(sal_uInt16 nPgNum) +/*N*/ { +/*N*/ FmFormPage* pPage = (FmFormPage*)SdrModel::RemovePage(nPgNum); +/*N*/ +/*N*/ +/*N*/ return pPage; +/*N*/ } + +/************************************************************************* +|* +|* InsertMasterPage +|* +\************************************************************************/ +/*N*/ void FmFormModel::InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos) +/*N*/ { +/*N*/ SetObjectShell(pObjShell); +/*N*/ +/*N*/ SdrModel::InsertMasterPage(pPage, nPos); +/*N*/ +/*N*/ } + +/************************************************************************* +|* +|* RemoveMasterPage +|* +\************************************************************************/ +/*N*/ SdrPage* FmFormModel::RemoveMasterPage(sal_uInt16 nPgNum) +/*N*/ { +/*N*/ FmFormPage* pPage = (FmFormPage*)SdrModel::RemoveMasterPage(nPgNum); +/*N*/ +/*N*/ return pPage; +/*N*/ } + +//------------------------------------------------------------------------ +/*N*/ SdrLayerID FmFormModel::GetControlExportLayerId( const SdrObject& rObj ) const +/*N*/ { +/*N*/ return rObj.GetLayer(); +/*N*/ } + +//------------------------------------------------------------------------ +/*N*/ void FmFormModel::implSetOpenInDesignMode( sal_Bool _bOpenDesignMode, sal_Bool _bForce ) +/*N*/ { +/*N*/ if( ( _bOpenDesignMode != m_bOpenInDesignMode ) || _bForce ) +/*N*/ { +/*N*/ m_bOpenInDesignMode = _bOpenDesignMode; +/*N*/ +/*N*/ if ( pObjShell ) +/*N*/ pObjShell->SetModified( sal_True ); +/*N*/ } +/*N*/ // no matter if we really did it or not - from now on, it does not count as defaulted anymore +/*N*/ m_pImpl->bOpenInDesignIsDefaulted = sal_False; +/*N*/ } + +//------------------------------------------------------------------------ +/*N*/ void FmFormModel::SetOpenInDesignMode( sal_Bool bOpenDesignMode ) +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ implSetOpenInDesignMode( bOpenDesignMode, sal_False ); +/*N*/ #endif +/*N*/ } + +#ifndef SVX_LIGHT +//------------------------------------------------------------------------ +/*N*/ sal_Bool FmFormModel::OpenInDesignModeIsDefaulted( ) +/*N*/ { +/*N*/ return m_pImpl->bOpenInDesignIsDefaulted; +/*N*/ } +#endif + +//------------------------------------------------------------------------ +/*N*/ void FmFormModel::SetAutoControlFocus( sal_Bool _bAutoControlFocus ) +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ if( _bAutoControlFocus != m_bAutoControlFocus ) +/*N*/ { +/*?*/ m_bAutoControlFocus = _bAutoControlFocus; +/*?*/ pObjShell->SetModified( sal_True ); +/*N*/ } +/*N*/ #endif +/*N*/ } + +//------------------------------------------------------------------------ +/*N*/ void FmFormModel::SetObjectShell( SfxObjectShell* pShell ) +/*N*/ { +/*N*/ if (pShell == pObjShell) +/*N*/ return; +/*N*/ +/*N*/ +/*N*/ pObjShell = pShell; +/*N*/ } + +//------------------------------------------------------------------------ +/*N*/ XubString FmFormModel::GetUniquePageId() +/*N*/ { +/*N*/ XubString sReturn = m_pImpl->sNextPageId; +/*N*/ +/*N*/ xub_Unicode aNextChar = m_pImpl->sNextPageId.GetChar(m_pImpl->sNextPageId.Len() - 1); +/*N*/ sal_Bool bNeedNewChar = sal_False; +/*N*/ switch (aNextChar) +/*N*/ { +/*N*/ case '9' : aNextChar = 'A'; break; +/*N*/ case 'Z' : aNextChar = 'a'; break; +/*N*/ case 'z' : aNextChar = '0'; bNeedNewChar = sal_True; break; +/*N*/ default: ++aNextChar; break; +/*N*/ } +/*N*/ m_pImpl->sNextPageId.SetChar(m_pImpl->sNextPageId.Len() - 1, aNextChar); +/*N*/ if (bNeedNewChar) +/*N*/ m_pImpl->sNextPageId += '0'; +/*N*/ +/*N*/ return sReturn; +/*N*/ } + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmobj.cxx b/binfilter/bf_svx/source/form/svx_fmobj.cxx new file mode 100644 index 000000000000..228ff8a118e5 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmobj.cxx @@ -0,0 +1,248 @@ +/* -*- 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. + * + ************************************************************************/ +#ifdef _MSC_VER +#pragma hdrstop +#endif + + + +#include "fmobj.hxx" + +#include "fmprop.hrc" + + +#include <com/sun/star/script/XEventAttacherManager.hpp> + + + +#include "fmmodel.hxx" + +#include "fmtools.hxx" + + + +#include "fmresids.hrc" + +#include <fmview.hxx> + +#include "fmglob.hxx" + +#include "fmpgeimp.hxx" + +#include "fmpage.hxx" +namespace binfilter { + +using namespace ::com::sun::star::uno; +using namespace ::binfilter::svxform;//STRIP008 using namespace ::svxform; + +/*N*/ TYPEINIT1(FmFormObj, SdrUnoObj); +/*N*/ DBG_NAME(FmFormObj) +//------------------------------------------------------------------ + +//------------------------------------------------------------------ +/*N*/ FmFormObj::FmFormObj(sal_Int32 _nType) +/*N*/ :SdrUnoObj(String(), sal_False) +/*N*/ ,nEvent(0) +/*N*/ ,pTempView(0) +/*N*/ ,nPos(-1) +/*N*/ ,m_nType(_nType) +/*N*/ { +/*N*/ DBG_CTOR(FmFormObj, NULL); +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ FmFormObj::~FmFormObj() +/*N*/ { +/*N*/ DBG_DTOR(FmFormObj, NULL); +/*N*/ if (nEvent) +/*?*/ Application::RemoveUserEvent(nEvent); +/*N*/ +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> xHistory(m_xEnvironmentHistory, ::com::sun::star::uno::UNO_QUERY); +/*N*/ if (xHistory.is()) +/*?*/ xHistory->dispose(); +/*N*/ +/*N*/ m_xEnvironmentHistory = NULL; +/*N*/ m_aEventsHistory.realloc(0); +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ void FmFormObj::SetPage(SdrPage* _pNewPage) +/*N*/ { +/*N*/ FmFormPage* pNewFormPage = PTR_CAST(FmFormPage, _pNewPage); +/*N*/ if (!pNewFormPage || (GetPage() == _pNewPage)) +/*N*/ { // Maybe it makes sense to create an environment history here : if somebody set's our page to NULL, and we have a valid page before, +/*N*/ // me may want to remember our place within the old page. For this we could create a new m_pEnvironmentHistory to store it. +/*N*/ // So the next SetPage with a valid new page would restore that environment within the new page. +/*N*/ // But for the original Bug (#57300#) we don't need that, so I omit it here. Maybe this will be implemented later. +/*N*/ SdrUnoObj::SetPage(_pNewPage); +/*N*/ return; +/*N*/ } +/*N*/ +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > xNewParent; +/*N*/ ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor> aNewEvents; +/*N*/ +/*N*/ // calc the new parent for my model (within the new page's forms hierarchy) +/*N*/ // do we have a history ? (from :Clone) +/*N*/ if (m_xEnvironmentHistory.is()) +/*N*/ { +/*N*/ // the element in *m_pEnvironmentHistory which is equivalent to my new parent (which (perhaps) has to be created within _pNewPage->GetForms) +/*?*/ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*N*/ // is the right-most element in the tree. +/*N*/ } +/*N*/ +/*N*/ if (!xNewParent.is()) +/*N*/ { +/*N*/ // are we a valid part of our current page forms ? +/*N*/ FmFormPage* pOldFormPage = PTR_CAST(FmFormPage, GetPage()); +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > xOldForms = pOldFormPage ? ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > (pOldFormPage->GetForms(), ::com::sun::star::uno::UNO_QUERY) : ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > (); +/*N*/ if (xOldForms.is()) +/*N*/ { +/*N*/ // search (upward from our model) for xOldForms +/*?*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XChild > xSearch(GetUnoControlModel(), ::com::sun::star::uno::UNO_QUERY); +/*?*/ while (xSearch.is()) +/*?*/ { +/*?*/ if (xSearch == xOldForms) +/*?*/ break; +/*?*/ xSearch = ::com::sun::star::uno::Reference< ::com::sun::star::container::XChild > (xSearch->getParent(), ::com::sun::star::uno::UNO_QUERY); +/*?*/ } +/*?*/ if (xSearch.is()) // implies xSearch == xOldForms, which means we're a valid part of our current page forms hierarchy +/*?*/ { +/*?*/ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XChild > xMeAsChild(GetUnoControlModel(), ::com::sun::star::uno::UNO_QUERY); +/*?*/ } +/*N*/ } +/*N*/ } +/*N*/ +/*N*/ // now set the page +/*N*/ SdrUnoObj::SetPage(_pNewPage); +/*N*/ +/*N*/ // place my model within the new parent container +/*N*/ if (xNewParent.is()) +/*N*/ { +/*?*/ ::com::sun::star::uno::Reference< ::com::sun::star::form::XFormComponent > xMeAsFormComp(GetUnoControlModel(), ::com::sun::star::uno::UNO_QUERY); +/*?*/ if (xMeAsFormComp.is()) +/*?*/ { +/*?*/ // check if I have another parent (and remove me, if neccessary) +/*?*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > xOldParent(xMeAsFormComp->getParent(), ::com::sun::star::uno::UNO_QUERY); +/*?*/ if (xOldParent.is()) +/*?*/ { +/*?*/ sal_Int32 nPos = getElementPos(::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > (xOldParent, ::com::sun::star::uno::UNO_QUERY), xMeAsFormComp); +/*?*/ if (nPos > -1) +/*?*/ xOldParent->removeByIndex(nPos); +/*?*/ } +/*?*/ // and insert into the new container +/*?*/ xNewParent->insertByIndex(xNewParent->getCount(), ::com::sun::star::uno::makeAny(xMeAsFormComp)); +/*?*/ +/*?*/ // transfer the events +/*?*/ if (aNewEvents.getLength()) +/*?*/ { +/*?*/ try +/*?*/ { +/*?*/ ::com::sun::star::uno::Reference< ::com::sun::star::script::XEventAttacherManager > xEventManager(xNewParent, ::com::sun::star::uno::UNO_QUERY); +/*?*/ ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > xManagerAsIndex(xEventManager, ::com::sun::star::uno::UNO_QUERY); +/*?*/ if (xManagerAsIndex.is()) +/*?*/ { +/*?*/ sal_Int32 nPos = getElementPos(xManagerAsIndex, xMeAsFormComp); +/*?*/ DBG_ASSERT(nPos >= 0, "FmFormObj::SetPage : inserted but not present ?"); +/*?*/ xEventManager->registerScriptEvents(nPos, aNewEvents); +/*?*/ } +/*?*/ } +/*?*/ catch(...) +/*?*/ { +/*?*/ DBG_ERROR("FmFormObj::SetPage : could not tranfer script events !"); +/*?*/ } +/*?*/ +/*?*/ } +/*?*/ } +/*N*/ } +/*N*/ +/*N*/ // delete my history +/*N*/ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> xHistory(m_xEnvironmentHistory, ::com::sun::star::uno::UNO_QUERY); +/*N*/ if (xHistory.is()) +/*?*/ xHistory->dispose(); +/*N*/ +/*N*/ m_xEnvironmentHistory = NULL; +/*N*/ m_aEventsHistory.realloc(0); +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ sal_uInt32 FmFormObj::GetObjInventor() const +/*N*/ { +/*N*/ if( GetModel() && ((FmFormModel*)GetModel())->IsStreamingOldVersion() ) +/*?*/ return SdrInventor; +/*N*/ return FmFormInventor; +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ sal_uInt16 FmFormObj::GetObjIdentifier() const +/*N*/ { +/*N*/ if( GetModel() && ((FmFormModel*)GetModel())->IsStreamingOldVersion() ) +/*?*/ return OBJ_RECT; +/*N*/ return OBJ_FM_CONTROL; +/*N*/ } + +//------------------------------------------------------------------ + +//------------------------------------------------------------------ + +//------------------------------------------------------------------ + +//------------------------------------------------------------------ + +//------------------------------------------------------------------ +/*N*/ void FmFormObj::WriteData(SvStream& rOut) const +/*N*/ { +/*N*/ FmFormModel* pModel = (FmFormModel*)GetModel(); +/*N*/ if( pModel && pModel->IsStreamingOldVersion() ) +/*N*/ { +/*?*/ SdrLayerID nOld = GetLayer(); +/*?*/ ((FmFormObj*)this)->NbcSetLayer( pModel->GetControlExportLayerId( *this ) ); +/*?*/ SdrUnoObj::WriteData( rOut ); +/*?*/ ((FmFormObj*)this)->NbcSetLayer( nOld ); +/*?*/ return; +/*N*/ } +/*N*/ SdrUnoObj::WriteData(rOut); +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ void FmFormObj::ReadData(const SdrObjIOHeader& rHead, SvStream& rIn) +/*N*/ { +/*N*/ SdrUnoObj::ReadData(rHead,rIn); +/*N*/ } + +//------------------------------------------------------------------ + +//------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// ----------------------------------------------------------------------------- +// ----------------------------------------------------------------------------- + + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmobjfac.cxx b/binfilter/bf_svx/source/form/svx_fmobjfac.cxx new file mode 100644 index 000000000000..b7d75a237e55 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmobjfac.cxx @@ -0,0 +1,122 @@ +/* -*- 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. + * + ************************************************************************/ +#ifdef _MSC_VER +#pragma hdrstop +#endif + + + + + +#include "fmobjfac.hxx" + +#include "fmglob.hxx" + +#include "fmobj.hxx" + +#include <com/sun/star/sdbc/XRowSetListener.hpp> + +#include <com/sun/star/sdb/XSQLQueryComposerFactory.hpp> + +#include <com/sun/star/frame/XFrame.hpp> + +#include "fmshimp.hxx" + + +#include "svxids.hrc" + + +#include "fmresids.hrc" + + + +#include "fmservs.hxx" + + + +#include "fmprop.hrc" + +namespace binfilter { + +using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::beans; +using namespace ::binfilter::svxform;//STRIP008 using namespace ::svxform; + +/************************************************************************* +|* +|* Ctor +|* +\************************************************************************/ +/*N*/ FmFormObjFactory::FmFormObjFactory() +/*N*/ { +/*N*/ SdrObjFactory::InsertMakeObjectHdl(LINK(this, FmFormObjFactory, MakeObject)); +/*N*/ +/*N*/ // ImplSmartRegisterUnoServices(); +/*N*/ +/*N*/ } + + +/************************************************************************* +|* +|* Dtor +|* +\************************************************************************/ +/*N*/ FmFormObjFactory::~FmFormObjFactory() +/*N*/ { +/*N*/ } + + +/************************************************************************* +|* +|* ::com::sun::star::form::Form-Objekte erzeugen +|* +\************************************************************************/ + +/*N*/ IMPL_LINK(FmFormObjFactory, MakeObject, SdrObjFactory*, pObjFactory) +/*N*/ { +/*N*/ if (pObjFactory->nInventor == FmFormInventor) +/*N*/ { +/*N*/ switch (pObjFactory->nIdentifier) +/*N*/ { +/*N*/ case OBJ_FM_CONTROL: // allgemeines Object +/*N*/ { +/*N*/ pObjFactory->pNewObj = new FmFormObj(pObjFactory->nIdentifier); +/*N*/ } break; +/*?*/ default: +/*?*/ {DBG_BF_ASSERT(0, "STRIP");}//STRIP001 return 0; +/*?*/ } +/*?*/ } +/*N*/ +/*N*/ return 0; +/*N*/ } + + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmpage.cxx b/binfilter/bf_svx/source/form/svx_fmpage.cxx new file mode 100644 index 000000000000..c5a227e82006 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmpage.cxx @@ -0,0 +1,203 @@ +/* -*- 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. + * + ************************************************************************/ + +#ifdef _MSC_VER +#pragma hdrstop +#endif + +#define ENABLE_BYTESTRING_STREAM_OPERATORS + +#include "fmpage.hxx" + + + +#include "fmmodel.hxx" + +#ifndef SVX_LIGHT +#endif + +#ifndef SVX_LIGHT +#include "fmresids.hrc" +#endif + + + +#ifndef SVX_LIGHT +#include "fmpgeimp.hxx" +#endif + +#include "svdio.hxx" + +#ifndef SVX_LIGHT +#endif + + + + + + +#ifndef SVX_LIGHT +#include "fmprop.hrc" +using namespace ::binfilter::svxform;//STRIP008 using namespace ::svxform; +#endif + +namespace binfilter { + + +/*N*/ TYPEINIT1(FmFormPage, SdrPage); + +//------------------------------------------------------------------ +/*N*/ FmFormPage::FmFormPage(FmFormModel& rModel, StarBASIC* _pBasic, FASTBOOL bMasterPage) +/*N*/ :SdrPage(rModel, bMasterPage) +/*N*/ ,pBasic(_pBasic) +/*N*/ #ifndef SVX_LIGHT +/*N*/ ,pImpl(new FmFormPageImpl(this)) +/*N*/ #else +/*N*/ ,pImpl(NULL) +/*N*/ #endif +/*N*/ { +/*N*/ } + +//------------------------------------------------------------------ + +//------------------------------------------------------------------ +/*N*/ FmFormPage::~FmFormPage() +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ delete pImpl; +/*N*/ #endif +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ void FmFormPage::WriteData(SvStream& rOut) const +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ { +/*N*/ { +/*N*/ SdrDownCompat aVCCompat1( rOut, STREAM_WRITE ); +/*N*/ sal_uInt16 n = 0; +/*N*/ rOut << n; +/*N*/ } +/*N*/ SdrPage::WriteData( rOut ); +/*N*/ SdrDownCompat aVCCompat2( rOut, STREAM_WRITE ); +/*N*/ +/*N*/ rOut << ByteString(aPageName, gsl_getSystemTextEncoding()); +/*N*/ rOut << (sal_uInt32)0x11051967; +/*N*/ rOut << (sal_uInt32)0x19670511; +/*N*/ sal_uInt16 nVer = 1; +/*N*/ rOut << nVer; +/*N*/ { +/*N*/ SdrDownCompat aVCCompat3( rOut, STREAM_WRITE); +/*N*/ sal_uInt32 nFormCount = 0; +/*N*/ rOut << nFormCount; +/*N*/ } +/*N*/ } +/*N*/ +/*N*/ // dont use the flag in that way: if (rOut.GetVersion() >= SOFFICE_FILEFORMAT_40) +/*N*/ if (rOut.GetVersion() >= 3830) +/*N*/ { +/*N*/ SdrDownCompat aCompat(rOut, STREAM_WRITE); // Fuer Abwaertskompatibilitaet (Lesen neuer Daten mit altem Code) +/*N*/ pImpl->WriteData(rOut); +/*N*/ } +/*N*/ #else +/*N*/ DBG_ERROR( "FmFormPage::WriteData: not to be called in SVX_LIGHT version!" ); +/*N*/ #endif +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ void FmFormPage::ReadData(const SdrIOHeader& rHead, SvStream& rIn) +/*N*/ { +/*N*/ { +/*N*/ { +/*N*/ SdrDownCompat aVCCompat1( rIn, STREAM_READ ); +/*N*/ } +/*N*/ SdrPage::ReadData( rHead, rIn ); +/*N*/ { +/*N*/ SdrDownCompat aVCCompat2( rIn, STREAM_READ ); +/*N*/ ByteString aByteStringName; +/*N*/ rIn >> aByteStringName; +/*N*/ aPageName = String(aByteStringName, gsl_getSystemTextEncoding()); +/*N*/ } +/*N*/ } +/*N*/ +/*N*/ // dont use the flag in that way: if (rIn.GetVersion() >= SOFFICE_FILEFORMAT_40) +/*N*/ if (rIn.GetVersion() >= 3830 && rHead.GetVersion() >=14) +/*N*/ { +/*N*/ SdrDownCompat aCompat(rIn, STREAM_READ); // Fuer Abwaertskompatibilitaet (Lesen neuer Daten mit altem Code) +/*N*/ #ifndef SVX_LIGHT +/*N*/ DBG_ASSERT( aCompat.GetBytesLeft(), "FmFormPage::ReadData: invalid file format!" ); +/*N*/ if ( aCompat.GetBytesLeft() ) +/*N*/ pImpl->ReadData(rHead, rIn); +/*N*/ // some old (corrupted) versions between 511 and 554 wrote an empty block here - and some of these documents +/*N*/ // are still out there +/*N*/ // So we allow for such an empty block ... +/*N*/ #endif +/*N*/ } +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ void FmFormPage::SetModel(SdrModel* pNewModel) +/*N*/ { +/*N*/ SdrPage::SetModel( pNewModel ); +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ SdrPage* FmFormPage::Clone() const +/*N*/ { +/*N*/ return new FmFormPage(*this); +/*N*/ // hier fehlt noch ein kopieren der Objekte +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ void FmFormPage::InsertObject(SdrObject* pObj, ULONG nPos, +/*N*/ const SdrInsertReason* pReason) +/*N*/ { +/*N*/ SdrPage::InsertObject( pObj, nPos, pReason ); +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & FmFormPage::GetForms() const +/*N*/ { +/*N*/ #ifndef SVX_LIGHT +/*N*/ return pImpl->getForms(); +/*N*/ #else +/*N*/ static ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > aRef; +/*N*/ return aRef; +/*N*/ #endif +/*N*/ } + +//------------------------------------------------------------------ +/*N*/ SdrObject* FmFormPage::RemoveObject(ULONG nObjNum) +/*N*/ { +/*N*/ SdrObject* pObj = SdrPage::RemoveObject(nObjNum); +/*N*/ return pObj; +/*N*/ } + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmpgeimp.cxx b/binfilter/bf_svx/source/form/svx_fmpgeimp.cxx new file mode 100644 index 000000000000..c04bba3cfdbd --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmpgeimp.cxx @@ -0,0 +1,310 @@ +/* -*- 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. + * + ************************************************************************/ + +#ifdef _MSC_VER +#pragma hdrstop +#endif + +#define _EXTERN_FORMLAYER_ + + +#include "svxerr.hxx" + +#include "fmpgeimp.hxx" + + +#include <com/sun/star/io/XObjectOutputStream.hpp> +#include <com/sun/star/io/XActiveDataSink.hpp> +#include <com/sun/star/io/XActiveDataSource.hpp> +#include <com/sun/star/io/XMarkableStream.hpp> + +#include <bf_sfx2/objsh.hxx> + +#include "fmprop.hrc" +#include "fmglob.hxx" + +#include "fmobj.hxx" +#include "fmpage.hxx" +#include "fmmodel.hxx" + + +#include "svditer.hxx" + +#include "fmresids.hrc" + +#include <vcl/stdtext.hxx> + + +#include <unotools/streamwrap.hxx> +#include "dbtoolsclient.hxx" +#include <legacysmgr/legacy_binfilters_smgr.hxx> + +namespace binfilter { + +using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::lang; +using namespace ::com::sun::star::sdbc; +using namespace ::com::sun::star::sdb; +using namespace ::com::sun::star::container; +using namespace ::com::sun::star::beans; +using namespace ::com::sun::star::form; +using namespace ::binfilter::svxform; + +/*N*/ DBG_NAME(FmFormPageImpl) +//------------------------------------------------------------------------------ +/*N*/ FmFormPageImpl::FmFormPageImpl(FmFormPage* _pPage) +/*N*/ :pPage(_pPage) +/*N*/ ,m_bFirstActivation( sal_True ) +/*N*/ { +/*N*/ DBG_CTOR(FmFormPageImpl,NULL); +/*N*/ Init(); +/*N*/ } + +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +/*N*/ void FmFormPageImpl::Init() +/*N*/ { +/*N*/ if (pPage) +/*N*/ { +/*N*/ FmFormModel* pDrawModel = (FmFormModel*)pPage->GetModel(); +/*N*/ SfxObjectShell* pObjShell = pDrawModel->GetObjectShell(); +/*N*/ if( pObjShell ) +/*N*/ xModel = pObjShell->GetModel(); +/*N*/ +/*N*/ // get a unique page id from the model +/*N*/ m_sPageId = pDrawModel->GetUniquePageId(); +/*N*/ } +/*N*/ +/*N*/ static const ::rtl::OUString sFormsCollectionServiceName = ::rtl::OUString::createFromAscii("com.sun.star.form.Forms"); +/*N*/ xForms = Reference< ::com::sun::star::container::XNameContainer > ( +/*N*/ ::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance( +/*N*/ sFormsCollectionServiceName), ::com::sun::star::uno::UNO_QUERY); +/*N*/ DBG_ASSERT(xForms.is(), "FmFormPageImpl::Init : could not create a forms collection !"); +/*N*/ if (!xForms.is()) +/*?*/ ShowServiceNotAvailableError(NULL, sFormsCollectionServiceName, sal_True); +/*N*/ +/*N*/ Reference< ::com::sun::star::container::XChild > xAsChild(xForms, UNO_QUERY); +/*N*/ if (xAsChild.is()) +/*N*/ xAsChild->setParent( xModel ); +/*N*/ } + +//------------------------------------------------------------------------------ +/*N*/ FmFormPageImpl::~FmFormPageImpl() +/*N*/ { +/*N*/ xCurrentForm = NULL; +/*N*/ +/*N*/ ::comphelper::disposeComponent(xForms); +/*N*/ DBG_DTOR(FmFormPageImpl,NULL); +/*N*/ } + +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + + + +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +/*N*/ void FmFormPageImpl::WriteData(SvStream& rOut) const +/*N*/ { +/*N*/ // anlegen eines output streams fuer UNO +/*N*/ Reference< ::com::sun::star::io::XActiveDataSource > xSource(::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance(::rtl::OUString::createFromAscii("com.sun.star.io.ObjectOutputStream")), UNO_QUERY); +/*N*/ Reference< ::com::sun::star::io::XOutputStream > xMarkOut(::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance(::rtl::OUString::createFromAscii("com.sun.star.io.MarkableOutputStream")), UNO_QUERY); +/*N*/ Reference< ::com::sun::star::io::XActiveDataSource > xMarkSource(xMarkOut, UNO_QUERY); +/*N*/ +/*N*/ if (xSource.is()) +/*N*/ { +/*N*/ xMarkSource->setOutputStream(new ::utl::OOutputStreamWrapper(rOut)); +/*N*/ xSource->setOutputStream(xMarkOut); +/*N*/ +/*N*/ Reference< ::com::sun::star::io::XObjectOutputStream > xOutStrm(xSource, UNO_QUERY); +/*N*/ try +/*N*/ { +/*N*/ write(xOutStrm); +/*N*/ } +/*N*/ catch(Exception&) +/*N*/ { +/*?*/ rOut.SetError( ERRCODE_CLASS_WRITE | ERRCODE_SVX_FORMS_READWRITEFAILED | ERRCODE_WARNING_MASK ); +/*N*/ } +/*N*/ +/*N*/ xOutStrm->closeOutput(); +/*N*/ } +/*N*/ else +/*N*/ { +/*N*/ // let's do a hack : in former versions we didn't use UNO-stream but SvStreams, so there was +/*N*/ // no possibility that we couldn't write because of the lack of stream objects. Now, with UNO, this may happen +/*N*/ // (as it happended here). But the read-methods of the older versions don't expect that (there is no flag in +/*N*/ // the fileformat as it never was neccessary). To allow the old versions the read of the documents, we fake the +/*N*/ // write : the first token usually written by our impl is an sal_Int32 giving the number of forms within the forms +/*N*/ // collection. If this number is 0, no further reading will occur. +/*?*/ sal_Int32 nDummLength = 0; rOut << nDummLength; // this means 'no forms' +/*?*/ nDummLength = 0; rOut << nDummLength; // this means 'no form controls" +/*?*/ // To tell the user that something went wrong we set a warning on the stream. +/*?*/ rOut.SetError( ERRCODE_CLASS_WRITE | ERRCODE_SVX_FORMS_NOIOSERVICES | ERRCODE_WARNING_MASK ); +/*N*/ } +/*N*/ } + +//------------------------------------------------------------------------------ +/*N*/ void FmFormPageImpl::ReadData(const SdrIOHeader& rHead, SvStream& rIn) +/*N*/ { +/*N*/ // Abholen des InputStreams ueber uno +/*N*/ Reference< ::com::sun::star::io::XActiveDataSink > xSink(::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance(::rtl::OUString::createFromAscii("com.sun.star.io.ObjectInputStream")), UNO_QUERY); +/*N*/ +/*N*/ // creating the mark streams +/*N*/ Reference< ::com::sun::star::io::XInputStream > xMarkIn(::legacy_binfilters::getLegacyProcessServiceFactory()->createInstance(::rtl::OUString::createFromAscii("com.sun.star.io.MarkableInputStream")), UNO_QUERY); +/*N*/ Reference< ::com::sun::star::io::XActiveDataSink > xMarkSink(xMarkIn, UNO_QUERY); +/*N*/ +/*N*/ if (xSink.is()) +/*N*/ { +/*N*/ ::utl::OInputStreamWrapper* pUnoStream = new ::utl::OInputStreamWrapper(rIn); +/*N*/ xMarkSink->setInputStream(Reference< ::com::sun::star::io::XInputStream > (pUnoStream)); +/*N*/ xSink->setInputStream(xMarkIn); +/*N*/ +/*N*/ // freigeben aller forms +/*N*/ xCurrentForm = NULL; +/*N*/ +/*N*/ if (xForms->hasElements()) +/*N*/ { +/*?*/ ::comphelper::disposeComponent(xForms); +/*?*/ Init(); +/*N*/ } +/*N*/ +/*N*/ Reference< ::com::sun::star::io::XObjectInputStream > xInStrm(xSink,UNO_QUERY); +/*N*/ try +/*N*/ { +/*N*/ read(xInStrm); +/*N*/ } +/*N*/ catch(Exception&) +/*N*/ { +/*?*/ rIn.SetError( ERRCODE_CLASS_READ | ERRCODE_SVX_FORMS_READWRITEFAILED | ERRCODE_WARNING_MASK ); +/*N*/ } +/*N*/ +/*N*/ +/*N*/ xInStrm->closeInput(); +/*N*/ } +/*N*/ else +/*?*/ rIn.SetError( ERRCODE_CLASS_READ | ERRCODE_SVX_FORMS_NOIOSERVICES | ERRCODE_WARNING_MASK ); +/*N*/ } + +//------------------------------------------------------------------------------ +/*N*/ void FmFormPageImpl::write(const Reference< ::com::sun::star::io::XObjectOutputStream > & xOutStrm) const +/*N*/ { +/*N*/ Reference< ::com::sun::star::io::XMarkableStream > xMarkStrm(xOutStrm, UNO_QUERY); +/*N*/ if (!xMarkStrm.is()) +/*N*/ return; // exception +/*N*/ +/*N*/ // sortieren der objectlist nach der Reihenfolge +/*N*/ FmObjectList aList; +/*N*/ fillList(aList, *pPage, sal_True); +/*N*/ +/*N*/ // schreiben aller forms +/*N*/ Reference< ::com::sun::star::io::XPersistObject > xAsPersist(xForms, UNO_QUERY); +/*N*/ if (xAsPersist.is()) +/*N*/ xAsPersist->write(xOutStrm); +/*N*/ // don't use the writeObject of the stream, as this wouldn't be compatible with older documents +/*N*/ +/*N*/ // objectliste einfuegen +/*N*/ sal_Int32 nLength = aList.Count(); +/*N*/ +/*N*/ // schreiben der laenge +/*N*/ xOutStrm->writeLong(nLength); +/*N*/ +/*N*/ for (sal_Int32 i = 0; i < nLength; i++) +/*N*/ { +/*N*/ // schreiben des Objects mit Marke +/*N*/ // Marke um an den Anfang zu springen +/*N*/ Reference< ::com::sun::star::io::XPersistObject > xObj(aList.GetObject(i)->GetUnoControlModel(), UNO_QUERY); +/*N*/ if (xObj.is()) +/*N*/ { +/*N*/ xOutStrm->writeObject(xObj); +/*N*/ } +/*N*/ else +/*N*/ ;// exception +/*N*/ } +/*N*/ } + +//------------------------------------------------------------------------------ +/*N*/ void FmFormPageImpl::read(const Reference< ::com::sun::star::io::XObjectInputStream > & xInStrm) +/*N*/ { +/*N*/ Reference< ::com::sun::star::io::XMarkableStream > xMarkStrm(xInStrm, UNO_QUERY); +/*N*/ if (!xMarkStrm.is()) +/*N*/ return; // exception +/*N*/ +/*N*/ // sortieren der objectlist nach der Reihenfolge +/*N*/ FmObjectList aList; +/*N*/ fillList(aList, *pPage, sal_False); +/*N*/ +/*N*/ // lesen aller forms +/*N*/ Reference< ::com::sun::star::io::XPersistObject > xAsPersist(xForms, UNO_QUERY); +/*N*/ if (xAsPersist.is()) +/*N*/ xAsPersist->read(xInStrm); +/*N*/ // don't use the readObject of the stream, as this wouldn't be compatible with older documents +/*N*/ +/*N*/ // Zuordnung der Formobjekte zu den FormComponents +/*N*/ sal_Int32 nLength = xInStrm->readLong(); +/*N*/ DBG_ASSERT(nLength == (sal_Int32) aList.Count(), "Fehler beim Lesen der UnoModels"); +/*N*/ for (sal_Int32 i = 0; i < nLength; i++) +/*N*/ { +/*N*/ Reference< ::com::sun::star::awt::XControlModel > xRef(xInStrm->readObject(), UNO_QUERY); +/*N*/ if (i < (sal_Int32)aList.Count()) +/*N*/ aList.GetObject(i)->SetUnoControlModel(xRef); +/*N*/ } +/*N*/ } + +//------------------------------------------------------------------------------ +/*N*/ void FmFormPageImpl::fillList(FmObjectList& rList, const SdrObjList& rObjList, sal_Bool bConnected) const +/*N*/ { +/*N*/ SdrObjListIter aIter(rObjList); +/*N*/ while (aIter.IsMore()) +/*N*/ { +/*N*/ SdrObject* pObj = aIter.Next(); +/*N*/ if (pObj && pObj->GetObjInventor() == FmFormInventor) +/*N*/ { +/*N*/ FmFormObj* pFormObj = PTR_CAST(FmFormObj, pObj); +/*N*/ DBG_ASSERT(!bConnected || pFormObj->GetUnoControlModel().is(), "Controlshape ohne Control"); +/*N*/ if (!bConnected || pFormObj->GetUnoControlModel().is()) +/*N*/ rList.Insert(pFormObj, LIST_APPEND); +/*N*/ +/*N*/ } +/*N*/ } +/*N*/ } + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmprop.cxx b/binfilter/bf_svx/source/form/svx_fmprop.cxx new file mode 100644 index 000000000000..07a874922392 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmprop.cxx @@ -0,0 +1,53 @@ +/* -*- 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. + * + ************************************************************************/ +#ifdef _MSC_VER +#pragma hdrstop +#endif + +#define USE_PROPERTY_HELPER + +#include "fmprop.hrc" + + + + + +#include "fmresids.hrc" +#include "fmhelp.hrc" + +namespace binfilter { + +/*?*/ namespace svxform +/*?*/ { +/*?*/ IMPLEMENT_CONSTASCII_USTRING(FM_PROP_ACTIVE_CONNECTION, "ActiveConnection"); +/*?*/ } // namespace svxform + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_fmsearch.src b/binfilter/bf_svx/source/form/svx_fmsearch.src new file mode 100644 index 000000000000..bf202a306197 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmsearch.src @@ -0,0 +1,120 @@ +/************************************************************************* + * + * 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 NO_LOCALIZE_EXPORT + +#include "fmresids.hrc" +#include "fmsearch.hrc" +#include "fmhelp.hrc" + + + + +ErrorBox RID_SVXERR_SEARCH_NORECORD +{ + Buttons = WB_OK; + Message [ de ] = "Es wurden keine Datensätze, die zu Ihren Angaben passen, gefunden !" ; + Message [ en-US ] = "No records corresponding to your data found!"; + Message [ x-comment ] = " "; + Message[ pt ] = "Impossível encontrar registos de dados correspondentes às indicações fornecidas!"; + Message[ ru ] = "Не найдено записей, соответствующих вашему запросу!"; + Message[ el ] = "Δεν βρέθηκαν εγγραφές, οι οποίες να εκπληρώνουν τα δεδομένα σας!"; + Message[ nl ] = "Er zijn geen records gevonden die bij de vermelde gegevens passen!"; + Message[ fr ] = "Aucun enregistrement trouvé qui corresponde à vos indications !"; + Message[ es ] = "¡No se encontró ningún registro de datos adecuado a su información!"; + Message[ fi ] = "Tietoja vastaavia tietueita ei löytynyt."; + Message[ ca ] = "No s'ha trobat cap registre que es correspongui a la vostra data!"; + Message[ it ] = "Non sono stati trovati record di dati corrispondenti ai vostri dati!"; + Message[ sk ] = "Neboli nájdené žiadne zodpovedajúce záznamy!"; + Message[ da ] = "Der blev ikke fundet nogen dataposter, som svarer til dine angivelser!"; + Message[ sv ] = "Inga dataposter som passar till dina uppgifter har hittats!"; + Message[ pl ] = "Nie znaleziono żadnych rekordów odpowiadających wpisanym danym!"; + Message[ pt-BR ] = "Não foi possível encontrar registros de dados correspondentes às indicações fornecidas!"; + Message[ th ] = "ไม่มีระเบียนที่เป็นผลมาจากการพบข้อมูลของคุณ!"; + Message[ ja ] = "入力項目に該当するレコードが見つかりません。"; + Message[ ko ] = "사용자의 데이터와 맞는 레코드를 찾지 못했습니다."; + Message[ zh-CN ] = "没有找到符合您给定的数据条目!"; + Message[ zh-TW ] = "沒有找到符合您指定的資料條目﹗"; + Message[ tr ] = "Girdiğiniz verilere uygun veri kümeleri bulunamadı!"; + Message[ hi-IN ] = "आपके ड़ॉटा केलिए कोई उचित लेखा नहीं मिला!"; + Message[ ar ] = "تعذر العثور على سجلات بيانات تتماشى مع بياناتك !"; + Message[ he ] = "לא אותרו רשומות מתאימות לנתונים!"; +}; + +ErrorBox RID_SVXERR_SEARCH_GENERAL_ERROR +{ + Buttons = WB_OK; + Message [ de ] = "Es trat ein nicht näher bekannter Fehler auf. Die Suche konnte nicht beendet werden !" ; + Message [ en-US ] = "An unknown error occurred. The search could not be terminated!"; + Message [ x-comment ] = " "; + Message[ pt ] = "Surgiu um erro desconhecido. Impossível concluir a procura!"; + Message[ ru ] = "Неизвестная ошибка. Невозможно закончить поиск!"; + Message[ el ] = "Παρουσιάστηκε άγνωστο σφάλμα. Η αναζήτηση δεν ήταν δυνατόν να ολοκληρωθεί!"; + Message[ nl ] = "Er is een onbekende fout opgetreden: De zoekactie kan niet worden beëindigd!"; + Message[ fr ] = "Une erreur inconnue est survenue. La recherche n'a pas pu être terminée !"; + Message[ es ] = "Ha ocurrido un error desconocido. La búsqueda no se pudo completar."; + Message[ fi ] = "Ilmeni tuntematon virhe. Hakua ei voitu suorittaa loppuun."; + Message[ ca ] = "S'ha produït un error desconegut. No s'ha pogut completar la cerca."; + Message[ it ] = "Impossibile terminare la ricerca. Si è verificato un errore non ben definito."; + Message[ sk ] = "Nastala neznáma chyba. Hľadanie nemožno ukončiť!"; + Message[ da ] = "Der opstod en ukendt fejl. Det var ikke muligt at afslutte søgningen!"; + Message[ sv ] = "Det har uppstått ett okänt fel. Det gick inte att avsluta sökningen!"; + Message[ pl ] = "Wystąpił nieznany błąd. Nie można ukończyć wyszukiwania!"; + Message[ pt-BR ] = "Ocorreu um erro desconhecido. Não foi possível concluir a pesquisa!"; + Message[ th ] = "เกิดข้อผิดพลาดที่ไม่รู้จัก ไม่สามารถเลิกการค้นหา!"; + Message[ ja ] = "確認できないエラーが発生しました。検索は終了できません。"; + Message[ ko ] = "알 수 없는 오류가 발생했습니다. 검색을 마치지 못했습니다."; + Message[ zh-CN ] = "出现一个不明的错误。无法结束搜寻命令!"; + Message[ zh-TW ] = "出現一個不明的錯誤。無法結束搜尋!"; + Message[ tr ] = "Ayrıntıları bilinmeyen bir hata oluştu. Arama işlemi tamamlanamadı!"; + Message[ hi-IN ] = "एक अज्ञात गलती घटित हुआ । खोज को समाप्त नहीं कर सकते है !"; + Message[ ar ] = "حدث خطأ غير معروف. تعذر إنهاء البحث !"; + Message[ he ] = "ארעה שגיאה לא מוכרת. לא ניתן לסיים את החיפוש!"; +}; + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/binfilter/bf_svx/source/form/svx_fmstring.src b/binfilter/bf_svx/source/form/svx_fmstring.src new file mode 100644 index 000000000000..1894cc1b69b5 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmstring.src @@ -0,0 +1,352 @@ +/************************************************************************* + * + * 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 NO_LOCALIZE_EXPORT + +#include "fmresids.hrc" +/* Strings fuer Uebersetzung */ + +String RID_STR_NAME +{ + Text [ de ] = "Name" ; + Text [ en-US ] = "Name" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Nome"; + Text[ ru ] = "Имя"; + Text[ el ] = "Όνομα"; + Text[ nl ] = "Naam"; + Text[ fr ] = "Nom"; + Text[ es ] = "Nombre"; + Text[ fi ] = "Nimi"; + Text[ ca ] = "Nom"; + Text[ it ] = "Nome"; + Text[ sk ] = "Názov"; + Text[ da ] = "Navn"; + Text[ sv ] = "Namn"; + Text[ pl ] = "Nazwa"; + Text[ pt-BR ] = "Nome"; + Text[ th ] = "ชื่อ"; + Text[ ja ] = "名前"; + Text[ ko ] = "이름"; + Text[ zh-CN ] = "名称"; + Text[ zh-TW ] = "名稱"; + Text[ tr ] = "Ad"; + Text[ hi-IN ] = "नाम्"; + Text[ ar ] = "الاسم"; + Text[ he ] = "שם"; +}; + +String RID_STR_FORMS +{ + Text [ de ] = "Formulare" ; + Text [ en-US ] = "Forms" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Formulários"; + Text[ ru ] = "Формы"; + Text[ el ] = "Φόρμες"; + Text[ nl ] = "Formulieren"; + Text[ fr ] = "Formulaires"; + Text[ es ] = "Formularios"; + Text[ fi ] = "Lomakkeet"; + Text[ ca ] = "Formularis"; + Text[ it ] = "Formulari"; + Text[ sk ] = "Formuláre"; + Text[ da ] = "Formularer"; + Text[ sv ] = "Formulär"; + Text[ pl ] = "Formularze"; + Text[ pt-BR ] = "Formulários"; + Text[ th ] = "แบบฟอร์ม"; + Text[ ja ] = "フォーム"; + Text[ ko ] = "양식"; + Text[ zh-CN ] = "表单"; + Text[ zh-TW ] = "表單"; + Text[ tr ] = "Formlar"; + Text[ hi-IN ] = "फ़ॉर्म"; + Text[ ar ] = "استمارات"; + Text[ he ] = "טפסים"; +}; + +String RID_STR_FORM +{ + Text [ de ] = "Formular" ; + Text [ en-US ] = "Form" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Formulário"; + Text[ ru ] = "Форма"; + Text[ el ] = "Φόρμα"; + Text[ nl ] = "Formulier"; + Text[ fr ] = "Formulaire"; + Text[ es ] = "Formulario"; + Text[ fi ] = "Lomake"; + Text[ ca ] = "Formulari"; + Text[ it ] = "Formulario"; + Text[ sk ] = "Formulár"; + Text[ da ] = "Formular"; + Text[ sv ] = "Formulär"; + Text[ pl ] = "Formularz"; + Text[ pt-BR ] = "Formulário"; + Text[ th ] = "แบบฟอร์ม"; + Text[ ja ] = "フォーム"; + Text[ ko ] = "양식"; + Text[ zh-CN ] = "表单"; + Text[ zh-TW ] = "表單"; + Text[ tr ] = "Form"; + Text[ hi-IN ] = "फ़ॉर्म"; + Text[ ar ] = "استمارة"; + Text[ he ] = "טופס"; +}; + +String RID_STR_FORMSHELL +{ + Text [ de ] = "Formular" ; + Text [ en-US ] = "Form" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Formulário"; + Text[ ru ] = "Форма"; + Text[ el ] = "Φόρμα"; + Text[ nl ] = "Formulier"; + Text[ fr ] = "Formulaire"; + Text[ es ] = "Formulario"; + Text[ fi ] = "Lomake"; + Text[ ca ] = "Formulari"; + Text[ it ] = "Formulario"; + Text[ sk ] = "Formulár"; + Text[ da ] = "Formular"; + Text[ sv ] = "Formulär"; + Text[ pl ] = "Formularz"; + Text[ pt-BR ] = "Formulário"; + Text[ th ] = "แบบฟอร์ม"; + Text[ ja ] = "フォーム"; + Text[ ko ] = "양식"; + Text[ zh-CN ] = "表单"; + Text[ zh-TW ] = "表單"; + Text[ tr ] = "Forum"; + Text[ hi-IN ] = "फ़ॉर्म"; + Text[ ar ] = "استمارة"; + Text[ he ] = "טופס"; +}; + +String RID_STR_CONTROL +{ + Text [ de ] = "Kontrollelement" ; + Text [ en-US ] = "Control" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Controlo"; + Text[ ru ] = "Элемент управления"; + Text[ el ] = "Στοιχείο ελέγχου"; + Text[ nl ] = "Controle-element"; + Text[ fr ] = "Élément de contrôle"; + Text[ es ] = "Elemento de control"; + Text[ fi ] = "Ohjausobjekti"; + Text[ ca ] = "Control"; + Text[ it ] = "Elemento di controllo"; + Text[ sk ] = "Ovládací prvok"; + Text[ da ] = "Kontrolelement"; + Text[ sv ] = "Kontrollelement"; + Text[ pl ] = "Formant"; + Text[ pt-BR ] = "Controle"; + Text[ th ] = "ควบคุม"; + Text[ ja ] = "コントロール要素"; + Text[ ko ] = "컨트롤"; + Text[ zh-CN ] = "控制"; + Text[ zh-TW ] = "控制項"; + Text[ tr ] = "Komut alanı"; + Text[ hi-IN ] = "नियंत्रण"; + Text[ ar ] = "عنصر تحكم"; + Text[ he ] = "פקד"; +}; + +String RID_STR_FORM_FILTERED +{ + Text [ de ] = "(gefiltert)" ; + Text [ en-US ] = "(filtered)" ; + Text [ x-comment ] = " "; + Text[ pt ] = "(filtrado)"; + Text[ ru ] = "(отфильтровано)"; + Text[ el ] = "(φιλτραρισμένα)"; + Text[ nl ] = "(gefilterd)"; + Text[ fr ] = "(filtré)"; + Text[ es ] = "(filtrado)"; + Text[ fi ] = "(suodatettu)"; + Text[ ca ] = "(filtrat)"; + Text[ it ] = "(filtrato)"; + Text[ sk ] = "(filtrované)"; + Text[ da ] = "(filtreret)"; + Text[ sv ] = "(filtrerad)"; + Text[ pl ] = "(przefiltrowane)"; + Text[ pt-BR ] = "(filtrado)"; + Text[ th ] = "(กรอง)"; + Text[ ja ] = "(フィルタ済み)"; + Text[ ko ] = "(필터됨)"; + Text[ zh-CN ] = "(已经筛选过)"; + Text[ zh-TW ] = "(已經篩選過)"; + Text[ tr ] = "(filtrelenmiş)"; + Text[ hi-IN ] = "(फ़िल्टर किया हुआ)"; + Text[ ar ] = "(تم تصفيته)"; + Text[ he ] = "(מסונן)"; +}; + + +String RID_STR_SYNTAXERROR +{ + Text [ de ] = "Fehler bei der Analyse des Anfrageausdrucks" ; + Text [ en-US ] = "Syntax error in query expression" ; + Text[ pt ] = "Erro ao analisar a expressão de consulta."; + Text[ ru ] = "Ошибка синтаксиса в выражении запроса"; + Text[ el ] = "Σφάλμα κατά την ανάλυση του ορίσματος του ερωτήματος"; + Text[ nl ] = "Fout bij de analyse van queryafdruk"; + Text[ fr ] = "Erreur dans l'analyse de l'expression de la requête"; + Text[ es ] = "Ha ocurrido un error al analizar la expresión de la consulta"; + Text[ fi ] = "Syntaksivirhe kyselylausekkeessa"; + Text[ ca ] = "S'ha produït un error en analitzar l'expressió de consulta"; + Text[ it ] = "Errore nell'analizzare dell'espressione di ricerca"; + Text[ sk ] = "Syntaktická chyba v požiadavke"; + Text[ da ] = "Fejl under analysen af forespørgseludtrykket"; + Text[ sv ] = "Fel vid analys av frågeuttryck"; + Text[ pl ] = "Błąd składni w wyrażeniu kwerendy"; + Text[ pt-BR ] = "Erro de sintaxe na expressão da consulta."; + Text[ th ] = "ไวยกรณ์ในคำอธิบายแบบสอบถามผิดพลาด"; + Text[ ja ] = "クエリー言語分析中でのエラー"; + Text[ ko ] = "질의 표현식을 분석할 때 오류"; + Text[ zh-CN ] = "查询语句出现语法错误。"; + Text[ zh-TW ] = "在分解查詢語句時發生一個錯誤。"; + Text[ tr ] = "Sorgu ifadesinde sözdizim hatası"; + Text[ hi-IN ] = "जानकारी की वर्णन में सिन्टाक्स की गलती"; + Text[ ar ] = "حدث خطأ أثناء تحليل عبارة الاستفسار"; + Text[ he ] = "Syntax error in query expression"; +}; + + + + + // Events + + + + + + + + + + + + +QueryBox RID_QRY_SAVEMODIFIED +{ + Buttons = WB_YES_NO_CANCEL ; + DefButton = WB_DEF_YES ; + Message [ de ] = "Der Inhalt des aktuellen Formulars wurde geändert.\nSollen die Änderungen gespeichert werden?" ; + Message [ en-US ] = "The content of the current form has been modified.\nDo you want to save your changes?" ; + Message [ x-comment ] = " "; + Message[ pt ] = "O conteúdo do formulário activo foi modificado.\nGuardar modificações?"; + Message[ ru ] = "Содержание текущей формы изменено.\nСохранить изменения?"; + Message[ el ] = "Το περιεχόμενο της τρέχουσας φόρμας έχει αλλάξει.\nΘέλετε να αποθηκευτούν οι αλλαγές;"; + Message[ nl ] = "De inhoud van het huidige formulier is gewijzigd.\nWilt u de wijzigingen opslaan?"; + Message[ fr ] = "Le contenu du formulaire actif a été modifié.\nVoulez-vous enregistrer les modifications ?"; + Message[ es ] = "El contenido del formulario actual ha sido modificado.\n¿Desea guardar los cambios?"; + Message[ fi ] = "Käsiteltävänä olevan lomakkeen sisältöä on muutettu.\nHaluatko tallentaa muutokset?"; + Message[ ca ] = "S'ha modificat el contingut del formulari actual.\nVoleu desar els canvis?"; + Message[ it ] = "Il contenuto dell'attuale formulario è stato cambiato.\nSalvare le modifiche?"; + Message[ sk ] = "Obsah aktuálneho formulára bol zmenený.\nPrajete si uložiť zmeny?"; + Message[ da ] = "Den aktuelle formulars indhold er blevet ændret.\nSkal ændringerne gemmes?"; + Message[ sv ] = "Innehållet i det aktuella formuläret har ändrats.\nVill du spara ändringarna?"; + Message[ pl ] = "Zawartość bieżącego formularza została zmieniona.\nCzy zapisać zmiany?"; + Message[ pt-BR ] = "O conteúdo do formulário atual foi modificado.\nDeseja salvar estas modificações?"; + Message[ th ] = "เนื้อหาของแบบฟอร์มปัจจุบันถูกดัดแปลงแก้ไขแล้ว\nคุณต้องการบันทึกการเปลี่ยนแปลงหรือไม่?"; + Message[ ja ] = "現在の形式の内容が変更されています。\n変更を保存しますか。"; + Message[ ko ] = "현재 양식의 내용이 변경되었습니다.\n변경 사항을 저장하겠습니까?"; + Message[ zh-CN ] = "表单的内容已经被更改。\n您要保存这些更改吗?"; + Message[ zh-TW ] = "表單內容已經變更。\n您要儲存這些變更?"; + Message[ tr ] = "Yürürlükteki formun içeriği değiştirildi.\nDeğişiklikleri kaydetmek istiyor musunuz?"; + Message[ hi-IN ] = "वर्तमान फॉर्म की विषय को सुधार किया है ।\nआप सुधारों को संचित करना चाहते है?"; + Message[ ar ] = "تم تغيير محتويات الاستمارة الحالية.\nهل تريد حفظ التغييرات؟"; + Message[ he ] = "תוכן הטופס הנוכחי עודכן.\nהאם לשמור את השינוים?"; +}; + +String RID_STR_ERR_DELETERECORD +{ + Text [ de ] = "Fehler beim Löschen des aktuellen Datensatzes"; + Text [ en-US ] = "Error deleting the current record"; + Text[ pt ] = "Erro ao eliminar o registo de dados activo"; + Text[ ru ] = "Ошибка удаления текущей записи"; + Text[ el ] = "Σφάλμα κατά την διαγραφή της τρέχουσας εγγραφής"; + Text[ nl ] = "Fout bij wissen van huidige record"; + Text[ fr ] = "Erreur lors de la suppression de l'enregistrement actif"; + Text[ es ] = "Error al borrar el registro actual"; + Text[ fi ] = "Virhe poistettaessa nykyistä tietuetta."; + Text[ ca ] = "S'ha produït un error en eliminar el registre actual de dades"; + Text[ it ] = "Errore nel cancellare il record di dati attivo"; + Text[ sk ] = "Chyba pri odstraňovaní aktuálneho záznamu"; + Text[ da ] = "Fejl ved sletning af den aktuelle datapost"; + Text[ sv ] = "Fel vid radering av den aktuella dataposten"; + Text[ pl ] = "Błąd usuwania bieżącego rekordu"; + Text[ pt-BR ] = "Ocorreu um erro ao excluir o registro atual"; + Text[ th ] = "ลบระเบียนปัจจุบันผิดพลาด"; + Text[ ja ] = "現在のレコードの削除の際のエラー"; + Text[ ko ] = "현재 레코드 삭제시 오류"; + Text[ zh-CN ] = "在删除当前数据条目时发生错误"; + Text[ zh-TW ] = "在刪除資料條目時發生錯誤"; + Text[ tr ] = "Yürürlükteki veri kümesini silme sırasında hata"; + Text[ hi-IN ] = "वर्तमान लेखा को मिटाने के समय गलती"; + Text[ ar ] = "حدث خطأ أثناء حذف السجل الحالي"; + Text[ he ] = "שגיאה במחיקת הרשומה הנוכחית"; +}; +String RID_STR_SVT_SQL_INTERNATIONAL +{ + Text [ de ] = "WIE;NICHT;LEER;WAHR;FALSCH;IST;ZWISCHEN;ODER;UND;Durchschnitt;Anzahl;Maximum;Minimum;Summe" ; + Text [ en-US ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Average;Count;Maximum;Minimum;Sum" ; + Text[ pt ] = "COMO;NÃO;VAZIO;VERDADEIRO;FALSO;É;ENTRE;OU;E;média;quantidade;máximo;mínimo;soma"; + Text[ ru ] = "КАК;НЕ;ПУСТО;ИСТИНА;ЛОЖЬ;ЕСТЬ;МЕЖДУ;ИЛИ;И;срднее;количество;максимум;минимум;сумма"; + Text[ el ] = "ΟΠΩΣ;ΟΧΙ;ΚΕΝΟ;ΑΛΗΘΗΣ;ΛΑΘΟΣ;ΕΙΝΑΙ;ΜΕΤΑΞΥ;Ή;ΚΑΙ;Μέσος όρος;Πλήθος;Μέγιστο;Ελάχιστο;Άθροισμα"; + Text[ nl ] = "ALS;NIET;LEEG;WAAR;ONWAAR;IS;TUSSEN;OF;EN;Gemiddelde;Aantal;Maximum;Minimum;Som"; + Text[ fr ] = "COMME;PAS;VIDE;VRAI;FAUX;EST;ENTRE;OU;ET;Moyenne;Nombre;Maximum;Minimum;Somme"; + Text[ es ] = "COMO;NO;VACIO;VERDADERO;FALSO;ES;ENTRE;O;Y;Promedio;Cantidad;Máximo;Mínimo;Suma"; + Text[ fi ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Keskiarvo;Määrä;Enintään;Vähintään;Summa"; + Text[ ca ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Promig;Recompte;Màxim;Mínim;Suma"; + Text[ it ] = "COME;NON;VUOTO;VERO;FALSO;È;TRA;O;E;Media;Quantità;Massimo;Minimo;Somma"; + Text[ sk ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Average;Count;Maximum;Minimum;Sum"; + Text[ da ] = "SOM;IKKE;TOM;SAND;FALSK;ER;MELLEM;ELLER;OG;Gennemsnit;Antal;Maksimum;Minimum;Sum"; + Text[ sv ] = "SOM;INTE;TOM;SANN;FALSK;ÄR;MELLAN;ELLER;OCH;Genomsnitt;Antal;Maximum;Minimum;Summa"; + Text[ pl ] = "JAK;NIE;PUSTY;PRAWDA;FAŁSZ;JEST;POMIĘDZY;LUB;I;Średnia;Numer;Maksimum;Minimum;Suma"; + Text[ pt-BR ] = "COMO;NÃO;VAZIO;VERDADEIRO;FALSO;É;ENTRE;OU;E;média;quantidade;máximo;mínimo;soma"; + Text[ th ] = "เหมือน;ไม่;ว่าง;จริง;เท็จ;อยู่;ระหว่าง;หรือ;และ;เฉลี่ย;นับ;มากที่สุด;น้อยที่สุด;ผลรวม"; + Text[ ja ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;平均;数;最大;最小;合計"; + Text[ ko ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;평균;개수;최대;최소;합계"; + Text[ zh-CN ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;平均值;数目;最大;最小;总数"; + Text[ zh-TW ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;平均值;數目;最大;最小;總數"; + Text[ tr ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Average;Count;Maximum;Minimum;Sum"; + Text[ hi-IN ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Average;Count;Maximum;Minimum;Sum"; + Text[ ar ] = "LIKE;NOT;EMPTY;TRUE;FALSE;IS;BETWEEN;OR;AND;Average;Count;Maximum;Minimum;Sum"; + Text[ he ] = "כמו;לא;ריק;אמת;שקר;;בין;או;ו;ממוצע;מספר;מירבי;מזערי;סיכום"; +}; + + + + + + + diff --git a/binfilter/bf_svx/source/form/svx_fmtools.cxx b/binfilter/bf_svx/source/form/svx_fmtools.cxx new file mode 100644 index 000000000000..3737782368ab --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_fmtools.cxx @@ -0,0 +1,73 @@ +/* -*- 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. + * + ************************************************************************/ + +#include "fmtools.hxx" + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/container/XIndexAccess.hpp> + +namespace binfilter { + +using namespace ::com::sun::star; + +/*N*/ sal_Int32 getElementPos(const uno::Reference< container::XIndexAccess>& xCont, const uno::Reference< uno::XInterface >& xElement) +/*N*/ { +/*N*/ sal_Int32 nIndex = -1; +/*N*/ if (!xCont.is()) +/*N*/ return nIndex; +/*N*/ +/*N*/ uno::Reference< uno::XInterface > xNormalized( xElement, uno::UNO_QUERY ); +/*N*/ DBG_ASSERT( xNormalized.is(), "getElementPos: invalid element!" ); +/*N*/ if ( xNormalized.is() ) +/*N*/ { +/*N*/ // Feststellen an welcher Position sich das Kind befindet +/*N*/ nIndex = xCont->getCount(); +/*N*/ while (nIndex--) +/*N*/ { +/*N*/ try +/*N*/ { +/*N*/ uno::Reference< uno::XInterface > xCurrent; +/*N*/ xCont->getByIndex( nIndex ) >>= xCurrent; +/*N*/ DBG_ASSERT( xCurrent.get() == uno::Reference< uno::XInterface >( xCurrent, uno::UNO_QUERY ).get(), +/*N*/ "getElementPos: container element not normalized!" ); +/*N*/ if ( xNormalized.get() == xCurrent.get() ) +/*N*/ break; +/*N*/ } +/*N*/ catch(uno::Exception&) +/*N*/ { +/*N*/ DBG_ERROR( "getElementPos: caught an exception!" ); +/*N*/ } +/*N*/ +/*N*/ } +/*N*/ } +/*N*/ return nIndex; +/*N*/ } + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_siimport.cxx b/binfilter/bf_svx/source/form/svx_siimport.cxx new file mode 100644 index 000000000000..2201923a2763 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_siimport.cxx @@ -0,0 +1,159 @@ +/* -*- 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. + * + ************************************************************************/ + +#include "siimport.hxx" + +#include "svdorect.hxx" + +#include "svdio.hxx" + +#include "svdmodel.hxx" + +#include "xflclit.hxx" + +#include "xlnclit.hxx" + +#include "xtable.hxx" +namespace binfilter { + + +//============================================================================ +// defines +//============================================================================ + +const UINT32 SiInventor = UINT32('S')*0x00000001+ + UINT32('D')*0x00000100+ + UINT32('V')*0x00010000+ + UINT32('C')*0x01000000; + +#define OBJ_CHECKBOX ((UINT16)0) +#define OBJ_RADIOBUTTON ((UINT16)1) +#define OBJ_PUSHBUTTON ((UINT16)2) +#define OBJ_SPINBUTTON ((UINT16)3) +#define OBJ_FIXEDTEXT ((UINT16)4) +#define OBJ_GROUPBOX ((UINT16)5) +#define OBJ_LISTBOX ((UINT16)6) +#define OBJ_COMBOBOX ((UINT16)7) +#define OBJ_EDIT ((UINT16)8) +#define OBJ_HSCROLLBAR ((UINT16)9) +#define OBJ_VSCROLLBAR ((UINT16)10) + +#define OBJ_URLBUTTON ((UINT16)25) + + +//============================================================================ +// SiImportRect +//============================================================================ + +class SiImportRect : public SdrRectObj +{ +public: + SiImportRect(); + + virtual void ReadData(const SdrObjIOHeader& rHead, SvStream& rIn); +}; + +//---------------------------------------------------------------------------- + +/*N*/ SiImportRect::SiImportRect() : SdrRectObj() +/*N*/ { +/*N*/ } + +//---------------------------------------------------------------------------- + +/*N*/ void SiImportRect::ReadData(const SdrObjIOHeader& rHead, SvStream& rIn) +/*N*/ { +/*N*/ // SdrRectObj ueberspringen!!!! +/*N*/ SdrObject::ReadData( rHead, rIn ); +/*N*/ SdrDownCompat aCompat( rIn, STREAM_READ ); +/*N*/ aRect = aOutRect; +/*N*/ SfxItemSet aSet(pModel->GetItemPool()); +/*N*/ aSet.Put(XFillStyleItem(XFILL_SOLID)); +/*N*/ aSet.Put(XFillColorItem(String(), RGB_Color(COL_LIGHTRED))); +/*N*/ aSet.Put(XLineStyleItem(XLINE_SOLID)); +/*N*/ aSet.Put(XLineColorItem(String(), RGB_Color(COL_BLACK))); +/*N*/ +/*N*/ SetItemSet(aSet); +/*N*/ +/*N*/ SetXPolyDirty(); +/*N*/ } + + +//============================================================================ +// SiImportFactory +//============================================================================ + +/*N*/ SiImportFactory::SiImportFactory() +/*N*/ { +/*N*/ SdrObjFactory::InsertMakeObjectHdl( LINK(this, SiImportFactory, MakeObject) ); +/*N*/ } + +//---------------------------------------------------------------------------- + +/*N*/ SiImportFactory::~SiImportFactory() +/*N*/ { +/*N*/ } + +//---------------------------------------------------------------------------- + +/*N*/ IMPL_LINK( SiImportFactory, MakeObject, SdrObjFactory *, pObjFactory ) +/*N*/ { +/*N*/ if( pObjFactory->nInventor == SiInventor ) +/*N*/ { +/*N*/ if( ((pObjFactory->nIdentifier >= OBJ_CHECKBOX) && (pObjFactory->nIdentifier <= OBJ_VSCROLLBAR)) || +/*N*/ pObjFactory->nIdentifier == OBJ_URLBUTTON ) +/*N*/ { +/*N*/ switch( pObjFactory->nIdentifier ) +/*N*/ { +/*N*/ case OBJ_CHECKBOX: +/*N*/ case OBJ_RADIOBUTTON: +/*N*/ case OBJ_PUSHBUTTON: +/*N*/ case OBJ_SPINBUTTON: +/*N*/ case OBJ_FIXEDTEXT: +/*N*/ case OBJ_GROUPBOX: +/*N*/ case OBJ_LISTBOX: +/*N*/ case OBJ_COMBOBOX: +/*N*/ case OBJ_EDIT: +/*N*/ case OBJ_HSCROLLBAR: +/*N*/ case OBJ_VSCROLLBAR: +/*N*/ case OBJ_URLBUTTON: +/*N*/ pObjFactory->pNewObj = new SiImportRect(); +/*N*/ } +/*N*/ } +/*N*/ } +/*N*/ +/*N*/ return 0; +/*N*/ } + +//---------------------------------------------------------------------------- + + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/form/svx_taborder.src b/binfilter/bf_svx/source/form/svx_taborder.src new file mode 100644 index 000000000000..7e161a3e5ead --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_taborder.src @@ -0,0 +1,238 @@ +/************************************************************************* + * + * 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 NO_LOCALIZE_EXPORT + +#include "fmresids.hrc" +#include "taborder.hrc" +#ifndef _SVX_FMHELP_HRC +#include "fmhelp.hrc" +#endif + +ModalDialog RID_SVXDLG_TAB_ORDER +{ + OutputSize = TRUE ; + SVLook = TRUE ; + Size = MAP_APPFONT ( 168 , 158 ) ; + Text [ de ] = "Aktivierungsreihenfolge" ; + Text [ en-US ] = "Tab Order" ; + Text [ x-comment ] = " "; + Moveable = TRUE ; + Closeable = TRUE ; + FixedText FT_CONTROLS + { + Pos = MAP_APPFONT ( 6 , 3 ) ; + Size = MAP_APPFONT ( 90 , 8 ) ; + Text [ de ] = "Kontrollelemente" ; + Text [ en-US ] = "Controls" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Controlos"; + Text[ ru ] = "Элементы управления"; + Text[ el ] = "Στοιχεία ελέγχου"; + Text[ nl ] = "Controle-elementen"; + Text[ fr ] = "Éléments de contrôle"; + Text[ es ] = "Elementos de control"; + Text[ fi ] = "Ohjausobjektit"; + Text[ ca ] = "Elements de control"; + Text[ it ] = "Elementi di controllo"; + Text[ sk ] = "Ovládacie prvky"; + Text[ da ] = "Kontrolelementer"; + Text[ sv ] = "Kontrollelement"; + Text[ pl ] = "Formanty"; + Text[ pt-BR ] = "Controles"; + Text[ th ] = "ตัวควบคุม"; + Text[ ja ] = "コントロール要素"; + Text[ ko ] = "컨트롤 요소"; + Text[ zh-CN ] = "控制单元"; + Text[ zh-TW ] = "控制單元"; + Text[ tr ] = "Kontroller"; + Text[ hi-IN ] = "नियंत्रण"; + Text[ ar ] = "عناصر تحكم"; + Text[ he ] = "פקדים"; + }; + Control CTRL_TREE + { + Border = TRUE; + Pos = MAP_APPFONT ( 6, 14) ; + Size = MAP_APPFONT ( 90, 136 ) ; + TabStop = TRUE; + HelpId = HID_TABORDER_CONTROLS; + }; + OKButton PB_OK + { + Pos = MAP_APPFONT ( 102 , 14 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + TabStop = TRUE ; + }; + CancelButton PB_CANCEL + { + Pos = MAP_APPFONT ( 102 , 32 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + TabStop = TRUE ; + }; + HelpButton PB_HELP + { + Pos = MAP_APPFONT ( 102 , 50 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + TabStop = TRUE ; + }; + PushButton PB_MOVE_UP + { + Pos = MAP_APPFONT ( 102 , 100 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + Text [ de ] = "Index kleiner" ; + Text [ en-US ] = "Move Up" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Mover para cima"; + Text[ ru ] = "Переместить вверх"; + Text[ el ] = "Ευρετήριο μικρότερο"; + Text[ nl ] = "Index kleiner"; + Text[ fr ] = "Index plus petit"; + Text[ es ] = "Hacia arriba"; + Text[ fi ] = "Siirrä ylemmäs"; + Text[ ca ] = "Mou cap amunt"; + Text[ it ] = "Index minore"; + Text[ sk ] = "Presunúť nahor"; + Text[ da ] = "Indeks mindre"; + Text[ sv ] = "Index mindre"; + Text[ pl ] = "Przenieś w górę"; + Text[ pt-BR ] = "Mover para cima"; + Text[ th ] = "เลื่อนขึ้น"; + Text[ ja ] = "上へ移動"; + Text[ ko ] = "위로"; + Text[ zh-CN ] = "上移"; + Text[ zh-TW ] = "上移"; + Text[ tr ] = "Yukarı taşı"; + Text[ hi-IN ] = "स्थानान्तर ऊपर"; + Text[ ar ] = "تصغير الفهرس"; + Text[ he ] = "הזז למעלה"; + }; + PushButton PB_MOVE_DOWN + { + Pos = MAP_APPFONT ( 102 , 118 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + Text [ de ] = "Index größer" ; + Text [ en-US ] = "Move Down" ; + Text [ x-comment ] = "; RB: Funzioni formulario - Sequenza di attivazione"; + Text[ pt ] = "Mover para baixo"; + Text[ ru ] = "Переместить вниз"; + Text[ el ] = "Μετακίνηση κάτω"; + Text[ nl ] = "Index groter"; + Text[ fr ] = "Index plus grand"; + Text[ es ] = "Hacia abajo"; + Text[ fi ] = "Siirrä alemmas"; + Text[ ca ] = "Mou cap avall"; + Text[ it ] = "Index maggiore"; + Text[ sk ] = "Presunúť dole"; + Text[ da ] = "Indeks større"; + Text[ sv ] = "Index större"; + Text[ pl ] = "Przenieś w dół"; + Text[ pt-BR ] = "Mover para baixo"; + Text[ th ] = "เลื่อนลง"; + Text[ ja ] = "下へ移動"; + Text[ ko ] = "아래로"; + Text[ zh-CN ] = "下移"; + Text[ zh-TW ] = "下移"; + Text[ tr ] = "Aşağı taşı"; + Text[ hi-IN ] = "स्थानान्तर नीचे"; + Text[ ar ] = "تكبير الفهرس"; + Text[ he ] = "הזז למטה"; + }; + PushButton PB_AUTO_ORDER + { + Pos = MAP_APPFONT ( 102 , 136 ) ; + Size = MAP_APPFONT ( 60 , 14 ) ; + Text [ de ] = "Auto Sortierung" ; + Text [ en-US ] = "Automatic Sort" ; + Text [ x-comment ] = "; RB: es handelt sich um eine Schaltfl?he. Deshalb mu?der Text nicht l?ger als der deutsche sein."; + Text[ pt ] = "Ordem autom."; + Text[ ru ] = "Автосортировка"; + Text[ el ] = "Αυτόματη Ταξινόμηση"; + Text[ nl ] = "AutoSortering"; + Text[ fr ] = "Tri automatique"; + Text[ es ] = "Orden automático"; + Text[ fi ] = "Automaattinen järjestys"; + Text[ ca ] = "Ordre automàtic"; + Text[ it ] = "Ordine autom."; + Text[ sk ] = "Automaticky zoradiť"; + Text[ da ] = "Autosortering"; + Text[ sv ] = "Autosortering"; + Text[ pl ] = "Sortuj automatycznie"; + Text[ pt-BR ] = "Ordenação Automática"; + Text[ th ] = "เรียงอัตโนมัติ"; + Text[ ja ] = "自動的に並べ替え"; + Text[ ko ] = "자동 정렬"; + Text[ zh-CN ] = "自动排序"; + Text[ zh-TW ] = "自動排序"; + Text[ tr ] = "Otomatik sıralama"; + Text[ hi-IN ] = "स्वचालित ढंग से सोर्ट"; + Text[ ar ] = "فرز تلقائي"; + Text[ he ] = "מיון אוטומטי"; + }; + Text[ pt ] = "Sequência de activação"; + Text[ ru ] = "Порядок активирования"; + Text[ el ] = "Σειρά ενεργοποίησης"; + Text[ nl ] = "Volgorde van activering"; + Text[ fr ] = "Séquence d'activation"; + Text[ es ] = "Secuencia de activación"; + Text[ fi ] = "Sarkainjärjestys"; + Text[ ca ] = "Ordre de les pestanyes"; + Text[ it ] = "Sequenza di attivazione"; + Text[ sk ] = "Poradie aktivácie"; + Text[ da ] = "Aktiveringsrækkefølge"; + Text[ sv ] = "Aktiveringsordningsföljd"; + Text[ pl ] = "Kolejność aktywacji"; + Text[ pt-BR ] = "Ordem da Tabulação"; + Text[ th ] = "ลำดับระยะกั้น"; + Text[ ja ] = "タブオーダー"; + Text[ ko ] = "탭 순서"; + Text[ zh-CN ] = "轮换顺序"; + Text[ zh-TW ] = "啟動順序"; + Text[ tr ] = "Etkinleştirme sırası"; + Text[ hi-IN ] = "टॉब क्रम"; + Text[ ar ] = "ترتيب التنشيط"; + Text[ he ] = "סדר טאבים"; +}; + + + + + + + + + + + + + + + + + + + + diff --git a/binfilter/bf_svx/source/form/svx_tbxform.src b/binfilter/bf_svx/source/form/svx_tbxform.src new file mode 100644 index 000000000000..64bd0ceb90b9 --- /dev/null +++ b/binfilter/bf_svx/source/form/svx_tbxform.src @@ -0,0 +1,574 @@ +/************************************************************************* + * + * 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 NO_LOCALIZE_EXPORT +#include "svxids.hrc" +#include "fmresids.hrc" +#include "helpid.hrc" + +#define IMAGE_STDBTN_COLOR Color { Red = 0xC000; Green = 0xC000; Blue = 0xC000; } + +String RID_SVXTBX_FORM_FILTER +{ + Text [ de ] = "Filterleiste" ; + Text [ en-US ] = "Filter bar" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Barra de filtros"; + Text[ ru ] = "Панель фильтров"; + Text[ el ] = "Γραμμή φίλτρου"; + Text[ nl ] = "Filterbalk"; + Text[ fr ] = "Barre de filtres"; + Text[ es ] = "Barra de filtros"; + Text[ fi ] = "Suodatusrivi"; + Text[ ca ] = "Barra de filtre"; + Text[ it ] = "Barra dei filtri"; + Text[ sk ] = "Panel filtra"; + Text[ da ] = "Filterlinje"; + Text[ sv ] = "Filterlist"; + Text[ pl ] = "Pasek filtru"; + Text[ pt-BR ] = "Barra de filtros"; + Text[ th ] = "แถบตัวกรอง"; + Text[ ja ] = "フィルタバー"; + Text[ ko ] = "필터 도구모음"; + Text[ zh-CN ] = "筛选栏"; + Text[ zh-TW ] = "篩選欄"; + Text[ tr ] = "Filtre çubuğu"; + Text[ hi-IN ] = "फिल्टर पट्टी"; + Text[ ar ] = "شريط الفلتر"; + Text[ he ] = "סרגל מסננים"; +}; + + //------------------------------------------------------------------------ + // Navigation bar +ToolBox RID_SVXTBX_FORM_FILTER +{ + Dockable = TRUE ; + Moveable = TRUE ; + Sizeable = TRUE ; + Closeable = TRUE ; + Zoomable = TRUE ; + HideWhenDeactivate = TRUE ; + LineSpacing = TRUE ; + Text [ de ] = "Filterleiste" ; + Text [ en-US ] = "Filter bar" ; + Border = TRUE ; + SVLook = TRUE ; + Pos = MAP_APPFONT ( 0 , 0 ) ; + Size = MAP_APPFONT ( 200 , 16 ) ; + ButtonType = BUTTON_SYMBOL ; + // die Images stehen in der Ofa-DLL + ItemList = + { + ToolboxItem + { + Identifier = SID_FM_FILTER_NAVIGATOR ; + }; + ToolboxItem + { + Identifier = SID_FM_FILTER_EXECUTE ; + }; + ToolboxItem + { + Identifier = SID_FM_FILTER_EXIT ; + }; + /*ToolboxItem + { + Identifier = SID_FM_FILTER_REMOVE ; + };*/ + }; + Scroll = TRUE ; + Text [ x-comment ] = " "; + Text[ pt ] = "Barra de filtros"; + Text[ ru ] = "Панель фильтров"; + Text[ el ] = "Γραμμή φίλτρου"; + Text[ nl ] = "Filterbalk"; + Text[ fr ] = "Barre de filtres"; + Text[ es ] = "Barra de filtros"; + Text[ fi ] = "Suodatusrivi"; + Text[ ca ] = "Barra de filtre"; + Text[ it ] = "Barra dei filtri"; + Text[ sk ] = "Panel filtra"; + Text[ da ] = "Filterlinje"; + Text[ sv ] = "Filterlist"; + Text[ pl ] = "Pasek filtru"; + Text[ pt-BR ] = "Barra de filtros"; + Text[ th ] = "แถบตัวกรอง"; + Text[ ja ] = "フィルタバー"; + Text[ ko ] = "필터 도구모음"; + Text[ zh-CN ] = "筛选栏"; + Text[ zh-TW ] = "篩選欄"; + Text[ tr ] = "Filtre çubuğu"; + Text[ hi-IN ] = "फिल्टर पट्टी"; + Text[ ar ] = "شريط الفلتر"; + Text[ he ] = "סרגל מסננים"; +}; + +String RID_SVXTBX_FORM_NAVIGATION +{ + Text [ de ] = "Datenbankleiste" ; + Text [ en-US ] = "Database bar" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Barra de ferramentas da base de dados"; + Text[ ru ] = "Панель базы данных"; + Text[ el ] = "Γραμμή βάσης δεδομένων"; + Text[ nl ] = "Databasebalk"; + Text[ fr ] = "Barre de base de données"; + Text[ es ] = "Barra de base de datos"; + Text[ fi ] = "Tietolähdetyökalurivi"; + Text[ ca ] = "Barra de la base de dades"; + Text[ it ] = "Barra degli strumenti per database"; + Text[ sk ] = "Panel databázy"; + Text[ da ] = "Databaselinje"; + Text[ sv ] = "Databaslist"; + Text[ pl ] = "Pasek bazy danych"; + Text[ pt-BR ] = "Barra do banco de dados"; + Text[ th ] = "แถบฐานข้อมูล"; + Text[ ja ] = "データベースバー"; + Text[ ko ] = "데이터베이스 도구모음"; + Text[ zh-CN ] = "数据库工具栏"; + Text[ zh-TW ] = "資料庫工具列"; + Text[ tr ] = "Veritabanı çubuğu"; + Text[ hi-IN ] = "लेखासंचय पट्टी"; + Text[ ar ] = "شريط قاعدة البيانات"; + Text[ he ] = "סרגל מסד נתונים"; +}; + + //------------------------------------------------------------------------ + // Navigation bar +ToolBox RID_SVXTBX_FORM_NAVIGATION +{ + Dockable = TRUE ; + Moveable = TRUE ; + Sizeable = TRUE ; + Closeable = TRUE ; + Zoomable = TRUE ; + HideWhenDeactivate = TRUE ; + LineSpacing = TRUE ; + Text [ de ] = "Datenbankleiste" ; + Border = TRUE ; + SVLook = TRUE ; + Pos = MAP_APPFONT ( 0 , 0 ) ; + Size = MAP_APPFONT ( 200 , 16 ) ; + ButtonType = BUTTON_SYMBOL ; + // die Images stehen in der Ofa-DLL + ItemList = + { + ToolboxItem + { + Identifier = SID_FM_RECORD_TEXT ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_ABSOLUTE ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_FROM_TEXT ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_TOTAL ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_FIRST ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_PREV ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_NEXT ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_LAST ; + }; + ToolBoxItem + { + Type = TOOLBOXITEM_SEPARATOR ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_SAVE ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_UNDO ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_NEW ; + }; + ToolboxItem + { + Identifier = SID_FM_RECORD_DELETE ; + }; + ToolboxItem + { + Identifier = SID_FM_REFRESH ; + }; + ToolBoxItem + { + Type = TOOLBOXITEM_SEPARATOR ; + }; + ToolboxItem + { + Identifier = SID_FM_SEARCH ; + }; + ToolBoxItem + { + Type = TOOLBOXITEM_SEPARATOR ; + }; + ToolBoxItem + { + Identifier = SID_FM_SORTUP ; + }; + ToolBoxItem + { + Identifier = SID_FM_SORTDOWN ; + }; + ToolboxItem + { + Identifier = SID_FM_AUTOFILTER ; + }; + ToolboxItem + { + Identifier = SID_FM_FILTER_START ; + }; + ToolboxItem + { + Identifier = SID_FM_ORDERCRIT ; + }; + ToolboxItem + { + Identifier = SID_FM_REMOVE_FILTER_SORT ; + }; + ToolBoxItem + { + Type = TOOLBOXITEM_SEPARATOR ; + }; + ToolBoxItem + { + Identifier = SID_FM_VIEW_AS_GRID ; + }; + ToolBoxItem + { + Type = TOOLBOXITEM_SEPARATOR ; + }; + ToolboxItem + { + Identifier = SID_FM_FORM_FILTERED ; + }; + }; + Scroll = TRUE ; + Text [ en-US ] = "Database Bar" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Barra de base de dados"; + Text[ ru ] = "Панель базы данных"; + Text[ el ] = "Γραμμή βάσης δεδομένων"; + Text[ nl ] = "Databasebalk"; + Text[ fr ] = "Barre de base de données"; + Text[ es ] = "Barra de base de datos"; + Text[ fi ] = "Tietolähdetyökalurivi"; + Text[ ca ] = "Barra de la base de dades"; + Text[ it ] = "Barra database"; + Text[ sk ] = "Panel databázy"; + Text[ da ] = "Databaselinje"; + Text[ sv ] = "Databaslist"; + Text[ pl ] = "Pasek bazy danych"; + Text[ pt-BR ] = "Barra do Banco de Dados"; + Text[ th ] = "แถบฐานข้อมูล"; + Text[ ja ] = "データベースバー"; + Text[ ko ] = "데이터베이스 도구모음"; + Text[ zh-CN ] = "数据库工具栏"; + Text[ zh-TW ] = "資料庫工具列"; + Text[ tr ] = "Veritabanı çubuğu"; + Text[ hi-IN ] = "लेखासंचय पट्टी"; + Text[ ar ] = "شريط قاعدة البيانات"; + Text[ he ] = "סרגל מסד נתונים"; +}; + + //------------------------------------------------------------------------ + // Controller fuer controls +FloatingWindow RID_SVXTBX_FORM +{ + Moveable = TRUE ; + Closeable = TRUE ; + Hide = TRUE ; + SVLook = TRUE ; + HelpId = HID_SVXTBX_FORM; + Text [ de ] = "Formularfunktionen" ; + ToolBox TBX_FORM + { + SVLook = TRUE ; + LineCount = 2 ; + ItemList = + { + ToolBoxItem + { + Identifier = SID_OBJECT_SELECT ; + HelpID = SID_OBJECT_SELECT ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_PUSHBUTTON ; + HelpID = SID_FM_PUSHBUTTON ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_RADIOBUTTON ; + HelpID = SID_FM_RADIOBUTTON ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_CHECKBOX ; + HelpID = SID_FM_CHECKBOX ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_FIXEDTEXT ; + HelpID = SID_FM_FIXEDTEXT ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_GROUPBOX ; + HelpID = SID_FM_GROUPBOX ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_EDIT ; + HelpID = SID_FM_EDIT ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_LISTBOX ; + HelpID = SID_FM_LISTBOX ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_COMBOBOX ; + HelpID = SID_FM_COMBOBOX ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_IMAGEBUTTON ; + HelpID = SID_FM_IMAGEBUTTON ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_IMAGECONTROL ; + HelpID = SID_FM_IMAGECONTROL ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_FILECONTROL ; + HelpID = SID_FM_FILECONTROL ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_DATEFIELD ; + HelpID = SID_FM_DATEFIELD ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_TIMEFIELD ; + HelpID = SID_FM_TIMEFIELD ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_NUMERICFIELD ; + HelpID = SID_FM_NUMERICFIELD ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_FORMATTEDFIELD ; + HelpID = SID_FM_FORMATTEDFIELD ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_CURRENCYFIELD ; + HelpID = SID_FM_CURRENCYFIELD ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_PATTERNFIELD ; + HelpID = SID_FM_PATTERNFIELD ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem + { + Identifier = SID_FM_DBGRID ; + HelpID = SID_FM_DBGRID ; + RadioCheck = TRUE ; + AutoCheck = TRUE ; + }; + ToolBoxItem { Type = TOOLBOXITEM_BREAK ; }; + ToolBoxItem + { + Identifier = SID_FM_CTL_PROPERTIES ; + HelpID = SID_FM_CTL_PROPERTIES ; + }; + ToolBoxItem + { + Identifier = SID_FM_PROPERTIES ; + HelpID = SID_FM_PROPERTIES ; + }; + ToolBoxItem + { + Identifier = SID_FM_TAB_DIALOG ; + HelpID = SID_FM_TAB_DIALOG ; + }; + ToolBoxItem + { + Identifier = SID_FM_ADD_FIELD ; + HelpID = SID_FM_ADD_FIELD ; + }; + ToolBoxItem + { + Identifier = SID_FM_SHOW_FMEXPLORER ; + HelpID = SID_FM_SHOW_FMEXPLORER ; + }; + ToolBoxItem + { + Identifier = SID_FM_DESIGN_MODE ; + HelpID = SID_FM_DESIGN_MODE ; + }; + ToolBoxItem + { + Identifier = SID_FM_OPEN_READONLY ; + HelpID = SID_FM_OPEN_READONLY ; + }; + ToolBoxItem + { + Identifier = SID_FM_AUTOCONTROLFOCUS ; + HelpID = SID_FM_AUTOCONTROLFOCUS ; + }; + ToolBoxItem + { + Identifier = SID_FM_USE_WIZARDS ; + HelpID = SID_FM_USE_WIZARDS ; + }; + }; + }; + Text [ en-US ] = "Form Functions" ; + Text [ x-comment ] = " "; + Text[ pt ] = "Funções de formulário"; + Text[ ru ] = "Элементы управления формами"; + Text[ el ] = "Λειτουργίες φόρμας"; + Text[ nl ] = "Formulierfuncties"; + Text[ fr ] = "Fonctions de formulaire"; + Text[ es ] = "Funciones del formulario"; + Text[ fi ] = "Lomaketoiminnot"; + Text[ ca ] = "Funcions del formulari"; + Text[ it ] = "Funzioni formulario"; + Text[ sk ] = "Funkcie formulára"; + Text[ da ] = "Formularfunktioner"; + Text[ sv ] = "Formulärfunktioner"; + Text[ pl ] = "Funkcje formularza"; + Text[ pt-BR ] = "Funções de Formulário"; + Text[ th ] = "ฟังก์ชั่นแบบฟอร์ม"; + Text[ ja ] = "フォームの機能"; + Text[ ko ] = "양식 기능"; + Text[ zh-CN ] = "表单功能"; + Text[ zh-TW ] = "表單功能"; + Text[ tr ] = "Form işlevleri"; + Text[ hi-IN ] = "फॉर्म् फंक्शन्स"; + Text[ ar ] = "مهام الاستمارة"; + Text[ he ] = "פונקציות טופס"; +}; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + |