filter/AllLangResTarget_xsltdlg.mk                   |    1 
 filter/UIConfig_xsltdlg.mk                           |    1 
 filter/source/xsltdialog/xmlfilterhelpids.hrc        |    1 
 filter/source/xsltdialog/xmlfiltertabdialog.cxx      |   13 -
 filter/source/xsltdialog/xmlfiltertabdialog.src      |    1 
 filter/source/xsltdialog/xmlfiltertabpagexslt.cxx    |  103 ++++-----
 filter/source/xsltdialog/xmlfiltertabpagexslt.hrc    |   41 ---
 filter/source/xsltdialog/xmlfiltertabpagexslt.hxx    |   28 +-
 filter/source/xsltdialog/xmlfiltertabpagexslt.src    |  160 --------------
 filter/uiconfig/ui/xmlfiltertabpagetransformation.ui |  217 +++++++++++++++++++
 10 files changed, 282 insertions(+), 284 deletions(-)

New commits:
commit 9ed24d6625e6e0c29a60a1b04a907243a5c35ca4
Author: abdulmajeed ahmed <aalabdulraz...@kacst.edu.sa>
Date:   Tue Jul 30 14:59:03 2013 +0300

    Convert xml filter tabpage transformation to .ui
    
    Change-Id: Ice69f7d036d414c82f6c313a8dc025f736b97e68
    Reviewed-on: https://gerrit.libreoffice.org/5201
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/filter/AllLangResTarget_xsltdlg.mk 
b/filter/AllLangResTarget_xsltdlg.mk
index 5c79404..316d0a2 100644
--- a/filter/AllLangResTarget_xsltdlg.mk
+++ b/filter/AllLangResTarget_xsltdlg.mk
@@ -31,7 +31,6 @@ $(eval $(call gb_SrsTarget_set_include,filter/xsltdlg,\
 
 $(eval $(call gb_SrsTarget_add_files,filter/xsltdlg,\
        filter/source/xsltdialog/xmlfiltertabdialog.src \
-       filter/source/xsltdialog/xmlfiltertabpagexslt.src \
        filter/source/xsltdialog/xmlfilterdialogstrings.src \
 ))
 
diff --git a/filter/UIConfig_xsltdlg.mk b/filter/UIConfig_xsltdlg.mk
index bb12d74..a54c4e8 100644
--- a/filter/UIConfig_xsltdlg.mk
+++ b/filter/UIConfig_xsltdlg.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_UIConfig_add_uifiles,filter,\
        filter/uiconfig/ui/testxmlfilter \
        filter/uiconfig/ui/xmlfiltersettings \
        filter/uiconfig/ui/xmlfiltertabpagegeneral \
+       filter/uiconfig/ui/xmlfiltertabpagetransformation \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/filter/source/xsltdialog/xmlfilterhelpids.hrc 
b/filter/source/xsltdialog/xmlfilterhelpids.hrc
index b2f18eb..b87c23f 100644
--- a/filter/source/xsltdialog/xmlfilterhelpids.hrc
+++ b/filter/source/xsltdialog/xmlfilterhelpids.hrc
@@ -22,7 +22,6 @@
 #define HID_XML_SOURCE_FILE_DIALOG                          
"FILTER_HID_XML_SOURCE_FILE_DIALOG"
 
 #define HID_XML_FILTER_TABDIALOG                            
"FILTER_HID_XML_FILTER_TABDIALOG"
-#define HID_XML_FILTER_TABPAGE_XSLT                         
"FILTER_HID_XML_FILTER_TABPAGE_XSLT"
 #define HID_XML_FILTER_NAME                                 
"FILTER_HID_XML_FILTER_NAME"
 #define HID_XML_FILTER_INTERFACE_NAME                       
"FILTER_HID_XML_FILTER_INTERFACE_NAME"
 #define HID_XML_FILTER_EXTENSION                            
"FILTER_HID_XML_FILTER_EXTENSION"
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.cxx 
b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
index 509204a..65ed311 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
@@ -26,7 +26,6 @@
 #include "xmlfilterdialogstrings.hrc"
 #include "xmlfiltertabdialog.hxx"
 #include "xmlfiltercommon.hrc"
-#include "xmlfiltertabpagexslt.hrc"
 #include "xmlfiltertabpagebasic.hxx"
 #include "xmlfiltertabpagexslt.hxx"
 #include "xmlfiltersettingsdialog.hxx"
@@ -81,12 +80,12 @@ XMLFilterTabDialog::XMLFilterTabDialog( Window *pParent, 
ResMgr& rResMgr, const
         aCtrlSiz = aSiz;
     }
 
-    mpXSLTPage = new XMLFilterTabPageXSLT( &maTabCtrl, mrResMgr );
+    mpXSLTPage = new XMLFilterTabPageXSLT( &maTabCtrl);
     mpXSLTPage->SetInfo( mpNewInfo );
 
     maTabCtrl.SetTabPage( RID_XML_FILTER_TABPAGE_XSLT, mpXSLTPage );
 
-    aSiz = mpXSLTPage->GetSizePixel();
+    aSiz = mpXSLTPage->GetOptimalSize();
     if ( aCtrlSiz.Width() < aSiz.Width() || aCtrlSiz.Height() < aSiz.Height() )
     {
         maTabCtrl.SetTabPageSizePixel( aSiz );
@@ -221,7 +220,7 @@ bool XMLFilterTabDialog::onOk()
             {
                 nErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
                 nErrorPage = RID_XML_FILTER_TABPAGE_XSLT;
-                pFocusWindow = &(mpXSLTPage->maEDExportXSLT);
+                pFocusWindow = (mpXSLTPage->m_pEDExportXSLT);
             }
         }
     }
@@ -237,7 +236,7 @@ bool XMLFilterTabDialog::onOk()
             {
                 nErrorId = STR_ERROR_IMPORT_XSLT_NOT_FOUND;
                 nErrorPage = RID_XML_FILTER_TABPAGE_XSLT;
-                pFocusWindow = &(mpXSLTPage->maEDImportTemplate);
+                pFocusWindow = (mpXSLTPage->m_pEDImportTemplate);
             }
         }
     }
@@ -247,7 +246,7 @@ bool XMLFilterTabDialog::onOk()
     {
         nErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
         nErrorPage = RID_XML_FILTER_TABPAGE_XSLT;
-        pFocusWindow = &(mpXSLTPage->maEDExportXSLT);
+        pFocusWindow = (mpXSLTPage->m_pEDExportXSLT);
     }
 
     if( 0 == nErrorId )
@@ -261,7 +260,7 @@ bool XMLFilterTabDialog::onOk()
             {
                 nErrorId = STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND;
                 nErrorPage = RID_XML_FILTER_TABPAGE_XSLT;
-                pFocusWindow = &(mpXSLTPage->maEDImportTemplate);
+                pFocusWindow = (mpXSLTPage->m_pEDImportTemplate);
             }
         }
     }
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.src 
b/filter/source/xsltdialog/xmlfiltertabdialog.src
index c9db6c0c..9b3e101 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.src
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.src
@@ -18,7 +18,6 @@
  */
 
 #include "xmlfiltercommon.hrc"
-#include "xmlfiltertabpagexslt.hrc"
 #include "xmlfilterhelpids.hrc"
 
 TabDialog DLG_XML_FILTER_TABDIALOG
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx 
b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
index 87e6994..1fd2ce1 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
@@ -27,7 +27,6 @@
 #include <svl/urihelper.hxx>
 
 #include "xmlfiltertabpagexslt.hxx"
-#include "xmlfiltertabpagexslt.hrc"
 #include "xmlfiltersettingsdialog.hxx"
 #include "xmlfilterhelpids.hrc"
 
@@ -36,26 +35,8 @@ using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::frame;
 using namespace ::com::sun::star::lang;
 
-XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr ) 
:
-    TabPage( pParent, ResId( RID_XML_FILTER_TABPAGE_XSLT, rResMgr ) ),
-
-    maFTDocType( this, ResId( FT_XML_DOCTYPE, rResMgr ) ),
-    maEDDocType( this, ResId( ED_XML_DOCTYPE, rResMgr ) ),
-
-    maFTExportXSLT( this, ResId( FT_XML_EXPORT_XSLT, rResMgr ) ),
-    maEDExportXSLT( this, ResId( ED_XML_EXPORT_XSLT, rResMgr ), INET_PROT_FILE 
),
-    maPBExprotXSLT( this, ResId( PB_XML_EXPORT_XSLT_BROWSE, rResMgr ) ),
-
-    maFTImportXSLT( this, ResId( FT_XML_IMPORT_XSLT, rResMgr ) ),
-    maEDImportXSLT( this, ResId( ED_XML_IMPORT_XSLT, rResMgr ), INET_PROT_FILE 
),
-    maPBImportXSLT( this, ResId( PB_XML_IMPORT_XSLT_BROWSE, rResMgr ) ),
-
-    maFTImportTemplate( this, ResId( FT_XML_IMPORT_TEMPLATE, rResMgr ) ),
-    maEDImportTemplate( this, ResId( ED_XML_IMPORT_TEMPLATE, rResMgr ), 
INET_PROT_FILE ),
-    maPBImportTemplate( this, ResId( PB_XML_IMPORT_TEMPLATE_BROWSE, rResMgr ) 
),
-
-    maFTNeedsXSLT2( this, ResId (FT_XML_NEEDS_XSLT2, rResMgr ) ),
-    maCBNeedsXSLT2( this, ResId (CB_XML_NEEDS_XSLT2, rResMgr ) ),
+XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent) :
+    TabPage( pParent, "XmlFilterTabPageTransformation", 
"filter/ui/xmlfiltertabpagetransformation.ui" ),
 
     sHTTPSchema( "http://"; ),
     sSHTTPSchema( "https://"; ),
@@ -63,19 +44,27 @@ XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* 
pParent, ResMgr& rResMgr ) :
     sFTPSchema( "ftp://"; ),
     sInstPath( "$(prog)/" )
 {
-    FreeResource();
+    get(m_pEDDocType,"doc");
+    get(m_pEDExportXSLT,"xsltexport");
+    get(m_pPBExprotXSLT,"browseexport");
+    get(m_pEDImportXSLT,"xsltimport");
+    get(m_pPBImportXSLT,"browseimport");
+    get(m_pEDImportTemplate,"tempimport");
+    get(m_pPBImportTemplate,"browsetemp");
+    get(m_pCBNeedsXSLT2,"filtercb");
+
 
     SvtPathOptions aOptions;
     sInstPath = aOptions.SubstituteVariable( sInstPath );
 
-    maPBExprotXSLT.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, 
ClickBrowseHdl_Impl ) );
-    maPBImportXSLT.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, 
ClickBrowseHdl_Impl ) );
-    maPBImportTemplate.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, 
ClickBrowseHdl_Impl ) );
+    m_pPBExprotXSLT->SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, 
ClickBrowseHdl_Impl ) );
+    m_pPBImportXSLT->SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, 
ClickBrowseHdl_Impl ) );
+    m_pPBImportTemplate->SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, 
ClickBrowseHdl_Impl ) );
 
-    maEDExportXSLT.SetHelpId( HID_XML_FILTER_EXPORT_XSLT );
-    maEDImportXSLT.SetHelpId( HID_XML_FILTER_IMPORT_XSLT );
-    maEDImportTemplate.SetHelpId( HID_XML_FILTER_IMPORT_TEMPLATE );
-    maCBNeedsXSLT2.SetHelpId( HID_XML_FILTER_NEEDS_XSLT2 );
+    m_pEDExportXSLT->SetHelpId( HID_XML_FILTER_EXPORT_XSLT );
+    m_pEDImportXSLT->SetHelpId( HID_XML_FILTER_IMPORT_XSLT );
+    m_pEDImportTemplate->SetHelpId( HID_XML_FILTER_IMPORT_TEMPLATE );
+    m_pCBNeedsXSLT2->SetHelpId( HID_XML_FILTER_NEEDS_XSLT2 );
 }
 
 XMLFilterTabPageXSLT::~XMLFilterTabPageXSLT()
@@ -86,11 +75,11 @@ bool XMLFilterTabPageXSLT::FillInfo( filter_info_impl* 
pInfo )
 {
     if( pInfo )
     {
-        pInfo->maDocType = maEDDocType.GetText();
-        pInfo->maExportXSLT = GetURL( maEDExportXSLT );
-        pInfo->maImportXSLT = GetURL( maEDImportXSLT );
-        pInfo->maImportTemplate = GetURL( maEDImportTemplate );
-        pInfo->mbNeedsXSLT2 = maCBNeedsXSLT2.IsChecked();
+        pInfo->maDocType = m_pEDDocType->GetText();
+        pInfo->maExportXSLT = GetURL( m_pEDExportXSLT );
+        pInfo->maImportXSLT = GetURL( m_pEDImportXSLT );
+        pInfo->maImportTemplate = GetURL( m_pEDImportTemplate );
+        pInfo->mbNeedsXSLT2 = m_pCBNeedsXSLT2->IsChecked();
     }
 
     return true;
@@ -100,16 +89,16 @@ void XMLFilterTabPageXSLT::SetInfo(const filter_info_impl* 
pInfo)
 {
     if( pInfo )
     {
-        maEDDocType.SetText( pInfo->maDocType );
+        m_pEDDocType->SetText( pInfo->maDocType );
 
-        SetURL( maEDExportXSLT, pInfo->maExportXSLT );
-        SetURL( maEDImportXSLT, pInfo->maImportXSLT );
-        SetURL( maEDImportTemplate, pInfo->maImportTemplate );
-        maCBNeedsXSLT2.Check( pInfo->mbNeedsXSLT2 );
+        SetURL( m_pEDExportXSLT, pInfo->maExportXSLT );
+        SetURL( m_pEDImportXSLT, pInfo->maImportXSLT );
+        SetURL( m_pEDImportTemplate, pInfo->maImportTemplate );
+        m_pCBNeedsXSLT2->Check( pInfo->mbNeedsXSLT2 );
     }
 }
 
-void XMLFilterTabPageXSLT::SetURL( SvtURLBox& rURLBox, const OUString& rURL )
+void XMLFilterTabPageXSLT::SetURL( SvtURLBox* rURLBox, const OUString& rURL )
 {
     OUString aPath;
 
@@ -117,15 +106,15 @@ void XMLFilterTabPageXSLT::SetURL( SvtURLBox& rURLBox, 
const OUString& rURL )
     {
         osl::FileBase::getSystemPathFromFileURL( rURL, aPath );
 
-        rURLBox.SetBaseURL( rURL );
-        rURLBox.SetText( aPath );
+        rURLBox->SetBaseURL( rURL );
+        rURLBox->SetText( aPath );
     }
     else if( rURL.matchIgnoreAsciiCase( "http://"; ) ||
              rURL.matchIgnoreAsciiCase( "https://"; ) ||
              rURL.matchIgnoreAsciiCase( "ftp://"; ) )
     {
-        rURLBox.SetBaseURL( rURL );
-        rURLBox.SetText( rURL );
+        rURLBox->SetBaseURL( rURL );
+        rURLBox->SetText( rURL );
     }
     else if( !rURL.isEmpty() )
     {
@@ -133,21 +122,21 @@ void XMLFilterTabPageXSLT::SetURL( SvtURLBox& rURLBox, 
const OUString& rURL )
         aURL = URIHelper::SmartRel2Abs( sInstPath, aURL, Link(), false );
         osl::FileBase::getSystemPathFromFileURL( aURL, aPath );
 
-        rURLBox.SetBaseURL( aURL );
-        rURLBox.SetText( aPath );
+        rURLBox->SetBaseURL( aURL );
+        rURLBox->SetText( aPath );
     }
     else
     {
-        rURLBox.SetBaseURL( sInstPath );
+        rURLBox->SetBaseURL( sInstPath );
         OUString aEmpty;
-        rURLBox.SetText( aEmpty );
+        rURLBox->SetText( aEmpty );
     }
 }
 
-OUString XMLFilterTabPageXSLT::GetURL( SvtURLBox& rURLBox )
+OUString XMLFilterTabPageXSLT::GetURL( SvtURLBox* rURLBox )
 {
     OUString aURL;
-    OUString aStrPath ( rURLBox.GetText() );
+    OUString aStrPath ( rURLBox->GetText() );
     if( aStrPath.matchIgnoreAsciiCase( "http://"; ) ||
         aStrPath.matchIgnoreAsciiCase( "https://"; ) ||
         aStrPath.matchIgnoreAsciiCase( "ftp://"; ) )
@@ -166,30 +155,30 @@ IMPL_LINK ( XMLFilterTabPageXSLT, ClickBrowseHdl_Impl, 
PushButton *, pButton )
 {
     SvtURLBox* pURLBox;
 
-    if( pButton == &maPBExprotXSLT )
+    if( pButton == m_pPBExprotXSLT )
     {
-        pURLBox = &maEDExportXSLT;
+        pURLBox = m_pEDExportXSLT;
     }
-    else if( pButton == &maPBImportXSLT )
+    else if( pButton == m_pPBImportXSLT )
     {
-        pURLBox = &maEDImportXSLT;
+        pURLBox = m_pEDImportXSLT;
     }
     else
     {
-        pURLBox = &maEDImportTemplate;
+        pURLBox = m_pEDImportTemplate;
     }
 
     // Open Fileopen-Dialog
        ::sfx2::FileDialogHelper aDlg(
         com::sun::star::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0 );
 
-    aDlg.SetDisplayDirectory( GetURL( *pURLBox ) );
+    aDlg.SetDisplayDirectory( GetURL( pURLBox ) );
 
     if ( aDlg.Execute() == ERRCODE_NONE )
     {
         OUString aURL( aDlg.GetPath() );
 
-        SetURL( *pURLBox, aURL );
+        SetURL( pURLBox, aURL );
     }
 
     return( 0L );
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.hrc 
b/filter/source/xsltdialog/xmlfiltertabpagexslt.hrc
deleted file mode 100644
index 65b421d..0000000
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.hrc
+++ /dev/null
@@ -1,41 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLFILTERTABPAGEXSLT_HRC_
-#define _XMLFILTERTABPAGEXSLT_HRC_
-
-#include "xmlfiltercommon.hrc"
-
-#define FT_XML_DOCTYPE                  1
-#define ED_XML_DOCTYPE                  2
-#define FT_XML_EXPORT_XSLT              6
-#define ED_XML_EXPORT_XSLT              7
-#define PB_XML_EXPORT_XSLT_BROWSE       8
-#define FT_XML_IMPORT_XSLT              9
-#define ED_XML_IMPORT_XSLT              10
-#define PB_XML_IMPORT_XSLT_BROWSE       11
-#define FT_XML_IMPORT_TEMPLATE          12
-#define ED_XML_IMPORT_TEMPLATE          13
-#define PB_XML_IMPORT_TEMPLATE_BROWSE   14
-#define FT_XML_NEEDS_XSLT2             15
-#define CB_XML_NEEDS_XSLT2             16
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx 
b/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx
index 6e71a42..5bb3b2d 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx
@@ -33,7 +33,7 @@ class filter_info_impl;
 class XMLFilterTabPageXSLT : public TabPage
 {
 public:
-    XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr );
+    XMLFilterTabPageXSLT( Window* pParent);
     virtual ~XMLFilterTabPageXSLT();
 
     bool FillInfo( filter_info_impl* pInfo );
@@ -41,27 +41,23 @@ public:
 
     DECL_LINK( ClickBrowseHdl_Impl, PushButton * );
 
-    FixedText       maFTDocType;
-    Edit            maEDDocType;
 
-    FixedText       maFTExportXSLT;
-    SvtURLBox       maEDExportXSLT;
-    PushButton      maPBExprotXSLT;
+    Edit*            m_pEDDocType;
 
-    FixedText       maFTImportXSLT;
-    SvtURLBox       maEDImportXSLT;
-    PushButton      maPBImportXSLT;
+    SvtURLBox*       m_pEDExportXSLT;
+    PushButton*      m_pPBExprotXSLT;
 
-    FixedText       maFTImportTemplate;
-    SvtURLBox       maEDImportTemplate;
-    PushButton      maPBImportTemplate;
+    SvtURLBox*       m_pEDImportXSLT;
+    PushButton*      m_pPBImportXSLT;
 
-    FixedText       maFTNeedsXSLT2;
-    CheckBox       maCBNeedsXSLT2;
+    SvtURLBox*       m_pEDImportTemplate;
+    PushButton*      m_pPBImportTemplate;
+
+    CheckBox*        m_pCBNeedsXSLT2;
 
 private:
-    void SetURL( SvtURLBox& rURLBox, const OUString& rURL );
-    OUString GetURL( SvtURLBox& rURLBox );
+    void SetURL( SvtURLBox *rURLBox, const OUString& rURL );
+    OUString GetURL( SvtURLBox* rURLBox );
 
     OUString sHTTPSchema;
     OUString sSHTTPSchema;
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.src 
b/filter/source/xsltdialog/xmlfiltertabpagexslt.src
deleted file mode 100644
index f11bdc6..0000000
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.src
+++ /dev/null
@@ -1,160 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "xmlfiltertabpagexslt.hrc"
-#include "xmlfilterhelpids.hrc"
-
-#define TAB_PAGE_WIDTH  260
-#define TAB_PAGE_HEIGHT 120
-
-#define SPACING         3
-
-#define FIRST_ROW_X         6
-#define FIRST_ROW_Y         6
-#define FIRST_ROW_WIDTH     75
-
-#define SECOND_ROW_X        (FIRST_ROW_X + FIRST_ROW_WIDTH + SPACING)
-#define SECOND_ROW_Y        6
-#define SECOND_ROW_WIDTH    (TAB_PAGE_WIDTH - SECOND_ROW_X - 2*SPACING)
-#define BROWSE_WIDTH        50
-
-#define EDIT_OFFSET         1
-#define FIXED_TEXT_OFFSET   2
-
-#define ROW_HEIGHT          14
-
-
-TabPage RID_XML_FILTER_TABPAGE_XSLT
-{
-    HelpId                  = HID_XML_FILTER_TABPAGE_XSLT;
-    Hide                    = TRUE;
-    Size                    = MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
-    Text [ en-US ] = "Transformation";
-
-    // DocType --------------------------------------------------------
-
-    FixedText FT_XML_DOCTYPE
-    {
-        Pos                 = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * 
ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
-        Text [ en-US ]  = "DocType";
-    };
-
-    Edit ED_XML_DOCTYPE
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * 
ROW_HEIGHT + 0 * SPACING + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - 
BROWSE_WIDTH, 12 ) ;
-        HelpId              = HID_XML_FILTER_DOCTYPE;
-        Border              = TRUE;
-    };
-
-    // Export XSLT ----------------------------------------------------
-
-    FixedText FT_XML_EXPORT_XSLT
-    {
-        Pos                 = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * 
ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( FIRST_ROW_WIDTH, 8 ) ;
-        Text [ en-US ]  = "XSLT for export";
-    };
-
-    ComboBox ED_XML_EXPORT_XSLT
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 1 * 
ROW_HEIGHT + 1 * SPACING + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - 
BROWSE_WIDTH , 12 ) ;
-        HelpId              = HID_XML_FILTER_EXPORT_XSLT;
-        Border              = TRUE;
-    };
-
-    PushButton PB_XML_EXPORT_XSLT_BROWSE
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - 
BROWSE_WIDTH , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
-        Size                = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
-        HelpId              = HID_XML_FILTER_EXPORT_XSLT_BROWSE;
-        Text [ en-US ]  = "Browse...";
-    };
-
-    // Import XSLT ----------------------------------------------------
-
-    FixedText FT_XML_IMPORT_XSLT
-    {
-        Pos                 = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * 
ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
-        Text [ en-US ]  = "XSLT for import";
-    };
-
-    ComboBox ED_XML_IMPORT_XSLT
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * 
ROW_HEIGHT + 2 * SPACING + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - 
BROWSE_WIDTH , 12 ) ;
-        HelpId              = HID_XML_FILTER_IMPORT_XSLT;
-        Border              = TRUE;
-    };
-
-    PushButton PB_XML_IMPORT_XSLT_BROWSE
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - 
BROWSE_WIDTH , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
-        Size                = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
-        HelpId              = HID_XML_FILTER_IMPORT_XSLT_BROWSE;
-        Text [ en-US ]  = "Browse...";
-    };
-
-    // Import Template ------------------------------------------------
-
-    FixedText FT_XML_IMPORT_TEMPLATE
-    {
-        Pos                 = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 3 * 
ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
-        Text [ en-US ]  = "Template for import";
-    };
-
-    ComboBox ED_XML_IMPORT_TEMPLATE
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * 
ROW_HEIGHT + 3 * SPACING + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - 
BROWSE_WIDTH , 12 ) ;
-        HelpId              = HID_XML_FILTER_IMPORT_TEMPLATE;
-        Border              = TRUE;
-    };
-
-    PushButton PB_XML_IMPORT_TEMPLATE_BROWSE
-    {
-        Pos                 = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - 
BROWSE_WIDTH , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
-        Size                = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
-        HelpId              = HID_XML_FILTER_IMPORT_TEMPLATE_BROWSE;
-        Text [ en-US ]  = "Browse...";
-    };
-
-    // XSLT transformation service 
--------------------------------------------------------
-
-    CheckBox CB_XML_NEEDS_XSLT2
-    {
-        HelpID = HID_XML_FILTER_NEEDS_XSLT2;
-        Pos                 = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * 
ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
-        Size                = MAP_APPFONT ( 12, 12 ) ;
-    };
-
-    FixedText FT_XML_NEEDS_XSLT2
-    {
-        Pos                 = MAP_APPFONT ( FIRST_ROW_X + 4 * SPACING , 
SECOND_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) 
;
-        Size                = MAP_APPFONT ( 2 * FIRST_ROW_WIDTH , 8 ) ; // 
guess width
-        Text [ en-US ]  = "The filter needs XSLT 2.0 processor";
-    };
-
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui 
b/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui
new file mode 100644
index 0000000..6f2ae19
--- /dev/null
+++ b/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui
@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <!-- interface-requires LibreOffice 1.0 -->
+  <object class="GtkBox" id="XmlFilterTabPageTransformation">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="border_width">6</property>
+    <property name="orientation">vertical</property>
+    <property name="spacing">12</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="hexpand">True</property>
+        <property name="vexpand">True</property>
+        <property name="row_spacing">6</property>
+        <property name="column_spacing">12</property>
+        <child>
+          <object class="GtkLabel" id="label2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="xalign">0</property>
+            <property name="label" translatable="yes">_DocType</property>
+            <property name="use_underline">True</property>
+            <property name="mnemonic_widget">doc</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEntry" id="doc">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="halign">start</property>
+            <property name="invisible_char">●</property>
+            <property name="width_chars">24</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label4">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="xalign">0</property>
+            <property name="label" translatable="yes">_XSLT for 
export</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="browseexport">
+            <property name="label" translatable="yes">brows_e...</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label5">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="xalign">0</property>
+            <property name="label" translatable="yes">XSLT _for 
import</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="browseimport">
+            <property name="label" translatable="yes">b_rowse...</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label6">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="xalign">0</property>
+            <property name="yalign">0</property>
+            <property name="label" translatable="yes">Template for 
_import</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="browsetemp">
+            <property name="label" translatable="yes">browse...</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="svtlo-SvtURLBox" id="tempimport">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="entry_text_column">0</property>
+            <property name="id_column">1</property>
+            <property name="max_width_chars">2</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="svtlo-SvtURLBox" id="xsltimport">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="entry_text_column">0</property>
+            <property name="id_column">1</property>
+            <property name="max_width_chars">2</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="svtlo-SvtURLBox" id="xsltexport">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="entry_text_column">0</property>
+            <property name="id_column">1</property>
+            <property name="max_width_chars">2</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+      </object>
+      <packing>
+        <property name="expand">False</property>
+        <property name="fill">True</property>
+        <property name="position">0</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkCheckButton" id="filtercb">
+        <property name="label" translatable="yes">The filter needs XSLT 2.0 
processor</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">False</property>
+        <property name="xalign">0</property>
+        <property name="draw_indicator">True</property>
+      </object>
+      <packing>
+        <property name="expand">False</property>
+        <property name="fill">True</property>
+        <property name="position">1</property>
+      </packing>
+    </child>
+  </object>
+  <object class="GtkSizeGroup" id="sizegroup1">
+    <property name="mode">both</property>
+    <widgets>
+      <widget name="XmlFilterTabPageTransformation"/>
+    </widgets>
+  </object>
+</interface>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to