1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include "formlinkdialog.hxx"
23 #include "modulepcr.hxx"
24 #include <strings.hrc>
25 #include "formstrings.hxx"
26 #include <sal/log.hxx>
27 #include <comphelper/diagnose_ex.hxx>
29 #include <vcl/svapp.hxx>
30 #include <connectivity/dbtools.hxx>
31 #include <connectivity/dbexception.hxx>
32 #include <comphelper/sequence.hxx>
34 #include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
35 #include <com/sun/star/sdbcx/XKeysSupplier.hpp>
36 #include <com/sun/star/sdbcx/KeyType.hpp>
37 #include <com/sun/star/container/XNameAccess.hpp>
38 #include <com/sun/star/sdbcx/XTablesSupplier.hpp>
39 #include <com/sun/star/sdbc/XRowSet.hpp>
40 #include <com/sun/star/sdb/CommandType.hpp>
41 #include <com/sun/star/sdb/SQLContext.hpp>
42 #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
48 using namespace ::com::sun::star::uno
;
49 using namespace ::com::sun::star::lang
;
50 using namespace ::com::sun::star::sdb
;
51 using namespace ::com::sun::star::sdbc
;
52 using namespace ::com::sun::star::sdbcx
;
53 using namespace ::com::sun::star::beans
;
54 using namespace ::com::sun::star::container
;
62 std::unique_ptr
<weld::ComboBox
> m_xDetailColumn
;
63 std::unique_ptr
<weld::ComboBox
> m_xMasterColumn
;
65 Link
<FieldLinkRow
&,void> m_aLinkChangeHandler
;
68 FieldLinkRow(std::unique_ptr
<weld::ComboBox
> xDetailColumn
,
69 std::unique_ptr
<weld::ComboBox
> xMasterColumn
);
72 void SetLinkChangeHandler( const Link
<FieldLinkRow
&,void>& _rHdl
) { m_aLinkChangeHandler
= _rHdl
; }
79 /** retrieves the selected field name for either the master or the detail field
80 @return <TRUE/> if and only a valid field is selected
82 bool GetFieldName( LinkParticipant _eWhich
, OUString
& /* [out] */ _rName
) const;
83 void SetFieldName( LinkParticipant _eWhich
, const OUString
& _rName
);
85 void fillList( LinkParticipant _eWhich
, const Sequence
< OUString
>& _rFieldNames
);
89 m_xDetailColumn
->show();
90 m_xMasterColumn
->show();
94 DECL_LINK( OnFieldNameChanged
, weld::ComboBox
&, void );
98 FieldLinkRow::FieldLinkRow(std::unique_ptr
<weld::ComboBox
> xDetailColumn
,
99 std::unique_ptr
<weld::ComboBox
> xMasterColumn
)
100 : m_xDetailColumn(std::move(xDetailColumn
))
101 , m_xMasterColumn(std::move(xMasterColumn
))
103 m_xDetailColumn
->connect_changed( LINK( this, FieldLinkRow
, OnFieldNameChanged
) );
104 m_xMasterColumn
->connect_changed( LINK( this, FieldLinkRow
, OnFieldNameChanged
) );
107 void FieldLinkRow::fillList( LinkParticipant _eWhich
, const Sequence
< OUString
>& _rFieldNames
)
109 weld::ComboBox
* pBox
= ( _eWhich
== eDetailField
) ? m_xDetailColumn
.get() : m_xMasterColumn
.get();
111 const OUString
* pFieldName
= _rFieldNames
.getConstArray();
112 const OUString
* pFieldNameEnd
= pFieldName
+ _rFieldNames
.getLength();
113 for ( ; pFieldName
!= pFieldNameEnd
; ++pFieldName
)
114 pBox
->append_text( *pFieldName
);
117 bool FieldLinkRow::GetFieldName( LinkParticipant _eWhich
, OUString
& /* [out] */ _rName
) const
119 const weld::ComboBox
* pBox
= ( _eWhich
== eDetailField
) ? m_xDetailColumn
.get() : m_xMasterColumn
.get();
120 _rName
= pBox
->get_active_text();
121 return !_rName
.isEmpty();
124 void FieldLinkRow::SetFieldName( LinkParticipant _eWhich
, const OUString
& _rName
)
126 weld::ComboBox
* pBox
= ( _eWhich
== eDetailField
) ? m_xDetailColumn
.get() : m_xMasterColumn
.get();
127 pBox
->set_entry_text( _rName
);
130 IMPL_LINK_NOARG( FieldLinkRow
, OnFieldNameChanged
, weld::ComboBox
&, void )
132 m_aLinkChangeHandler
.Call( *this );
137 FormLinkDialog::FormLinkDialog(weld::Window
* _pParent
, const Reference
< XPropertySet
>& _rxDetailForm
,
138 const Reference
< XPropertySet
>& _rxMasterForm
, const Reference
< XComponentContext
>& _rxContext
,
139 const OUString
& _sExplanation
,
140 OUString _sDetailLabel
,
141 OUString _sMasterLabel
)
142 : GenericDialogController(_pParent
, "modules/spropctrlr/ui/formlinksdialog.ui", "FormLinks")
143 , m_xContext ( _rxContext
)
144 , m_xDetailForm( _rxDetailForm
)
145 , m_xMasterForm( _rxMasterForm
)
146 , m_sDetailLabel(std::move(_sDetailLabel
))
147 , m_sMasterLabel(std::move(_sMasterLabel
))
148 , m_xExplanation(m_xBuilder
->weld_label("explanationLabel"))
149 , m_xDetailLabel(m_xBuilder
->weld_label("detailLabel"))
150 , m_xMasterLabel(m_xBuilder
->weld_label("masterLabel"))
151 , m_xRow1(std::make_unique
<FieldLinkRow
>(m_xBuilder
->weld_combo_box("detailCombobox1"),
152 m_xBuilder
->weld_combo_box("masterCombobox1")))
153 , m_xRow2(std::make_unique
<FieldLinkRow
>(m_xBuilder
->weld_combo_box("detailCombobox2"),
154 m_xBuilder
->weld_combo_box("masterCombobox2")))
155 , m_xRow3(std::make_unique
<FieldLinkRow
>(m_xBuilder
->weld_combo_box("detailCombobox3"),
156 m_xBuilder
->weld_combo_box("masterCombobox3")))
157 , m_xRow4(std::make_unique
<FieldLinkRow
>(m_xBuilder
->weld_combo_box("detailCombobox4"),
158 m_xBuilder
->weld_combo_box("masterCombobox4")))
159 , m_xOK(m_xBuilder
->weld_button("ok"))
160 , m_xSuggest(m_xBuilder
->weld_button("suggestButton"))
166 m_xDialog
->set_size_request(600, -1);
168 if ( !_sExplanation
.isEmpty() )
169 m_xExplanation
->set_label(_sExplanation
);
171 m_xSuggest
->connect_clicked(LINK(this, FormLinkDialog
, OnSuggest
));
172 m_xRow1
->SetLinkChangeHandler( LINK( this, FormLinkDialog
, OnFieldChanged
) );
173 m_xRow2
->SetLinkChangeHandler( LINK( this, FormLinkDialog
, OnFieldChanged
) );
174 m_xRow3
->SetLinkChangeHandler( LINK( this, FormLinkDialog
, OnFieldChanged
) );
175 m_xRow4
->SetLinkChangeHandler( LINK( this, FormLinkDialog
, OnFieldChanged
) );
177 Application::PostUserEvent(LINK(this, FormLinkDialog
, OnInitialize
));
182 FormLinkDialog::~FormLinkDialog()
186 void FormLinkDialog::commitLinkPairs()
188 // collect the field lists from the rows
189 std::vector
< OUString
> aDetailFields
; aDetailFields
.reserve( 4 );
190 std::vector
< OUString
> aMasterFields
; aMasterFields
.reserve( 4 );
192 const FieldLinkRow
* aRows
[] = {
193 m_xRow1
.get(), m_xRow2
.get(), m_xRow3
.get(), m_xRow4
.get()
196 for (const FieldLinkRow
* aRow
: aRows
)
198 OUString sDetailField
, sMasterField
;
199 aRow
->GetFieldName( FieldLinkRow::eDetailField
, sDetailField
);
200 aRow
->GetFieldName( FieldLinkRow::eMasterField
, sMasterField
);
201 if ( sDetailField
.isEmpty() && sMasterField
.isEmpty() )
204 aDetailFields
.push_back( sDetailField
);
205 aMasterFields
.push_back( sMasterField
);
208 // and set as property values
211 if ( m_xDetailForm
.is() )
213 m_xDetailForm
->setPropertyValue( PROPERTY_DETAILFIELDS
, Any( Sequence
< OUString
>( aDetailFields
.data(), aDetailFields
.size() ) ) );
214 m_xDetailForm
->setPropertyValue( PROPERTY_MASTERFIELDS
, Any( Sequence
< OUString
>( aMasterFields
.data(), aMasterFields
.size() ) ) );
217 catch( const Exception
& )
219 TOOLS_WARN_EXCEPTION("extensions.propctrlr",
220 "caught an exception while setting the properties!");
224 short FormLinkDialog::run()
226 short nResult
= GenericDialogController::run();
228 if ( RET_OK
== nResult
)
234 void FormLinkDialog::initializeFieldLists()
236 Sequence
< OUString
> sDetailFields
;
237 getFormFields( m_xDetailForm
, sDetailFields
);
239 Sequence
< OUString
> sMasterFields
;
240 getFormFields( m_xMasterForm
, sMasterFields
);
242 FieldLinkRow
* aRows
[] = {
243 m_xRow1
.get(), m_xRow2
.get(), m_xRow3
.get(), m_xRow4
.get()
245 for (FieldLinkRow
* aRow
: aRows
)
247 aRow
->fillList( FieldLinkRow::eDetailField
, sDetailFields
);
248 aRow
->fillList( FieldLinkRow::eMasterField
, sMasterFields
);
254 void FormLinkDialog::initializeColumnLabels()
256 // label for the detail form
257 OUString sDetailType
= getFormDataSourceType( m_xDetailForm
);
258 if ( sDetailType
.isEmpty() )
260 if ( m_sDetailLabel
.isEmpty() )
262 m_sDetailLabel
= PcrRes(STR_DETAIL_FORM
);
264 sDetailType
= m_sDetailLabel
;
266 m_xDetailLabel
->set_label( sDetailType
);
268 // label for the master form
269 OUString sMasterType
= getFormDataSourceType( m_xMasterForm
);
270 if ( sMasterType
.isEmpty() )
272 if ( m_sMasterLabel
.isEmpty() )
274 m_sMasterLabel
= PcrRes(STR_MASTER_FORM
);
276 sMasterType
= m_sMasterLabel
;
278 m_xMasterLabel
->set_label( sMasterType
);
281 void FormLinkDialog::initializeFieldRowsFrom( std::vector
< OUString
>& _rDetailFields
, std::vector
< OUString
>& _rMasterFields
)
283 // our UI does allow 4 fields max
284 _rDetailFields
.resize( 4 );
285 _rMasterFields
.resize( 4 );
287 FieldLinkRow
* aRows
[] = {
288 m_xRow1
.get(), m_xRow2
.get(), m_xRow3
.get(), m_xRow4
.get()
290 for ( sal_Int32 i
= 0; i
< 4; ++i
)
292 aRows
[ i
]->SetFieldName( FieldLinkRow::eDetailField
, _rDetailFields
[i
] );
293 aRows
[ i
]->SetFieldName( FieldLinkRow::eMasterField
, _rMasterFields
[i
] );
298 void FormLinkDialog::initializeLinks()
302 Sequence
< OUString
> aDetailFields
;
303 Sequence
< OUString
> aMasterFields
;
305 if ( m_xDetailForm
.is() )
307 m_xDetailForm
->getPropertyValue( PROPERTY_DETAILFIELDS
) >>= aDetailFields
;
308 m_xDetailForm
->getPropertyValue( PROPERTY_MASTERFIELDS
) >>= aMasterFields
;
311 std::vector
< OUString
> aDetailFields1
;
312 comphelper::sequenceToContainer(aDetailFields1
, aDetailFields
);
313 std::vector
< OUString
> aMasterFields1
;
314 comphelper::sequenceToContainer(aMasterFields1
, aMasterFields
);
315 initializeFieldRowsFrom( aDetailFields1
, aMasterFields1
);
317 catch( const Exception
& )
319 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "FormLinkDialog::initializeLinks" );
324 void FormLinkDialog::updateOkButton()
326 // in all rows, there must be either two valid selections, or none at all
327 // If there is at least one row with exactly one valid selection, then the
328 // OKButton needs to be disabled
331 const FieldLinkRow
* aRows
[] = {
332 m_xRow1
.get(), m_xRow2
.get(), m_xRow3
.get(), m_xRow4
.get()
335 for ( sal_Int32 i
= 0; ( i
< 4 ) && bEnable
; ++i
)
337 OUString sNotInterestedInRightNow
;
338 if ( aRows
[ i
]->GetFieldName( FieldLinkRow::eDetailField
, sNotInterestedInRightNow
)
339 != aRows
[ i
]->GetFieldName( FieldLinkRow::eMasterField
, sNotInterestedInRightNow
)
344 m_xOK
->set_sensitive(bEnable
);
347 OUString
FormLinkDialog::getFormDataSourceType( const Reference
< XPropertySet
>& _rxForm
)
355 sal_Int32 nCommandType
= CommandType::COMMAND
;
358 _rxForm
->getPropertyValue( PROPERTY_COMMANDTYPE
) >>= nCommandType
;
359 _rxForm
->getPropertyValue( PROPERTY_COMMAND
) >>= sCommand
;
361 if ( ( nCommandType
== CommandType::TABLE
)
362 || ( nCommandType
== CommandType::QUERY
)
366 catch( const Exception
& )
368 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "FormLinkDialog::getFormDataSourceType" );
373 void FormLinkDialog::getFormFields( const Reference
< XPropertySet
>& _rxForm
, Sequence
< OUString
>& /* [out] */ _rNames
) const
375 _rNames
.realloc( 0 );
377 ::dbtools::SQLExceptionInfo aErrorInfo
;
381 weld::WaitObject
aWaitCursor(m_xDialog
.get());
383 OSL_ENSURE( _rxForm
.is(), "FormLinkDialog::getFormFields: invalid form!" );
385 sal_Int32 nCommandType
= CommandType::COMMAND
;
387 _rxForm
->getPropertyValue( PROPERTY_COMMANDTYPE
) >>= nCommandType
;
388 _rxForm
->getPropertyValue( PROPERTY_COMMAND
) >>= sCommand
;
390 Reference
< XConnection
> xConnection
;
391 ensureFormConnection( _rxForm
, xConnection
);
393 _rNames
= ::dbtools::getFieldNamesByCommandDescriptor(
400 catch (const SQLContext
& e
) { aErrorInfo
= e
; }
401 catch (const SQLWarning
& e
) { aErrorInfo
= e
; }
402 catch (const SQLException
& e
) { aErrorInfo
= e
; }
403 catch( const Exception
& )
405 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "FormLinkDialog::getFormFields: caught a non-SQL exception!" );
408 if ( !aErrorInfo
.isValid() )
411 OUString sErrorMessage
;
413 sErrorMessage
= PcrRes(STR_ERROR_RETRIEVING_COLUMNS
);
414 sErrorMessage
= sErrorMessage
.replaceFirst("#", sCommand
);
417 SQLContext
aContext(sErrorMessage
, {}, {}, 0, aErrorInfo
.get(), {});
418 ::dbtools::showError(aContext
, m_xDialog
->GetXWindow(), m_xContext
);
421 void FormLinkDialog::ensureFormConnection( const Reference
< XPropertySet
>& _rxFormProps
, Reference
< XConnection
>& /* [out] */ _rxConnection
) const
423 OSL_PRECOND( _rxFormProps
.is(), "FormLinkDialog::ensureFormConnection: invalid form!" );
424 if ( !_rxFormProps
.is() )
426 if ( _rxFormProps
->getPropertySetInfo()->hasPropertyByName(PROPERTY_ACTIVE_CONNECTION
) )
427 _rxConnection
.set(_rxFormProps
->getPropertyValue(PROPERTY_ACTIVE_CONNECTION
),UNO_QUERY
);
429 if ( !_rxConnection
.is() )
430 _rxConnection
= ::dbtools::connectRowset( Reference
< XRowSet
>( _rxFormProps
, UNO_QUERY
), m_xContext
, nullptr );
434 void FormLinkDialog::getConnectionMetaData( const Reference
< XPropertySet
>& _rxFormProps
, Reference
< XDatabaseMetaData
>& /* [out] */ _rxMeta
)
436 if ( _rxFormProps
.is() )
438 Reference
< XConnection
> xConnection
;
439 if ( !::dbtools::isEmbeddedInDatabase( _rxFormProps
, xConnection
) )
440 _rxFormProps
->getPropertyValue( PROPERTY_ACTIVE_CONNECTION
) >>= xConnection
;
441 if ( xConnection
.is() )
442 _rxMeta
= xConnection
->getMetaData();
447 Reference
< XPropertySet
> FormLinkDialog::getCanonicUnderlyingTable( const Reference
< XPropertySet
>& _rxFormProps
) const
449 Reference
< XPropertySet
> xTable
;
452 Reference
< XTablesSupplier
> xTablesInForm( ::dbtools::getCurrentSettingsComposer( _rxFormProps
, m_xContext
, nullptr ), UNO_QUERY
);
453 Reference
< XNameAccess
> xTables
;
454 if ( xTablesInForm
.is() )
455 xTables
= xTablesInForm
->getTables();
456 Sequence
< OUString
> aTableNames
;
458 aTableNames
= xTables
->getElementNames();
460 if ( aTableNames
.getLength() == 1 )
462 xTables
->getByName( aTableNames
[ 0 ] ) >>= xTable
;
463 OSL_ENSURE( xTable
.is(), "FormLinkDialog::getCanonicUnderlyingTable: invalid table!" );
466 catch( const Exception
& )
468 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "FormLinkDialog::getCanonicUnderlyingTable" );
474 bool FormLinkDialog::getExistingRelation( const Reference
< XPropertySet
>& _rxLHS
, const Reference
< XPropertySet
>& /*_rxRHS*/,
475 // TODO: fix the usage of _rxRHS. This is issue #i81956#.
476 std::vector
< OUString
>& _rLeftFields
, std::vector
< OUString
>& _rRightFields
)
480 Reference
< XKeysSupplier
> xSuppKeys( _rxLHS
, UNO_QUERY
);
481 Reference
< XIndexAccess
> xKeys
;
482 if ( xSuppKeys
.is() )
483 xKeys
= xSuppKeys
->getKeys();
487 Reference
< XPropertySet
> xKey
;
488 Reference
< XColumnsSupplier
> xKeyColSupp( xKey
, UNO_QUERY
);
489 Reference
< XIndexAccess
> xKeyColumns
;
490 Reference
< XPropertySet
> xKeyColumn
;
491 OUString sColumnName
, sRelatedColumnName
;
493 const sal_Int32 keyCount
= xKeys
->getCount();
494 for ( sal_Int32 key
= 0; key
< keyCount
; ++key
)
496 xKeys
->getByIndex( key
) >>= xKey
;
497 sal_Int32 nKeyType
= 0;
498 xKey
->getPropertyValue("Type") >>= nKeyType
;
499 if ( nKeyType
!= KeyType::FOREIGN
)
503 xKeyColSupp
.set(xKey
, css::uno::UNO_QUERY
);
504 if ( xKeyColSupp
.is() )
505 xKeyColumns
.set(xKeyColSupp
->getColumns(), css::uno::UNO_QUERY
);
506 OSL_ENSURE( xKeyColumns
.is(), "FormLinkDialog::getExistingRelation: could not obtain the columns for the key!" );
508 if ( !xKeyColumns
.is() )
511 const sal_Int32 columnCount
= xKeyColumns
->getCount();
512 _rLeftFields
.resize( columnCount
);
513 _rRightFields
.resize( columnCount
);
514 for ( sal_Int32 column
= 0; column
< columnCount
; ++column
)
517 xKeyColumns
->getByIndex( column
) >>= xKeyColumn
;
518 OSL_ENSURE( xKeyColumn
.is(), "FormLinkDialog::getExistingRelation: invalid key column!" );
519 if ( xKeyColumn
.is() )
521 xKeyColumn
->getPropertyValue( PROPERTY_NAME
) >>= sColumnName
;
522 xKeyColumn
->getPropertyValue("RelatedColumn") >>= sRelatedColumnName
;
524 _rLeftFields
[ column
] = sColumnName
;
525 _rRightFields
[ column
] = sRelatedColumnName
;
531 catch( const Exception
& )
533 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "FormLinkDialog::getExistingRelation" );
536 return ( !_rLeftFields
.empty() ) && ( !_rLeftFields
[ 0 ].isEmpty() );
540 void FormLinkDialog::initializeSuggest()
542 if ( !m_xDetailForm
.is() || !m_xMasterForm
.is() )
547 // only show the button when both forms are based on the same data source
548 OUString sMasterDS
, sDetailDS
;
549 m_xMasterForm
->getPropertyValue( PROPERTY_DATASOURCE
) >>= sMasterDS
;
550 m_xDetailForm
->getPropertyValue( PROPERTY_DATASOURCE
) >>= sDetailDS
;
551 bool bEnable
= ( sMasterDS
== sDetailDS
);
553 // only show the button when the connection supports relations
556 Reference
< XDatabaseMetaData
> xMeta
;
557 getConnectionMetaData( m_xDetailForm
, xMeta
);
558 OSL_ENSURE( xMeta
.is(), "FormLinkDialog::initializeSuggest: unable to retrieve the meta data for the connection!" );
561 bEnable
= xMeta
.is() && xMeta
->supportsIntegrityEnhancementFacility();
563 catch(const Exception
&)
569 // only enable the button if there is a "canonic" table underlying both forms
570 Reference
< XPropertySet
> xDetailTable
, xMasterTable
;
573 xDetailTable
= getCanonicUnderlyingTable( m_xDetailForm
);
574 xMasterTable
= getCanonicUnderlyingTable( m_xMasterForm
);
575 bEnable
= xDetailTable
.is() && xMasterTable
.is();
578 // only enable the button if there is a relation between both tables
579 m_aRelationDetailColumns
.clear();
580 m_aRelationMasterColumns
.clear();
583 bEnable
= getExistingRelation( xDetailTable
, xMasterTable
, m_aRelationDetailColumns
, m_aRelationMasterColumns
);
584 SAL_WARN_IF( m_aRelationMasterColumns
.size() != m_aRelationDetailColumns
.size(),
585 "extensions.propctrlr",
586 "FormLinkDialog::initializeSuggest: nonsense!" );
587 if ( m_aRelationMasterColumns
.empty() )
588 { // okay, there is no relation "pointing" (via a foreign key) from the detail table to the master table
589 // but perhaps the other way round (would make less sense, but who knows ...)
590 bEnable
= getExistingRelation( xMasterTable
, xDetailTable
, m_aRelationMasterColumns
, m_aRelationDetailColumns
);
594 // only enable the button if the relation contains at most 4 field pairs
597 bEnable
= ( m_aRelationMasterColumns
.size() <= 4 );
600 m_xSuggest
->set_sensitive(bEnable
);
602 catch( const Exception
& )
604 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "FormLinkDialog::initializeSuggest" );
608 IMPL_LINK_NOARG( FormLinkDialog
, OnSuggest
, weld::Button
&, void )
610 initializeFieldRowsFrom( m_aRelationDetailColumns
, m_aRelationMasterColumns
);
613 IMPL_LINK_NOARG( FormLinkDialog
, OnFieldChanged
, FieldLinkRow
&, void )
618 IMPL_LINK_NOARG( FormLinkDialog
, OnInitialize
, void*, void )
620 initializeColumnLabels();
621 initializeFieldLists();
629 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */