diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 10:03:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 11:23:02 +0000 |
commit | 1d81ca98f8d10431ea69eef71d8f633c27648743 (patch) | |
tree | a54ab72c2e41bc255b9526ddcae98ed33fa12447 /padmin | |
parent | f6cd982a68528ac1bfd130080cea3f96e6cc7edd (diff) |
move remaining padmin dialogs into vcl
and so padmin is no more
Change-Id: I554cefa8b38581daad8a78bafa167448b0a0ef61
Diffstat (limited to 'padmin')
-rw-r--r-- | padmin/AllLangResTarget_spa.mk | 35 | ||||
-rw-r--r-- | padmin/Library_spa.mk | 65 | ||||
-rw-r--r-- | padmin/Makefile | 7 | ||||
-rw-r--r-- | padmin/Module_padmin.mk | 36 | ||||
-rw-r--r-- | padmin/README | 1 | ||||
-rw-r--r-- | padmin/UIConfig_spa.mk | 18 | ||||
-rw-r--r-- | padmin/source/helper.cxx | 78 | ||||
-rw-r--r-- | padmin/source/helper.hxx | 46 | ||||
-rw-r--r-- | padmin/source/prtsetup.cxx | 492 | ||||
-rw-r--r-- | padmin/source/prtsetup.hxx | 133 | ||||
-rw-r--r-- | padmin/source/rtsetup.hrc | 27 | ||||
-rw-r--r-- | padmin/source/rtsetup.src | 27 | ||||
-rw-r--r-- | padmin/uiconfig/ui/printerdevicepage.ui | 209 | ||||
-rw-r--r-- | padmin/uiconfig/ui/printerpaperpage.ui | 134 | ||||
-rw-r--r-- | padmin/uiconfig/ui/printerpropertiesdialog.ui | 104 |
15 files changed, 0 insertions, 1412 deletions
diff --git a/padmin/AllLangResTarget_spa.mk b/padmin/AllLangResTarget_spa.mk deleted file mode 100644 index 31d260856030..000000000000 --- a/padmin/AllLangResTarget_spa.mk +++ /dev/null @@ -1,35 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_AllLangResTarget_AllLangResTarget,spa)) - -$(eval $(call gb_AllLangResTarget_set_reslocation,spa,padmin)) - -$(eval $(call gb_AllLangResTarget_add_srs,spa,\ - padmin/source \ -)) - -$(eval $(call gb_SrsTarget_SrsTarget,padmin/source)) - -$(eval $(call gb_SrsTarget_add_files,padmin/source,\ - padmin/source/rtsetup.src \ -)) - - -# vim: set noet sw=4 ts=4: diff --git a/padmin/Library_spa.mk b/padmin/Library_spa.mk deleted file mode 100644 index 57961cd454fa..000000000000 --- a/padmin/Library_spa.mk +++ /dev/null @@ -1,65 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_Library_Library,spa)) - -$(eval $(call gb_Library_add_defs,spa,\ - -DSPA_DLLIMPLEMENTATION \ -)) - -$(eval $(call gb_Library_use_external,spa,boost_headers)) - -$(eval $(call gb_Library_use_custom_headers,spa,\ - officecfg/registry \ -)) - -$(eval $(call gb_Library_use_sdk_api,spa)) - -$(eval $(call gb_Library_use_libraries,spa,\ - svt \ - vcl \ - utl \ - tl \ - basegfx \ - comphelper \ - i18nlangtag \ - cppu \ - sal \ - $(gb_UWINAPI) \ -)) - -$(eval $(call gb_Library_add_exception_objects,spa,\ - padmin/source/helper \ - padmin/source/prtsetup \ -)) - -ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS))) -$(eval $(call gb_Library_add_libs,spa,\ - -lm \ - -lpthread \ -)) -endif - -ifeq ($(OS),LINUX) -$(eval $(call gb_Library_add_libs,spa,\ - -ldl \ -)) -endif - -# vim: set noet sw=4 ts=4: diff --git a/padmin/Makefile b/padmin/Makefile deleted file mode 100644 index ccb1c85a04da..000000000000 --- a/padmin/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- - -module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) - -include $(module_directory)/../solenv/gbuild/partial_build.mk - -# vim: set noet sw=4 ts=4: diff --git a/padmin/Module_padmin.mk b/padmin/Module_padmin.mk deleted file mode 100644 index 6ea23d9d7767..000000000000 --- a/padmin/Module_padmin.mk +++ /dev/null @@ -1,36 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - - -$(eval $(call gb_Module_Module,padmin)) - -ifeq ($(GUIBASE),unx) - -$(eval $(call gb_Module_add_targets,padmin,\ - Library_spa \ -)) - -$(eval $(call gb_Module_add_l10n_targets,padmin,\ - AllLangResTarget_spa \ - UIConfig_spa \ -)) - -endif - -# vim: set noet sw=4 ts=4: diff --git a/padmin/README b/padmin/README deleted file mode 100644 index 9b011ef59576..000000000000 --- a/padmin/README +++ /dev/null @@ -1 +0,0 @@ -Printer administration dialog - used lpr - obsolete with CUPS and fontconfig, but still used for some things. diff --git a/padmin/UIConfig_spa.mk b/padmin/UIConfig_spa.mk deleted file mode 100644 index 565f0cc57536..000000000000 --- a/padmin/UIConfig_spa.mk +++ /dev/null @@ -1,18 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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/. -# - -$(eval $(call gb_UIConfig_UIConfig,spa)) - -$(eval $(call gb_UIConfig_add_uifiles,spa,\ - padmin/uiconfig/ui/printerdevicepage \ - padmin/uiconfig/ui/printerpaperpage \ - padmin/uiconfig/ui/printerpropertiesdialog \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx deleted file mode 100644 index da9fcabcd3ba..000000000000 --- a/padmin/source/helper.cxx +++ /dev/null @@ -1,78 +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 <unistd.h> -#include <helper.hxx> -#include <osl/file.hxx> -#include <tools/urlobj.hxx> -#include <vcl/svapp.hxx> -#include <vcl/msgbox.hxx> -#include <vcl/settings.hxx> -#include <tools/config.hxx> -#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> -#include <com/sun/star/ui/dialogs/FolderPicker.hpp> -#include <com/sun/star/ui/dialogs/XControlAccess.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> -#include <comphelper/processfactory.hxx> -#include <comphelper/string.hxx> -#include <unotools/confignode.hxx> -#include <i18nlangtag/mslangid.hxx> -#include <rtl/ustrbuf.hxx> - - -using namespace osl; -using namespace padmin; -using namespace com::sun::star::uno; -using namespace com::sun::star::lang; -using namespace com::sun::star::ui::dialogs; - - -/* - * PaResId - */ - -ResId padmin::PaResId( sal_uInt32 nId ) -{ - static ResMgr* pPaResMgr = NULL; - if( ! pPaResMgr ) - { - LanguageTag aLanguageTag( LANGUAGE_SYSTEM); - - utl::OConfigurationNode aNode = - utl::OConfigurationTreeRoot::tryCreateWithComponentContext( - comphelper::getProcessComponentContext(), - OUString("org.openoffice.Setup/L10N") ); - if ( aNode.isValid() ) - { - OUString aLoc; - Any aValue = aNode.getNodeValue( OUString("ooLocale") ); - if( aValue >>= aLoc ) - { - aLanguageTag.reset( aLoc); - } - } - pPaResMgr = ResMgr::SearchCreateResMgr( "spa", aLanguageTag ); - AllSettings aSettings = Application::GetSettings(); - aSettings.SetUILanguageTag( aLanguageTag ); - Application::SetSettings( aSettings ); - } - return ResId( nId, *pPaResMgr ); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/padmin/source/helper.hxx b/padmin/source/helper.hxx deleted file mode 100644 index b7b8fb86b1d1..000000000000 --- a/padmin/source/helper.hxx +++ /dev/null @@ -1,46 +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 _PAD_HELPER_HXX_ -#define _PAD_HELPER_HXX_ - -#include <list> -#include <rtl/ustring.hxx> -#include <tools/resid.hxx> -#include <vcl/dialog.hxx> -#include <vcl/button.hxx> -#include <vcl/edit.hxx> -#include <vcl/fixed.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/combobox.hxx> - -#if defined SPA_DLLIMPLEMENTATION -#define SPA_DLLPUBLIC SAL_DLLPUBLIC_EXPORT -#else -#define SPA_DLLPUBLIC SAL_DLLPUBLIC_IMPORT -#endif - -namespace padmin -{ -ResId PaResId( sal_uInt32 nId ); -} // namespace padmin - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/padmin/source/prtsetup.cxx b/padmin/source/prtsetup.cxx deleted file mode 100644 index 938e00b32356..000000000000 --- a/padmin/source/prtsetup.cxx +++ /dev/null @@ -1,492 +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 "prtsetup.hxx" -#include "helper.hxx" -#include "rtsetup.hrc" - -#include "osl/thread.h" - -#include <officecfg/Office/Common.hxx> - -using namespace psp; -using namespace padmin; - - -void RTSDialog::insertAllPPDValues( ListBox& rBox, const PPDParser* pParser, const PPDKey* pKey ) -{ - if( ! pKey || ! pParser ) - return; - - const PPDValue* pValue = NULL; - sal_Int32 nPos = 0; - OUString aOptionText; - - for( int i = 0; i < pKey->countValues(); i++ ) - { - pValue = pKey->getValue( i ); - aOptionText = pParser->translateOption( pKey->getKey(), pValue->m_aOption) ; - - if( m_aJobData.m_aContext.checkConstraints( pKey, pValue ) ) - { - if( rBox.GetEntryPos( (void*)pValue ) == LISTBOX_ENTRY_NOTFOUND ) - { - nPos = rBox.InsertEntry( aOptionText, LISTBOX_APPEND ); - rBox.SetEntryData( nPos, (void*)pValue ); - } - } - else - { - if( ( nPos = rBox.GetEntryPos( (void*)pValue ) ) != LISTBOX_ENTRY_NOTFOUND ) - rBox.RemoveEntry( nPos ); - } - } - pValue = m_aJobData.m_aContext.getValue( pKey ); - if( pValue ) - { - if( ( nPos = rBox.GetEntryPos( (void*)pValue ) ) != LISTBOX_ENTRY_NOTFOUND ) - rBox.SelectEntryPos( nPos ); - } - else - rBox.SelectEntry( m_aInvalidString ); -} - - - -/* - * RTSDialog - */ - -RTSDialog::RTSDialog(const PrinterInfo& rJobData, const OUString& rPrinter, Window* pParent) - : TabDialog(pParent, "PrinterPropertiesDialog", "spa/ui/printerpropertiesdialog.ui") - , m_aJobData(rJobData) - , m_aPrinter(rPrinter) - , m_pPaperPage(NULL) - , m_pDevicePage(NULL) - , m_aInvalidString(PaResId(RID_RTS_RTSDIALOG_INVALID_TXT).toString()) -{ - get(m_pOKButton, "ok"); - get(m_pCancelButton, "cancel"); - get(m_pTabControl, "notebook"); - - OUString aTitle(GetText()); - SetText(aTitle.replaceAll("%s", m_aJobData.m_aPrinterName)); - - m_pTabControl->SetActivatePageHdl( LINK( this, RTSDialog, ActivatePage ) ); - m_pOKButton->SetClickHdl( LINK( this, RTSDialog, ClickButton ) ); - m_pCancelButton->SetClickHdl( LINK( this, RTSDialog, ClickButton ) ); - ActivatePage(m_pTabControl); -} - -RTSDialog::~RTSDialog() -{ - delete m_pPaperPage; - delete m_pDevicePage; -} - -IMPL_LINK( RTSDialog, ActivatePage, TabControl*, pTabCtrl ) -{ - if( pTabCtrl != m_pTabControl ) - return 0; - - sal_uInt16 nId = m_pTabControl->GetCurPageId(); - OString sPage = m_pTabControl->GetPageName(nId); - if ( ! m_pTabControl->GetTabPage( nId ) ) - { - TabPage *pPage = NULL; - if (sPage == "paper") - pPage = m_pPaperPage = new RTSPaperPage( this ); - else if (sPage == "device") - pPage = m_pDevicePage = new RTSDevicePage( this ); - if( pPage ) - m_pTabControl->SetTabPage( nId, pPage ); - } - else - { - if (sPage == "paper") - m_pPaperPage->update(); - else if (sPage == "device") - m_pDevicePage->update(); - } - - return 0; -} - - - -IMPL_LINK( RTSDialog, ClickButton, Button*, pButton ) -{ - if( pButton == m_pOKButton ) - { - // refresh the changed values - if( m_pPaperPage ) - { - // orientation - m_aJobData.m_eOrientation = m_pPaperPage->getOrientation() == 0 ? - orientation::Portrait : orientation::Landscape; - } - if( m_pDevicePage ) - { - m_aJobData.m_nColorDepth = m_pDevicePage->getDepth(); - m_aJobData.m_nColorDevice = m_pDevicePage->getColorDevice(); - m_aJobData.m_nPSLevel = m_pDevicePage->getLevel(); - m_aJobData.m_nPDFDevice = m_pDevicePage->getPDFDevice(); - } - EndDialog( 1 ); - } - else if( pButton == m_pCancelButton ) - EndDialog( 0 ); - - return 0; -} - - - -/* - * RTSPaperPage - */ - -RTSPaperPage::RTSPaperPage(RTSDialog* pParent) - : TabPage(pParent->m_pTabControl, "PrinterPaperPage", "spa/ui/printerpaperpage.ui") - , m_pParent( pParent ) -{ - get(m_pPaperText, "paperft"); - get(m_pPaperBox, "paperlb"); - get(m_pOrientBox, "orientlb"); - get(m_pDuplexText, "duplexft"); - get(m_pDuplexBox, "duplexlb"); - get(m_pSlotText, "slotft"); - get(m_pSlotBox, "slotlb"); - - m_pPaperBox->SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) ); - m_pOrientBox->SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) ); - m_pDuplexBox->SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) ); - m_pSlotBox->SetSelectHdl( LINK( this, RTSPaperPage, SelectHdl ) ); - - sal_Int32 nPos = 0; - - // duplex - nPos = m_pDuplexBox->InsertEntry( m_pParent->m_aInvalidString ); - m_pDuplexBox->SetEntryData( nPos, NULL ); - - // paper does not have an invalid entry - - // input slots - nPos = m_pSlotBox->InsertEntry( m_pParent->m_aInvalidString ); - m_pSlotBox->SetEntryData( nPos, NULL ); - - update(); -} - - - -RTSPaperPage::~RTSPaperPage() -{ -} - - - -void RTSPaperPage::update() -{ - const PPDKey* pKey = NULL; - - // orientation - m_pOrientBox->SelectEntryPos( - m_pParent->m_aJobData.m_eOrientation == orientation::Portrait ? 0 : 1); - - // duplex - if( m_pParent->m_aJobData.m_pParser && - (pKey = m_pParent->m_aJobData.m_pParser->getKey( OUString( "Duplex" ) )) ) - { - m_pParent->insertAllPPDValues( *m_pDuplexBox, m_pParent->m_aJobData.m_pParser, pKey ); - } - else - { - m_pDuplexText->Enable( false ); - m_pDuplexBox->Enable( false ); - } - - // paper - if( m_pParent->m_aJobData.m_pParser && - (pKey = m_pParent->m_aJobData.m_pParser->getKey( OUString( "PageSize" ) )) ) - { - m_pParent->insertAllPPDValues( *m_pPaperBox, m_pParent->m_aJobData.m_pParser, pKey ); - } - else - { - m_pPaperText->Enable( false ); - m_pPaperBox->Enable( false ); - } - - // input slots - if( m_pParent->m_aJobData.m_pParser && - (pKey = m_pParent->m_aJobData.m_pParser->getKey( OUString("InputSlot") )) ) - { - m_pParent->insertAllPPDValues( *m_pSlotBox, m_pParent->m_aJobData.m_pParser, pKey ); - } - else - { - m_pSlotText->Enable( false ); - m_pSlotBox->Enable( false ); - } -} - - - -IMPL_LINK( RTSPaperPage, SelectHdl, ListBox*, pBox ) -{ - const PPDKey* pKey = NULL; - if( pBox == m_pPaperBox ) - { - if( m_pParent->m_aJobData.m_pParser ) - pKey = m_pParent->m_aJobData.m_pParser->getKey( OUString( "PageSize" ) ); - } - else if( pBox == m_pDuplexBox ) - { - if( m_pParent->m_aJobData.m_pParser ) - pKey = m_pParent->m_aJobData.m_pParser->getKey( OUString( "Duplex" ) ); - } - else if( pBox == m_pSlotBox ) - { - if( m_pParent->m_aJobData.m_pParser ) - pKey = m_pParent->m_aJobData.m_pParser->getKey( OUString( "InputSlot" ) ); - } - else if( pBox == m_pOrientBox ) - { - m_pParent->m_aJobData.m_eOrientation = m_pOrientBox->GetSelectEntryPos() == 0 ? orientation::Portrait : orientation::Landscape; - } - if( pKey ) - { - PPDValue* pValue = - (PPDValue*)pBox->GetEntryData( pBox->GetSelectEntryPos() ); - m_pParent->m_aJobData.m_aContext.setValue( pKey, pValue ); - update(); - } - return 0; -} - - - -/* - * RTSDevicePage - */ - -RTSDevicePage::RTSDevicePage( RTSDialog* pParent ) - : TabPage(pParent->m_pTabControl, "PrinterDevicePage", "spa/ui/printerdevicepage.ui" ) - , m_pParent( pParent ) -{ - get(m_pPPDKeyBox, "options"); - get(m_pPPDValueBox, "values"); - - m_pPPDKeyBox->SetDropDownLineCount(12); - m_pPPDValueBox->SetDropDownLineCount(12); - - get(m_pLevelBox, "level"); - get(m_pSpaceBox, "colorspace"); - get(m_pDepthBox, "colordepth"); - - m_pPPDKeyBox->SetSelectHdl( LINK( this, RTSDevicePage, SelectHdl ) ); - m_pPPDValueBox->SetSelectHdl( LINK( this, RTSDevicePage, SelectHdl ) ); - - switch( m_pParent->m_aJobData.m_nColorDevice ) - { - case 0: m_pSpaceBox->SelectEntryPos(0);break; - case 1: m_pSpaceBox->SelectEntryPos(1);break; - case -1: m_pSpaceBox->SelectEntryPos(2);break; - } - - sal_uLong nLevelEntryData = 0; //automatic - if( m_pParent->m_aJobData.m_nPDFDevice == 2 ) //explicitly PDF - nLevelEntryData = 10; - else if (m_pParent->m_aJobData.m_nPSLevel > 0) //explicit PS Level - nLevelEntryData = m_pParent->m_aJobData.m_nPSLevel+1; - else if (m_pParent->m_aJobData.m_nPDFDevice == 1) //automatically PDF - nLevelEntryData = 0; - else if (m_pParent->m_aJobData.m_nPDFDevice == -1) //explicitly PS from driver - nLevelEntryData = 1; - - bool bAutoIsPDF = officecfg::Office::Common::Print::Option::Printer::PDFAsStandardPrintJobFormat::get(); - - assert(nLevelEntryData != 0 - || "Generic Printer" == m_pParent->m_aJobData.m_aPrinterName - || int(bAutoIsPDF) == m_pParent->m_aJobData.m_nPDFDevice); - - OUString sStr = m_pLevelBox->GetEntry(0); - m_pLevelBox->InsertEntry(sStr.replaceAll("%s", bAutoIsPDF ? m_pLevelBox->GetEntry(5) : m_pLevelBox->GetEntry(1)), 0); - m_pLevelBox->SetEntryData(0, m_pLevelBox->GetEntryData(1)); - m_pLevelBox->RemoveEntry(1); - - for( sal_uInt16 i = 0; i < m_pLevelBox->GetEntryCount(); i++ ) - { - if( (sal_uLong)m_pLevelBox->GetEntryData( i ) == nLevelEntryData ) - { - m_pLevelBox->SelectEntryPos( i ); - break; - } - } - - if (m_pParent->m_aJobData.m_nColorDepth == 8) - m_pDepthBox->SelectEntryPos(0); - else if (m_pParent->m_aJobData.m_nColorDepth == 24) - m_pDepthBox->SelectEntryPos(1); - - // fill ppd boxes - if( m_pParent->m_aJobData.m_pParser ) - { - for( int i = 0; i < m_pParent->m_aJobData.m_pParser->getKeys(); i++ ) - { - const PPDKey* pKey = m_pParent->m_aJobData.m_pParser->getKey( i ); - if( pKey->isUIKey() && - ! pKey->getKey().equalsAscii( "PageSize" ) && - ! pKey->getKey().equalsAscii( "InputSlot" ) && - ! pKey->getKey().equalsAscii( "PageRegion" ) && - ! pKey->getKey().equalsAscii( "Duplex" ) - ) - { - OUString aEntry( m_pParent->m_aJobData.m_pParser->translateKey( pKey->getKey() ) ); - sal_uInt16 nPos = m_pPPDKeyBox->InsertEntry( aEntry ); - m_pPPDKeyBox->SetEntryData( nPos, (void*)pKey ); - } - } - } -} - - - -RTSDevicePage::~RTSDevicePage() -{ -} - - - -void RTSDevicePage::update() -{ -} - -sal_uLong RTSDevicePage::getDepth() -{ - sal_uInt16 nSelectPos = m_pDepthBox->GetSelectEntryPos(); - if (nSelectPos == 0) - return 8; - else - return 24; -} - -sal_uLong RTSDevicePage::getColorDevice() -{ - sal_uInt16 nSelectPos = m_pSpaceBox->GetSelectEntryPos(); - switch (nSelectPos) - { - case 0: - return 0; - case 1: - return 1; - case 2: - return -1; - } - return 0; -} - - - -sal_uLong RTSDevicePage::getLevel() -{ - sal_uLong nLevel = (sal_uLong)m_pLevelBox->GetEntryData( m_pLevelBox->GetSelectEntryPos() ); - if (nLevel == 0) - return 0; //automatic - return nLevel < 10 ? nLevel-1 : 0; -} - - - -sal_uLong RTSDevicePage::getPDFDevice() -{ - sal_uLong nLevel = (sal_uLong)m_pLevelBox->GetEntryData( m_pLevelBox->GetSelectEntryPos() ); - if (nLevel > 9) - return 2; //explictly PDF - else if (nLevel == 0) - return 0; //automatic - return -1; //explicitly PS -} - - - -IMPL_LINK( RTSDevicePage, SelectHdl, ListBox*, pBox ) -{ - if( pBox == m_pPPDKeyBox ) - { - const PPDKey* pKey = (PPDKey*)m_pPPDKeyBox->GetEntryData( m_pPPDKeyBox->GetSelectEntryPos() ); - FillValueBox( pKey ); - } - else if( pBox == m_pPPDValueBox ) - { - const PPDKey* pKey = (PPDKey*)m_pPPDKeyBox->GetEntryData( m_pPPDKeyBox->GetSelectEntryPos() ); - const PPDValue* pValue = (PPDValue*)m_pPPDValueBox->GetEntryData( m_pPPDValueBox->GetSelectEntryPos() ); - if( pKey && pValue ) - { - m_pParent->m_aJobData.m_aContext.setValue( pKey, pValue ); - FillValueBox( pKey ); - } - } - return 0; -} - - - -void RTSDevicePage::FillValueBox( const PPDKey* pKey ) -{ - m_pPPDValueBox->Clear(); - - if( ! pKey ) - return; - - const PPDValue* pValue = NULL; - for( int i = 0; i < pKey->countValues(); i++ ) - { - pValue = pKey->getValue( i ); - if( m_pParent->m_aJobData.m_aContext.checkConstraints( pKey, pValue ) && - m_pParent->m_aJobData.m_pParser ) - { - OUString aEntry( m_pParent->m_aJobData.m_pParser->translateOption( pKey->getKey(), pValue->m_aOption ) ); - sal_uInt16 nPos = m_pPPDValueBox->InsertEntry( aEntry ); - m_pPPDValueBox->SetEntryData( nPos, (void*)pValue ); - } - } - pValue = m_pParent->m_aJobData.m_aContext.getValue( pKey ); - m_pPPDValueBox->SelectEntryPos( m_pPPDValueBox->GetEntryPos( (void*)pValue ) ); -} - -extern "C" { - - int SPA_DLLPUBLIC Sal_SetupPrinterDriver( ::psp::PrinterInfo& rJobData ) - { - int nRet = 0; - RTSDialog aDialog( rJobData, rJobData.m_aPrinterName, false ); - - if( aDialog.Execute() ) - { - rJobData = aDialog.getSetup(); - nRet = 1; - } - - return nRet; - } -} // extern "C" - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/padmin/source/prtsetup.hxx b/padmin/source/prtsetup.hxx deleted file mode 100644 index f5638c771a16..000000000000 --- a/padmin/source/prtsetup.hxx +++ /dev/null @@ -1,133 +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 _PAD_PRTSETUP_HXX_ -#define _PAD_PRTSETUP_HXX_ - -#include "helper.hxx" - -#include "tools/link.hxx" - -#include "vcl/tabdlg.hxx" -#include "vcl/tabpage.hxx" -#include "vcl/tabctrl.hxx" -#include "vcl/button.hxx" -#include "vcl/fixed.hxx" -#include "vcl/lstbox.hxx" -#include "vcl/field.hxx" -#include "vcl/combobox.hxx" -#include "vcl/ppdparser.hxx" -#include "vcl/printerinfomanager.hxx" - -namespace padmin { - -class RTSPaperPage; -class RTSDevicePage; - -class RTSDialog : public TabDialog -{ - friend class RTSPaperPage; - friend class RTSDevicePage; - - ::psp::PrinterInfo m_aJobData; - OUString m_aPrinter; - - // controls - TabControl* m_pTabControl; - OKButton* m_pOKButton; - CancelButton* m_pCancelButton; - - // pages - RTSPaperPage* m_pPaperPage; - RTSDevicePage* m_pDevicePage; - - // some resources - OUString m_aInvalidString; - - DECL_LINK( ActivatePage, TabControl* ); - DECL_LINK( ClickButton, Button* ); - - // helper functions - void insertAllPPDValues( ListBox&, const psp::PPDParser*, const psp::PPDKey* ); -public: - RTSDialog(const ::psp::PrinterInfo& rJobData, const OUString& rPrinter, Window* pParent = NULL); - ~RTSDialog(); - - const ::psp::PrinterInfo& getSetup() const { return m_aJobData; } -}; - -class RTSPaperPage : public TabPage -{ - RTSDialog* m_pParent; - - FixedText* m_pPaperText; - ListBox* m_pPaperBox; - - ListBox* m_pOrientBox; - - FixedText* m_pDuplexText; - ListBox* m_pDuplexBox; - - FixedText* m_pSlotText; - ListBox* m_pSlotBox; - - DECL_LINK( SelectHdl, ListBox* ); -public: - RTSPaperPage( RTSDialog* ); - ~RTSPaperPage(); - - void update(); - - sal_uInt16 getOrientation() { return m_pOrientBox->GetSelectEntryPos(); } -}; - -class RTSDevicePage : public TabPage -{ - RTSDialog* m_pParent; - - OUString m_aSpaceColor; - OUString m_aSpaceGray; - - ListBox* m_pPPDKeyBox; - ListBox* m_pPPDValueBox; - - ListBox* m_pLevelBox; - ListBox* m_pSpaceBox; - ListBox* m_pDepthBox; - - void FillValueBox( const ::psp::PPDKey* ); - - DECL_LINK( SelectHdl, ListBox* ); -public: - RTSDevicePage( RTSDialog* ); - ~RTSDevicePage(); - - void update(); - - sal_uLong getLevel(); - sal_uLong getPDFDevice(); - sal_uLong getDepth(); - sal_uLong getColorDevice(); -}; - -} // namespace - -#endif // _PAD_PRTSETUP_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/padmin/source/rtsetup.hrc b/padmin/source/rtsetup.hrc deleted file mode 100644 index f5f0f6914ad1..000000000000 --- a/padmin/source/rtsetup.hrc +++ /dev/null @@ -1,27 +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 _PAD_RTSETUP_HRC_ -#define _PAD_RTSETUP_HRC_ - -#define RID_RTS_RTSDIALOG_INVALID_TXT 4001 - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/padmin/source/rtsetup.src b/padmin/source/rtsetup.src deleted file mode 100644 index 383aeadc06d0..000000000000 --- a/padmin/source/rtsetup.src +++ /dev/null @@ -1,27 +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 "rtsetup.hrc" - -String RID_RTS_RTSDIALOG_INVALID_TXT -{ - Text [ en-US ] = "<ignore>"; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/padmin/uiconfig/ui/printerdevicepage.ui b/padmin/uiconfig/ui/printerdevicepage.ui deleted file mode 100644 index 45dc09584c18..000000000000 --- a/padmin/uiconfig/ui/printerdevicepage.ui +++ /dev/null @@ -1,209 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <!-- interface-requires gtk+ 3.0 --> - <object class="GtkGrid" id="PrinterDevicePage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="border_width">6</property> - <property name="row_spacing">6</property> - <property name="column_spacing">12</property> - <property name="column_homogeneous">True</property> - <child> - <object class="GtkLabel" id="label7"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Option</property> - <property name="use_underline">True</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </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="GtkLabel" id="label8"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Current _value</property> - <property name="use_underline">True</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </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="label9"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Printer _Language type</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="GtkLabel" id="label10"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Color</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="GtkLabel" id="label11"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Color _depth</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">4</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkComboBoxText" id="colorspace"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</property> - <items> - <item translatable="yes">From driver</item> - <item translatable="yes">Color</item> - <item translatable="yes">Grayscale</item> - </items> - </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="GtkComboBoxText" id="colordepth"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</property> - <items> - <item translatable="yes">8 Bit</item> - <item translatable="yes">24 Bit</item> - </items> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">4</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkComboBox" id="level"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="model">liststore1</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="GtkTreeView" id="options:border"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <child internal-child="selection"> - <object class="GtkTreeSelection" id="treeview-selection1"/> - </child> - </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="GtkTreeView" id="values:border"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <child internal-child="selection"> - <object class="GtkTreeSelection" id="treeview-selection2"/> - </child> - </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> - </object> - <object class="GtkListStore" id="liststore1"> - <columns> - <!-- column-name gchararray1 --> - <column type="gchararray"/> - <!-- column-name gint1 --> - <column type="gint"/> - </columns> - <data> - <row> - <col id="0" translatable="yes">Automatic : %s</col> - <col id="1">0</col> - </row> - <row> - <col id="0" translatable="yes">PostScript (Level from driver)</col> - <col id="1">1</col> - </row> - <row> - <col id="0" translatable="yes">PostScript Level 1</col> - <col id="1">2</col> - </row> - <row> - <col id="0" translatable="yes">PostScript Level 2</col> - <col id="1">3</col> - </row> - <row> - <col id="0" translatable="yes">PostScript Level 3</col> - <col id="1">4</col> - </row> - <row> - <col id="0" translatable="yes">PDF</col> - <col id="1">10</col> - </row> - </data> - </object> -</interface> diff --git a/padmin/uiconfig/ui/printerpaperpage.ui b/padmin/uiconfig/ui/printerpaperpage.ui deleted file mode 100644 index 422ba176cd1e..000000000000 --- a/padmin/uiconfig/ui/printerpaperpage.ui +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <!-- interface-requires gtk+ 3.0 --> - <object class="GtkGrid" id="PrinterPaperPage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="border_width">6</property> - <property name="row_spacing">6</property> - <property name="column_spacing">12</property> - <property name="column_homogeneous">True</property> - <child> - <object class="GtkLabel" id="paperft"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Paper size</property> - <property name="use_underline">True</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="GtkLabel" id="label4"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Orientation</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="GtkLabel" id="duplexft"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Duplex</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="GtkLabel" id="slotft"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Paper tray</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="GtkComboBoxText" id="paperlb"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</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="GtkComboBoxText" id="orientlb"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</property> - <items> - <item translatable="yes">Portrait</item> - <item translatable="yes">Landscape</item> - </items> - </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> - <object class="GtkComboBoxText" id="duplexlb"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</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="GtkComboBoxText" id="slotlb"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</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> - </object> -</interface> diff --git a/padmin/uiconfig/ui/printerpropertiesdialog.ui b/padmin/uiconfig/ui/printerpropertiesdialog.ui deleted file mode 100644 index 0df264d7a66c..000000000000 --- a/padmin/uiconfig/ui/printerpropertiesdialog.ui +++ /dev/null @@ -1,104 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <!-- interface-requires gtk+ 3.0 --> - <object class="GtkDialog" id="PrinterPropertiesDialog"> - <property name="can_focus">False</property> - <property name="border_width">6</property> - <property name="title" translatable="yes">Properties of %s</property> - <property name="type_hint">dialog</property> - <child internal-child="vbox"> - <object class="GtkBox" id="dialog-vbox1"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child internal-child="action_area"> - <object class="GtkButtonBox" id="dialog-action_area1"> - <property name="can_focus">False</property> - <property name="layout_style">end</property> - <child> - <object class="GtkButton" id="ok"> - <property name="label">gtk-ok</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="has_default">True</property> - <property name="receives_default">True</property> - <property name="use_stock">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkButton" id="cancel"> - <property name="label">gtk-cancel</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="use_stock">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack_type">end</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkNotebook" id="notebook"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="paper"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Paper</property> - </object> - <packing> - <property name="position">1</property> - <property name="tab_fill">False</property> - </packing> - </child> - <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="device"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Device</property> - </object> - <packing> - <property name="position">2</property> - <property name="tab_fill">False</property> - </packing> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - </child> - <action-widgets> - <action-widget response="0">ok</action-widget> - <action-widget response="0">cancel</action-widget> - </action-widgets> - </object> -</interface> |