From 982db7bc6b82185202fb1a31ab29398b68c75073 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 1 Jul 2012 16:46:25 +0200 Subject: Move "save graphic" dialog title to svx. Change-Id: I1200e66f010525d989bed801240de6813ddf751c --- svx/AllLangResTarget_svx.mk | 3 ++- svx/inc/svx/dialogs.hrc | 6 +++--- svx/source/core/graphichelper.cxx | 6 +++--- svx/source/core/graphichelper.src | 24 ++++++++++++++++++++++++ 4 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 svx/source/core/graphichelper.src (limited to 'svx') diff --git a/svx/AllLangResTarget_svx.mk b/svx/AllLangResTarget_svx.mk index cf152d7151bc..cae5703fae06 100644 --- a/svx/AllLangResTarget_svx.mk +++ b/svx/AllLangResTarget_svx.mk @@ -2,7 +2,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2000, 2011 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite @@ -56,6 +56,7 @@ $(eval $(call gb_SrsTarget_set_include,svx/res,\ $(eval $(call gb_SrsTarget_add_files,svx/res,\ svx/source/accessibility/accessibility.src \ + svx/source/core/graphichelper.src \ svx/source/dialog/bmpmask.src \ svx/source/dialog/contdlg.src \ svx/source/dialog/ctredlin.src \ diff --git a/svx/inc/svx/dialogs.hrc b/svx/inc/svx/dialogs.hrc index f95678ec73f9..fce189b7bba7 100644 --- a/svx/inc/svx/dialogs.hrc +++ b/svx/inc/svx/dialogs.hrc @@ -136,7 +136,7 @@ #define RID_SW_TP_OPTTABLE_PAGE (RID_OFA_START + 210) #define RID_SW_TP_REDLINE_OPT (RID_OFA_START + 212) #define RID_SW_TP_OPTCOMPATIBILITY_PAGE (RID_OFA_START + 255) -#define RID_SW_TP_COMPARISON_OPT (RID_OFA_START + 257) +#define RID_SW_TP_COMPARISON_OPT (RID_OFA_START + 257) #define RID_SW_TP_HTML_CONTENT_OPT (RID_OFA_START + 240) #define RID_SW_TP_HTML_OPTPRINT_PAGE (RID_OFA_START + 242) #define RID_SW_TP_HTML_OPTTABLE_PAGE (RID_OFA_START + 243) @@ -237,7 +237,6 @@ #define RID_SVXBMP_FONTWORK_FORM11 (RID_SVX_START + 104) #define RID_SVXBMP_FONTWORK_FORM12 (RID_SVX_START + 105) - #define RID_SVXCTRL_COLOR (RID_SVX_START + 117) // for Toolbox-Control style @@ -867,7 +866,8 @@ #define RID_SVXSTR_ACCESSIBILITY_START (RID_SVX_START + 860) // RID_SVXSTR_ACCESSIBILITY_END (RID_SVX_START + 950) -// 984: free +#define RID_SVXSTR_EXPORT_GRAPHIC_TITLE (RID_SVX_START + 984) + #define RID_SVXFLOAT_EXTRUSION_DIRECTION (RID_SVX_START + 985) #define RID_SVX_EXTRUSION_BAR (RID_SVX_START + 986) diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx index faec3b27970d..3e73c99a1d0a 100644 --- a/svx/source/core/graphichelper.cxx +++ b/svx/source/core/graphichelper.cxx @@ -33,6 +33,8 @@ #include #include #include +#include +#include #include #include @@ -85,10 +87,8 @@ String GraphicHelper::ExportGraphic( const Graphic &rGraphic, const String &rGrf // fish out the graphic's name String aName = rGrfName; - printf("Name: %s\n", aName.GetBuffer()); - //aDlgHelper.SetTitle( SW_RESSTR(STR_EXPORT_GRAFIK_TITLE)); - aDlgHelper.SetTitle( String("Title") ); + aDlgHelper.SetTitle( SVX_RESSTR(RID_SVXSTR_EXPORT_GRAPHIC_TITLE)); aDlgHelper.SetDisplayDirectory( aPath.GetMainURL(INetURLObject::DECODE_TO_IURI) ); INetURLObject aURL; aURL.SetSmartURL( aName ); diff --git a/svx/source/core/graphichelper.src b/svx/source/core/graphichelper.src new file mode 100644 index 000000000000..44b881014ae2 --- /dev/null +++ b/svx/source/core/graphichelper.src @@ -0,0 +1,24 @@ +/* + * 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 + +String RID_SVXSTR_EXPORT_GRAPHIC_TITLE +{ + Text [ en-US ] = "Graphics Export" ; +}; -- cgit v1.2.3