[Libreoffice-commits] core.git: starmath/inc starmath/source

Thomas Arnhold thomas at arnhold.org
Sat Sep 7 20:30:15 PDT 2013


 starmath/inc/smcommands.h |   36 ++++++++++++++++++++++++++++++++++++
 starmath/source/smres.src |    9 +--------
 2 files changed, 37 insertions(+), 8 deletions(-)

New commits:
commit 763298736ea58ca377d733cd158bb512f5e14dfd
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Sun Sep 8 05:29:41 2013 +0200

    Revert "Math: Remove not needed header file"
    
    This reverts commit 5ab959017665e3f74ec4be8245827f3de92dd512.

diff --git a/starmath/inc/smcommands.h b/starmath/inc/smcommands.h
new file mode 100644
index 0000000..a0fd020
--- /dev/null
+++ b/starmath/inc/smcommands.h
@@ -0,0 +1,36 @@
+/* -*- 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 SM_SMCOMMANDS_H
+#define SM_SMCOMMANDS_H
+
+#define CMD_SID_ADJUST                              ".uno:Adjust"
+#define CMD_SID_ALIGN                               ".uno:ChangeAlignment"
+#define CMD_SID_DISTANCE                            ".uno:ChangeDistance"
+#define CMD_SID_FONT                                ".uno:ChangeFont"
+#define CMD_SID_FONTSIZE                            ".uno:ChangeFontSize"
+#define CMD_SID_DRAW                                ".uno:Draw"
+#define CMD_SID_VIEW100                             ".uno:View100"
+#define CMD_SID_VIEW200                             ".uno:View200"
+#define CMD_SID_VIEW050                             ".uno:View50"
+#define CMD_SID_ZOOMIN                              ".uno:ZoomIn"
+#define CMD_SID_ZOOMOUT                             ".uno:ZoomOut"
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/starmath/source/smres.src b/starmath/source/smres.src
index 750da23..d03c15b 100644
--- a/starmath/source/smres.src
+++ b/starmath/source/smres.src
@@ -25,17 +25,10 @@
 #include "dialog.hrc"
 #include "toolbox.hrc"
 #include "ElementsDockingWindow.hrc"
+#include "smcommands.h"
 
 #define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000; Blue = 0xff00; }
 
-#define CMD_SID_ADJUST  ".uno:Adjust"
-#define CMD_SID_DRAW    ".uno:Draw"
-#define CMD_SID_VIEW100 ".uno:View100"
-#define CMD_SID_VIEW200 ".uno:View200"
-#define CMD_SID_VIEW050 ".uno:View50"
-#define CMD_SID_ZOOMIN  ".uno:ZoomIn"
-#define CMD_SID_ZOOMOUT ".uno:ZoomOut"
-
 ModalDialog RID_FONTDIALOG
 {
     HelpID = "starmath:ModalDialog:RID_FONTDIALOG";


More information about the Libreoffice-commits mailing list