mathmlimport.cxx (4d0df650) mathmlimport.cxx (79ee02b8)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 563 unchanged lines hidden (view full) ---

572
573 if (pModel)
574 {
575 SmDocShell *pDocShell =
576 static_cast<SmDocShell*>(pModel->GetObjectShell());
577 pDocShell->SetFormulaTree(pTree);
578 if (0 == aText.Len()) //If we picked up no annotation text
579 {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 563 unchanged lines hidden (view full) ---

572
573 if (pModel)
574 {
575 SmDocShell *pDocShell =
576 static_cast<SmDocShell*>(pModel->GetObjectShell());
577 pDocShell->SetFormulaTree(pTree);
578 if (0 == aText.Len()) //If we picked up no annotation text
579 {
580 //Make up some editable text
581 aText = pDocShell->GetText();
580 // Get text from imported formula
582 pTree->CreateTextFromNode(aText);
583 aText.EraseTrailingChars();
584 }
581 pTree->CreateTextFromNode(aText);
582 aText.EraseTrailingChars();
583 }
585 pDocShell->SetText( String() );
586
587 // Convert symbol names
588 SmParser &rParser = pDocShell->GetParser();
589 sal_Bool bVal = rParser.IsImportSymbolNames();
590 rParser.SetImportSymbolNames( sal_True );
591 SmNode *pTmpTree = rParser.Parse( aText );
592 aText = rParser.GetText();
593 delete pTmpTree;

--- 2600 unchanged lines hidden ---
584
585 // Convert symbol names
586 SmParser &rParser = pDocShell->GetParser();
587 sal_Bool bVal = rParser.IsImportSymbolNames();
588 rParser.SetImportSymbolNames( sal_True );
589 SmNode *pTmpTree = rParser.Parse( aText );
590 aText = rParser.GetText();
591 delete pTmpTree;

--- 2600 unchanged lines hidden ---