summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/detailpages.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2014-07-27 13:56:58 +0200
committerDavid Tardon <dtardon@redhat.com>2014-07-28 12:34:26 +0000
commit03fe3215e35d07319eac4a0e7a8d6e5563244492 (patch)
tree5b2f163d39c08998ce504fe87fddb9292c86d97a /dbaccess/source/ui/dlg/detailpages.cxx
parent8a406391b1af4bd4ae1b73806b80e11a58340351 (diff)
PAGE_DBWIZARD_TEXT, PAGE_TEXT, DLG_TEXT_CONNECTION_SETTINGS conversion to .ui
Change-Id: Iea5105cc33b436e9c0728df799b1ceb63f20e46e Reviewed-on: https://gerrit.libreoffice.org/10579 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/dlg/detailpages.cxx')
-rw-r--r--dbaccess/source/ui/dlg/detailpages.cxx46
1 files changed, 42 insertions, 4 deletions
diff --git a/dbaccess/source/ui/dlg/detailpages.cxx b/dbaccess/source/ui/dlg/detailpages.cxx
index f4ffd3dadee0..05802b95d91e 100644
--- a/dbaccess/source/ui/dlg/detailpages.cxx
+++ b/dbaccess/source/ui/dlg/detailpages.cxx
@@ -115,6 +115,45 @@ namespace dbaui
FreeResource();
}
+ OCommonBehaviourTabPage::OCommonBehaviourTabPage(Window* pParent, const OString& rId, const OUString& rUIXMLDescription, const SfxItemSet& _rCoreAttrs,
+ sal_uInt32 nControlFlags)
+
+ :OGenericAdministrationPage(pParent, rId, rUIXMLDescription, _rCoreAttrs)
+ ,m_pOptionsLabel(NULL)
+ ,m_pOptions(NULL)
+ ,m_pDataConvertFixedLine(NULL)
+ ,m_pCharsetLabel(NULL)
+ ,m_pCharset(NULL)
+ ,m_pAutoFixedLine(NULL)
+ ,m_pAutoRetrievingEnabled(NULL)
+ ,m_pAutoIncrementLabel(NULL)
+ ,m_pAutoIncrement(NULL)
+ ,m_pAutoRetrievingLabel(NULL)
+ ,m_pAutoRetrieving(NULL)
+ ,m_nControlFlags(nControlFlags)
+ {
+
+ if ((m_nControlFlags & CBTP_USE_OPTIONS) == CBTP_USE_OPTIONS)
+ {
+ m_pOptionsLabel = get<FixedText>("optionslabel");
+ m_pOptionsLabel->Show();
+ m_pOptions = get<Edit>("options");
+ m_pOptions->Show();
+ m_pOptions->SetModifyHdl(getControlModifiedLink());
+ }
+
+ if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
+ {
+ m_pDataConvertLabel = get<FixedText>("charsetheader");
+ m_pDataConvertLabel->Show();
+ m_pCharsetLabel = get<FixedText>("charsetlabel");
+ m_pCharsetLabel->Show();
+ m_pCharset = get<CharSetListBox>("charset");
+ m_pCharset->Show();
+ m_pCharset->SetSelectHdl(getControlModifiedLink());
+ }
+ }
+
OCommonBehaviourTabPage::~OCommonBehaviourTabPage()
{
DELETEZ(m_pOptionsLabel);
@@ -143,7 +182,7 @@ namespace dbaui
if ((m_nControlFlags & CBTP_USE_CHARSET) == CBTP_USE_CHARSET)
{
- _rControlList.push_back(new ODisableWrapper<FixedLine>(m_pDataConvertFixedLine));
+ //_rControlList.push_back(new ODisableWrapper<FixedLine>(m_pDataConvertFixedLine));
_rControlList.push_back(new ODisableWrapper<FixedText>(m_pCharsetLabel));
}
}
@@ -788,11 +827,10 @@ namespace dbaui
// OTextDetailsPage
OTextDetailsPage::OTextDetailsPage( Window* pParent, const SfxItemSet& _rCoreAttrs )
- :OCommonBehaviourTabPage(pParent, PAGE_TEXT, _rCoreAttrs, 0, false )
+ :OCommonBehaviourTabPage(pParent, "EmptyPage", "dbaccess/ui/emptypage.ui", _rCoreAttrs, 0)
{
- m_pTextConnectionHelper = new OTextConnectionHelper( this, TC_EXTENSION | TC_HEADER | TC_SEPARATORS | TC_CHARSET );
- FreeResource();
+ m_pTextConnectionHelper = new OTextConnectionHelper( get<VclVBox>("EmptyPage"), TC_EXTENSION | TC_HEADER | TC_SEPARATORS | TC_CHARSET );
}
OTextDetailsPage::~OTextDetailsPage()