[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2019-07-11 Thread Matthias Seidel (via logerrit)
 starmath/source/toolbox.hrc |   23 +++
 1 file changed, 11 insertions(+), 12 deletions(-)

New commits:
commit 20b287b38529ab1d49c5dbe3b9c562bbb632713b
Author: Matthias Seidel 
AuthorDate: Thu Jul 11 10:14:48 2019 +
Commit: Matthias Seidel 
CommitDate: Thu Jul 11 10:14:48 2019 +

Cleaned up whitespace

diff --git a/starmath/source/toolbox.hrc b/starmath/source/toolbox.hrc
index d953c11ed716..1c391cd60f19 100755
--- a/starmath/source/toolbox.hrc
+++ b/starmath/source/toolbox.hrc
@@ -25,18 +25,17 @@
 #define _TOOLBOX_HRC_
 
 #define FL_TOOLBOX_CAT_DELIM1
-#define TOOLBOX_CATALOG 10
-#define TOOLBOX_CAT_A   11
-#define TOOLBOX_CAT_B   12
-#define TOOLBOX_CAT_C   13
-#define TOOLBOX_CAT_D   14
-#define TOOLBOX_CAT_E   15
-#define TOOLBOX_CAT_F   16
-#define TOOLBOX_CAT_G   17
-#define TOOLBOX_CAT_H   18
-#define TOOLBOX_CAT_I   19
+#define TOOLBOX_CATALOG 10
+#define TOOLBOX_CAT_A   11
+#define TOOLBOX_CAT_B   12
+#define TOOLBOX_CAT_C   13
+#define TOOLBOX_CAT_D   14
+#define TOOLBOX_CAT_E   15
+#define TOOLBOX_CAT_F   16
+#define TOOLBOX_CAT_G   17
+#define TOOLBOX_CAT_H   18
+#define TOOLBOX_CAT_I   19
 
-#define NUM_TBX_CATEGORIES  (TOOLBOX_CAT_I - TOOLBOX_CAT_A + 1)
+#define NUM_TBX_CATEGORIES (TOOLBOX_CAT_I - TOOLBOX_CAT_A + 1)
 
 #endif
-
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2019-05-05 Thread Matthias Seidel (via logerrit)
 starmath/source/toolbox.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b0a43fc66fdc2a4aacff989de7c3d5034a917b69
Author: Matthias Seidel 
AuthorDate: Sun May 5 17:45:04 2019 +
Commit: Matthias Seidel 
CommitDate: Sun May 5 17:45:04 2019 +

Set initial size to 5 lines for math toolbox

diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index bcbfa00b8f67..45a7c8f22dda 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -256,7 +256,7 @@ void SmToolBoxWindow::StateChanged( StateChangedType 
nStateChange )
 void SmToolBoxWindow::AdjustPosSize( sal_Bool bSetPos )
 {
 Size aCatSize( aToolBoxCat.CalcWindowSizePixel( 2 ) );
-Size aCmdSize( pToolBoxCmd->CalcWindowSizePixel( 4 /* see nLines in 
SetCategory */ ) );
+Size aCmdSize( pToolBoxCmd->CalcWindowSizePixel( 5 /* see nLines in 
SetCategory */ ) );
 DBG_ASSERT( aCatSize.Width() == aCmdSize.Width(), "width mismatch" );
 
 // catalog settings
@@ -324,7 +324,7 @@ void SmToolBoxWindow::SetCategory(sal_uInt16 nCategoryRID)
 // check for valid resource id
 switch (nCategoryRID)
 {
-case RID_UNBINOPS_CAT : nLines = 4; break;
+case RID_UNBINOPS_CAT : nLines = 5; break;
 case RID_RELATIONS_CAT: nLines = 5; break;
 case RID_SETOPERATIONS_CAT: nLines = 5; break;
 case RID_FUNCTIONS_CAT: nLines = 5; break;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2019-05-05 Thread Matthias Seidel (via logerrit)
 starmath/source/toolbox.cxx |   15 +++
 1 file changed, 7 insertions(+), 8 deletions(-)

New commits:
commit b530338b6f4b1cdd8aed2d431ee5df0fa418bba3
Author: Matthias Seidel 
AuthorDate: Sun May 5 12:49:15 2019 +
Commit: Matthias Seidel 
CommitDate: Sun May 5 12:49:15 2019 +

Enable forgotten 5th line for math toolbox

diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index fc630a67999f..bcbfa00b8f67 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -248,7 +248,7 @@ void SmToolBoxWindow::StateChanged( StateChangedType 
nStateChange )
 AdjustPosSize( bSetPosition );
 bSetPosition = sal_False;
 }
-//... otherwise the base class will remember the last position of the 
window
+// ... otherwise the base class will remember the last position of the 
window
 SfxFloatingWindow::StateChanged( nStateChange );
 }
 
@@ -256,7 +256,7 @@ void SmToolBoxWindow::StateChanged( StateChangedType 
nStateChange )
 void SmToolBoxWindow::AdjustPosSize( sal_Bool bSetPos )
 {
 Size aCatSize( aToolBoxCat.CalcWindowSizePixel( 2 ) );
-Size aCmdSize( pToolBoxCmd->CalcWindowSizePixel( 4 /* see nLines in 
SetCategory*/ ) );
+Size aCmdSize( pToolBoxCmd->CalcWindowSizePixel( 4 /* see nLines in 
SetCategory */ ) );
 DBG_ASSERT( aCatSize.Width() == aCmdSize.Width(), "width mismatch" );
 
 // catalog settings
@@ -325,13 +325,13 @@ void SmToolBoxWindow::SetCategory(sal_uInt16 nCategoryRID)
 switch (nCategoryRID)
 {
 case RID_UNBINOPS_CAT : nLines = 4; break;
-case RID_RELATIONS_CAT: nLines = 4; break;
-case RID_SETOPERATIONS_CAT: nLines = 4; break;
-case RID_FUNCTIONS_CAT: nLines = 4; break;
+case RID_RELATIONS_CAT: nLines = 5; break;
+case RID_SETOPERATIONS_CAT: nLines = 5; break;
+case RID_FUNCTIONS_CAT: nLines = 5; break;
 case RID_OPERATORS_CAT: nLines = 3; break;
-case RID_ATTRIBUTES_CAT:nLines = 4; break;
+case RID_ATTRIBUTES_CAT:nLines = 5; break;
 case RID_MISC_CAT:  nLines = 4; break;
-case RID_BRACKETS_CAT:  nLines = 4; break;
+case RID_BRACKETS_CAT:  nLines = 5; break;
 case RID_FORMAT_CAT:nLines = 3; break;
 default:
 // nothing to be done
@@ -397,4 +397,3 @@ SmToolBoxWrapper::SmToolBoxWrapper(Window *pParentWindow,
 ((SfxFloatingWindow *)pWindow)->Initialize(pInfo);
 }
 
-
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2018-12-27 Thread Libreoffice Gerrit user
 starmath/source/symbol.src |  154 +
 1 file changed, 74 insertions(+), 80 deletions(-)

New commits:
commit 888f1220b8b265c5e957e8c75e12ae975d3d1a39
Author: Matthias Seidel 
AuthorDate: Thu Dec 27 19:11:47 2018 +
Commit: Matthias Seidel 
CommitDate: Thu Dec 27 19:11:47 2018 +

Cleaned up resource file for Math symbols

diff --git a/starmath/source/symbol.src b/starmath/source/symbol.src
index 7df5fb109f89..eb3922821530 100644
--- a/starmath/source/symbol.src
+++ b/starmath/source/symbol.src
@@ -23,12 +23,6 @@
 
 #include 
 
-
-/
-
-
-/
-
 Resource RID_LOCALIZED_NAMES
 {
 StringArray RID_FRENCH_50_NAMES
@@ -187,11 +181,11 @@ Resource RID_LOCALIZED_NAMES
 };
 StringArray RID_UI_SYMBOLSET_NAMES
 {
-ItemList [ en-US ] =
-{
- < "Greek" ; > ;
-< "Special" ; > ;
-};
+ItemList [ en-US ] =
+{
+< "Greek" ; > ;
+< "Special" ; > ;
+};
 };
 
 StringArray RID_EXPORT_SYMBOL_NAMES
@@ -268,74 +262,74 @@ Resource RID_LOCALIZED_NAMES
 };
 StringArray RID_UI_SYMBOL_NAMES
 {
-ItemList [ en-US ] =
-{
-< "alpha" ; > ;
-< "ALPHA" ; > ;
-< "beta" ; > ;
-< "BETA" ; > ;
-< "gamma" ; > ;
-< "GAMMA" ; > ;
-< "delta" ; > ;
-< "DELTA" ; > ;
-< "epsilon" ; > ;
-< "EPSILON" ; > ;
-< "zeta" ; > ;
-< "ZETA" ; > ;
-< "eta" ; > ;
-< "ETA" ; > ;
-< "theta" ; > ;
-< "THETA" ; > ;
-< "iota" ; > ;
-< "IOTA" ; > ;
-< "kappa" ; > ;
-< "KAPPA" ; > ;
-< "lambda" ; > ;
-< "LAMBDA" ; > ;
-< "mu" ; > ;
-< "MU" ; > ;
-< "nu" ; > ;
-< "NU" ; > ;
-< "xi" ; > ;
-< "XI" ; > ;
-< "omicron" ; > ;
-< "OMICRON" ; > ;
-< "pi" ; > ;
-< "PI" ; > ;
-< "rho" ; > ;
-< "RHO" ; > ;
-< "sigma" ; > ;
-< "SIGMA" ; > ;
-< "tau" ; > ;
-< "TAU" ; > ;
-< "upsilon" ; > ;
-< "UPSILON" ; > ;
-< "phi" ; > ;
-< "PHI" ; > ;
-< "chi" ; > ;
-< "CHI" ; > ;
-< "psi" ; > ;
-< "PSI" ; > ;
-< "omega" ; > ;
-< "OMEGA" ; > ;
-< "varepsilon" ; > ;
-< "vartheta" ; > ;
-< "varpi" ; > ;
-< "varrho" ; > ;
-< "varsigma" ; > ;
-< "varphi" ; > ;
-< "element" ; > ;
-< "noelement" ; > ;
-< "strictlylessthan" ; > ;
-< "strictlygreaterthan" ; > ;
-< "notequal" ; > ;
-< "identical" ; > ;
-< "tendto" ; > ;
-< "infinite" ; > ;
-< "angle" ; > ;
-< "perthousand" ; > ;
-< "and" ; > ;
-< "or" ; > ;
-};
+ItemList [ en-US ] =
+{
+< "alpha" ; > ;
+< "ALPHA" ; > ;
+< "beta" ; > ;
+< "BETA" ; > ;
+< "gamma" ; > ;
+< "GAMMA" ; > ;
+< "delta" ; > ;
+< "DELTA" ; > ;
+< "epsilon" ; > ;
+< "EPSILON" ; > ;
+< "zeta" ; > ;
+< "ZETA" ; > ;
+< "eta" ; > ;
+< "ETA" ; > ;
+< "theta" ; > ;
+< "THETA" ; > ;
+< "iota" ; > ;
+< "IOTA" ; > ;
+< "kappa" ; > ;
+< "KAPPA" ; > ;
+< "lambda" ; > ;
+< "LAMBDA" ; > ;
+< "mu" ; > ;
+< "MU" ; > ;
+< "nu" ; > ;
+< "NU" ; > ;
+< "xi" ; > ;
+< "XI" ; > ;
+< "omicron" ; > ;
+< "OMICRON" ; > ;
+< "pi" ; > ;
+< "PI" ; > ;
+< "rho" ; > ;
+< "RHO" ; > ;
+< "sigma" ; > ;
+< "SIGMA" ; > ;
+< "tau" ; > ;
+< "TAU" ; > ;
+< "upsilon" ; > ;
+< "UPSILON" ; > ;
+< "phi" ; > ;
+< "PHI" ; > ;
+< "chi" ; > ;
+< "CHI" ; > ;
+< "psi" ; > ;
+< "PSI" ; > ;
+< "omega" ; > ;
+< "OMEGA" ; > ;
+< "varepsilon" ; > ;
+< "vartheta" ; > ;
+< "varpi" ; > ;
+< "varrho" ; > ;
+< "varsigma" ; > ;
+< "varphi" ; > ;
+< "element" ; > ;
+< "noelement" ; > ;
+< "strictlylessthan" ; > ;
+< "strictlygreaterthan" ; > ;
+< "notequal" ; > ;
+< "identical" ; > ;
+< "tendto" ; > ;
+< "infinite" ; > ;
+< "angle" ; > ;
+< "perthousand" ; > ;
+< "and" ; > ;
+< "or" ; > ;
+};
 };
 };

[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2015-06-20 Thread Regina Henschel
 starmath/source/mathmlimport.cxx |6 --
 1 file changed, 6 deletions(-)

New commits:
commit a80742fbeb4042bcd4c1534ba527e989fd82dfcb
Author: Regina Henschel reg...@apache.org
Date:   Sat Jun 20 12:17:27 2015 +

#i126366 Do not remove outer braces

Patch by: Ivan Timofeev timofeev@gmail.com
resolves error {a+b}over{c+d} -- a+b}over{c+d

diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 41be3f4..ddb2597 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -580,12 +580,6 @@ void SmXMLImport::endDocument(void)
 // Get text from imported formula
 pTree-CreateTextFromNode(aText);
 aText.EraseTrailingChars();
-if ((aText.GetChar(0) == '{') 
-(aText.GetChar(aText.Len()-1) == '}'))
-{
-aText.Erase(0,1);
-aText.Erase(aText.Len()-1,1);
-}
 }
 
 // Convert symbol names
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2015-06-15 Thread Regina Henschel
 starmath/source/mathmlimport.cxx |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 16278da3713c7afb504c1e8fccd18268ece2ae64
Author: Regina Henschel reg...@apache.org
Date:   Mon Jun 15 20:35:27 2015 +

#i126367 existing command text is repeated when insert formula

Patch by: Marcos Paulo de Souza marcos.souza@gmail.com

diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 5f927be4..41be3f4 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -577,8 +577,7 @@ void SmXMLImport::endDocument(void)
 pDocShell-SetFormulaTree(pTree);
 if (0 == aText.Len())  //If we picked up no annotation text
 {
-//Make up some editable text
-aText = pDocShell-GetText();
+// Get text from imported formula
 pTree-CreateTextFromNode(aText);
 aText.EraseTrailingChars();
 if ((aText.GetChar(0) == '{') 
@@ -588,7 +587,6 @@ void SmXMLImport::endDocument(void)
 aText.Erase(aText.Len()-1,1);
 }
 }
-pDocShell-SetText( String() );
 
 // Convert symbol names
 SmParser rParser = pDocShell-GetParser();
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2015-04-22 Thread Regina Henschel
 starmath/source/smdetect.cxx |  134 ++-
 1 file changed, 82 insertions(+), 52 deletions(-)

New commits:
commit 1aaa4073407bf8db1110fb8e510580b66baa3003
Author: Regina Henschel reg...@apache.org
Date:   Wed Apr 22 19:50:23 2015 +

#i126230 current Math type detection is too restrict

Now these files are detected in addition:
Fragments without prolog, any prefix on the math element, files in encoding 
UTF-16
Patch by: Regina Henschel rb.hensc...@t-online.de
Review by: Kay Schenk ksch...@apache.org

diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index 93a5644..ff4ae70 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -74,7 +74,6 @@
 #include document.hxx
 #include eqnolefilehdr.hxx
 
-
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::io;
@@ -307,9 +306,7 @@ SmFilterDetect::~SmFilterDetect()
 }
 else
 {
-//Test to see if this begins with xml and if so run it through
-//the MathML filter. There are all sorts of things wrong with
-//this approach, to be fixed at a better level than here
+// DesignScience Equation Editor MathType 3.0 ?
 SvStream *pStrm = aMedium.GetInStream();
 aTypeName.Erase();
 if (pStrm  !pStrm-GetError())
@@ -326,63 +323,96 @@ SmFilterDetect::~SmFilterDetect()
 }
 else
 {
-// #124636# detection should not only check for xml, 
but at least also for
-// the math start element and the MathML URL. 
Additionally take their order
-// into account. Also allow the case where the start 
element has a namespace
-// (e.g. bla:math), but in that case ensure that it 
is in front of an evtl.
-// xmlns:math namespace declaration and thus not part 
of that
-const sal_uInt16 nReadSize(4095);
-sal_Char aBuffer[nReadSize+1];
+// MathML? The SAX parser expects the 'math' root 
element incl.
+// the namespace URL. Neither '?xml' prolog nor 
!doctype is needed.
+// If the math element has a prefix (e.g. bla:math), 
the
+// prefix has to be defined in the namespace attribut
+// (e.g. 
xmlns:bla=http://www.w3.org/1998/Math/MathML;)
+// #124636 is fixed too.
 pStrm-Seek( STREAM_SEEK_TO_BEGIN );
-const sal_uLong nBytesRead(pStrm-Read( aBuffer, 
nReadSize ));
-
-if(nBytesRead  (5 + 1 + 34 + 5)) // xml + '' + URL + 
'(|:)math'
+const size_t nBufSize=2048;
+sal_uInt16 aBuffer[nBufSize]; // will be casted to an 
Unicode-Array below
+sal_uInt8* pByte = 
reinterpret_castsal_uInt8*(aBuffer);
+const sal_uLong nBytesRead(pStrm-Read( pByte, 
nBufSize * 2 ) );
+const sal_uLong nUnicodeCharsRead (nBytesRead / 2 );
+
+// For backwards searching an OUString is used. The 
conversion needs an
+// encoding information. Default encoding is UTF-8, 
UTF-16 is possible
+// (e.g. from MS Math Input Control), others are 
unlikely.
+// Looking for Byte Order Mark
+rtl_TextEncoding aEncoding = RTL_TEXTENCODING_UTF8;
+bool bIsUnicode = false;
+if (nBytesRead = 2  (aBuffer[0]==0xfffe || 
aBuffer[0]==0xfeff) )
 {
-// end string with null
-aBuffer[nBytesRead + 1] = 0;
-
-// is it a xml file?
-const sal_Char* pXML = strstr(aBuffer, ?xml);
-bool isMathFile(false);
+aEncoding = RTL_TEXTENCODING_UNICODE;
+bIsUnicode = true;
+if ( aBuffer[0] == 0xfffe)
+{ //swap bytes to make Big Endian
+  for (size_t i=0; i  nUnicodeCharsRead; ++i)
+  {
+  aBuffer[i] = (aBuffer[i]8) | 
(aBuffer[i]8) ;
+  }
+}
+}
 
-if(pXML)
+bool isMathFile(false);
+if ( nBytesRead  56) // minimal math 
xmlns=http://www.w3.org/1998/Math/MathML;/math
+{
+const sal_Char* pChar 

[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2014-04-10 Thread Armin Le Grand
 starmath/source/smdetect.cxx |   64 ++-
 1 file changed, 58 insertions(+), 6 deletions(-)

New commits:
commit 66090da6c85d3562de146b08842b61e7b2cb0038
Author: Armin Le Grand a...@apache.org
Date:   Thu Apr 10 11:38:37 2014 +

i124636 refine StarMath filter detector to be more specific than just 
checking for xml

diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index b094bce..93a5644 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -326,17 +326,69 @@ SmFilterDetect::~SmFilterDetect()
 }
 else
 {
-const sal_uInt16 nSize = 5;
-sal_Char aBuffer[nSize+1];
-aBuffer[nSize] = 0;
+// #124636# detection should not only check for xml, 
but at least also for
+// the math start element and the MathML URL. 
Additionally take their order
+// into account. Also allow the case where the start 
element has a namespace
+// (e.g. bla:math), but in that case ensure that it 
is in front of an evtl.
+// xmlns:math namespace declaration and thus not part 
of that
+const sal_uInt16 nReadSize(4095);
+sal_Char aBuffer[nReadSize+1];
 pStrm-Seek( STREAM_SEEK_TO_BEGIN );
-sal_uLong nBytesRead = pStrm-Read( aBuffer, nSize );
-if (nBytesRead == nSize)
+const sal_uLong nBytesRead(pStrm-Read( aBuffer, 
nReadSize ));
+
+if(nBytesRead  (5 + 1 + 34 + 5)) // xml + '' + URL + 
'(|:)math'
 {
-if (0 == strncmp( ?xml,aBuffer,nSize))
+// end string with null
+aBuffer[nBytesRead + 1] = 0;
+
+// is it a xml file?
+const sal_Char* pXML = strstr(aBuffer, ?xml);
+bool isMathFile(false);
+
+if(pXML)
+{
+// does it have the MathML URL?
+const sal_Char* pURL = strstr(aBuffer, 
http://www.w3.org/1998/Math/MathML;);
+
+// URL has to be after XML start
+if(pURL  pURL  pXML)
+{
+// look if we have a direct math start 
element
+sal_Char* pMathStart = strstr(aBuffer, 
math);
+
+if(!pMathStart)
+{
+// if not, look if we have a math 
start element in another namespace
+pMathStart = strstr(aBuffer, :math);
+
+if(pMathStart)
+{
+// if found, this has to be in 
front of the evtl. also existing namespace
+// declaration also containing 
:math to be the start element
+sal_Char* pNamespaceMath = 
strstr(aBuffer, xmlns:math);
+
+if(pNamespaceMath  pMathStart  
pNamespaceMath)
+{
+// invalid :math found 
(probably part of the namespace declaration)
+// - this cannot be the math 
start element
+pMathStart = 0;
+}
+}
+}
+
+// MathStart has to be before the URL
+if(pMathStart  pMathStart  pURL)
+{
+isMathFile = true;
+}
+}
+}
+
+if(isMathFile)
 {
 static const sal_Char sFltrNm_2[] = MATHML_XML;
 static const sal_Char sTypeNm_2[] = 
math_MathML_XML_Math;
+
 aFilterName.AssignAscii( sFltrNm_2 );
 aTypeName.AssignAscii( sTypeNm_2 );
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

2014-01-20 Thread Tsutomu Uchino
 starmath/source/document.cxx |1 +
 starmath/source/unomodel.cxx |1 +
 2 files changed, 2 insertions(+)

New commits:
commit 5c6ef989906c6aa51b2e3702bac0323ef97e9f2d
Author: Tsutomu Uchino ha...@apache.org
Date:   Mon Jan 20 13:22:16 2014 +

#i121289# printer options should contain SID_SAVE_ONLY_USED_SYMBOLS value

diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index bfd8768..0991185 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -622,6 +622,7 @@ Printer* SmDocShell::GetPrt()
SID_PRINTTEXT,   SID_PRINTTEXT,
SID_PRINTFRAME,  SID_PRINTFRAME,
SID_NO_RIGHT_SPACES, SID_NO_RIGHT_SPACES,
+   SID_SAVE_ONLY_USED_SYMBOLS, 
SID_SAVE_ONLY_USED_SYMBOLS,
0);
 
 SmModule *pp = SM_MOD();
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index bff1854..7a0b154 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -699,6 +699,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** 
ppEntries, const Any*
 SID_PRINTTEXT,   SID_PRINTTEXT,
 SID_PRINTFRAME,  SID_PRINTFRAME,
 SID_NO_RIGHT_SPACES, SID_NO_RIGHT_SPACES,
+SID_SAVE_ONLY_USED_SYMBOLS, SID_SAVE_ONLY_USED_SYMBOLS,
 0
 };
 SfxItemSet *pItemSet = new SfxItemSet( pDocSh-GetPool(), 
nRange );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits