[Libreoffice-commits] core.git: 3 commits - cui/source filter/inc filter/source filter/uiconfig filter/UIConfig_xsltdlg.mk include/sfx2 sfx2/source vcl/inc vcl/source

Caolán McNamara caolanm at redhat.com
Mon Jul 8 06:55:01 PDT 2013


 cui/source/tabpages/numpages.cxx           |    8 
 filter/UIConfig_xsltdlg.mk                 |    1 
 filter/inc/filter.hrc                      |    2 
 filter/source/pdf/impdialog.cxx            |  104 +++++------
 filter/source/pdf/impdialog.hrc            |   23 --
 filter/source/pdf/impdialog.hxx            |   19 --
 filter/source/pdf/impdialog.src            |  106 -----------
 filter/uiconfig/ui/pdfoptionsdialog.ui     |    4 
 filter/uiconfig/ui/pdfsignpage.ui          |  268 +++++++++++++++++++++++++++++
 filter/uiconfig/ui/pdfuserinterfacepage.ui |    6 
 include/sfx2/tabdlg.hxx                    |    6 
 sfx2/source/dialog/tabdlg.cxx              |    2 
 vcl/inc/svids.hrc                          |    1 
 vcl/source/src/btntext.src                 |    5 
 vcl/source/window/builder.cxx              |    2 
 15 files changed, 347 insertions(+), 210 deletions(-)

New commits:
commit 3a393557152ec61ebfe75580db0a2e321febfda3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jul 8 14:53:51 2013 +0100

    allow SfxTabDialog ok button to have custom text
    
    Change-Id: Ia38a982b37568c9225c03197a085db3164602f85

diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 692872c..2f879e4 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -363,7 +363,7 @@ IMPL_LINK_NOARG(SvxSingleNumPickTabPage, NumSelectHdl_Impl)
 IMPL_LINK_NOARG(SvxSingleNumPickTabPage, DoubleClickHdl_Impl)
 {
     NumSelectHdl_Impl(m_pExamplesVS);
-    OKButton& rOk = GetTabDialog()->GetOKButton();
+    PushButton& rOk = GetTabDialog()->GetOKButton();
     rOk.GetClickHdl().Call(&rOk);
     return 0;
 }
@@ -514,7 +514,7 @@ IMPL_LINK_NOARG(SvxBulletPickTabPage, NumSelectHdl_Impl)
 IMPL_LINK_NOARG(SvxBulletPickTabPage, DoubleClickHdl_Impl)
 {
     NumSelectHdl_Impl(m_pExamplesVS);
-    OKButton& rOk = GetTabDialog()->GetOKButton();
+    PushButton& rOk = GetTabDialog()->GetOKButton();
     rOk.GetClickHdl().Call(&rOk);
     return 0;
 }
@@ -765,7 +765,7 @@ IMPL_LINK_NOARG(SvxNumPickTabPage, NumSelectHdl_Impl)
 IMPL_LINK_NOARG(SvxNumPickTabPage, DoubleClickHdl_Impl)
 {
     NumSelectHdl_Impl(m_pExamplesVS);
-    OKButton& rOk = GetTabDialog()->GetOKButton();
+    PushButton& rOk = GetTabDialog()->GetOKButton();
     rOk.GetClickHdl().Call(&rOk);
     return 0;
 }
@@ -979,7 +979,7 @@ IMPL_LINK_NOARG(SvxBitmapPickTabPage, NumSelectHdl_Impl)
 IMPL_LINK_NOARG(SvxBitmapPickTabPage, DoubleClickHdl_Impl)
 {
     NumSelectHdl_Impl(m_pExamplesVS);
-    OKButton& rOk = GetTabDialog()->GetOKButton();
+    PushButton& rOk = GetTabDialog()->GetOKButton();
     rOk.GetClickHdl().Call(&rOk);
     return 0;
 }
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index b1d3ed0..ee8c1f6 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -68,7 +68,7 @@ friend class SfxTabDialogController;
     VclBox *m_pBox;
     TabControl *m_pTabCtrl;
 
-    OKButton *m_pOKBtn;
+    PushButton* m_pOKBtn;
     PushButton* m_pApplyBtn;
     PushButton* m_pUserBtn;
     CancelButton* m_pCancelBtn;
@@ -205,8 +205,8 @@ public:
     const SfxItemSet*   GetOutputItemSet() const { return pOutSet; }
     sal_Bool IsFormat() const { return bFmt; }
 
-    const OKButton&     GetOKButton() const { return *m_pOKBtn; }
-    OKButton&           GetOKButton() { return *m_pOKBtn; }
+    const PushButton&   GetOKButton() const { return *m_pOKBtn; }
+    PushButton&         GetOKButton() { return *m_pOKBtn; }
     const CancelButton& GetCancelButton() const { return *m_pCancelBtn; }
     CancelButton&       GetCancelButton() { return *m_pCancelBtn; }
     const HelpButton&   GetHelpButton() const { return *m_pHelpBtn; }
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 75fcdef..4180e85 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -594,7 +594,7 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
         set_action_area(m_pActionArea);
     }
 
-    m_pOKBtn = m_pUIBuilder ? m_pUIBuilder->get<OKButton>("ok") : NULL;
+    m_pOKBtn = m_pUIBuilder ? m_pUIBuilder->get<PushButton>("ok") : NULL;
     m_bOwnsOKBtn = m_pOKBtn == NULL;
     if (m_bOwnsOKBtn)
         m_pOKBtn = new OKButton(m_pActionArea);
commit 0c68a3867f16cfb24c7480291292d8dd0ffcc20e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jul 8 13:38:53 2013 +0100

    convert pdf signing page to .ui format
    
    Change-Id: I037036e410a6f9d7da7bc34721c105e81470d5d9

diff --git a/filter/UIConfig_xsltdlg.mk b/filter/UIConfig_xsltdlg.mk
index 987211b..0614899 100644
--- a/filter/UIConfig_xsltdlg.mk
+++ b/filter/UIConfig_xsltdlg.mk
@@ -14,6 +14,7 @@ $(eval $(call gb_UIConfig_add_uifiles,filter,\
     filter/uiconfig/ui/pdflinkspage \
     filter/uiconfig/ui/pdfoptionsdialog \
     filter/uiconfig/ui/pdfsecuritypage \
+    filter/uiconfig/ui/pdfsignpage \
     filter/uiconfig/ui/pdfuserinterfacepage \
     filter/uiconfig/ui/pdfviewpage \
 	filter/uiconfig/ui/testxmlfilter \
diff --git a/filter/inc/filter.hrc b/filter/inc/filter.hrc
index 1ba4c08..2f85621 100644
--- a/filter/inc/filter.hrc
+++ b/filter/inc/filter.hrc
@@ -31,8 +31,6 @@
 
 // warning, next range is RID_FILTER_START + 100 !
 
-#define HID_FILTER_PDF_SIGNING        "HID_FILTER_PDF_SIGNING"
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 756e030..8badeb4 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -257,16 +257,18 @@ ImpPDFTabDialog::ImpPDFTabDialog(Window* pParent, Sequence< PropertyValue >& rFi
     if (!aMiscOptions.IsExperimentalMode())
         RemoveTabPage(mnSigningPageId);
 
-//last queued is the first to be displayed (or so it seems..)
+    //last queued is the first to be displayed (or so it seems..)
     mnGeneralPageId = AddTabPage("general", ImpPDFTabGeneralPage::Create, 0 );
 
-//get the string property value (from sfx2/source/dialog/mailmodel.cxx) to overwrite the text for the Ok button
+    //get the string property value (from sfx2/source/dialog/mailmodel.cxx) to overwrite the text for the Ok button
     OUString sOkButtonText = maConfigItem.ReadString( "_OkButtonString", OUString() );
 
-//change text on the Ok button: get the relevant string from resources, update it on the button
-//according to the exported pdf file destination: send as e-mail or write to file?
-    GetOKButton().SetText( ( sOkButtonText.isEmpty() ) ?
-                            OUString( String( PDFFilterResId( STR_PDF_EXPORT ) ) ) : sOkButtonText );
+    //change text on the Ok button: get the relevant string from resources, update it on the button
+    //according to the exported pdf file destination: send as e-mail or write to file?
+    if (!sOkButtonText.isEmpty())
+    {
+        GetOKButton().SetText(sOkButtonText);
+    }
 
     GetCancelButton().SetClickHdl(LINK(this, ImpPDFTabDialog, CancelHdl));
 
@@ -511,7 +513,6 @@ Sequence< PropertyValue > ImpPDFTabDialog::GetFilterData()
 // -----------------------------------------------------------------------------
 ImpPDFTabGeneralPage::ImpPDFTabGeneralPage(Window* pParent, const SfxItemSet& rCoreSet)
     : SfxTabPage(pParent, "PdfGeneralPage","filter/ui/pdfgeneralpage.ui", rCoreSet)
-
     , mbTaggedPDFUserSelection(false)
     , mbExportFormFieldsUserSelection(false)
     , mbIsPresentation(false)
@@ -846,7 +847,6 @@ ImpPDFTabOpnFtrPage::ImpPDFTabOpnFtrPage(Window* pParent, const SfxItemSet& rCor
     mpRbMagnFitWidth->SetToggleHdl( LINK( this, ImpPDFTabOpnFtrPage, ToggleRbMagnHdl ) );
     mpRbMagnFitVisible->SetToggleHdl( LINK( this, ImpPDFTabOpnFtrPage, ToggleRbMagnHdl ) );
     mpRbMagnZoom->SetToggleHdl( LINK( this, ImpPDFTabOpnFtrPage, ToggleRbMagnHdl ) );
-    mpNumZoom->SetAccessibleName(mpRbMagnZoom->GetText());
 }
 
 // -----------------------------------------------------------------------------
@@ -1003,8 +1003,6 @@ ImpPDFTabViewerPage::ImpPDFTabViewerPage( Window* pParent,
 
     m_pRbAllBookmarkLevels->SetToggleHdl( LINK( this, ImpPDFTabViewerPage, ToggleRbBookmarksHdl ) );
     m_pRbVisibleBookmarkLevels->SetToggleHdl( LINK( this, ImpPDFTabViewerPage, ToggleRbBookmarksHdl ) );
-    m_pNumBookmarkLevels->SetAccessibleName(m_pRbVisibleBookmarkLevels->GetText());
-    m_pNumBookmarkLevels->SetAccessibleRelationLabeledBy(m_pRbVisibleBookmarkLevels);
 }
 
 // -----------------------------------------------------------------------------
@@ -1556,29 +1554,21 @@ IMPL_LINK_NOARG(ImplErrorDialog, SelectHdl)
 ////////////////////////////////////////////////////////
 // The digital signatures tab page
 // -----------------------------------------------------------------------------
-ImpPDFTabSigningPage::ImpPDFTabSigningPage( Window* pParent,
-                                              const SfxItemSet& rCoreSet ) :
-    SfxTabPage( pParent, PDFFilterResId( RID_PDF_TAB_SIGNING ), rCoreSet ),
-
-    maFtSignCert( this, PDFFilterResId( FT_SIGN_CERT_TEXT ) ),
-    maEdSignCert( this, PDFFilterResId( ED_SIGN_CERT ) ),
-    maPbSignCertSelect( this, PDFFilterResId( BTN_SIGN_CERT_SELECT ) ),
-    maPbSignCertClear( this, PDFFilterResId( BTN_SIGN_CERT_CLEAR ) ),
-    maFtSignPassword( this, PDFFilterResId( FT_SIGN_PASSWORD ) ),
-    maEdSignPassword( this, PDFFilterResId( ED_SIGN_PASSWORD ) ),
-    maFtSignLocation( this, PDFFilterResId( FT_SIGN_LOCATION ) ),
-    maEdSignLocation( this, PDFFilterResId( ED_SIGN_LOCATION ) ),
-    maFtSignContactInfo( this, PDFFilterResId( FT_SIGN_CONTACT ) ),
-    maEdSignContactInfo( this, PDFFilterResId( ED_SIGN_CONTACT ) ),
-    maFtSignReason( this, PDFFilterResId( FT_SIGN_REASON ) ),
-    maEdSignReason( this, PDFFilterResId( ED_SIGN_REASON ) ),
-    maSignCertificate()
+ImpPDFTabSigningPage::ImpPDFTabSigningPage(Window* pParent, const SfxItemSet& rCoreSet)
+    : SfxTabPage(pParent, "PdfSignPage","filter/ui/pdfsignpage.ui", rCoreSet)
+    , maSignCertificate()
 {
-    FreeResource();
-
-    maPbSignCertSelect.Enable( true );
-    maPbSignCertSelect.SetClickHdl( LINK( this, ImpPDFTabSigningPage, ClickmaPbSignCertSelect ) );
-    maPbSignCertClear.SetClickHdl( LINK( this, ImpPDFTabSigningPage, ClickmaPbSignCertClear ) );
+    get(mpEdSignCert, "cert");
+    get(mpPbSignCertSelect, "select");
+    get(mpPbSignCertClear, "clear");
+    get(mpEdSignPassword, "password");
+    get(mpEdSignLocation, "location");
+    get(mpEdSignContactInfo, "contact");
+    get(mpEdSignReason, "reason");
+
+    mpPbSignCertSelect->Enable( true );
+    mpPbSignCertSelect->SetClickHdl( LINK( this, ImpPDFTabSigningPage, ClickmaPbSignCertSelect ) );
+    mpPbSignCertClear->SetClickHdl( LINK( this, ImpPDFTabSigningPage, ClickmaPbSignCertClear ) );
 }
 
 // -----------------------------------------------------------------------------
@@ -1597,12 +1587,12 @@ IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect )
 
     if (maSignCertificate.is())
     {
-        maEdSignCert.SetText(maSignCertificate->getSubjectName());
-        maPbSignCertClear.Enable( true );
-        maEdSignLocation.Enable( true );
-        maEdSignPassword.Enable( true );
-        maEdSignContactInfo.Enable( true );
-        maEdSignReason.Enable( true );
+        mpEdSignCert->SetText(maSignCertificate->getSubjectName());
+        mpPbSignCertClear->Enable( true );
+        mpEdSignLocation->Enable( true );
+        mpEdSignPassword->Enable( true );
+        mpEdSignContactInfo->Enable( true );
+        mpEdSignReason->Enable( true );
     }
 
     return 0;
@@ -1610,13 +1600,13 @@ IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect )
 
 IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertClear )
 {
-    maEdSignCert.SetText(OUString(""));
+    mpEdSignCert->SetText(OUString(""));
     maSignCertificate.clear();
-    maPbSignCertClear.Enable( false );
-    maEdSignLocation.Enable( false );
-    maEdSignPassword.Enable( false );
-    maEdSignContactInfo.Enable( false );
-    maEdSignReason.Enable( false );
+    mpPbSignCertClear->Enable( false );
+    mpEdSignLocation->Enable( false );
+    mpEdSignPassword->Enable( false );
+    mpEdSignContactInfo->Enable( false );
+    mpEdSignReason->Enable( false );
 
     return 0;
 }
@@ -1633,10 +1623,10 @@ void ImpPDFTabSigningPage::GetFilterConfigItem( ImpPDFTabDialog* paParent  )
 {
     paParent->mbSignPDF = maSignCertificate.is();
     paParent->maSignCertificate = maSignCertificate;
-    paParent->msSignLocation = maEdSignLocation.GetText();
-    paParent->msSignPassword = maEdSignPassword.GetText();
-    paParent->msSignContact = maEdSignContactInfo.GetText();
-    paParent->msSignReason = maEdSignReason.GetText();
+    paParent->msSignLocation = mpEdSignLocation->GetText();
+    paParent->msSignPassword = mpEdSignPassword->GetText();
+    paParent->msSignContact = mpEdSignContactInfo->GetText();
+    paParent->msSignReason = mpEdSignReason->GetText();
 
 }
 
@@ -1644,18 +1634,18 @@ void ImpPDFTabSigningPage::GetFilterConfigItem( ImpPDFTabDialog* paParent  )
 void ImpPDFTabSigningPage::SetFilterConfigItem( const  ImpPDFTabDialog* paParent )
 {
 
-    maEdSignLocation.Enable( false );
-    maEdSignPassword.Enable( false );
-    maEdSignContactInfo.Enable( false );
-    maEdSignReason.Enable( false );
-    maPbSignCertClear.Enable( false );
+    mpEdSignLocation->Enable( false );
+    mpEdSignPassword->Enable( false );
+    mpEdSignContactInfo->Enable( false );
+    mpEdSignReason->Enable( false );
+    mpPbSignCertClear->Enable( false );
 
     if (paParent->mbSignPDF)
     {
-        maEdSignPassword.SetText(paParent->msSignPassword);
-        maEdSignLocation.SetText(paParent->msSignLocation);
-        maEdSignContactInfo.SetText(paParent->msSignContact);
-        maEdSignReason.SetText(paParent->msSignReason);
+        mpEdSignPassword->SetText(paParent->msSignPassword);
+        mpEdSignLocation->SetText(paParent->msSignLocation);
+        mpEdSignContactInfo->SetText(paParent->msSignContact);
+        mpEdSignReason->SetText(paParent->msSignReason);
         maSignCertificate = paParent->maSignCertificate;
     }
 }
diff --git a/filter/source/pdf/impdialog.hrc b/filter/source/pdf/impdialog.hrc
index 1877d62..0351742 100644
--- a/filter/source/pdf/impdialog.hrc
+++ b/filter/source/pdf/impdialog.hrc
@@ -19,17 +19,8 @@
 
 #include <filter.hrc>
 
-#define RID_PDF_TAB_GENER           (RID_PDF_DIALOG_START +   1)
-#define RID_PDF_TAB_VPREFER         (RID_PDF_DIALOG_START +   2)
-#define RID_PDF_TAB_OPNFTR          (RID_PDF_DIALOG_START +   3)
-#define RID_PDF_TAB_SECURITY        (RID_PDF_DIALOG_START +   4)
-#define RID_PDF_TAB_LINKS           (RID_PDF_DIALOG_START +   12)
-#define RID_PDF_TAB_SIGNING         (RID_PDF_DIALOG_START +   13)
 #define RID_PDF_WARNPDFAPASSWORD    (RID_PDF_DIALOG_START +   6)
 
-//strings
-#define STR_PDF_EXPORT              (RID_PDF_DIALOG_START +   5)
-
 //strings for PDF security, user password management
 #define STR_PDF_EXPORT_UDPWD         (RID_PDF_DIALOG_START +  7)
 
@@ -56,18 +47,4 @@
 #define FL_VPREFER_VERTICAL  158
 #define FL_SECURITY_VERTICAL 160
 
-//controls for digital signatures tab page
-#define FT_SIGN_CERT_TEXT    170
-#define ED_SIGN_CERT         171
-#define BTN_SIGN_CERT_SELECT 172
-#define BTN_SIGN_CERT_CLEAR  173
-#define FT_SIGN_PASSWORD     174
-#define ED_SIGN_PASSWORD     175
-#define FT_SIGN_LOCATION     176
-#define ED_SIGN_LOCATION     177
-#define FT_SIGN_CONTACT      178
-#define ED_SIGN_CONTACT      179
-#define FT_SIGN_REASON       180
-#define ED_SIGN_REASON       181
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/impdialog.hxx b/filter/source/pdf/impdialog.hxx
index 56a8983..1369322 100644
--- a/filter/source/pdf/impdialog.hxx
+++ b/filter/source/pdf/impdialog.hxx
@@ -420,18 +420,13 @@ public:
 //class to implement the digital signing
 class ImpPDFTabSigningPage : public SfxTabPage
 {
-    FixedText                   maFtSignCert;
-    Edit                        maEdSignCert;
-    PushButton                  maPbSignCertSelect;
-    PushButton                  maPbSignCertClear;
-    FixedText                   maFtSignPassword;
-    Edit                        maEdSignPassword;
-    FixedText                   maFtSignLocation;
-    Edit                        maEdSignLocation;
-    FixedText                   maFtSignContactInfo;
-    Edit                        maEdSignContactInfo;
-    FixedText                   maFtSignReason;
-    Edit                        maEdSignReason;
+    Edit*                       mpEdSignCert;
+    PushButton*                 mpPbSignCertSelect;
+    PushButton*                 mpPbSignCertClear;
+    Edit*                       mpEdSignPassword;
+    Edit*                       mpEdSignLocation;
+    Edit*                       mpEdSignContactInfo;
+    Edit*                       mpEdSignReason;
     com::sun::star::uno::Reference< com::sun::star::security::XCertificate > maSignCertificate;
 
     DECL_LINK( ClickmaPbSignCertSelect, void* );
diff --git a/filter/source/pdf/impdialog.src b/filter/source/pdf/impdialog.src
index c401736..ca9c21b 100644
--- a/filter/source/pdf/impdialog.src
+++ b/filter/source/pdf/impdialog.src
@@ -19,13 +19,6 @@
 
 #include "impdialog.hrc"
 
-#define TAB_PDF_SIZE Size = MAP_APPFONT ( 352, 180 )
-//string for TabDialog standard buttons
-String STR_PDF_EXPORT
-{
-        Text[ en-US ] = "E~xport";
-};
-
 //strings used in encryption UI
 
 //password dialog title
@@ -46,105 +39,6 @@ WarningBox RID_PDF_WARNPDFAPASSWORD
     Message[ en-US ] = "PDF/A does not allow encryption. The exported PDF file will not be password protected.";
 };
 
-//----------------------------------------------------------
-//tab page for PDF Export, digital signatures
-TabPage  RID_PDF_TAB_SIGNING
-{
-    HelpId = HID_FILTER_PDF_SIGNING ;
-    Text [ en-US ] = "Digital Signatures";
-    TAB_PDF_SIZE;
-    Hide = TRUE;
-
-    FixedText FT_SIGN_CERT_TEXT
-    {
-        Pos = MAP_APPFONT( 6, 3 );
-        Size = MAP_APPFONT( 250, 10 );
-        Text[ en-US ] = "Use this certificate to digitally sign PDF documents:";
-    };
-
-    Edit ED_SIGN_CERT
-    {
-        Border = TRUE ;
-        Disable = TRUE ;
-        Pos = MAP_APPFONT ( 6, 17 ) ;
-        Size = MAP_APPFONT ( 120 , 13 ) ;
-    };
-
-    PushButton BTN_SIGN_CERT_SELECT
-    {
-        TabStop = TRUE ;
-        Pos = MAP_APPFONT ( 130, 17 ) ;
-        Size = MAP_APPFONT ( 40 , 13 ) ;
-        Text[ en-US ] = "~Select...";
-    };
-
-    PushButton BTN_SIGN_CERT_CLEAR
-    {
-        TabStop = TRUE ;
-        Pos = MAP_APPFONT ( 175, 17 ) ;
-        Size = MAP_APPFONT ( 40 , 13 ) ;
-        Text[ en-US ] = "Clear";
-    };
-
-    FixedText FT_SIGN_PASSWORD
-    {
-        Pos = MAP_APPFONT( 6, 35 );
-        Size = MAP_APPFONT( 109, 10 );
-        Text[ en-US ] = "Certificate Password";
-    };
-
-    Edit ED_SIGN_PASSWORD
-    {
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 102, 35 ) ;
-        PassWord = TRUE;
-        Size = MAP_APPFONT ( 68 , 12 ) ;
-    };
-
-    FixedText FT_SIGN_LOCATION
-    {
-        Pos = MAP_APPFONT( 6, 48 );
-        Size = MAP_APPFONT( 109, 10 );
-        Text[ en-US ] = "Location";
-    };
-
-    Edit ED_SIGN_LOCATION
-    {
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 102, 48 ) ;
-        Size = MAP_APPFONT ( 68 , 12 ) ;
-    };
-
-    FixedText FT_SIGN_CONTACT
-    {
-        Pos = MAP_APPFONT( 6, 61 );
-        Size = MAP_APPFONT( 109, 10 );
-        Text[ en-US ] = "Contact Information";
-    };
-
-    Edit ED_SIGN_CONTACT
-    {
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 102, 61 ) ;
-        Size = MAP_APPFONT ( 68 , 12 ) ;
-    };
-
-    FixedText FT_SIGN_REASON
-    {
-        Pos = MAP_APPFONT( 6, 74 );
-        Size = MAP_APPFONT( 109, 10 );
-        Text[ en-US ] = "Reason";
-    };
-
-    Edit ED_SIGN_REASON
-    {
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 102, 74 ) ;
-        Size = MAP_APPFONT ( 68 , 12 ) ;
-    };
-
-};
-
 ModalDialog RID_PDF_ERROR_DLG
 {
     HelpID = "filter:ModalDialog:RID_PDF_ERROR_DLG";
diff --git a/filter/uiconfig/ui/pdfoptionsdialog.ui b/filter/uiconfig/ui/pdfoptionsdialog.ui
index 25f222e..a7a3350 100644
--- a/filter/uiconfig/ui/pdfoptionsdialog.ui
+++ b/filter/uiconfig/ui/pdfoptionsdialog.ui
@@ -16,7 +16,7 @@
             <property name="can_focus">False</property>
             <property name="layout_style">end</property>
             <child>
-              <object class="GtkButton" id="export">
+              <object class="GtkButton" id="ok">
                 <property name="label" translatable="yes">E_xport</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
@@ -166,7 +166,7 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="0">export</action-widget>
+      <action-widget response="0">ok</action-widget>
       <action-widget response="0">cancel</action-widget>
       <action-widget response="0">help</action-widget>
     </action-widgets>
diff --git a/filter/uiconfig/ui/pdfsignpage.ui b/filter/uiconfig/ui/pdfsignpage.ui
new file mode 100644
index 0000000..ff9395f
--- /dev/null
+++ b/filter/uiconfig/ui/pdfsignpage.ui
@@ -0,0 +1,268 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkFrame" id="PdfSignPage">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="hexpand">True</property>
+    <property name="label_xalign">0</property>
+    <property name="shadow_type">none</property>
+    <child>
+      <object class="GtkAlignment" id="alignment1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="hexpand">True</property>
+        <property name="top_padding">6</property>
+        <property name="left_padding">12</property>
+        <child>
+          <object class="GtkGrid" id="grid1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="row_spacing">6</property>
+            <property name="column_spacing">12</property>
+            <child>
+              <object class="GtkGrid" id="grid2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">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="hexpand">True</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Use this certificate to digitally sign PDF documents:</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">cert</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="cert">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
+                    <property name="invisible_char">●</property>
+                    <property name="invisible_char_set">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="select">
+                    <property name="label" translatable="yes">Select...</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="valign">center</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>
+                  <object class="GtkButton" id="clear">
+                    <property name="label">gtk-clear</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="valign">center</property>
+                    <property name="use_stock">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>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+              </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="GtkGrid" id="grid5">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+                <property name="row_spacing">6</property>
+                <property name="column_spacing">12</property>
+                <child>
+                  <object class="GtkEntry" id="password">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
+                    <property name="visibility">False</property>
+                    <property name="invisible_char">●</property>
+                    <property name="invisible_char_set">True</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="GtkEntry" id="location">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
+                    <property name="invisible_char">●</property>
+                    <property name="invisible_char_set">True</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>
+                  <object class="GtkEntry" id="contact">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
+                    <property name="invisible_char">●</property>
+                    <property name="invisible_char_set">True</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="GtkEntry" id="reason">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
+                    <property name="invisible_char">●</property>
+                    <property name="invisible_char_set">True</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="GtkLabel" id="label7">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Certificate Password</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">password</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="label12">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Location</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">location</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="label13">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Contact Information</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">contact</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="label14">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Reason</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">reason</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>
+              </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>
+          </object>
+        </child>
+      </object>
+    </child>
+    <child type="label">
+      <object class="GtkLabel" id="label1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">Certificate</property>
+        <attributes>
+          <attribute name="weight" value="bold"/>
+        </attributes>
+      </object>
+    </child>
+  </object>
+  <object class="GtkSizeGroup" id="sizegroup1">
+    <widgets>
+      <widget name="select"/>
+      <widget name="clear"/>
+    </widgets>
+  </object>
+</interface>
diff --git a/filter/uiconfig/ui/pdfuserinterfacepage.ui b/filter/uiconfig/ui/pdfuserinterfacepage.ui
index 5cdbb7ee..4f9b01b 100644
--- a/filter/uiconfig/ui/pdfuserinterfacepage.ui
+++ b/filter/uiconfig/ui/pdfuserinterfacepage.ui
@@ -329,6 +329,9 @@
                         <property name="active">True</property>
                         <property name="draw_indicator">True</property>
                         <property name="group">allbookmarks</property>
+                        <accessibility>
+                          <relation type="label-for" target="visiblelevel"/>
+                        </accessibility>
                       </object>
                       <packing>
                         <property name="left_attach">0</property>
@@ -344,6 +347,9 @@
                         <property name="invisible_char">•</property>
                         <property name="invisible_char_set">True</property>
                         <property name="adjustment">adjustment1</property>
+                        <accessibility>
+                          <relation type="labelled-by" target="visiblebookmark"/>
+                        </accessibility>
                       </object>
                       <packing>
                         <property name="left_attach">1</property>
commit aa78d6ff4a310b7eeaffafe477cc24a057cb01b7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jul 8 13:57:39 2013 +0100

    add a new stock item 'Clear' and map to gtk-clear
    
    Change-Id: Idf2a9a879daf48202f28068d2aa108ca97213bd8

diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index e9bb616..abe1a14 100644
--- a/vcl/inc/svids.hrc
+++ b/vcl/inc/svids.hrc
@@ -165,6 +165,7 @@
 #define SV_BUTTONTEXT_NEXT                  10123
 #define SV_BUTTONTEXT_GO_UP                 10124
 #define SV_BUTTONTEXT_GO_DOWN               10125
+#define SV_BUTTONTEXT_CLEAR                 10126
 
 #define SV_STDTEXT_FIRST                    SV_STDTEXT_SERVICENOTAVAILABLE
 #define SV_STDTEXT_SERVICENOTAVAILABLE      10210
diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src
index 07813ad..8d84b7a 100644
--- a/vcl/source/src/btntext.src
+++ b/vcl/source/src/btntext.src
@@ -151,4 +151,9 @@ String SV_BUTTONTEXT_GO_DOWN
     Text [ en-US ] = "Do~wn" ;
 };
 
+String SV_BUTTONTEXT_CLEAR
+{
+    Text [ en-US ] = "~Clear" ;
+};
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 9a3ebd5..ed66c5d 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -601,6 +601,8 @@ namespace
             return (VclResId(SV_BUTTONTEXT_GO_UP).toString());
         else if (rType == "gtk-go-down")
             return (VclResId(SV_BUTTONTEXT_GO_DOWN).toString());
+        else if (rType == "gtk-clear")
+            return (VclResId(SV_BUTTONTEXT_CLEAR).toString());
         SAL_WARN("vcl.layout", "unknown stock type: " << rType.getStr());
         return OUString();
     }


More information about the Libreoffice-commits mailing list