Kaydet (Commit) 2c932dcd authored tarafından Sven Wehner's avatar Sven Wehner Kaydeden (comit) Caolán McNamara

fdo#39468 Translate German comments

Also remove ASCII art, and fix minor typos.
Note: I left the unknown word "Stati" as is.
This could be an incorrect plural for "status".

Change-Id: Ic19407c0ebb3aba3ebba4940b2511ba5b8dc825e
Reviewed-on: https://gerrit.libreoffice.org/7716Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0d57871d
...@@ -42,10 +42,8 @@ using namespace ::com::sun::star::uno; ...@@ -42,10 +42,8 @@ using namespace ::com::sun::star::uno;
#define ID_TOOLBAR 1 #define ID_TOOLBAR 1
#define ID_GRIDWIN 2 #define ID_GRIDWIN 2
//.........................................................................
namespace bib namespace bib
{ {
//.........................................................................
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
...@@ -69,9 +67,7 @@ namespace bib ...@@ -69,9 +67,7 @@ namespace bib
} }
} }
//=====================================================================
//= BibGridwin
//=====================================================================
class BibGridwin class BibGridwin
:public Window //DockingWindow :public Window //DockingWindow
{ {
...@@ -80,7 +76,7 @@ namespace bib ...@@ -80,7 +76,7 @@ namespace bib
Reference< awt::XControlModel > m_xGridModel; Reference< awt::XControlModel > m_xGridModel;
Reference< awt::XControl > m_xControl; Reference< awt::XControl > m_xControl;
Reference< awt::XControlContainer > m_xControlContainer; Reference< awt::XControlContainer > m_xControlContainer;
// #100312# --------- // #100312#
Reference< frame::XDispatchProviderInterception> m_xDispatchProviderInterception; Reference< frame::XDispatchProviderInterception> m_xDispatchProviderInterception;
protected: protected:
...@@ -96,13 +92,12 @@ namespace bib ...@@ -96,13 +92,12 @@ namespace bib
void disposeGridWin(); void disposeGridWin();
const Reference< awt::XControlContainer >& getControlContainer() const { return m_xControlContainer; } const Reference< awt::XControlContainer >& getControlContainer() const { return m_xControlContainer; }
// #100312# --------- // #100312#
const Reference< frame::XDispatchProviderInterception>& getDispatchProviderInterception() const { return m_xDispatchProviderInterception; } const Reference< frame::XDispatchProviderInterception>& getDispatchProviderInterception() const { return m_xDispatchProviderInterception; }
virtual void GetFocus(); virtual void GetFocus();
}; };
//---------------------------------------------------------------------
BibGridwin::BibGridwin( Window* _pParent, WinBits _nStyle ) : Window( _pParent, _nStyle ) BibGridwin::BibGridwin( Window* _pParent, WinBits _nStyle ) : Window( _pParent, _nStyle )
{ {
m_xControlContainer = VCLUnoHelper::CreateControlContainer(this); m_xControlContainer = VCLUnoHelper::CreateControlContainer(this);
...@@ -110,7 +105,6 @@ namespace bib ...@@ -110,7 +105,6 @@ namespace bib
AddToTaskPaneList( this ); AddToTaskPaneList( this );
} }
//---------------------------------------------------------------------
BibGridwin::~BibGridwin() BibGridwin::~BibGridwin()
{ {
RemoveFromTaskPaneList( this ); RemoveFromTaskPaneList( this );
...@@ -118,7 +112,6 @@ namespace bib ...@@ -118,7 +112,6 @@ namespace bib
disposeGridWin(); disposeGridWin();
} }
//---------------------------------------------------------------------
void BibGridwin::Resize() void BibGridwin::Resize()
{ {
if(m_xGridWin.is()) if(m_xGridWin.is())
...@@ -128,7 +121,6 @@ namespace bib ...@@ -128,7 +121,6 @@ namespace bib
} }
} }
//---------------------------------------------------------------------
void BibGridwin::createGridWin(const uno::Reference< awt::XControlModel > & xGModel) void BibGridwin::createGridWin(const uno::Reference< awt::XControlModel > & xGModel)
{ {
m_xGridModel = xGModel; m_xGridModel = xGModel;
...@@ -153,14 +145,14 @@ namespace bib ...@@ -153,14 +145,14 @@ namespace bib
if ( m_xControl.is() ) if ( m_xControl.is() )
{ {
// Peer als Child zu dem FrameWindow // Peer as Child to the FrameWindow
m_xControlContainer->addControl("GridControl", m_xControl); m_xControlContainer->addControl("GridControl", m_xControl);
m_xGridWin=uno::Reference< awt::XWindow > (m_xControl, UNO_QUERY ); m_xGridWin=uno::Reference< awt::XWindow > (m_xControl, UNO_QUERY );
// #100312# ----- // #100312#
m_xDispatchProviderInterception=uno::Reference< frame::XDispatchProviderInterception > (m_xControl, UNO_QUERY ); m_xDispatchProviderInterception=uno::Reference< frame::XDispatchProviderInterception > (m_xControl, UNO_QUERY );
m_xGridWin->setVisible( sal_True ); m_xGridWin->setVisible( sal_True );
m_xControl->setDesignMode( sal_True ); m_xControl->setDesignMode( sal_True );
// initially switch on the desing mode - switch it off _after_ loading the form // initially switch on the design mode - switch it off _after_ loading the form
::Size aSize = GetOutputSizePixel(); ::Size aSize = GetOutputSizePixel();
m_xGridWin->setPosSize(0, 0, aSize.Width(),aSize.Height(), awt::PosSize::POSSIZE); m_xGridWin->setPosSize(0, 0, aSize.Width(),aSize.Height(), awt::PosSize::POSSIZE);
...@@ -169,7 +161,6 @@ namespace bib ...@@ -169,7 +161,6 @@ namespace bib
} }
} }
//---------------------------------------------------------------------
void BibGridwin::disposeGridWin() void BibGridwin::disposeGridWin()
{ {
if ( m_xControl.is() ) if ( m_xControl.is() )
...@@ -183,14 +174,12 @@ namespace bib ...@@ -183,14 +174,12 @@ namespace bib
} }
} }
//---------------------------------------------------------------------
void BibGridwin::GetFocus() void BibGridwin::GetFocus()
{ {
if(m_xGridWin.is()) if(m_xGridWin.is())
m_xGridWin->setFocus(); m_xGridWin->setFocus();
} }
//---------------------------------------------------------------------
BibBeamer::BibBeamer( Window* _pParent, BibDataManager* _pDM, WinBits _nStyle ) BibBeamer::BibBeamer( Window* _pParent, BibDataManager* _pDM, WinBits _nStyle )
:BibSplitWindow( _pParent, _nStyle | WB_NOSPLITDRAW ) :BibSplitWindow( _pParent, _nStyle | WB_NOSPLITDRAW )
,pDatMan( _pDM ) ,pDatMan( _pDM )
...@@ -204,7 +193,6 @@ namespace bib ...@@ -204,7 +193,6 @@ namespace bib
connectForm( pDatMan ); connectForm( pDatMan );
} }
//---------------------------------------------------------------------
BibBeamer::~BibBeamer() BibBeamer::~BibBeamer()
{ {
if ( isFormConnected() ) if ( isFormConnected() )
...@@ -230,7 +218,6 @@ namespace bib ...@@ -230,7 +218,6 @@ namespace bib
} }
//---------------------------------------------------------------------
void BibBeamer::createToolBar() void BibBeamer::createToolBar()
{ {
pToolBar= new BibToolBar(this, LINK( this, BibBeamer, RecalcLayout_Impl )); pToolBar= new BibToolBar(this, LINK( this, BibBeamer, RecalcLayout_Impl ));
...@@ -240,7 +227,6 @@ namespace bib ...@@ -240,7 +227,6 @@ namespace bib
pToolBar->SetXController( m_xController ); pToolBar->SetXController( m_xController );
} }
//---------------------------------------------------------------------
void BibBeamer::createGridWin() void BibBeamer::createGridWin()
{ {
pGridWin = new BibGridwin(this,0); pGridWin = new BibGridwin(this,0);
...@@ -250,7 +236,6 @@ namespace bib ...@@ -250,7 +236,6 @@ namespace bib
pGridWin->createGridWin( pDatMan->updateGridModel() ); pGridWin->createGridWin( pDatMan->updateGridModel() );
} }
//---------------------------------------------------------------------
Reference< awt::XControlContainer > BibBeamer::getControlContainer() Reference< awt::XControlContainer > BibBeamer::getControlContainer()
{ {
Reference< awt::XControlContainer > xReturn; Reference< awt::XControlContainer > xReturn;
...@@ -259,7 +244,7 @@ namespace bib ...@@ -259,7 +244,7 @@ namespace bib
return xReturn; return xReturn;
} }
// #100312# ----------------------------------------------------------- // #100312#
Reference< frame::XDispatchProviderInterception > BibBeamer::getDispatchProviderInterception() Reference< frame::XDispatchProviderInterception > BibBeamer::getDispatchProviderInterception()
{ {
Reference< frame::XDispatchProviderInterception > xReturn; Reference< frame::XDispatchProviderInterception > xReturn;
...@@ -268,7 +253,6 @@ namespace bib ...@@ -268,7 +253,6 @@ namespace bib
return xReturn; return xReturn;
} }
//---------------------------------------------------------------------
void BibBeamer::SetXController(const uno::Reference< frame::XController > & xCtr) void BibBeamer::SetXController(const uno::Reference< frame::XController > & xCtr)
{ {
m_xController = xCtr; m_xController = xCtr;
...@@ -278,14 +262,12 @@ namespace bib ...@@ -278,14 +262,12 @@ namespace bib
} }
//---------------------------------------------------------------------
void BibBeamer::GetFocus() void BibBeamer::GetFocus()
{ {
if( pGridWin ) if( pGridWin )
pGridWin->GrabFocus(); pGridWin->GrabFocus();
} }
//---------------------------------------------------------------------
IMPL_LINK( BibBeamer, RecalcLayout_Impl, void*, /*pVoid*/ ) IMPL_LINK( BibBeamer, RecalcLayout_Impl, void*, /*pVoid*/ )
{ {
long nHeight = pToolBar->GetSizePixel().Height(); long nHeight = pToolBar->GetSizePixel().Height();
...@@ -293,8 +275,6 @@ namespace bib ...@@ -293,8 +275,6 @@ namespace bib
return 0L; return 0L;
} }
//.........................................................................
} // namespace bib } // namespace bib
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -557,7 +557,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen ...@@ -557,7 +557,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
{ {
sal_uInt32 nCount = 0; sal_uInt32 nCount = 0;
xSet->getPropertyValue("RowCount") >>= nCount; xSet->getPropertyValue("RowCount") >>= nCount;
// naechste position festellen // determine next position
sal_Bool bSuccess = sal_False; sal_Bool bSuccess = sal_False;
sal_Bool bLeft = sal_False; sal_Bool bLeft = sal_False;
sal_Bool bRight = sal_False; sal_Bool bRight = sal_False;
...@@ -577,7 +577,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen ...@@ -577,7 +577,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
bSuccess = xConfirm->confirmDelete(aEvent); bSuccess = xConfirm->confirmDelete(aEvent);
} }
// das Ding loeschen // delete it
if (bSuccess) if (bSuccess)
xUpdateCursor->deleteRow(); xUpdateCursor->deleteRow();
} }
...@@ -592,18 +592,18 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen ...@@ -592,18 +592,18 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
else else
{ {
sal_Bool bCanInsert = canInsertRecords(xSet); sal_Bool bCanInsert = canInsertRecords(xSet);
// kann noch ein Datensatz eingefuegt weden // can another entry be inserted?
try try
{ {
if (bCanInsert) if (bCanInsert)
xUpdateCursor->moveToInsertRow(); xUpdateCursor->moveToInsertRow();
else else
// Datensatz bewegen um Stati neu zu setzen // move data entry to reset Stati
xCursor->first(); xCursor->first();
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("DeleteRecord : exception caught !"); OSL_FAIL("DeleteRecord: exception caught!");
} }
} }
} }
...@@ -644,7 +644,6 @@ IMPL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void*, EMPTYARG ) ...@@ -644,7 +644,6 @@ IMPL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void*, EMPTYARG )
return 0; return 0;
}; };
//-----------------------------------------------------------------------------
void BibFrameController_Impl::addStatusListener( void BibFrameController_Impl::addStatusListener(
const uno::Reference< frame::XStatusListener > & aListener, const uno::Reference< frame::XStatusListener > & aListener,
const util::URL& aURL) const util::URL& aURL)
...@@ -654,7 +653,7 @@ void BibFrameController_Impl::addStatusListener( ...@@ -654,7 +653,7 @@ void BibFrameController_Impl::addStatusListener(
// create a new Reference and insert into listener array // create a new Reference and insert into listener array
aStatusListeners.push_back( new BibStatusDispatch( aURL, aListener ) ); aStatusListeners.push_back( new BibStatusDispatch( aURL, aListener ) );
// den ersten Status synchron zusenden // send first status synchronously
FeatureStateEvent aEvent; FeatureStateEvent aEvent;
aEvent.FeatureURL = aURL; aEvent.FeatureURL = aURL;
aEvent.Requery = sal_False; aEvent.Requery = sal_False;
...@@ -777,7 +776,7 @@ void BibFrameController_Impl::addStatusListener( ...@@ -777,7 +776,7 @@ void BibFrameController_Impl::addStatusListener(
} }
aListener->statusChanged( aEvent ); aListener->statusChanged( aEvent );
} }
//-----------------------------------------------------------------------------
void BibFrameController_Impl::removeStatusListener( void BibFrameController_Impl::removeStatusListener(
const uno::Reference< frame::XStatusListener > & aObject, const util::URL& aURL) const uno::Reference< frame::XStatusListener > & aObject, const util::URL& aURL)
throw (::com::sun::star::uno::RuntimeException) throw (::com::sun::star::uno::RuntimeException)
...@@ -800,7 +799,7 @@ void BibFrameController_Impl::removeStatusListener( ...@@ -800,7 +799,7 @@ void BibFrameController_Impl::removeStatusListener(
} }
} }
} }
//-----------------------------------------------------------------------------
void BibFrameController_Impl::RemoveFilter() void BibFrameController_Impl::RemoveFilter()
{ {
OUString aQuery; OUString aQuery;
...@@ -841,7 +840,7 @@ void BibFrameController_Impl::RemoveFilter() ...@@ -841,7 +840,7 @@ void BibFrameController_Impl::RemoveFilter()
} }
} }
//-----------------------------------------------------------------------------
void BibFrameController_Impl::ChangeDataSource(const uno::Sequence< beans::PropertyValue >& aArgs) void BibFrameController_Impl::ChangeDataSource(const uno::Sequence< beans::PropertyValue >& aArgs)
{ {
const beans::PropertyValue* pPropertyValue = aArgs.getConstArray(); const beans::PropertyValue* pPropertyValue = aArgs.getConstArray();
......
...@@ -62,7 +62,6 @@ static ::Point lcl_MovePoint(const FixedText& rFixedText) ...@@ -62,7 +62,6 @@ static ::Point lcl_MovePoint(const FixedText& rFixedText)
return aRet; return aRet;
} }
//-----------------------------------------------------------------------------
static OUString lcl_GetColumnName( const Mapping* pMapping, sal_uInt16 nIndexPos ) static OUString lcl_GetColumnName( const Mapping* pMapping, sal_uInt16 nIndexPos )
{ {
BibConfig* pBibConfig = BibModul::GetConfig(); BibConfig* pBibConfig = BibModul::GetConfig();
...@@ -394,7 +393,7 @@ BibGeneralPage::BibGeneralPage(Window* pParent, BibDataManager* pMan): ...@@ -394,7 +393,7 @@ BibGeneralPage::BibGeneralPage(Window* pParent, BibDataManager* pMan):
if(!sTableErrorString.isEmpty()) if(!sTableErrorString.isEmpty())
sTableErrorString = sErrorPrefix + sTableErrorString; sTableErrorString = sErrorPrefix + sTableErrorString;
} }
//-----------------------------------------------------------------------------
BibGeneralPage::~BibGeneralPage() BibGeneralPage::~BibGeneralPage()
{ {
if (pDatMan && xPosListener.is()) if (pDatMan && xPosListener.is())
...@@ -430,7 +429,7 @@ void BibGeneralPage::CommitActiveControl() ...@@ -430,7 +429,7 @@ void BibGeneralPage::CommitActiveControl()
xBound->commit(); xBound->commit();
} }
} }
//-----------------------------------------------------------------------------
void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::Point& rPos, const ::Size& rSize, void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::Point& rPos, const ::Size& rSize,
OUString& rErrorString, OUString aColumnUIName, const OString& sHelpId, sal_uInt16 nIndexInFTArray ) OUString& rErrorString, OUString aColumnUIName, const OString& sHelpId, sal_uInt16 nIndexInFTArray )
{ {
...@@ -453,7 +452,7 @@ void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::P ...@@ -453,7 +452,7 @@ void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::P
rErrorString += MnemonicGenerator::EraseAllMnemonicChars( aColumnUIName ); rErrorString += MnemonicGenerator::EraseAllMnemonicChars( aColumnUIName );
} }
} }
//-----------------------------------------------------------------------------
uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
const OUString& rName, const OUString& rName,
::Point rPos, ::Size rSize, const OString& sHelpId, sal_Int16& rIndex ) ::Point rPos, ::Size rSize, const OString& sHelpId, sal_Int16& rIndex )
...@@ -528,7 +527,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( ...@@ -528,7 +527,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
{ {
xControl->setModel( xCtrModel); xControl->setModel( xCtrModel);
// Peer als Child zu dem FrameWindow // Peer as Child to the FrameWindow
xCtrlContnr->addControl(rName, xControl); xCtrlContnr->addControl(rName, xControl);
uno::Reference< awt::XWindow > xCtrWin(xControl, UNO_QUERY ); uno::Reference< awt::XWindow > xCtrWin(xControl, UNO_QUERY );
xCtrWin->addFocusListener( this ); xCtrWin->addFocusListener( this );
...@@ -542,7 +541,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( ...@@ -542,7 +541,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
} }
xCtrWin->setVisible( sal_True ); xCtrWin->setVisible( sal_True );
xControl->setDesignMode( sal_True ); xControl->setDesignMode( sal_True );
// initially switch on the desing mode - switch it off _after_ loading the form // initially switch on the design mode - switch it off _after_ loading the form
xCtrWin->setPosSize(rPos.X(), rPos.Y(), rSize.Width(), xCtrWin->setPosSize(rPos.X(), rPos.Y(), rSize.Width(),
rSize.Height(), awt::PosSize::POSSIZE); rSize.Height(), awt::PosSize::POSSIZE);
...@@ -553,7 +552,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( ...@@ -553,7 +552,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
catch(Exception& rEx) catch(Exception& rEx)
{ {
(void) rEx; // make compiler happy (void) rEx; // make compiler happy
OSL_FAIL("BibGeneralPage::AddXControl: something went wrong !"); OSL_FAIL("BibGeneralPage::AddXControl: something went wrong!");
} }
return xCtrModel; return xCtrModel;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment