txtimp.cxx (c45df7c4) | txtimp.cxx (b862c97c) |
---|---|
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 --- 2047 unchanged lines hidden (view full) --- 2056 2057void XMLTextImportHelper::SetOutlineStyles( sal_Bool bSetEmptyLevels ) 2058{ 2059 static ::rtl::OUString s_NumberingStyleName( 2060 RTL_CONSTASCII_USTRINGPARAM("NumberingStyleName")); 2061 static ::rtl::OUString s_HeadingStyleName( 2062 RTL_CONSTASCII_USTRINGPARAM("HeadingStyleName")); 2063 | 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 --- 2047 unchanged lines hidden (view full) --- 2056 2057void XMLTextImportHelper::SetOutlineStyles( sal_Bool bSetEmptyLevels ) 2058{ 2059 static ::rtl::OUString s_NumberingStyleName( 2060 RTL_CONSTASCII_USTRINGPARAM("NumberingStyleName")); 2061 static ::rtl::OUString s_HeadingStyleName( 2062 RTL_CONSTASCII_USTRINGPARAM("HeadingStyleName")); 2063 |
2064 if ((m_pImpl->m_pOutlineStylesCandidates != NULL || bSetEmptyLevels) && | 2064 if (( bool(m_pImpl->m_pOutlineStylesCandidates) || bSetEmptyLevels) && |
2065 m_pImpl->m_xChapterNumbering.is() && 2066 !IsInsertMode()) 2067 { 2068 bool bChooseLastOne( false ); 2069 { 2070 if ( GetXMLImport().IsTextDocInOOoFileFormat() ) 2071 { 2072 bChooseLastOne = true; --- 979 unchanged lines hidden --- | 2065 m_pImpl->m_xChapterNumbering.is() && 2066 !IsInsertMode()) 2067 { 2068 bool bChooseLastOne( false ); 2069 { 2070 if ( GetXMLImport().IsTextDocInOOoFileFormat() ) 2071 { 2072 bChooseLastOne = true; --- 979 unchanged lines hidden --- |