viewstat.cxx (efeef26f) viewstat.cxx (23257455)
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

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

384 if( nSelectionType & (nsSelectionType::SEL_DRW_TXT|nsSelectionType::SEL_TXT) )
385 {
386 switch( nWhich )
387 {
388 case SID_ALIGN_ANY_LEFT : nAlias = SID_ATTR_PARA_ADJUST_LEFT; break;
389 case SID_ALIGN_ANY_HCENTER : nAlias = SID_ATTR_PARA_ADJUST_CENTER; break;
390 case SID_ALIGN_ANY_RIGHT : nAlias = SID_ATTR_PARA_ADJUST_RIGHT; break;
391 case SID_ALIGN_ANY_JUSTIFIED: nAlias = SID_ATTR_PARA_ADJUST_BLOCK; break;
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

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

384 if( nSelectionType & (nsSelectionType::SEL_DRW_TXT|nsSelectionType::SEL_TXT) )
385 {
386 switch( nWhich )
387 {
388 case SID_ALIGN_ANY_LEFT : nAlias = SID_ATTR_PARA_ADJUST_LEFT; break;
389 case SID_ALIGN_ANY_HCENTER : nAlias = SID_ATTR_PARA_ADJUST_CENTER; break;
390 case SID_ALIGN_ANY_RIGHT : nAlias = SID_ATTR_PARA_ADJUST_RIGHT; break;
391 case SID_ALIGN_ANY_JUSTIFIED: nAlias = SID_ATTR_PARA_ADJUST_BLOCK; break;
392 case SID_ALIGN_ANY_TOP : nAlias = FN_TABLE_VERT_NONE; break;
393 case SID_ALIGN_ANY_VCENTER : nAlias = FN_TABLE_VERT_CENTER; break;
394 case SID_ALIGN_ANY_BOTTOM : nAlias = FN_TABLE_VERT_BOTTOM; break;
392 case SID_ALIGN_ANY_TOP : nAlias = SID_TABLE_VERT_NONE; break;
393 case SID_ALIGN_ANY_VCENTER : nAlias = SID_TABLE_VERT_CENTER; break;
394 case SID_ALIGN_ANY_BOTTOM : nAlias = SID_TABLE_VERT_BOTTOM; break;
395 }
396 }
397 else if(nSelectionType & (nsSelectionType::SEL_DRW))
398 {
399 //the draw shell cannot provide a status per item - only one for SID_OBJECT_ALIGN
400 if(nWhich != SID_ALIGN_ANY_JUSTIFIED)
401 {
402 const SfxPoolItem* pItem = 0;

--- 117 unchanged lines hidden ---
395 }
396 }
397 else if(nSelectionType & (nsSelectionType::SEL_DRW))
398 {
399 //the draw shell cannot provide a status per item - only one for SID_OBJECT_ALIGN
400 if(nWhich != SID_ALIGN_ANY_JUSTIFIED)
401 {
402 const SfxPoolItem* pItem = 0;

--- 117 unchanged lines hidden ---