summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-05-19 14:28:33 +0200
committerThomas Lange [tl] <tl@openoffice.org>2010-05-19 14:28:33 +0200
commite6d6202169631279336dd19c87f913bb188e01ff (patch)
treeb372315c0c96817396b9420645b50c3a9a3f2dc9 /xmlsecurity
parentfd23c35e4ac47fe68c5277ad4e80afc071123a47 (diff)
cws tl79: #i110254# new security tap page in 'File/Properties'
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx1
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx6
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.src78
3 files changed, 41 insertions, 44 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx b/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx
index 7d7d7c97b..d8c3ffeae 100644
--- a/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx
+++ b/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx
@@ -94,7 +94,6 @@ private:
FixedLine maBottomSepFL;
OKButton maOKBtn;
- CancelButton maCancelBtn;
HelpButton maHelpBtn;
::rtl::OUString m_sODFVersion;
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index 1f6a3c170..8115dfc39 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -203,7 +203,6 @@ DigitalSignaturesDialog::DigitalSignaturesDialog(
,maRemoveBtn ( this, XMLSEC_RES( BTN_REMOVECERT ) )
,maBottomSepFL ( this, XMLSEC_RES( FL_BOTTOM_SEP ) )
,maOKBtn ( this, XMLSEC_RES( BTN_OK ) )
- ,maCancelBtn ( this, XMLSEC_RES( BTN_CANCEL ) )
,maHelpBtn ( this, XMLSEC_RES( BTN_HELP ) )
,m_sODFVersion (sODFVersion)
,m_bHasDocumentSignature(bHasDocumentSignature)
@@ -212,7 +211,10 @@ DigitalSignaturesDialog::DigitalSignaturesDialog(
// --> PB #i48253 the tablistbox needs its own unique id
maSignaturesLB.Window::SetUniqueId( HID_XMLSEC_TREE_SIGNATURESDLG );
// <--
- static long nTabs[] = { 4, 0, 6*DS_LB_WIDTH/100, 36*DS_LB_WIDTH/100, 74*DS_LB_WIDTH/100 };
+ Size aControlSize( maSignaturesLB.GetSizePixel() );
+ aControlSize = maSignaturesLB.PixelToLogic( aControlSize, MapMode( MAP_APPFONT ) );
+ const long nControlWidth = aControlSize.Width();
+ static long nTabs[] = { 4, 0, 6*nControlWidth/100, 36*nControlWidth/100, 74*nControlWidth/100 };
maSignaturesLB.SetTabs( &nTabs[ 0 ] );
maSignaturesLB.InsertHeaderEntry( String( XMLSEC_RES( STR_HEADERBAR ) ) );
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.src b/xmlsecurity/source/dialogs/digitalsignaturesdialog.src
index 4db8ebc16..fcdc60bee 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.src
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.src
@@ -32,7 +32,7 @@
ModalDialog RID_XMLSECDLG_DIGSIG
{
HelpId = HID_XMLSEC_DLG_DIGSIG;
- Size = MAP_APPFONT( DS_WIDTH, DS_HEIGHT );
+ Size = MAP_APPFONT( 234, 191 );
OutputSize = TRUE;
Closeable = TRUE;
Moveable = TRUE;
@@ -42,30 +42,30 @@ ModalDialog RID_XMLSECDLG_DIGSIG
FixedText FT_HINT_DOC
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_0 );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 3 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
Text [ en-US ] = "The following have signed the document content:";
};
FixedText FT_HINT_BASIC
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_0 );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 3 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
Text [ en-US ] = "The following have signed the document macro:";
};
FixedText FT_HINT_PACK
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_0 );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 3 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
Text [ en-US ] = "The following have signed this package:";
};
Control LB_SIGNATURES
{
HelpId = HID_XMLSEC_CTRL_SIGNATURESDLG;
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_1 );
- Size = MAP_APPFONT( DS_LB_WIDTH, DS_ROW_2-DS_ROW_1 );
+ Pos = MAP_APPFONT( 6, 14 );
+ Size = MAP_APPFONT( 222, 109 );
SVLook = TRUE;
Border = TRUE;
};
@@ -88,8 +88,8 @@ ModalDialog RID_XMLSECDLG_DIGSIG
FixedImage IMG_STATE_VALID
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( IMG1_WIDTH, IMG1_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 33, 22 );
Fixed = Image
{
ImageBitmap = Bitmap { File = "signet_11x16.png"; };
@@ -98,22 +98,22 @@ ModalDialog RID_XMLSECDLG_DIGSIG
};
FixedText FI_STATE_VALID
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
Text [ en-US ] = "The signatures in this document are valid";
};
FixedText FI_STATE_OLDSIGNATURE
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
Text [ en-US ] = "Not all parts of the document are signed";
};
FixedImage IMG_STATE_BROKEN
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( IMG1_WIDTH, IMG1_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 33, 22 );
Fixed = Image
{
ImageBitmap = Bitmap { File = "caution_11x16.png"; };
@@ -122,15 +122,15 @@ ModalDialog RID_XMLSECDLG_DIGSIG
};
FixedText FI_STATE_BROKEN
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
Text [ en-US ] = "The signatures in this document are invalid";
};
FixedImage IMG_STATE_NOTVALIDATED
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( IMG1_WIDTH, IMG1_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 33, 22 );
Fixed = Image
{
ImageBitmap = Bitmap { File = "notcertificate_16.png"; };
@@ -139,48 +139,44 @@ ModalDialog RID_XMLSECDLG_DIGSIG
};
FixedText FI_STATE_NOTVALIDATED
{
- Pos = MAP_APPFONT( DS_COL_0, DS_ROW_2A );
- Size = MAP_APPFONT( DS_COL_7-DS_COL_0, RSC_CD_FIXEDTEXT_HEIGHT );
+ Pos = MAP_APPFONT( 6, 127 );
+ Size = MAP_APPFONT( 222, 8 );
Hide = TRUE;
};
PushButton BTN_VIEWCERT
{
- Pos = MAP_APPFONT( DS_COL_1, DS_ROW_3 );
- Size = MAP_APPFONT( DS_COL_2-DS_COL_1, RSC_CD_PUSHBUTTON_HEIGHT );
+ Pos = MAP_APPFONT( 6, 142 );
+ Size = MAP_APPFONT( 70, 14 );
Text [ en-US ] = "View Certificate...";
};
PushButton BTN_ADDCERT
{
- Pos = MAP_APPFONT( DS_COL_3, DS_ROW_3 );
- Size = MAP_APPFONT( DS_COL_4-DS_COL_3, RSC_CD_PUSHBUTTON_HEIGHT );
- Text [ en-US ] = "Add...";
+ Pos = MAP_APPFONT( 82, 142 );
+ Size = MAP_APPFONT( 70, 14 );
+ Text [ en-US ] = "Sign Document...";
};
PushButton BTN_REMOVECERT
{
- Pos = MAP_APPFONT( DS_COL_5, DS_ROW_3 );
- Size = MAP_APPFONT( DS_COL_6-DS_COL_5, RSC_CD_PUSHBUTTON_HEIGHT );
+ Pos = MAP_APPFONT( 158, 142 );
+ Size = MAP_APPFONT( 70, 14 );
Text [ en-US ] = "Remove";
};
FixedLine FL_BOTTOM_SEP
{
- Pos = MAP_APPFONT( 0, DLGS_BOTTOM_FL_Y( DS_HEIGHT ) );
- Size = MAP_APPFONT( DS_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
+ Pos = MAP_APPFONT( 0, 160 );
+ Size = MAP_APPFONT( 234, 8 );
};
OKButton BTN_OK
{
DefButton = TRUE;
- Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( DS_WIDTH ), DLGS_BOTTOM_BTN_Y( DS_HEIGHT ) );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
- };
- CancelButton BTN_CANCEL
- {
- Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( DS_WIDTH ), DLGS_BOTTOM_BTN_Y( DS_HEIGHT ) );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
+ Pos = MAP_APPFONT( 178, 171 );
+ Size = MAP_APPFONT( 50, 14 );
+ Text [ en-US ] = "Close";
};
HelpButton BTN_HELP
{
- Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( DS_WIDTH ), DLGS_BOTTOM_BTN_Y( DS_HEIGHT ) );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
+ Pos = MAP_APPFONT( 6, 171 );
+ Size = MAP_APPFONT( 50, 14 );
};
Image IMG_STATE_VALID_HC
{