edtab.cxx (abd49ff3) edtab.cxx (8ef2f12b)
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

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

126 return *pTable;
127}
128
129sal_Bool SwEditShell::TextToTable( const SwInsertTableOptions& rInsTblOpts,
130 sal_Unicode cCh,
131 sal_Int16 eAdj,
132 const SwTableAutoFmt* pTAFmt )
133{
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

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

126 return *pTable;
127}
128
129sal_Bool SwEditShell::TextToTable( const SwInsertTableOptions& rInsTblOpts,
130 sal_Unicode cCh,
131 sal_Int16 eAdj,
132 const SwTableAutoFmt* pTAFmt )
133{
134 SwWait aWait( *GetDoc()->GetDocShell(), sal_True );
134 SwWait aWait( *GetDoc()->GetDocShell(), true );
135 sal_Bool bRet = sal_False;
136 StartAllAction();
137 FOREACHPAM_START(this)
138 if( PCURCRSR->HasMark() )
139 bRet |= 0 != GetDoc()->TextToTable( rInsTblOpts, *PCURCRSR, cCh,
140 eAdj, pTAFmt );
141 FOREACHPAM_END()
142 EndAllAction();
143 return bRet;
144}
145
146sal_Bool SwEditShell::TableToText( sal_Unicode cCh )
147{
135 sal_Bool bRet = sal_False;
136 StartAllAction();
137 FOREACHPAM_START(this)
138 if( PCURCRSR->HasMark() )
139 bRet |= 0 != GetDoc()->TextToTable( rInsTblOpts, *PCURCRSR, cCh,
140 eAdj, pTAFmt );
141 FOREACHPAM_END()
142 EndAllAction();
143 return bRet;
144}
145
146sal_Bool SwEditShell::TableToText( sal_Unicode cCh )
147{
148 SwWait aWait( *GetDoc()->GetDocShell(), sal_True );
148 SwWait aWait( *GetDoc()->GetDocShell(), true );
149 sal_Bool bRet = sal_False;
150 SwPaM* pCrsr = GetCrsr();
151 const SwTableNode* pTblNd =
152 GetDoc()->IsIdxInTbl( pCrsr->GetPoint()->nNode );
153 if( IsTableMode() )
154 {
155 ClearMark();
156 pCrsr = GetCrsr();

--- 373 unchanged lines hidden ---
149 sal_Bool bRet = sal_False;
150 SwPaM* pCrsr = GetCrsr();
151 const SwTableNode* pTblNd =
152 GetDoc()->IsIdxInTbl( pCrsr->GetPoint()->nNode );
153 if( IsTableMode() )
154 {
155 ClearMark();
156 pCrsr = GetCrsr();

--- 373 unchanged lines hidden ---