summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-16 15:19:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-17 06:04:58 +0000
commite6541c1abe67a8e13fcbf9d8d8938ac686e7a48d (patch)
tree9fd4d78bbeae0cf3b5b1d4b82b89057acb14666f /xmlsecurity
parent7f554d0dc46590f5b2f7247e4450b8a1904bb3a9 (diff)
remove unused defines from HRC files in xmlsecurity
Change-Id: I1a0cfa86708e054ecced54052085e65e847097ba Reviewed-on: https://gerrit.libreoffice.org/35270 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/certificateviewer.cxx2
-rw-r--r--xmlsecurity/source/dialogs/certificateviewer.src5
-rw-r--r--xmlsecurity/source/dialogs/dialogs.hrc11
3 files changed, 2 insertions, 16 deletions
diff --git a/xmlsecurity/source/dialogs/certificateviewer.cxx b/xmlsecurity/source/dialogs/certificateviewer.cxx
index 57b558c61c80..81f07defeef6 100644
--- a/xmlsecurity/source/dialogs/certificateviewer.cxx
+++ b/xmlsecurity/source/dialogs/certificateviewer.cxx
@@ -245,6 +245,8 @@ CertificateViewerDetailsTP::CertificateViewerDetailsTP( vcl::Window* _pParent, C
m_aFixedWidthFont.SetFontHeight( m_aStdFont.GetFontHeight() );
+ constexpr int DLGS_WIDTH = 287;
+ constexpr int CS_LB_WIDTH = (DLGS_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT) - RSC_SP_DLG_INNERBORDER_LEFT;
static long nTabs[] = { 2, 0, 30*CS_LB_WIDTH/100 };
m_pElementsLB->SetTabs( &nTabs[ 0 ] );
m_pElementsLB->InsertHeaderEntry( XMLSEC_RES( STR_HEADERBAR ) );
diff --git a/xmlsecurity/source/dialogs/certificateviewer.src b/xmlsecurity/source/dialogs/certificateviewer.src
index bd48618b05bd..7259be1ed334 100644
--- a/xmlsecurity/source/dialogs/certificateviewer.src
+++ b/xmlsecurity/source/dialogs/certificateviewer.src
@@ -44,11 +44,6 @@ String STR_SERIALNUM
Text [ en-US ] = "Serial Number";
};
-String STR_SIGALGORITHM
-{
- Text [ en-US ] = "Signature Algorithm";
-};
-
String STR_ISSUER
{
Text [ en-US ] = "Issuer";
diff --git a/xmlsecurity/source/dialogs/dialogs.hrc b/xmlsecurity/source/dialogs/dialogs.hrc
index b6299a9578a8..d81d923fc0ac 100644
--- a/xmlsecurity/source/dialogs/dialogs.hrc
+++ b/xmlsecurity/source/dialogs/dialogs.hrc
@@ -32,22 +32,11 @@
#define STR_SUBJECT 262
#define STR_SUBJECT_PUBKEY_ALGO 263
#define STR_SUBJECT_PUBKEY_VAL 264
-#define STR_SIGALGORITHM 265
#define STR_SIGNATURE_ALGO 266
#define STR_THUMBPRINT_SHA1 267
#define STR_THUMBPRINT_MD5 268
#define STR_USE 271
-// --------- general metrics ---------
-#define DLGS_WIDTH 287
-
-// --------- tab dialog Certificate viewer ---------
-
-// still used by certificateviewer.cxx
-#define CS_COL_0 RSC_SP_DLG_INNERBORDER_LEFT
-#define CS_COL_2 (DLGS_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT)
-#define CS_LB_WIDTH (CS_COL_2-CS_COL_0)
-
// --------- tab page Certificate viewer - General ---------
#define STR_CERTIFICATE_NOT_VALIDATED 269
#define BMP_STATE_NOT_VALIDATED 270